aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2006-01-03 07:02:11 +0800
committerkan <kan@FreeBSD.org>2006-01-03 07:02:11 +0800
commit3c041b60c3a41d26b07b2f1b074785a62c3c3648 (patch)
tree9f9844c3138a776bded5e7377c2e28940c0726d5
parent8a82fe5d66d5e4c5452a43f9dd7c78bd8013746f (diff)
downloadfreebsd-ports-gnome-3c041b60c3a41d26b07b2f1b074785a62c3c3648.tar.gz
freebsd-ports-gnome-3c041b60c3a41d26b07b2f1b074785a62c3c3648.tar.zst
freebsd-ports-gnome-3c041b60c3a41d26b07b2f1b074785a62c3c3648.zip
Bring back linux_kdump. It builds just fine using devel/linux_devtools-8.
-rw-r--r--devel/linux_kdump/Makefile40
-rw-r--r--devel/linux_kdump/distinfo2
-rw-r--r--devel/linux_kdump/files/patch-mkioctls.linux11
-rw-r--r--devel/linux_kdump/pkg-descr3
4 files changed, 56 insertions, 0 deletions
diff --git a/devel/linux_kdump/Makefile b/devel/linux_kdump/Makefile
new file mode 100644
index 000000000000..cf4ee40d96f3
--- /dev/null
+++ b/devel/linux_kdump/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: linux_kdump
+# Date created: Nov 26 1997
+# Whom: msmith@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= linux_kdump
+PORTVERSION= 1.5
+PORTREVISION= 1
+CATEGORIES= devel linux
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= marcel
+
+MAINTAINER= marcel@FreeBSD.org
+COMMENT= Linux-compatability ktrace.out processor
+
+BUILD_DEPENDS= /compat/linux/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools-8
+
+ONLY_FOR_ARCHS= i386
+MAN1= linux_kdump.1
+PLIST_FILES= bin/linux_kdump
+
+.include <bsd.port.pre.mk>
+
+.ifndef(SRCDIR)
+SRCDIR= /usr/src
+pre-everything::
+ @${ECHO_MSG} '===> Using the FreeBSD source tree under /usr/src'
+ @${ECHO_MSG} '===> Set SRCDIR to use an alternate source tree'
+.endif
+
+.if !exists(${SRCDIR}/sys/i386/linux/syscalls.master)
+IGNORE= "requires kernel source present in ${SRCDIR}/sys"
+.endif
+.if !exists(${SRCDIR}/usr.bin/ktrace/subr.c)
+IGNORE= "requires ktrace source present in ${SRCDIR}/usr.bin/ktrace"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/linux_kdump/distinfo b/devel/linux_kdump/distinfo
new file mode 100644
index 000000000000..bf77137d333c
--- /dev/null
+++ b/devel/linux_kdump/distinfo
@@ -0,0 +1,2 @@
+MD5 (linux_kdump-1.5.tar.gz) = 9af097e1a868c4db05f9a50367a6a91d
+SIZE (linux_kdump-1.5.tar.gz) = 6166
diff --git a/devel/linux_kdump/files/patch-mkioctls.linux b/devel/linux_kdump/files/patch-mkioctls.linux
new file mode 100644
index 000000000000..ed405733472f
--- /dev/null
+++ b/devel/linux_kdump/files/patch-mkioctls.linux
@@ -0,0 +1,11 @@
+--- mkioctls.linux.orig Sat Feb 21 15:35:48 2004
++++ mkioctls.linux Sat Feb 21 15:34:41 2004
+@@ -4,7 +4,7 @@
+ TMP2FILE=/tmp/$$b.c
+ OUTFILE=linux_ioctl.c
+
+-CPP="/compat/linux/usr/bin/gcc -E"
++CPP="/compat/linux/usr/bin/gcc -E -D__builtin_va_list=int"
+
+ (echo "#include <sys/ioctl.h>"
+ echo "#include <sys/soundcard.h>"
diff --git a/devel/linux_kdump/pkg-descr b/devel/linux_kdump/pkg-descr
new file mode 100644
index 000000000000..c8a5b86f6955
--- /dev/null
+++ b/devel/linux_kdump/pkg-descr
@@ -0,0 +1,3 @@
+Linux_kdump produces human-readable output from ktrace.out files
+generated by the FreeBSD utility ktrace(1) when run with a Linux
+binary.