summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-12-08 10:38:26 +0000
committerUlrich Müller <ulm@gentoo.org>2007-12-08 10:38:26 +0000
commit1bfdff9713ec18b673785fcc672e520f01d5a34f (patch)
tree575aac3e121fbe90e32f41484526069804ee1d87 /net-misc
parentAdd 1.50. (diff)
downloadhistorical-1bfdff9713ec18b673785fcc672e520f01d5a34f.tar.gz
historical-1bfdff9713ec18b673785fcc672e520f01d5a34f.tar.bz2
historical-1bfdff9713ec18b673785fcc672e520f01d5a34f.zip
Version bump, bug #197881.
Package-Manager: portage-2.1.4_rc8
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/stunnel/ChangeLog13
-rw-r--r--net-misc/stunnel/Manifest58
-rw-r--r--net-misc/stunnel/files/digest-stunnel-4.163
-rw-r--r--net-misc/stunnel/files/digest-stunnel-4.213
-rw-r--r--net-misc/stunnel/files/stunnel-4.21-libwrap.patch10
-rw-r--r--net-misc/stunnel/files/stunnel.rc634
-rw-r--r--net-misc/stunnel/files/stunnel.rc6.4.2034
-rw-r--r--net-misc/stunnel/stunnel-4.16.ebuild82
-rw-r--r--net-misc/stunnel/stunnel-4.20.ebuild22
-rw-r--r--net-misc/stunnel/stunnel-4.21.ebuild81
10 files changed, 206 insertions, 134 deletions
diff --git a/net-misc/stunnel/ChangeLog b/net-misc/stunnel/ChangeLog
index 51ba130dd2f6..248a84d0fb29 100644
--- a/net-misc/stunnel/ChangeLog
+++ b/net-misc/stunnel/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for net-misc/stunnel
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.77 2007/11/10 05:26:34 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.78 2007/12/08 10:38:25 ulm Exp $
+
+*stunnel-4.21 (08 Dec 2007)
+
+ 08 Dec 2007; Ulrich Mueller <ulm@gentoo.org>
+ +files/stunnel-4.21-libwrap.patch, files/stunnel.rc6,
+ +files/stunnel.rc6.4.20, -stunnel-4.16.ebuild, stunnel-4.20.ebuild,
+ +stunnel-4.21.ebuild:
+ Version bump; ebuild and patch by Santiago M. Mola <coldwind@gentoo.org> in
+ bug #197881. Replace call to docert by install_cert, bug #174759. The binary
+ is now installed in /usr/bin; provide a symlink for backwards compatibility
+ and update the rc file accordingly. Remove old version.
10 Nov 2007; Samuli Suominen <drac@gentoo.org> stunnel-3.26.ebuild:
Keyword ~amd64 wrt #193770.
diff --git a/net-misc/stunnel/Manifest b/net-misc/stunnel/Manifest
index e387ce079d43..4b746d099642 100644
--- a/net-misc/stunnel/Manifest
+++ b/net-misc/stunnel/Manifest
@@ -1,34 +1,45 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX stunnel-3.26-gentoo.diff 941 RMD160 4ca4f85a8888c7c9dbeed9d1303bae182d19195d SHA1 5517c6e3395664d76c84548ea67ffd8fddddbdcd SHA256 e2a9fab361699b01ccd004ef598bb868d5f6f37bd40d05b7a16a97cd9ecee2f2
MD5 b42ca1fbeb5d6454de36aac4cb893294 files/stunnel-3.26-gentoo.diff 941
RMD160 4ca4f85a8888c7c9dbeed9d1303bae182d19195d files/stunnel-3.26-gentoo.diff 941
SHA256 e2a9fab361699b01ccd004ef598bb868d5f6f37bd40d05b7a16a97cd9ecee2f2 files/stunnel-3.26-gentoo.diff 941
+AUX stunnel-4.21-libwrap.patch 380 RMD160 c5ed7c06c3612bc5930ca8c77cac8bf58ec403f3 SHA1 fa1bf6674f775fa1b5934f4707c9e7eafed0d8a9 SHA256 b22f56707b96df785ebc20b48faf9761fb52cf4a362be875c60071b0d4572be1
+MD5 3de4f4bf59653128aa337c8367abde77 files/stunnel-4.21-libwrap.patch 380
+RMD160 c5ed7c06c3612bc5930ca8c77cac8bf58ec403f3 files/stunnel-4.21-libwrap.patch 380
+SHA256 b22f56707b96df785ebc20b48faf9761fb52cf4a362be875c60071b0d4572be1 files/stunnel-4.21-libwrap.patch 380
AUX stunnel.conf 1423 RMD160 606c53b0e241e44c8aabe423ca6772dc76aa69a9 SHA1 0b18a6dea836abc3c224c367f9ebd6fa30b931f2 SHA256 be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105
MD5 9193cc027bed086a3852dc7189602f0b files/stunnel.conf 1423
RMD160 606c53b0e241e44c8aabe423ca6772dc76aa69a9 files/stunnel.conf 1423
SHA256 be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105 files/stunnel.conf 1423
-AUX stunnel.rc6 933 RMD160 2ffcca398b3342ee7615c3d08030bcd8314cd5cc SHA1 c37ec443f66a79af81dbe17d82eb1a91ce9ab5af SHA256 902db622cd2861fb75ebd84e966cd9cb2002f410e4d1a8a44286be687eac0eda
-MD5 f4879ffd6081bf6db14af6fac04f6b9e files/stunnel.rc6 933
-RMD160 2ffcca398b3342ee7615c3d08030bcd8314cd5cc files/stunnel.rc6 933
-SHA256 902db622cd2861fb75ebd84e966cd9cb2002f410e4d1a8a44286be687eac0eda files/stunnel.rc6 933
+AUX stunnel.rc6 779 RMD160 3cb0ba8b6f90484a9cec951e3eb36eef45169f6d SHA1 7de8dc829e271b3ed248e3b44afb9b537621cc02 SHA256 b2128e3bfe38485ef4afad35b57d8711666281087f3fcf920d5d313642e06dea
+MD5 6992818ed183645efe0db93b7a8a4aed files/stunnel.rc6 779
+RMD160 3cb0ba8b6f90484a9cec951e3eb36eef45169f6d files/stunnel.rc6 779
+SHA256 b2128e3bfe38485ef4afad35b57d8711666281087f3fcf920d5d313642e06dea files/stunnel.rc6 779
+AUX stunnel.rc6.4.20 933 RMD160 153786753342f787e61ccb5203287090f59ae76d SHA1 23ad6f838e5817c97866ff8472dcb525043cf4c4 SHA256 3e8f2d66184a29da7873e564dd544a4b03d3e35895b29399251a3cf1f86b861c
+MD5 65f4f8d6164092368afbecd1ec640ee8 files/stunnel.rc6.4.20 933
+RMD160 153786753342f787e61ccb5203287090f59ae76d files/stunnel.rc6.4.20 933
+SHA256 3e8f2d66184a29da7873e564dd544a4b03d3e35895b29399251a3cf1f86b861c files/stunnel.rc6.4.20 933
DIST stunnel-3.26.tar.gz 228923 RMD160 63347b6bc6fca1496d74a8ef234eea98a45e0b04 SHA1 0d40d268a9e4b63630312cdee4efa5ecba53c9ec SHA256 d2a55b089d46d14bc4b456bb1927303492dab6649867c67a005d2c9d1ededfb3
-DIST stunnel-4.16.tar.gz 507204 RMD160 cbf8136049bcd8e306ee80bd66e4dd7666272b46 SHA1 6772e0c7f26c2596564ba66978597db8cd229a72 SHA256 8ccf6d8e9960ec6cb64aa27c3e61cb1ee32f5ae12f208aebb923de9c9f200a6e
DIST stunnel-4.20.tar.gz 513394 RMD160 6a5dfbabe17804e87ed8c7c75898dba4b4257827 SHA1 a9a449b28a4f34ab22f6b4bfaa81c1904a5883c4 SHA256 2926b8eda6d90872056145da8a260bd2eab41621c143f8a014ffa7a92e81fd10
+DIST stunnel-4.21.tar.gz 528196 RMD160 e0f599bb44bbdd5178af9972110f71ee64cbf724 SHA1 7785c45167d902aa728b839adee02a8cc056d86a SHA256 b1121c1157c48320491f1929eb1f1c64ba20f76c7352c0df01c77cf09be19add
EBUILD stunnel-3.26.ebuild 723 RMD160 0636c7eae1da61ec4af4771feae60d9a86f70322 SHA1 b71fe6b65de35833c2d35c620e38c231fe3a5d04 SHA256 adc4a2cb260ca77fd1881c960230486f4952b6946db94ec57a33f2131aeae986
MD5 e2c520205edecc1d1130a227a1d81a2c stunnel-3.26.ebuild 723
RMD160 0636c7eae1da61ec4af4771feae60d9a86f70322 stunnel-3.26.ebuild 723
SHA256 adc4a2cb260ca77fd1881c960230486f4952b6946db94ec57a33f2131aeae986 stunnel-3.26.ebuild 723
-EBUILD stunnel-4.16.ebuild 2434 RMD160 8e9209c92c9355ac31dbf1260bd1c556dd9875f8 SHA1 7413dfbeeadc394d47b29e61600046c1c7c05dbc SHA256 1839faa0cf5e429e71054a52db8949e0c50fb8bfbcc9bb4cbdc8cd687559123b
-MD5 d76e359d18b6d4a04f1d743a620ea0a1 stunnel-4.16.ebuild 2434
-RMD160 8e9209c92c9355ac31dbf1260bd1c556dd9875f8 stunnel-4.16.ebuild 2434
-SHA256 1839faa0cf5e429e71054a52db8949e0c50fb8bfbcc9bb4cbdc8cd687559123b stunnel-4.16.ebuild 2434
-EBUILD stunnel-4.20.ebuild 2432 RMD160 a04fa64fd12eddbfd765ee9fa9c3447b3ca559be SHA1 182ed8434d448601fb4d302138d38c11b4746541 SHA256 8c9e93be5916ed463f3037821010b25155ee4392bca86bbc80273187d3ec18e7
-MD5 f833a64cdf84efc9f491bf490bd0ae12 stunnel-4.20.ebuild 2432
-RMD160 a04fa64fd12eddbfd765ee9fa9c3447b3ca559be stunnel-4.20.ebuild 2432
-SHA256 8c9e93be5916ed463f3037821010b25155ee4392bca86bbc80273187d3ec18e7 stunnel-4.20.ebuild 2432
-MISC ChangeLog 11006 RMD160 8f2e3f7d5a9137b91b31c56a3ee56069d73d5e77 SHA1 6af76feb16c08b8d5035c1109847b4ae5d605c03 SHA256 23856885ac0151a38ef97164d7c46b2cc27abcd6828d7cf4dd872041173c195c
-MD5 fd7b5cd4316c16e1c08b9ef8467d8c40 ChangeLog 11006
-RMD160 8f2e3f7d5a9137b91b31c56a3ee56069d73d5e77 ChangeLog 11006
-SHA256 23856885ac0151a38ef97164d7c46b2cc27abcd6828d7cf4dd872041173c195c ChangeLog 11006
+EBUILD stunnel-4.20.ebuild 2443 RMD160 04394dd6b4c0a5a10e447d3922ca141ab56506c2 SHA1 8365fd154475400bf161ec19300f2c5036c50404 SHA256 6e8d0e9899bd6016bfdbd6c0963c932e58c968af32901f45f8bfad84bbbb600e
+MD5 6355f7759cbf2ee9303fa099f671232b stunnel-4.20.ebuild 2443
+RMD160 04394dd6b4c0a5a10e447d3922ca141ab56506c2 stunnel-4.20.ebuild 2443
+SHA256 6e8d0e9899bd6016bfdbd6c0963c932e58c968af32901f45f8bfad84bbbb600e stunnel-4.20.ebuild 2443
+EBUILD stunnel-4.21.ebuild 2374 RMD160 5f4ea91f619b7c9ee62393612157c72ea5eccc10 SHA1 b4480d67e7261dede534c0d078e25a7bbda0f76d SHA256 fbadf8e5a545b54deead0ba0d20a3982477ae37f9f3f14a070a536dd0d57c0b9
+MD5 cfb243267913358b17bb718338cf2854 stunnel-4.21.ebuild 2374
+RMD160 5f4ea91f619b7c9ee62393612157c72ea5eccc10 stunnel-4.21.ebuild 2374
+SHA256 fbadf8e5a545b54deead0ba0d20a3982477ae37f9f3f14a070a536dd0d57c0b9 stunnel-4.21.ebuild 2374
+MISC ChangeLog 11525 RMD160 dfbec0afd9a99b209a208df7a11296777d7dd3e6 SHA1 49cb85ef306846acc82e81c4477ccd7bf7436442 SHA256 5219a53641dd52ee930e1995b5708a0a0e7a1911490ae3116bb8c6c165165b02
+MD5 29732fe6f8ca4aca5484e9867c7a57fa ChangeLog 11525
+RMD160 dfbec0afd9a99b209a208df7a11296777d7dd3e6 ChangeLog 11525
+SHA256 5219a53641dd52ee930e1995b5708a0a0e7a1911490ae3116bb8c6c165165b02 ChangeLog 11525
MISC metadata.xml 641 RMD160 7ad264c22b9e0705cf00b7985eee8d23c3383310 SHA1 c9314118d8fbc0644eb690f56f9d8859d3f7c578 SHA256 16e547775081b652662ac7156f0b6cfb7d1b8165865416cd154047c9ea6abebb
MD5 5732619250773b884ad9521fafa2e843 metadata.xml 641
RMD160 7ad264c22b9e0705cf00b7985eee8d23c3383310 metadata.xml 641
@@ -36,9 +47,16 @@ SHA256 16e547775081b652662ac7156f0b6cfb7d1b8165865416cd154047c9ea6abebb metadata
MD5 c147f7ff9efb49aa70e28bff38ce11cc files/digest-stunnel-3.26 238
RMD160 ced1717e587440a5327870783cf11d78b983b83f files/digest-stunnel-3.26 238
SHA256 68f8e2f6fb82501cef779a17d71e0e9c74210378dba8136cc7b1f2cc0ce63b3d files/digest-stunnel-3.26 238
-MD5 0b87729d3a32e79434ba90d7b17f60dc files/digest-stunnel-4.16 238
-RMD160 d90b50d7c324b69802056622cd7d5f83c7fa255f files/digest-stunnel-4.16 238
-SHA256 a5840dc57751d8b506fe62c3664f963b29c2c485470f54be389cbb539d3e2836 files/digest-stunnel-4.16 238
MD5 adba84ec7a65ca30a2c181a1e483376f files/digest-stunnel-4.20 238
RMD160 bcaae68477970fdb7e50077541e817dc13363c00 files/digest-stunnel-4.20 238
SHA256 bf529017b12a2be5431787a9606f397740bac56c6ac75ecc32c428d12a0588d0 files/digest-stunnel-4.20 238
+MD5 97ce75a3eb43806abbaa64d36757e440 files/digest-stunnel-4.21 238
+RMD160 82f4468e6a4e52d506fd49743e3f7918e98e0d13 files/digest-stunnel-4.21 238
+SHA256 e150fd34540e1025bf025357f9bdfc62974211ec4ad3ffdebff5b3a4212f5de5 files/digest-stunnel-4.21 238
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+iD8DBQFHWnQ+Oeoy/oIi7uwRApHCAKDczBQLpCkLTE16vOeYaR6qLz0QfgCfRGoH
+DhyqCgRpuwTQEsM22vBY5pM=
+=y0SD
+-----END PGP SIGNATURE-----
diff --git a/net-misc/stunnel/files/digest-stunnel-4.16 b/net-misc/stunnel/files/digest-stunnel-4.16
deleted file mode 100644
index ae4e19986bb4..000000000000
--- a/net-misc/stunnel/files/digest-stunnel-4.16
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 8ea5cae3eeaacc0271b766506b4b9d4a stunnel-4.16.tar.gz 507204
-RMD160 cbf8136049bcd8e306ee80bd66e4dd7666272b46 stunnel-4.16.tar.gz 507204
-SHA256 8ccf6d8e9960ec6cb64aa27c3e61cb1ee32f5ae12f208aebb923de9c9f200a6e stunnel-4.16.tar.gz 507204
diff --git a/net-misc/stunnel/files/digest-stunnel-4.21 b/net-misc/stunnel/files/digest-stunnel-4.21
new file mode 100644
index 000000000000..8b87ff9ad1c5
--- /dev/null
+++ b/net-misc/stunnel/files/digest-stunnel-4.21
@@ -0,0 +1,3 @@
+MD5 1eaec5228979beca4d548f453304e311 stunnel-4.21.tar.gz 528196
+RMD160 e0f599bb44bbdd5178af9972110f71ee64cbf724 stunnel-4.21.tar.gz 528196
+SHA256 b1121c1157c48320491f1929eb1f1c64ba20f76c7352c0df01c77cf09be19add stunnel-4.21.tar.gz 528196
diff --git a/net-misc/stunnel/files/stunnel-4.21-libwrap.patch b/net-misc/stunnel/files/stunnel-4.21-libwrap.patch
new file mode 100644
index 000000000000..c64f8e6cf698
--- /dev/null
+++ b/net-misc/stunnel/files/stunnel-4.21-libwrap.patch
@@ -0,0 +1,10 @@
+--- stunnel-4.21/configure.ac 2007-08-09 00:43:10.000000000 +0200
++++ stunnel-4.21.new/configure.ac 2007-11-02 16:16:11.000000000 +0100
+@@ -343,6 +343,7 @@
+ case "$enableval" in
+ yes) AC_MSG_RESULT([no])
+ AC_DEFINE(HAVE_LIBWRAP)
++ LIBS="$LIBS -lwrap"
+ ;;
+ no) AC_MSG_RESULT([yes])
+ ;;
diff --git a/net-misc/stunnel/files/stunnel.rc6 b/net-misc/stunnel/files/stunnel.rc6
index 10d10b946506..3708a1c0dbca 100644
--- a/net-misc/stunnel/files/stunnel.rc6
+++ b/net-misc/stunnel/files/stunnel.rc6
@@ -1,34 +1,34 @@
#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/files/stunnel.rc6,v 1.7 2005/06/22 04:28:25 ramereth Exp $
# Default pidfile location
PIDFILE="/var/run/stunnel/stunnel.pid"
checkconfig() {
- # To ensure backwards compatibility
- if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' /etc/stunnel/stunnel.conf)" ] ; then
- ewarn "Please update your stunnel.conf!"
- ewarn "pid should point to /var/run/stunnel/stunnel.pid"
- PIDFILE="/etc/stunnel/stunnel.pid"
- fi
+ # To ensure backwards compatibility
+ if grep -q /etc/stunnel/stunnel.pid /etc/stunnel/stunnel.conf; then
+ ewarn "Please update your stunnel.conf!"
+ ewarn "pid should point to /var/run/stunnel/stunnel.pid"
+ PIDFILE="/etc/stunnel/stunnel.pid"
+ fi
}
depend() {
- need net
+ need net
}
start() {
- checkconfig
- ebegin "Starting stunnel"
- start-stop-daemon --start --pidfile ${PIDFILE} --quiet --exec /usr/sbin/stunnel -- /etc/stunnel/stunnel.conf
- eend $?
+ checkconfig
+ ebegin "Starting stunnel"
+ start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \
+ --exec /usr/bin/stunnel -- /etc/stunnel/stunnel.conf
+ eend $?
}
stop() {
- checkconfig
- ebegin "Stopping stunnel"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
+ checkconfig
+ ebegin "Stopping stunnel"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+ eend $?
}
diff --git a/net-misc/stunnel/files/stunnel.rc6.4.20 b/net-misc/stunnel/files/stunnel.rc6.4.20
new file mode 100644
index 000000000000..b8bdfe5e29cd
--- /dev/null
+++ b/net-misc/stunnel/files/stunnel.rc6.4.20
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/files/stunnel.rc6.4.20,v 1.1 2007/12/08 10:38:26 ulm Exp $
+
+# Default pidfile location
+PIDFILE="/var/run/stunnel/stunnel.pid"
+
+checkconfig() {
+ # To ensure backwards compatibility
+ if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' /etc/stunnel/stunnel.conf)" ] ; then
+ ewarn "Please update your stunnel.conf!"
+ ewarn "pid should point to /var/run/stunnel/stunnel.pid"
+ PIDFILE="/etc/stunnel/stunnel.pid"
+ fi
+}
+
+depend() {
+ need net
+}
+
+start() {
+ checkconfig
+ ebegin "Starting stunnel"
+ start-stop-daemon --start --pidfile ${PIDFILE} --quiet --exec /usr/sbin/stunnel -- /etc/stunnel/stunnel.conf
+ eend $?
+}
+
+stop() {
+ checkconfig
+ ebegin "Stopping stunnel"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+ eend $?
+}
diff --git a/net-misc/stunnel/stunnel-4.16.ebuild b/net-misc/stunnel/stunnel-4.16.ebuild
deleted file mode 100644
index 7689392f5a36..000000000000
--- a/net-misc/stunnel/stunnel-4.16.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.16.ebuild,v 1.4 2007/03/09 17:38:51 vapier Exp $
-
-inherit ssl-cert eutils flag-o-matic
-
-DESCRIPTION="TLS/SSL - Port Wrapper"
-HOMEPAGE="http://stunnel.mirt.net/"
-SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86"
-IUSE="ipv6 selinux tcpd"
-
-DEPEND="tcpd? ( sys-apps/tcp-wrappers )
- >=dev-libs/openssl-0.9.6j"
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-stunnel )"
-
-src_unpack() {
- unpack ${A}
- # Hack away generation of certificate
- sed -i s/^install-data-local:/do-not-run-this:/ "${S}"/tools/Makefile.in
-}
-
-src_compile() {
- local myconf=""
- # Don't shoot me for doing this! The stunnel configure script is broke and
- # doesn't honor --disable-foo
- if use ipv6 ; then
- myconf="${myconf} --enable-ipv6"
- fi
- if ! use tcpd ; then
- myconf="${myconf} --disable-libwrap"
- fi
- econf ${myconf} || die "econf died"
- emake || die "emake died"
-}
-
-src_install() {
- make DESTDIR=${D} install || die "make install failed"
- rm -rf ${D}/usr/share/doc/${PN}
- rm -f ${D}/{etc/stunnel/stunnel.conf-sample,usr/sbin/stunnel3}
- rm -f ${D}/usr/share/man/man8/{stunnel.fr.8,stunnel.pl.8}
-
- dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO ChangeLog \
- doc/en/transproxy.txt
- dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
- tools/importCA.html
-
- insinto /etc/stunnel
- newins ${FILESDIR}/stunnel.conf stunnel.conf
- newinitd ${FILESDIR}/stunnel.rc6 stunnel
- # Check if there's currently an cert already there
- if [ ! -f /etc/stunnel/stunnel.key ]; then
- docert stunnel
- fi
-
- keepdir /var/run/stunnel
-}
-
-pkg_postinst() {
- enewgroup stunnel
- enewuser stunnel -1 -1 -1 stunnel
-
- chown stunnel:stunnel ${ROOT}/var/run/stunnel
- chown stunnel:stunnel ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
- chmod 0640 ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
-
- if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' \
- ${ROOT}/etc/stunnel/stunnel.conf )" ] ; then
-
- ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
- ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
- ewarn "the update takes place"
- ewarn ""
- ewarn "The new location will be /var/run/stunnel/stunnel.pid"
- ebeep 3
- epause 3
- fi
-}
diff --git a/net-misc/stunnel/stunnel-4.20.ebuild b/net-misc/stunnel/stunnel-4.20.ebuild
index 75f231b7e377..3b7f40680eac 100644
--- a/net-misc/stunnel/stunnel-4.20.ebuild
+++ b/net-misc/stunnel/stunnel-4.20.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.20.ebuild,v 1.12 2007/11/03 16:00:15 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.20.ebuild,v 1.13 2007/12/08 10:38:25 ulm Exp $
inherit ssl-cert eutils flag-o-matic
@@ -39,10 +39,10 @@ src_compile() {
}
src_install() {
- make DESTDIR=${D} install || die "make install failed"
- rm -rf ${D}/usr/share/doc/${PN}
- rm -f ${D}/{etc/stunnel/stunnel.conf-sample,usr/sbin/stunnel3}
- rm -f ${D}/usr/share/man/man8/{stunnel.fr.8,stunnel.pl.8}
+ make DESTDIR="${D}" install || die "make install failed"
+ rm -rf "${D}"/usr/share/doc/${PN}
+ rm -f "${D}"/{etc/stunnel/stunnel.conf-sample,usr/sbin/stunnel3}
+ rm -f "${D}"/usr/share/man/man8/{stunnel.fr.8,stunnel.pl.8}
dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO ChangeLog \
doc/en/transproxy.txt
@@ -50,8 +50,8 @@ src_install() {
tools/importCA.html
insinto /etc/stunnel
- newins ${FILESDIR}/stunnel.conf stunnel.conf
- newinitd ${FILESDIR}/stunnel.rc6 stunnel
+ doins "${FILESDIR}"/stunnel.conf
+ newinitd "${FILESDIR}"/stunnel.rc6.${PV} stunnel
# Check if there's currently an cert already there
if [ ! -f /etc/stunnel/stunnel.key ]; then
docert stunnel
@@ -64,12 +64,12 @@ pkg_postinst() {
enewgroup stunnel
enewuser stunnel -1 -1 -1 stunnel
- chown stunnel:stunnel ${ROOT}/var/run/stunnel
- chown stunnel:stunnel ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
- chmod 0640 ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
+ chown stunnel:stunnel "${ROOT}"/var/run/stunnel
+ chown stunnel:stunnel "${ROOT}"/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
+ chmod 0640 "${ROOT}"/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' \
- ${ROOT}/etc/stunnel/stunnel.conf )" ] ; then
+ "${ROOT}"/etc/stunnel/stunnel.conf )" ] ; then
ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
diff --git a/net-misc/stunnel/stunnel-4.21.ebuild b/net-misc/stunnel/stunnel-4.21.ebuild
new file mode 100644
index 000000000000..fb6891db2d21
--- /dev/null
+++ b/net-misc/stunnel/stunnel-4.21.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.21.ebuild,v 1.1 2007/12/08 10:38:25 ulm Exp $
+
+inherit autotools ssl-cert eutils
+
+DESCRIPTION="TLS/SSL - Port Wrapper"
+HOMEPAGE="http://stunnel.mirt.net/"
+SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6 selinux tcpd"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )
+ >=dev-libs/openssl-0.9.6j"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-stunnel )"
+
+pkg_setup() {
+ enewgroup stunnel
+ enewuser stunnel -1 -1 -1 stunnel
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-libwrap.patch
+ eautoreconf
+
+ # Hack away generation of certificate
+ sed -i -e "s/^install-data-local:/do-not-run-this:/" \
+ tools/Makefile.in || die "sed failed"
+}
+
+src_compile() {
+ econf $(use_enable ipv6) \
+ $(use_enable tcpd libwrap) || die "econf died"
+ emake || die "emake died"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ rm -rf "${D}"/usr/share/doc/${PN}
+ rm -f "${D}"/etc/stunnel/stunnel.conf-sample "${D}"/usr/bin/stunnel3 \
+ "${D}"/usr/share/man/man8/stunnel.{fr,pl}.8
+
+ # The binary was moved to /usr/bin with 4.21,
+ # symlink for backwards compatibility
+ dosym ../bin/stunnel /usr/sbin/stunnel
+
+ dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog doc/en/transproxy.txt
+ dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
+ tools/importCA.html
+
+ insinto /etc/stunnel
+ doins "${FILESDIR}"/stunnel.conf
+ newinitd "${FILESDIR}"/stunnel.rc6 stunnel
+
+ keepdir /var/run/stunnel
+ fowners stunnel:stunnel /var/run/stunnel
+}
+
+pkg_postinst() {
+ if [ ! -f "${ROOT}"/etc/stunnel/stunnel.key ]; then
+ install_cert /etc/stunnel/stunnel
+ chown stunnel:stunnel "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
+ chmod 0640 "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
+ fi
+
+ if [ ! -z "$(grep /etc/stunnel/stunnel.pid \
+ "${ROOT}"/etc/stunnel/stunnel.conf )" ] ; then
+
+ ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
+ ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
+ ewarn "the update takes place"
+ ewarn
+ ewarn "The new location will be /var/run/stunnel/stunnel.pid"
+ fi
+}