summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Weiler <pylon@gentoo.org>2007-12-16 14:32:50 +0000
committerLars Weiler <pylon@gentoo.org>2007-12-16 14:32:50 +0000
commitb3a06469bf4dfc31965292b7ddff52ec40bf5e26 (patch)
tree21d14c18b890472c0af9e8b7d094672dfa6547ab /net-misc
parentamd64 stable wrt #202095 (diff)
downloadhistorical-b3a06469bf4dfc31965292b7ddff52ec40bf5e26.tar.gz
historical-b3a06469bf4dfc31965292b7ddff52ec40bf5e26.tar.bz2
historical-b3a06469bf4dfc31965292b7ddff52ec40bf5e26.zip
Version bump; new init-script; cleanup; quotes.
Package-Manager: portage-2.1.4_rc10
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/strongswan/ChangeLog10
-rw-r--r--net-misc/strongswan/Manifest58
-rw-r--r--net-misc/strongswan/files/digest-strongswan-2.8.33
-rw-r--r--net-misc/strongswan/files/digest-strongswan-4.1.93
-rw-r--r--net-misc/strongswan/files/ipsec63
-rw-r--r--net-misc/strongswan/files/ipsec-install-4.1.9.patch9
-rw-r--r--net-misc/strongswan/strongswan-2.8.0.ebuild10
-rw-r--r--net-misc/strongswan/strongswan-2.8.3.ebuild141
-rw-r--r--net-misc/strongswan/strongswan-2.8.4.ebuild10
-rw-r--r--net-misc/strongswan/strongswan-4.1.9.ebuild97
10 files changed, 179 insertions, 225 deletions
diff --git a/net-misc/strongswan/ChangeLog b/net-misc/strongswan/ChangeLog
index 7de4188c77a0..f863883ee50c 100644
--- a/net-misc/strongswan/ChangeLog
+++ b/net-misc/strongswan/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-misc/strongswan
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.57 2007/10/08 17:50:51 pylon Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.58 2007/12/16 14:32:49 pylon Exp $
+
+*strongswan-4.1.9 (16 Dec 2007)
+
+ 16 Dec 2007; Lars Weiler <pylon@gentoo.org>
+ +files/ipsec-install-4.1.9.patch, files/ipsec, strongswan-2.8.0.ebuild,
+ -strongswan-2.8.3.ebuild, strongswan-2.8.4.ebuild,
+ +strongswan-4.1.9.ebuild:
+ Version bump; new init-script; cleanup; quotes.
08 Oct 2007; Lars Weiler <pylon@gentoo.org> strongswan-4.1.6.ebuild:
Removed experimental dbus/networkmanager-support.
diff --git a/net-misc/strongswan/Manifest b/net-misc/strongswan/Manifest
index a2ee47d2e87f..32cef660a83f 100644
--- a/net-misc/strongswan/Manifest
+++ b/net-misc/strongswan/Manifest
@@ -1,10 +1,14 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX ipsec 1538 RMD160 eaecc2b05c66aa3d6140fe3b6b01147c34c9ead3 SHA1 cd80b639a4ddfc832b81eb747f89baafca768091 SHA256 a405d35526f0017b6cf95ed67f5cab1e325a1850ae85f763cdb7d7b2a913b51a
-MD5 d35f8aea878066e110e6ff3d09a4f50e files/ipsec 1538
-RMD160 eaecc2b05c66aa3d6140fe3b6b01147c34c9ead3 files/ipsec 1538
-SHA256 a405d35526f0017b6cf95ed67f5cab1e325a1850ae85f763cdb7d7b2a913b51a files/ipsec 1538
+AUX ipsec 445 RMD160 9240cf2699984634fae9b0f45c813742fd05e047 SHA1 efcc1bedfbeae8a5b85f85e4926472edbca37be0 SHA256 5ba492de6d612d7def1cb7ceacadf8397e50f8433b91c4f2f09bf216eed34da6
+MD5 e51f99ce9ca54ac9d2743b7c3bdc95a9 files/ipsec 445
+RMD160 9240cf2699984634fae9b0f45c813742fd05e047 files/ipsec 445
+SHA256 5ba492de6d612d7def1cb7ceacadf8397e50f8433b91c4f2f09bf216eed34da6 files/ipsec 445
+AUX ipsec-install-4.1.9.patch 593 RMD160 d9193d76c0975b49a2eee6e1dd066e0ff6d65a69 SHA1 68f61e4cd6a2fda386ce6a89092765f0f87f7ef7 SHA256 31ff4f5ab5344082574abcb684683f97d45f9945459ed39cba4557f9e3137cd0
+MD5 37a29e0372e36d35c306b077a2b4b950 files/ipsec-install-4.1.9.patch 593
+RMD160 d9193d76c0975b49a2eee6e1dd066e0ff6d65a69 files/ipsec-install-4.1.9.patch 593
+SHA256 31ff4f5ab5344082574abcb684683f97d45f9945459ed39cba4557f9e3137cd0 files/ipsec-install-4.1.9.patch 593
AUX ipsec-path-2.8.3.patch.bz2 17544 RMD160 5d1d1382e9a02d552a2b56f8ddcdf00c30af44eb SHA1 b179094d9f43b3fbb7ee79fbce9488c5e521bb55 SHA256 4694f5da168dac91b3e61679cdbec95e0adb4142884170579631f3ae69700c0a
MD5 78352ba949b9a81ac1e00c089afb54a3 files/ipsec-path-2.8.3.patch.bz2 17544
RMD160 5d1d1382e9a02d552a2b56f8ddcdf00c30af44eb files/ipsec-path-2.8.3.patch.bz2 17544
@@ -18,29 +22,29 @@ MD5 db3c0ff0a05bce87c7deb0c92d3abe7e files/ipsec-path.patch.bz2 28829
RMD160 bd4b6b85b4cdefbf7d6eaa69a68baa00f4a7a25d files/ipsec-path.patch.bz2 28829
SHA256 6cf1de4d2f1b256ab9a11ef4345cc791843a99df03adfad8050899ebe6761616 files/ipsec-path.patch.bz2 28829
DIST strongswan-2.8.0.tar.bz2 2534893 RMD160 c5ff3e675bbf02d243775e4418858bd2cb1ddaac SHA1 d946d508b33b1afd7fef8ffac4c141a853a58f70 SHA256 998231c62cc2a27060fe9523c64cfd12f42865a9e3a0bf1a2f27e5a7aa900fa2
-DIST strongswan-2.8.3.tar.bz2 1710171 RMD160 6bf267e500bb60d39fff5cef7872c3ad31750d9d SHA1 c5fee405536a2d3aa43c98a9e102c212bc1e66a3 SHA256 01441bdf2e172074179d3c70a73a2a86754895e7fd60ff8b5f215fce70351bdf
DIST strongswan-2.8.4.tar.bz2 1705469 RMD160 7ca3fdb89eb62e07bd8e9144ca2af179fd3f75d1 SHA1 9fb43a803d24f183a50d3026910a52c10d6289a8 SHA256 218db809108bc84c49cf185149cbb9371947281a14fce209c139cdd13b6bd904
DIST strongswan-4.1.6.tar.bz2 1950676 RMD160 ee1d768cda0dd8d6464e3046e251dab1d3a7da16 SHA1 9404f098ea32930e974e4cb02d935284cb1eeb7d SHA256 5d22f2f2f95a2c2f6493b60ef22f5ced7cd4200d490ec165f8a49357cd8f5a42
-EBUILD strongswan-2.8.0.ebuild 3786 RMD160 aed31a8639a67ed9d777874fce8e479027b9ef8f SHA1 372b2d71be80dd0b2b3e04aacaeaa553d4b3eede SHA256 1383ba07d0b89c8df5ce4a6ddbac18222205c97fcd03d9480667291b38e811cf
-MD5 43e86853321e350aaee9426f13b73276 strongswan-2.8.0.ebuild 3786
-RMD160 aed31a8639a67ed9d777874fce8e479027b9ef8f strongswan-2.8.0.ebuild 3786
-SHA256 1383ba07d0b89c8df5ce4a6ddbac18222205c97fcd03d9480667291b38e811cf strongswan-2.8.0.ebuild 3786
-EBUILD strongswan-2.8.3.ebuild 3990 RMD160 72988dc472bd034068cd83d210474b5cea5cb797 SHA1 1376401de1b0f164f5e1d7669913bd256bb31340 SHA256 dc708684ec22d250591b37d2535a64e524aa2e195e095426a520cbf825c352e7
-MD5 ce736594e9217d0182f0622233634bb4 strongswan-2.8.3.ebuild 3990
-RMD160 72988dc472bd034068cd83d210474b5cea5cb797 strongswan-2.8.3.ebuild 3990
-SHA256 dc708684ec22d250591b37d2535a64e524aa2e195e095426a520cbf825c352e7 strongswan-2.8.3.ebuild 3990
-EBUILD strongswan-2.8.4.ebuild 3982 RMD160 33f1dea198cf9beddbb897a68400e386a6813621 SHA1 0b049651cb7be32c865d3514850d3e51f143cac8 SHA256 a900737b6e2ff52c511e15dd5b48aa8e41424a3ad4a80f4d220dcb99e7d3116f
-MD5 418d00dd35dbde23e518e899ee5ed687 strongswan-2.8.4.ebuild 3982
-RMD160 33f1dea198cf9beddbb897a68400e386a6813621 strongswan-2.8.4.ebuild 3982
-SHA256 a900737b6e2ff52c511e15dd5b48aa8e41424a3ad4a80f4d220dcb99e7d3116f strongswan-2.8.4.ebuild 3982
+DIST strongswan-4.1.9.tar.bz2 2176339 RMD160 a140bd2295284910dc8e54bba1227f0bd384813f SHA1 75f2af380b530b341b31b927ec3babf46443d0df SHA256 37ea5119dc54cb150d444302f82f84854a15d35e45a817e3a29be86b7d750587
+EBUILD strongswan-2.8.0.ebuild 3784 RMD160 a3ef784f54d5fa5d0d7e2d9bfa9453cb344044db SHA1 e4eaabee706ee6f573557aab61eb8efdd8e61096 SHA256 53be8e6e57f2551e71e486818769d218a682c629fe19db3107bbb8fb3100f801
+MD5 0b102c56db588d873a3e4f676e76fb71 strongswan-2.8.0.ebuild 3784
+RMD160 a3ef784f54d5fa5d0d7e2d9bfa9453cb344044db strongswan-2.8.0.ebuild 3784
+SHA256 53be8e6e57f2551e71e486818769d218a682c629fe19db3107bbb8fb3100f801 strongswan-2.8.0.ebuild 3784
+EBUILD strongswan-2.8.4.ebuild 3980 RMD160 e4410ef12634ebcd88241f468f5aabb6d56ebb25 SHA1 3d84f1bd482bbd1b0ca4bf39163f90f680919acb SHA256 35da00ca8b86a27ea8af9ffc1656c19911a7729686cbb97ed5e42dbcb3e85b04
+MD5 19d4a84cc3bc9274423e449211a1d245 strongswan-2.8.4.ebuild 3980
+RMD160 e4410ef12634ebcd88241f468f5aabb6d56ebb25 strongswan-2.8.4.ebuild 3980
+SHA256 35da00ca8b86a27ea8af9ffc1656c19911a7729686cbb97ed5e42dbcb3e85b04 strongswan-2.8.4.ebuild 3980
EBUILD strongswan-4.1.6.ebuild 2409 RMD160 ef180497548c7a3d15f8b9b9a60a49bacec63983 SHA1 545ace14736958ee135d1df7dd74682f39e08f85 SHA256 8595e5b25b99ce4b52c35969bad15bc295d2269e127a420f4a6e7b6ac467e7e3
MD5 4b559d7dcf11ad7c82b6915d984f8c4e strongswan-4.1.6.ebuild 2409
RMD160 ef180497548c7a3d15f8b9b9a60a49bacec63983 strongswan-4.1.6.ebuild 2409
SHA256 8595e5b25b99ce4b52c35969bad15bc295d2269e127a420f4a6e7b6ac467e7e3 strongswan-4.1.6.ebuild 2409
-MISC ChangeLog 9789 RMD160 1807b7d073716060ae077102910a52199a91d47b SHA1 c4a5029a1b6e81996fbc28edfd6285b83c6c9a9c SHA256 07a4deeb03fb1fe075c870eee47596b03755e1d3802d8341464e26ee79b46343
-MD5 ea5f80b5b075aaccb2a9a7cecb128890 ChangeLog 9789
-RMD160 1807b7d073716060ae077102910a52199a91d47b ChangeLog 9789
-SHA256 07a4deeb03fb1fe075c870eee47596b03755e1d3802d8341464e26ee79b46343 ChangeLog 9789
+EBUILD strongswan-4.1.9.ebuild 2500 RMD160 ce9749958d2d4fdd5bb54550a07eef0a88812510 SHA1 6fa481d9337dc82501942a640df53062d6f2eca8 SHA256 66a4ef11be2086ceca530e11dc5ae649ef0bb7321bac534e1bc8ff6371b3e591
+MD5 141692b56bdb30fae4719da225e7d501 strongswan-4.1.9.ebuild 2500
+RMD160 ce9749958d2d4fdd5bb54550a07eef0a88812510 strongswan-4.1.9.ebuild 2500
+SHA256 66a4ef11be2086ceca530e11dc5ae649ef0bb7321bac534e1bc8ff6371b3e591 strongswan-4.1.9.ebuild 2500
+MISC ChangeLog 10074 RMD160 4b1b2944fbb5ce4e96a010c58dc07924caae0473 SHA1 1bd6ac8fa34e47cdaa41235555b4599ffa4017d3 SHA256 b9a3fbb61fbbedfb6e37c999b4a779a3558869f5c9c2aa7f0e66ed68e91d42a9
+MD5 e64e5a7d5d26daef24bbad2620742ee3 ChangeLog 10074
+RMD160 4b1b2944fbb5ce4e96a010c58dc07924caae0473 ChangeLog 10074
+SHA256 b9a3fbb61fbbedfb6e37c999b4a779a3558869f5c9c2aa7f0e66ed68e91d42a9 ChangeLog 10074
MISC metadata.xml 679 RMD160 e5c2f42354e1cbd27e1a57bbbb39611854f8146c SHA1 6d9720b91647becf7bab7d14679b22dd127ecd8b SHA256 659b3be0850b32ab1488f6ef3e6f62fcc082d215dffdb1f495da68e6d0dc2726
MD5 77ae52509a78f634a55e408d5a18cebb metadata.xml 679
RMD160 e5c2f42354e1cbd27e1a57bbbb39611854f8146c metadata.xml 679
@@ -48,19 +52,19 @@ SHA256 659b3be0850b32ab1488f6ef3e6f62fcc082d215dffdb1f495da68e6d0dc2726 metadata
MD5 f04ac4c8ffc55846156d429b1d862acb files/digest-strongswan-2.8.0 256
RMD160 1ad72b5c437748c0f1e60d1e3ebc3783070c2ef1 files/digest-strongswan-2.8.0 256
SHA256 f253313e21d90546455ed6d4b3b19bebf555303540f0e1f54105a5046fc9b9b5 files/digest-strongswan-2.8.0 256
-MD5 28801455c91996b7e4fc8364ab5e3d59 files/digest-strongswan-2.8.3 256
-RMD160 a5451c27f0a67a21b5e29135d45646e8d2f5f50f files/digest-strongswan-2.8.3 256
-SHA256 bc61fa25b18a014c8c4b89e0218a25448cf3b418e93f799c0476872d16e2cbf4 files/digest-strongswan-2.8.3 256
MD5 b1a9b2fe6eb742716171c29bf4e9d004 files/digest-strongswan-2.8.4 256
RMD160 9a178e5d505fe942a574512b153e5c43b70a7ae2 files/digest-strongswan-2.8.4 256
SHA256 94881666e4fee1245867d4a0cd83d67a6ae4cbdf902b3cd5282fbee2a5fd5b9c files/digest-strongswan-2.8.4 256
MD5 4d9c65af521d159e42f04e7d6460165d files/digest-strongswan-4.1.6 256
RMD160 f766241b01d4b972db864ae61dd65665a3ee8885 files/digest-strongswan-4.1.6 256
SHA256 ab5afe08d3a1b87bcd9a89d1d90f43bb07b25fd559121e5f374a58e3f9c2f71d files/digest-strongswan-4.1.6 256
+MD5 522acbf7a9aeebb4fb3367e29cffeca5 files/digest-strongswan-4.1.9 256
+RMD160 5bc9c55b8be542194c1ef619263475cb7c24e09b files/digest-strongswan-4.1.9 256
+SHA256 c8d258785d2c4bc490b54ae354313da0f1abd8b98d6751111e28d861dca1cb55 files/digest-strongswan-4.1.9 256
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
-iD8DBQFHCm4O6IPkARlRZfQRAjBUAJ9nDa0P7mgreGrpTdbbe/1wlaBFfwCdGwJu
-fhvRlisHZlkPHTs737s5idw=
-=cLAE
+iD8DBQFHZTbi6IPkARlRZfQRAhhHAKCKZamFqg0/lyH2/Du1XDQxZCzJEgCfWLfk
+9i23xtGeMX8RcXVrK8sMHsw=
+=RRgV
-----END PGP SIGNATURE-----
diff --git a/net-misc/strongswan/files/digest-strongswan-2.8.3 b/net-misc/strongswan/files/digest-strongswan-2.8.3
deleted file mode 100644
index fe88f92163e4..000000000000
--- a/net-misc/strongswan/files/digest-strongswan-2.8.3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 720bfbbb3a0deb6964119228ed4226b4 strongswan-2.8.3.tar.bz2 1710171
-RMD160 6bf267e500bb60d39fff5cef7872c3ad31750d9d strongswan-2.8.3.tar.bz2 1710171
-SHA256 01441bdf2e172074179d3c70a73a2a86754895e7fd60ff8b5f215fce70351bdf strongswan-2.8.3.tar.bz2 1710171
diff --git a/net-misc/strongswan/files/digest-strongswan-4.1.9 b/net-misc/strongswan/files/digest-strongswan-4.1.9
new file mode 100644
index 000000000000..706633725222
--- /dev/null
+++ b/net-misc/strongswan/files/digest-strongswan-4.1.9
@@ -0,0 +1,3 @@
+MD5 5b78f00cba3c0d6edd97ee25108c4b6b strongswan-4.1.9.tar.bz2 2176339
+RMD160 a140bd2295284910dc8e54bba1227f0bd384813f strongswan-4.1.9.tar.bz2 2176339
+SHA256 37ea5119dc54cb150d444302f82f84854a15d35e45a817e3a29be86b7d750587 strongswan-4.1.9.tar.bz2 2176339
diff --git a/net-misc/strongswan/files/ipsec b/net-misc/strongswan/files/ipsec
index 62d24a594b45..42cde4f38d8b 100644
--- a/net-misc/strongswan/files/ipsec
+++ b/net-misc/strongswan/files/ipsec
@@ -1,56 +1,33 @@
#!/sbin/runscript
-
-# IPsec startup and shutdown script
-# Copyright (C) 1998, 1999, 2001 Henry Spencer.
-# Gentoo mods (C) 2003 Anthony de Boer
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation; either version 2 of the License, or (at your
-# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
depend() {
- need net logger
-}
-
-ipsecdoit() {
-# Pick up IPsec configuration (until we have done this, successfully, we
-# do not know where errors should go, hence the explicit "daemon.error"s.)
-# Note the "--export", which exports the variables created.
- eval `ipsec _confread --varprefix IPSEC --export --type config setup`
- if test " $IPSEC_confreadstatus" != " "
- then
- echo "$IPSEC_confreadstatus -- \`$1' aborted" |
- logger -s -p daemon.error -t ipsec_setup
- exit 1
- fi
- IPSECsyslog=${IPSECsyslog-daemon.error}
- export IPSECsyslog
- umask 022
- tmp=/var/run/ipsec_setup.st
- (
- ipsec _realsetup $1
- echo "$?" >$tmp
- ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1
- st=`cat $tmp`
- rm -f $tmp
- return $st
+ need logger net
}
start() {
- ebegin "Starting IPSEC ..."
- ipsecdoit start
+ ebegin "Starting ${IPSECD}"
+ ipsec start
eend $?
}
stop() {
- ebegin "Stopping IPSEC ..."
- ipsecdoit stop
+ ebegin "Stopping ${IPSECD}"
+ ipsec stop
+ eend $?
+}
+
+restart() {
+ ebegin "Restarting ${IPSECD}"
+ svc_stop
+ sleep 2
+ svc_start
eend $?
}
+status() {
+ ebegin "${IPSECD} Status (verbose):"
+ ipsec statusall
+ eend $?
+}
diff --git a/net-misc/strongswan/files/ipsec-install-4.1.9.patch b/net-misc/strongswan/files/ipsec-install-4.1.9.patch
new file mode 100644
index 000000000000..52f0d6c67ecb
--- /dev/null
+++ b/net-misc/strongswan/files/ipsec-install-4.1.9.patch
@@ -0,0 +1,9 @@
+diff -uprN strongswan-4.1.9.orig/src/starter/Makefile.am strongswan-4.1.9/src/starter/Makefile.am
+--- strongswan-4.1.9.orig/src/starter/Makefile.am 2007-11-06 12:37:59.000000000 +0100
++++ strongswan-4.1.9/src/starter/Makefile.am 2007-12-14 21:29:01.000000000 +0100
+@@ -31,4 +31,4 @@ defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/
+ $(COMPILE) -c -o $@ $<
+
+ install-exec-local :
+- test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf
++ test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -D ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf
diff --git a/net-misc/strongswan/strongswan-2.8.0.ebuild b/net-misc/strongswan/strongswan-2.8.0.ebuild
index c1afd4f71b04..79a93a9a4cd6 100644
--- a/net-misc/strongswan/strongswan-2.8.0.ebuild
+++ b/net-misc/strongswan/strongswan-2.8.0.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/strongswan/strongswan-2.8.0.ebuild,v 1.11 2007/02/28 16:47:04 pylon Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-2.8.0.ebuild,v 1.12 2007/12/16 14:32:49 pylon Exp $
inherit eutils linux-info
@@ -52,9 +52,9 @@ pkg_setup() {
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
- epatch ${FILESDIR}/ipsec-path.patch.bz2
+ epatch "${FILESDIR}"/ipsec-path.patch.bz2
if use curl ; then
ebegin "Curl support requested. Enabling curl support"
@@ -112,8 +112,8 @@ src_install() {
install || die "make install failed"
dohtml doc/*html
- rm -f ${S}/doc/*.html
- dodoc CHANGES COPYING CREDITS INSTALL LICENSE README doc/*
+ rm -f "${S}"/doc/*.html
+ dodoc CHANGES COPYING CREDITS INSTALL README doc/*
doinitd "${FILESDIR}"/ipsec
diff --git a/net-misc/strongswan/strongswan-2.8.3.ebuild b/net-misc/strongswan/strongswan-2.8.3.ebuild
deleted file mode 100644
index 81caafa17457..000000000000
--- a/net-misc/strongswan/strongswan-2.8.3.ebuild
+++ /dev/null
@@ -1,141 +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/strongswan/strongswan-2.8.3.ebuild,v 1.1 2007/02/28 16:47:04 pylon Exp $
-
-inherit eutils linux-info
-
-DESCRIPTION="IPsec-based VPN Solution for Linux"
-HOMEPAGE="http://www.strongswan.org/"
-SRC_URI="http://download.strongswan.org/${P}.tar.bz2"
-
-LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11 DES"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="curl ldap nat smartcard"
-
-COMMON_DEPEND="!net-misc/openswan
- dev-libs/gmp"
-DEPEND="${COMMON_DEPEND}
- virtual/linux-sources
- <sys-kernel/linux-headers-2.6.18
- curl? ( net-misc/curl )
- ldap? ( net-nds/openldap )
- smartcard? ( dev-libs/opensc )"
-RDEPEND="${COMMON_DEPEND}
- virtual/logger
- sys-apps/iproute2"
-
-pkg_setup() {
- linux-info_pkg_setup
-
- if kernel_is 2 6; then
- einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)."
- einfo "KLIPS will not be compiled/installed."
- MYMAKE="programs"
-
- elif kernel_is 2 4; then
- if ! [ -d /usr/src/linux/net/ipsec ]; then
- eerror "You need to have an IPsec enabled 2.4.x kernel."
- eerror "Ensure you have one running and make a symlink to it in /usr/src/linux"
- die
- fi
-
- einfo "Using patched-in IPsec code for kernel 2.4."
- einfo "Your kernel only supports KLIPS for kernel level IPsec."
- MYMAKE="confcheck programs"
-
- else
- eerror "Sorry, no support for your kernel version ${KV_FULL}."
- die "Install an IPsec enabled 2.4 or 2.6 kernel."
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- epatch ${FILESDIR}/ipsec-path-${PV}.patch.bz2
-
- if use curl ; then
- ebegin "Curl support requested. Enabling curl support"
- sed -i -e 's:\(USE_LIBCURL?=\)false:\1true:g' Makefile.inc || die
- eend $?
- fi
-
- if use ldap ; then
- ebegin "LDAP support requested. Enabling LDAPv3 support"
- sed -i -e 's:\(USE_LDAP?=\)false:\1true:g' Makefile.inc || die
- eend $?
- fi
-
- if use nat ; then
- ebegin "Enabling NAT-Traversal on Transport mode (insecure)"
- sed -i -e 's:\(USE_NAT_TRAVERSAL_TRANSPORT_MODE?=\)false:\1true:g' \
- Makefile.inc || die
- eend $?
- fi
-
- if use smartcard ; then
- ebegin "Smartcard support requested. Enabling opensc support"
- sed -i -e 's:\(USE_SMARTCARD?=\)false:\1true:g' Makefile.inc || die
- sed -i -e 's:\(PKCS11_DEFAULT_LIB=\\\"/usr/lib/pkcs11/opensc-pkcs11.so\\\"\):#\1:g' \
- Makefile.inc || die
- sed -i -e 's:#\(PKCS11_DEFAULT_LIB=\\\"/usr/lib/opensc-pkcs11.so\\\"\):\1:g' \
- Makefile.inc || die
- eend $?
- fi
-
- # patch broken check-rule
- sed -i -e 's#check: uml#check: programs checkprograms#' Makefile
-
-}
-
-src_compile() {
- emake \
- DESTDIR="${D}" \
- USERCOMPILE="${CFLAGS}" \
- FINALCONFDIR=/etc/ipsec \
- INC_RCDEFAULT=/etc/init.d \
- INC_USRLOCAL=/usr \
- INC_MANDIR=share/man \
- FINALEXAMPLECONFDIR=/usr/share/doc/${P} \
- FINALDOCDIR=/usr/share/doc/${P} \
- ${MYMAKE} || die "make failed"
-}
-
-src_install() {
- # make install wants this directory
- dodir /etc/init.d
-
- emake \
- DESTDIR="${D}" \
- USERCOMPILE="${CFLAGS}" \
- FINALCONFDIR=/etc/ipsec \
- INC_RCDEFAULT=/etc/init.d \
- INC_USRLOCAL=/usr \
- INC_MANDIR=share/man \
- FINALEXAMPLECONFDIR=/usr/share/doc/${P} \
- FINALDOCDIR=/usr/share/doc/${P} \
- install || die "make install failed"
-
- dohtml doc/*html
- rm -f ${S}/doc/*.html
- dodoc CHANGES COPYING CREDITS INSTALL LICENSE README doc/*
-
- doinitd "${FILESDIR}"/ipsec
-
- fperms -R a-X /etc/ipsec /usr/share
- keepdir /var/run/pluto
-
- einfo "Configuration files are installed into /etc/ipsec/"
-}
-
-pkg_postinst() {
- if kernel_is 2 6; then
- CONFIG_CHECK="~NET_KEY ~INET_XFRM_MODE_TRANSPORT ~INET_XFRM_MODE_TUNNEL ~INET_AH ~INET_ESP ~INET_IPCOMP"
- WARNING_INET_AH="CONFIG_INET_AH:\tmissing IPsec AH support (needed if you want only authentication)"
- WARNING_INET_ESP="CONFIG_INET_ESP:\tmissing IPsec ESP support (needed if you want authentication and encryption)"
- WARNING_INET_IPCOMP="CONFIG_INET_IPCOMP:\tmissing IPsec Payload Compression (required for compress=yes)"
- check_extra_config
- fi
-}
diff --git a/net-misc/strongswan/strongswan-2.8.4.ebuild b/net-misc/strongswan/strongswan-2.8.4.ebuild
index 49ca0fbac07b..e87b145fe989 100644
--- a/net-misc/strongswan/strongswan-2.8.4.ebuild
+++ b/net-misc/strongswan/strongswan-2.8.4.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/strongswan/strongswan-2.8.4.ebuild,v 1.1 2007/05/31 11:56:03 pylon Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-2.8.4.ebuild,v 1.2 2007/12/16 14:32:49 pylon Exp $
inherit eutils linux-info
@@ -52,9 +52,9 @@ pkg_setup() {
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
- epatch ${FILESDIR}/ipsec-path-${PV}.patch.bz2
+ epatch "${FILESDIR}"/ipsec-path-${PV}.patch.bz2
if use curl ; then
ebegin "Curl support requested. Enabling curl support"
@@ -119,8 +119,8 @@ src_install() {
install || die "make install failed"
dohtml doc/*html
- rm -f ${S}/doc/*.html
- dodoc CHANGES COPYING CREDITS INSTALL LICENSE README doc/*
+ rm -f "${S}"/doc/*.html
+ dodoc CHANGES COPYING CREDITS INSTALL README doc/*
doinitd "${FILESDIR}"/ipsec
diff --git a/net-misc/strongswan/strongswan-4.1.9.ebuild b/net-misc/strongswan/strongswan-4.1.9.ebuild
new file mode 100644
index 000000000000..1c9f362e3bbc
--- /dev/null
+++ b/net-misc/strongswan/strongswan-4.1.9.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-4.1.9.ebuild,v 1.1 2007/12/16 14:32:49 pylon Exp $
+
+inherit eutils linux-info
+
+UGID="ipsec"
+
+DESCRIPTION="Open Source implementation of IPsec for the Linux operating system."
+HOMEPAGE="http://www.strongswan.org/"
+SRC_URI="http://download.strongswan.org/${P}.tar.bz2"
+
+LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11 DES"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="cisco curl debug ldap nat smartcard static xml"
+
+COMMON_DEPEND="!net-misc/openswan
+ dev-libs/gmp"
+DEPEND="${COMMON_DEPEND}
+ virtual/linux-sources
+ sys-kernel/linux-headers
+ curl? ( net-misc/curl )
+ ldap? ( net-nds/openldap )
+ smartcard? ( dev-libs/opensc )
+ xml? ( dev-libs/libxml2 )"
+RDEPEND="${COMMON_DEPEND}
+ virtual/logger
+ sys-apps/iproute2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/ipsec-install-${PV}.patch
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ einfo "Linux kernel is version ${KV_FULL}"
+
+ if kernel_is 2 6; then
+ einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)."
+ else
+ eerror "Sorry, no support for your kernel version ${KV_FULL}."
+ die "Install an IPsec enabled 2.6 kernel."
+ fi
+
+ # change to an unprivileged user by default
+ enewgroup ${UGID}
+ enewuser ${UGID} -1 -1 -1 ${UGID}
+}
+
+src_compile() {
+ local myconf=""
+
+ # change to an unprivileged user by default
+ myconf="${myconf} --with-uid=$(id -u ${UGID}) --with-gid=$(id -g ${UGID})"
+ # strongswan enables both by default; switch to the user's wish
+ if use static; then
+ myconf="${myconf} --enable-static --disable-shared"
+ else
+ myconf="${myconf} --disable-static --enable-shared"
+ fi
+
+ econf \
+ $(use_enable curl http) \
+ $(use_enable ldap) \
+ $(use_enable xml) \
+ $(use_enable smartcard) \
+ $(use_enable cisco cisco-quirks) \
+ $(use_enable debug leak-detective) \
+ $(use_enable nat nat-transport) \
+ ${myconf} \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall || die "einstall failed."
+
+ doinitd "${FILESDIR}"/ipsec
+}
+
+pkg_postinst() {
+ echo
+ ewarn "Starting with the strongswan-4 branch, the configuration files"
+ ewarn "will be installed into the default directory \"/etc/\""
+ ewarn "instead of the Gentoo-specific directory \"/etc/ipsec/\"."
+ ewarn "Please adjust your configuration!"
+ echo
+ einfo "The up-to-date configuration manual is available online at"
+ einfo "http://www.strongswan.org/docs/readme.htm"
+ echo
+}