[csw-devel] SF.net SVN: gar:[5601] csw/mgar/pkg
bensons at users.sourceforge.net
bensons at users.sourceforge.net
Sat Jul 18 20:38:13 CEST 2009
Revision: 5601
http://gar.svn.sourceforge.net/gar/?rev=5601&view=rev
Author: bensons
Date: 2009-07-18 18:38:13 +0000 (Sat, 18 Jul 2009)
Log Message:
-----------
tun: initial GAR repackage commit
Added Paths:
-----------
csw/mgar/pkg/tun/
csw/mgar/pkg/tun/branches/
csw/mgar/pkg/tun/tags/
csw/mgar/pkg/tun/trunk/
csw/mgar/pkg/tun/trunk/Makefile
csw/mgar/pkg/tun/trunk/checksums
csw/mgar/pkg/tun/trunk/files/
Property changes on: csw/mgar/pkg/tun/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/tun/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tun/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/tun/trunk/Makefile 2009-07-18 18:38:13 UTC (rev 5601)
@@ -0,0 +1,56 @@
+GARNAME = tun
+GARVERSION = 1.1
+CATEGORIES = net
+
+DESCRIPTION = Tunnel software network interface
+define BLURB
+ TUN (as in network TUNnel) simulates a network layer device and it
+ operates with layer 3 packets such as IP packets. TAP is used
+ to create a network bridge, while TUN is used with routing.
+endef
+
+MASTER_SITES = http://www.whiteboard.ne.jp/~admin2/tuntap/source/tuntap/
+DISTFILES = tuntap.tar.gz
+# fix distname
+DISTNAME = tuntap
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+TEST_SCRIPTS =
+
+INSTALL_SCRIPTS = custom
+
+# we will need a postinstall and preremove script
+define CSWtun_postinstall
+#!/bin/sh
+
+$(REM_DRV) tun > /dev/null 2>&1
+echo loading tun module
+$(ADD_DRV) tun
+endef
+
+define CSWtun_preremove
+#!/bin/sh
+
+echo unloading tun module
+$(REM_DRV) tun > /dev/null 2>&1
+endef
+
+include gar/category.mk
+
+# custom install
+INSTALL = /opt/csw/bin/ginstall
+ADD_DRV = /usr/sbin/add_drv
+REM_DRV = /usr/sbin/rem_drv
+DRV_DIR = /usr/kernel/drv
+DRV_CONF_DIR = /usr/kernel/drv
+install-custom:
+ @$(INSTALL) -d -m 0755 $(DESTDIR)/usr/include/net
+ @$(INSTALL) -d -m 0755 $(DESTDIR)$(DRV_DIR)
+ @$(INSTALL) -m 644 $(WORKSRC)/if_tun.h $(DESTDIR)/usr/include/net
+ @$(INSTALL) -m 644 $(WORKSRC)/tun $(DESTDIR)$(DRV_DIR)
+ @$(INSTALL) -m 644 $(WORKSRC)/tun.conf $(DESTDIR)$(DRV_CONF_DIR)
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/tun/trunk/checksums
===================================================================
--- csw/mgar/pkg/tun/trunk/checksums (rev 0)
+++ csw/mgar/pkg/tun/trunk/checksums 2009-07-18 18:38:13 UTC (rev 5601)
@@ -0,0 +1 @@
+51da05d73357d758ede3a67ce72bf98a download/tuntap.tar.gz
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list