diff options
author | Danilo Godec <danilo.godec@agenda.si> | 2011-08-23 12:45:40 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-23 12:21:52 +0000 |
commit | 43d15fde74a5a4e0eea2dc4741f369570bf6ed1b (patch) | |
tree | 3dd49771acb479ffa6e9e9bc1574b0b3c63d2e11 | |
parent | 489f5c7effcbc3cdca5d27e5bb95ee3b20bd0067 (diff) | |
download | alpine_aports-43d15fde74a5a4e0eea2dc4741f369570bf6ed1b.tar.bz2 alpine_aports-43d15fde74a5a4e0eea2dc4741f369570bf6ed1b.tar.xz alpine_aports-43d15fde74a5a4e0eea2dc4741f369570bf6ed1b.zip |
OpenSwan - a new version 2.6.35 - removed 'ipsec.confd' as it didn't serve any purpose - created a working 'ipsec.initd' - changed the installation target for the 'setup' program, which usually goes in /etc/init.d/ipsec - now it goes to /usr/libexec/ipsec/setup and is called by ipsec.initd
-rw-r--r-- | testing/openswan/APKBUILD | 6 | ||||
-rw-r--r-- | testing/openswan/ipsec.confd | 7 | ||||
-rw-r--r-- | testing/openswan/ipsec.initd | 16 | ||||
-rw-r--r-- | testing/openswan/setup.patch | 12 |
4 files changed, 21 insertions, 20 deletions
diff --git a/testing/openswan/APKBUILD b/testing/openswan/APKBUILD index c3fd3786d3..c1d8bc60a7 100644 --- a/testing/openswan/APKBUILD +++ b/testing/openswan/APKBUILD | |||
@@ -11,7 +11,7 @@ depends="" | |||
11 | makedepends="gmp-dev bison flex coreutils" | 11 | makedepends="gmp-dev bison flex coreutils" |
12 | install="" | 12 | install="" |
13 | subpackages="$pkgname-doc" | 13 | subpackages="$pkgname-doc" |
14 | source="http://www.openswan.org/download/$pkgname-$pkgver.tar.gz ipsec.confd ipsec.initd" | 14 | source="http://www.openswan.org/download/$pkgname-$pkgver.tar.gz ipsec.initd setup.patch" |
15 | 15 | ||
16 | _builddir="$srcdir"/$pkgname-$pkgver | 16 | _builddir="$srcdir"/$pkgname-$pkgver |
17 | prepare() { | 17 | prepare() { |
@@ -46,5 +46,5 @@ package() { | |||
46 | 46 | ||
47 | } | 47 | } |
48 | md5sums="7909a251fbbb807914545b7f42437013 openswan-2.6.35.tar.gz | 48 | md5sums="7909a251fbbb807914545b7f42437013 openswan-2.6.35.tar.gz |
49 | cbcac88f5b728b1441891947a4babbcb ipsec.confd | 49 | f019d1fa23627d54462054fedc9de03b ipsec.initd |
50 | aa21293d9fbbbe2a02fb87dba05c4d20 ipsec.initd" | 50 | fd3cd27f9da9140fabd935377c3d6921 setup.patch" |
diff --git a/testing/openswan/ipsec.confd b/testing/openswan/ipsec.confd deleted file mode 100644 index 486252b03c..0000000000 --- a/testing/openswan/ipsec.confd +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | # Sample conf.d file for alpine linux | ||
2 | |||
3 | # | ||
4 | # Specify daemon options here. | ||
5 | # | ||
6 | |||
7 | sample_opts="" | ||
diff --git a/testing/openswan/ipsec.initd b/testing/openswan/ipsec.initd index a034601d4f..32a06008ab 100644 --- a/testing/openswan/ipsec.initd +++ b/testing/openswan/ipsec.initd | |||
@@ -1,9 +1,10 @@ | |||
1 | #!/sbin/runscript | 1 | #!/sbin/runscript |
2 | 2 | ||
3 | # Sample init.d file for alpine linux. | 3 | # Openswan ipsec init.d file for alpine linux. |
4 | 4 | ||
5 | name= | 5 | name=ipsec |
6 | daemon=/usr/sbin/$name | 6 | daemon=/usr/libexec/ipsec/setup |
7 | pidfile=/var/run/pluto/ipsec_setup.pid | ||
7 | 8 | ||
8 | depend() { | 9 | depend() { |
9 | need net | 10 | need net |
@@ -12,18 +13,13 @@ depend() { | |||
12 | 13 | ||
13 | start() { | 14 | start() { |
14 | ebegin "Starting ${name}" | 15 | ebegin "Starting ${name}" |
15 | start-stop-daemon --start --quiet \ | 16 | $daemon start |
16 | --pidfile /var/run/${name}.pid \ | ||
17 | --chuid ${sample_user}:${sample_group} \ | ||
18 | --exec ${daemon} -- ${sample_opts} | ||
19 | eend $? | 17 | eend $? |
20 | } | 18 | } |
21 | 19 | ||
22 | stop() { | 20 | stop() { |
23 | ebegin "Stopping ${name}" | 21 | ebegin "Stopping ${name}" |
24 | start-stop-daemon --stop --quiet \ | 22 | $daemon stop |
25 | --pidfile /var/run/$name.pid \ | ||
26 | --exec ${daemon} | ||
27 | eend $? | 23 | eend $? |
28 | } | 24 | } |
29 | 25 | ||
diff --git a/testing/openswan/setup.patch b/testing/openswan/setup.patch new file mode 100644 index 0000000000..86ff6d80a3 --- /dev/null +++ b/testing/openswan/setup.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- openswan-2.6.35-orig/programs/setup/Makefile | ||
2 | +++ openswan-2.6.35/programs/setup/Makefile | ||
3 | @@ -36,8 +36,7 @@ | ||
4 | # check the directories we need exist (ie., make install DESTDIR=/tmp/IPsec) | ||
5 | @mkdir -p $(RCDIR) $(BINDIR) | ||
6 | # install and link everything | ||
7 | - @$(INSTALL) $(INSTBINFLAGS) setup $(RCDIR)/ipsec | ||
8 | - @ln -s $(FINALRCDIR)/ipsec $(BINDIR)/setup | ||
9 | + @$(INSTALL) $(INSTBINFLAGS) setup $(BINDIR)/setup | ||
10 | |||
11 | install_file_list:: | ||
12 | @echo $(RCDIR)/ipsec | ||