summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2007-10-26 16:47:01 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2007-10-26 16:47:01 +0000
commitf7754613453d7a216ef2edac80b1e91bb4eb4152 (patch)
treecaf562db0ee766ae353ddb85c21717c31e977a2d /debian/rules
parent0aaa01d47fec546d3d8e0d59917cd44777f0d4d4 (diff)
downloadvyos-strongswan-f7754613453d7a216ef2edac80b1e91bb4eb4152.tar.gz
vyos-strongswan-f7754613453d7a216ef2edac80b1e91bb4eb4152.zip
- It's ok if there's no package to work on.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules12
1 files changed, 7 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index 5f0f55733..3c55d94d4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -146,10 +146,12 @@ binary-common:
dh_makeshlibs
dh_installdeb
# this also flags ipsec.conf and ipsec.secrets as conffiles, which is wrong...
- cp $(CURDIR)/debian/strongswan/DEBIAN/conffiles $(CURDIR)/debian/strongswan/DEBIAN/conffiles.tmp
+ sh -c "[ -e $(CURDIR)/debian/strongswan/DEBIAN/conffiles ] && ( \
+ cp $(CURDIR)/debian/strongswan/DEBIAN/conffiles \
+ $(CURDIR)/debian/strongswan/DEBIAN/conffiles.tmp; \
sed '/ipsec.conf/d,/ipsec.secrets/d' $(CURDIR)/debian/strongswan/DEBIAN/conffiles.tmp \
- > $(CURDIR)/debian/strongswan/DEBIAN/conffiles
- rm $(CURDIR)/debian/strongswan/DEBIAN/conffiles.tmp
+ > $(CURDIR)/debian/strongswan/DEBIAN/conffiles; \
+ rm $(CURDIR)/debian/strongswan/DEBIAN/conffiles.tmp ) || true"
dh_shlibdeps
dh_gencontrol
dh_md5sums
@@ -164,8 +166,8 @@ binary-arch: install-strongswan
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
# Any other binary targets build just one binary package at a time.
-#binary-%: build install
-# make -f debian/rules binary-common DH_OPTIONS=-p$*
+binary-%: build install
+ make -f debian/rules binary-common DH_OPTIONS=-p$*
binary: binary-indep binary-arch
.PHONY: clean binary-indep binary-arch