[csw-devel] SF.net SVN: gar:[5142] csw/mgar/pkg

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Jun 3 18:57:17 CEST 2009


Revision: 5142
          http://gar.svn.sourceforge.net/gar/?rev=5142&view=rev
Author:   skayser
Date:     2009-06-03 16:57:16 +0000 (Wed, 03 Jun 2009)

Log Message:
-----------
dante: initial commit

Added Paths:
-----------
    csw/mgar/pkg/dante/
    csw/mgar/pkg/dante/branches/
    csw/mgar/pkg/dante/tags/
    csw/mgar/pkg/dante/trunk/
    csw/mgar/pkg/dante/trunk/Makefile
    csw/mgar/pkg/dante/trunk/checksums
    csw/mgar/pkg/dante/trunk/files/
    csw/mgar/pkg/dante/trunk/files/CSWdante.cswdante


Property changes on: csw/mgar/pkg/dante/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/dante/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dante/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/dante/trunk/Makefile	2009-06-03 16:57:16 UTC (rev 5142)
@@ -0,0 +1,85 @@
+# Todo
+# * Add changelog.CSW
+# * Compare with current catalog package WRT to config file etc.
+GARNAME = dante
+GARVERSION = 1.1.19
+CATEGORIES = net
+
+DESCRIPTION = Dante SOCKS packages
+define BLURB
+  Dante is a circuit-level firewall/proxy that can be used to provide
+  convenient and secure network connectivity to a wide range of hosts
+  while requiring only the server Dante runs on to have external network
+  connectivity.
+  
+  Once installed, Dante can in most cases be made transparent to the
+  clients while offering detailed access control and logging facilities to
+  the server administrator. 
+endef
+
+MASTER_SITES = ftp://ftp.inet.no/pub/socks/
+MASTER_SITES += ftp://ftp.inet.no/pub/socks/old/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+SPKG_SOURCEURL = http://www.inet.no/dante/
+
+PACKAGES = CSWlibsocks CSWdante CSWdanteclient
+
+SPKG_DESC_CSWlibsocks = Dante SOCKS runtime libraries
+SPKG_DESC_CSWdante = Dante SOCKS (v4 and v5) proxy daemon
+SPKG_DESC_CSWdanteclient = Dante SOCKS wrapper to SOCKsify applications
+SPKG_CLASSES_CSWdante = none cswinitsmf
+
+CATALOGNAME_CSWdanteclient = dante-client
+
+# There is no pkg compiling against dante right now, just drop the
+# header file
+EXTRA_MERGE_EXCLUDE_FILES = $(includedir)/socks.h
+
+# Would have liked to keep it simple and just put *.sockd.* and
+# *.socks.* in the server/client package, but then some _RT end up in
+# the client package also. Seems as if files can be matched by multiple
+# packages.
+PKGFILES_CSWlibsocks = $(PKGFILES_RT)
+PKGFILES_CSWdante = .*sockd.* /etc/opt/csw/init.d/cswdante
+PKGFILES_CSWdanteclient = $(mandir)/.*socks.*
+PKGFILES_CSWdanteclient += $(docdir)/.*socks.*
+PKGFILES_CSWdanteclient += $(bindir)/.*socks.*
+
+REQUIRED_PKGS_CSWdante = CSWlibsocks CSWcswclassutils CSWtcpwrap
+REQUIRED_PKGS_CSWdanteclient = CSWlibsocks
+
+# CSWlibsocks not yet installed on the build farm
+ENABLE_CHECK = 0
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+TEST_SCRIPTS =
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-socks-conf=$(sysconfdir)/socks.conf
+CONFIGURE_ARGS += --with-sockd-conf=$(sysconfdir)/sockd.conf
+CONFIGURE_ARGS += --with-pidfile=/var/opt/csw/run/sockd.pid
+
+# Don't bother about the "not found" modules after the ./configure run,
+# they are commercial add-ons (http://www.inet.no/dante/module.html).
+
+PROTOTYPE_FILTER  = awk '\
+	$$$$3 ~ /\/init.d\/cswdante$$$$/ { $$$$2 = "cswinitsmf" } \
+    { print }'
+
+include gar/category.mk
+
+post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated: DOCS = CREDITS NEWS SUPPORT
+post-install-modulated:
+	@ginstall -d $(DOCDEST)/examples
+	@cp $(WORKSRC)/example/*.conf $(DOCDEST)/examples
+	@$(foreach D,$(DOCS),cp $(WORKSRC)/$(D) $(DOCDEST);)
+
+	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	@cp $(FILEDIR)/CSWdante.cswdante $(DESTDIR)/etc/opt/csw/init.d/cswdante
+
+	# /var/opt/csw/run is not in CSWcommon
+	@ginstall -d /var/opt/csw/run
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/dante/trunk/checksums
===================================================================
--- csw/mgar/pkg/dante/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/dante/trunk/checksums	2009-06-03 16:57:16 UTC (rev 5142)
@@ -0,0 +1 @@
+58b56d1e964f3f0186f3eeed3d95d9a4  download/dante-1.1.19.tar.gz

Added: csw/mgar/pkg/dante/trunk/files/CSWdante.cswdante
===================================================================
--- csw/mgar/pkg/dante/trunk/files/CSWdante.cswdante	                        (rev 0)
+++ csw/mgar/pkg/dante/trunk/files/CSWdante.cswdante	2009-06-03 16:57:16 UTC (rev 5142)
@@ -0,0 +1,43 @@
+#!/sbin/sh
+# Simple init script for dante.
+#
+#AUTOENABLE no
+
+PATH=/usr/bin:/opt/csw/bin:/usr/sbin
+
+PIDFILE=/var/opt/csw/run/sockd.pid
+CONFIG=/opt/csw/etc/sockd.conf
+CONFIG_LOCAL=/etc/opt/csw/etc/sockd.conf
+
+[ -r $CONFIG_LOCAL ] && CONFIG=$CONFIG_LOCAL
+
+case $1 in
+        'start')
+                if [ -f "$CONFIG" ]; then
+                        /opt/csw/sbin/sockd -D -f $CONFIG
+                else
+                        echo "No config file $CONFFILE. Not starting cswdante."
+                fi
+                ;;
+        'stop')
+                if [ -f "$PIDFILE" ]; then
+                        /usr/bin/kill `/usr/bin/cat $PIDFILE`
+                fi
+                ;;
+        'restart')
+                # Kill everything
+                $0 stop
+                $0 start
+                ;;
+        'reload')
+                # Make the parent process reload the config file, but leave
+                # child processes untouched.
+                if [ -f "$PIDFILE" ]; then
+                        /usr/bin/kill -HUP `/usr/bin/cat $PIDFILE`
+                fi
+                ;;
+        *)
+                echo "Usage: $0 { start | stop | restart | reload }"
+                exit 1
+                ;;
+esac


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