[csw-devel] SF.net SVN: gar:[4802] csw/mgar/pkg
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Mon May 11 00:30:37 CEST 2009
Revision: 4802
http://gar.svn.sourceforge.net/gar/?rev=4802&view=rev
Author: skayser
Date: 2009-05-10 22:30:36 +0000 (Sun, 10 May 2009)
Log Message:
-----------
stunnel: initial commit
Added Paths:
-----------
csw/mgar/pkg/stunnel/
csw/mgar/pkg/stunnel/branches/
csw/mgar/pkg/stunnel/tags/
csw/mgar/pkg/stunnel/trunk/
csw/mgar/pkg/stunnel/trunk/Makefile
csw/mgar/pkg/stunnel/trunk/checksums
csw/mgar/pkg/stunnel/trunk/files/
csw/mgar/pkg/stunnel/trunk/files/changelog.CSW
csw/mgar/pkg/stunnel/trunk/files/postinstall
Property changes on: csw/mgar/pkg/stunnel/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/stunnel/trunk/Makefile
===================================================================
--- csw/mgar/pkg/stunnel/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/stunnel/trunk/Makefile 2009-05-10 22:30:36 UTC (rev 4802)
@@ -0,0 +1,53 @@
+# TODO
+# - Remove excessive files from $(docdir)
+# - Adjust paths in $(sysconfdir)/stunnel.conf-sample
+# - Verify /var/opt/csw/lib/stunnel/dev/zero creation in postinstall
+GARNAME = stunnel
+GARVERSION = 4.27
+CATEGORIES = net
+
+DESCRIPTION = Universal SSL Wrapper
+define BLURB
+ Stunnel is a program that allows you to encrypt arbitrary TCP connections
+ inside SSL (Secure Sockets Layer) available on both Unix and Windows. Stunnel
+ can allow you to secure non-SSL aware daemons and protocols (like POP, IMAP,
+ LDAP, etc) by having Stunnel provide the encryption, requiring no changes to
+ the daemon's code.
+endef
+
+MASTER_SITES = http://www.stunnel.org/download/stunnel/src/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += postinstall
+
+SPKG_SOURCEURL = http://www.stunnel.org
+
+# 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)
+CONFIGURE_ARGS += --with-ssl=/opt/csw
+#CONFIGURE_ARGS += --with-cert-dir=/opt/csw/ssl/certs/
+CONFIGURE_ARGS += --enable-ipv6
+CONFIGURE_ARGS += --enable-dh
+CONFIGURE_ARGS += --localstatedir=/var/opt/csw
+
+# No test target available
+TEST_SCRIPTS =
+
+include gar/category.mk
+
+# 1) Suppress prompts for openssl sample cert generation (-batch)
+# 2) Disable creation of /dev/zero (needs root privs, moved to postinstall)
+pre-build-modulated:
+ perl -pi -e '\
+ s|/bin/openssl|/bin/openssl -batch|; \
+ s|^|#| if (m|/dev/zero|);' \
+ $(WORKSRC)/tools/Makefile
+ @$(MAKECOOKIE)
+
+post-install-modulated: DOCDEST=$(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated:
+ @ginstall -d $(DOCDEST)
+ @cp $(WORKSRC)/BUGS $(WORKSRC)/ChangeLog $(DOCDEST)
+ @cp $(FILEDIR)/changelog.CSW $(DOCDEST)
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/stunnel/trunk/checksums
===================================================================
--- csw/mgar/pkg/stunnel/trunk/checksums (rev 0)
+++ csw/mgar/pkg/stunnel/trunk/checksums 2009-05-10 22:30:36 UTC (rev 4802)
@@ -0,0 +1 @@
+3c655d815576f50046a1c28744b88681 download/stunnel-4.27.tar.gz
Added: csw/mgar/pkg/stunnel/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/stunnel/trunk/files/changelog.CSW (rev 0)
+++ csw/mgar/pkg/stunnel/trunk/files/changelog.CSW 2009-05-10 22:30:36 UTC (rev 4802)
@@ -0,0 +1,6 @@
+stunnel (4,27,REV=2009.05.10)
+
+ * Package adopted and updated to 4.27.
+ * Built with --localstatedir=/var/opt/csw. (Closes: #3029)
+
+ -- Sebastian Kayser <skayser at opencsw.org> Sun, 10 May 2009 22:33:14 +0200
Added: csw/mgar/pkg/stunnel/trunk/files/postinstall
===================================================================
--- csw/mgar/pkg/stunnel/trunk/files/postinstall (rev 0)
+++ csw/mgar/pkg/stunnel/trunk/files/postinstall 2009-05-10 22:30:36 UTC (rev 4802)
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# Create required /dev/zero in chroot directory
+#
+# Taken from stunnel Makefile. mknod can only be run as root and thus needs
+# to be run from postinstall (packaging is done as non-root user).
+#
+mkdir -p /var/opt/csw/lib/stunnel/dev
+mknod /var/opt/csw/lib/stunnel/dev/zero c 13 12
+chmod 666 /var/opt/csw/lib/stunnel/dev/zero
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