summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-07-01 00:43:20 +0000
committertnn <tnn@pkgsrc.org>2007-07-01 00:43:20 +0000
commitf7f809276732c6c0163d8664cf0b20ad692c92ee (patch)
tree6ebab1e9ad0bca724f66e61f36da5938a4a80d90
parent07204b15285e03b419736bf4eacf9aef1b281d21 (diff)
downloadpkgsrc-f7f809276732c6c0163d8664cf0b20ad692c92ee.tar.gz
Add net/solaris-tap version 20070527 to pkgsrc:
Solaris kernel module for virtual Ethernet devices (TAP) and virtual point-to-point tunneling interfaces (TUN).
-rw-r--r--net/solaris-tap/DEINSTALL16
-rw-r--r--net/solaris-tap/DESCR2
-rw-r--r--net/solaris-tap/MESSAGE16
-rw-r--r--net/solaris-tap/Makefile28
-rw-r--r--net/solaris-tap/PLIST8
-rw-r--r--net/solaris-tap/buildlink3.mk20
-rw-r--r--net/solaris-tap/distinfo5
7 files changed, 95 insertions, 0 deletions
diff --git a/net/solaris-tap/DEINSTALL b/net/solaris-tap/DEINSTALL
new file mode 100644
index 00000000000..2362933cc7e
--- /dev/null
+++ b/net/solaris-tap/DEINSTALL
@@ -0,0 +1,16 @@
+#! /bin/sh
+# $NetBSD: DEINSTALL,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+#
+
+cat << EOF
+===========================================================================
+
+Please remember to run:
+
+# /usr/sbin/rem_drv tun
+# /usr/sbin/rem_drv tap
+
+and remove the tun/tap driver from /usr/kernel/drv if you have copied
+it there.
+===========================================================================
+EOF
diff --git a/net/solaris-tap/DESCR b/net/solaris-tap/DESCR
new file mode 100644
index 00000000000..47876e27bfd
--- /dev/null
+++ b/net/solaris-tap/DESCR
@@ -0,0 +1,2 @@
+Solaris kernel module for virtual Ethernet devices (TAP) and virtual
+point-to-point tunneling interfaces (TUN).
diff --git a/net/solaris-tap/MESSAGE b/net/solaris-tap/MESSAGE
new file mode 100644
index 00000000000..7bdb81ee991
--- /dev/null
+++ b/net/solaris-tap/MESSAGE
@@ -0,0 +1,16 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+
+To enable the TUN/TAP driver in your Solaris kernel after an installation
+or upgrade, you must manually copy the following files to /usr/kernel/drv:
+ ${PREFIX}/lkm/tap
+ ${PREFIX}/lkm/tap.conf
+ ${PREFIX}/lkm/tun
+ ${PREFIX}/lkm/tun.conf
+
+Then execute the following commands:
+ /usr/sbin/rem_drv tun >/dev/null 2>&1
+ /usr/sbin/rem_drv tap >/dev/null 2>&1
+ /usr/sbin/add_drv tun
+ /usr/sbin/add_drv tap
+===========================================================================
diff --git a/net/solaris-tap/Makefile b/net/solaris-tap/Makefile
new file mode 100644
index 00000000000..c94b265bd7e
--- /dev/null
+++ b/net/solaris-tap/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+
+DISTNAME= tuntap
+PKGNAME= solaris-tap-20070525
+CATEGORIES= net
+MASTER_SITES= http://www.whiteboard.ne.jp/~admin2/tuntap/source/tuntap/
+
+MAINTAINER= tnn@NetBSD.org
+HOMEPAGE= http://www.whiteboard.ne.jp/~admin2/tuntap/
+COMMENT= Solaris kernel module for virtual Ethernet devices
+
+ONLY_FOR_PLATFORM= SunOS-*-*
+GNU_CONFIGURE= yes
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+WRKSRC= ${WRKDIR}/tuntap
+
+.include "../../mk/bsd.prefs.mk"
+
+INSTALLATION_DIRS= include/net lkm
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/if_tun.h ${PREFIX}/include/net
+.for f in tap tap.conf tun tun.conf
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lkm
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/solaris-tap/PLIST b/net/solaris-tap/PLIST
new file mode 100644
index 00000000000..8a46b237f74
--- /dev/null
+++ b/net/solaris-tap/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+include/net/if_tun.h
+lkm/tap
+lkm/tap.conf
+lkm/tun
+lkm/tun.conf
+@unexec ${RMDIR} %D/include/net 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/lkm 2>/dev/null || ${TRUE}
diff --git a/net/solaris-tap/buildlink3.mk b/net/solaris-tap/buildlink3.mk
new file mode 100644
index 00000000000..e89bd66f03e
--- /dev/null
+++ b/net/solaris-tap/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+SOLARIS_TAP_BUILDLINK3_MK:= ${SOLARIS_TAP_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= solaris-tap
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsolaris-tap}
+BUILDLINK_PACKAGES+= solaris-tap
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}solaris-tap
+
+.if ${SOLARIS_TAP_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.solaris-tap+= solaris-tap>=20070525
+BUILDLINK_PKGSRCDIR.solaris-tap?= ../../net/solaris-tap
+BUILDLINK_DEPMETHOD.solaris-tap?= build
+.endif # SOLARIS_TAP_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/net/solaris-tap/distinfo b/net/solaris-tap/distinfo
new file mode 100644
index 00000000000..805c9d614b4
--- /dev/null
+++ b/net/solaris-tap/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/07/01 00:43:20 tnn Exp $
+
+SHA1 (solaris-tap-20070525/tuntap.tar.gz) = 3d2bd63cf7813ac365b73faa4d6ab9de33e2920b
+RMD160 (solaris-tap-20070525/tuntap.tar.gz) = 40855ab98cadbd975afe6f2b799cab4f1c6928b5
+Size (solaris-tap-20070525/tuntap.tar.gz) = 40016 bytes