summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2007-11-02 23:31:37 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2007-11-02 23:31:37 +0000
commit56e6be606231f8e8de4fb36ce5f8bbe717ec6d9a (patch)
tree2be860c3caf21ed4a6646c8ad5f5136fbaae04ec /debian/rules
parent6c43665b8378bf94964804affcb91d2bfe027949 (diff)
downloadvyos-strongswan-56e6be606231f8e8de4fb36ce5f8bbe717ec6d9a.tar.gz
vyos-strongswan-56e6be606231f8e8de4fb36ce5f8bbe717ec6d9a.zip
- Install init script as /etc/init.d/ipsec instead of as strongswan.
- Try to fix postinst and init scripts to actually work with the recent changes.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index e49876403..4a11486f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -71,7 +71,7 @@ install-strongswan: build-stamp
install --mode=0600 $(CURDIR)/debian/ipsec.secrets.proto $(CURDIR)/debian/strongswan/etc/ipsec.secrets
# also "patch" ipsec.conf to include the debconf-managed file
echo >> $(CURDIR)/debian/strongswan/etc/ipsec.conf
- echo "include /var/lib/strongswan/ipsec.conf.inc" >> $(CURDIR)/debian/strongswan/etc/ipsec.secrets
+ echo "include /var/lib/strongswan/ipsec.conf.inc" >> $(CURDIR)/debian/strongswan/etc/ipsec.conf
# and to enable both IKEv1 and IKEv2 by default
sed -r 's/^[ \t]+# *plutostart=(yes|no) */\tplutostart=yes/;s/^[ \t]+# *charonstart=(yes|no) */\tcharonstart=yes/' < $(CURDIR)/debian/strongswan/etc/ipsec.conf > $(CURDIR)/debian/strongswan/etc/ipsec.conf.tmp
mv $(CURDIR)/debian/strongswan/etc/ipsec.conf.tmp $(CURDIR)/debian/strongswan/etc/ipsec.conf
@@ -117,7 +117,7 @@ install-strongswan: build-stamp
binary-common:
dh_testdir
dh_testroot
- dh_installinit
+ dh_installinit --name=ipsec
dh_installdebconf
dh_installchangelogs ChangeLog
dh_link