projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enable hardening build flags
[debian/amanda]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index 3ef3fac3f6f209a1fd7cb62af27e1da2781ee7f3..cfe01c5e5eaa972024d74fa929f243ef150bea10 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-1,9
+1,10
@@
#!/usr/bin/make -f
#!/usr/bin/make -f
-# debian/rules for amanda using debhelper
-# Copyright 1998-2009 by Bdale Garbee. License GPL v2
+# Copyright 1998-2011 by Bdale Garbee. License GPL v2
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
+
+DPKG_EXPORT_BUILDFLAGS = 1
+-include /usr/share/dpkg/buildflags.mk
r=$(shell pwd)/debian/amanda-common
s=$(shell pwd)/debian/amanda-server
r=$(shell pwd)/debian/amanda-common
s=$(shell pwd)/debian/amanda-server
@@
-48,10
+49,12
@@
configure-stamp:
touch missing
touch configure-stamp
touch missing
touch configure-stamp
-build: build-stamp
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
build-stamp: configure-stamp
dh_testdir
build-stamp: configure-stamp
dh_testdir
- MAILER=/usr/bin/mail $(MAKE) CFLAGS="-O2 -g -Wall \
+ MAILER=/usr/bin/mail $(MAKE) CFLAGS="
$(CFLAGS)
-O2 -g -Wall \
-DAMANDATES_FILE='\"/var/lib/amanda/amandates\"' \
-DIGNORE_TAR_ERRORS "
touch build-stamp
-DAMANDATES_FILE='\"/var/lib/amanda/amandates\"' \
-DIGNORE_TAR_ERRORS "
touch build-stamp
@@
-78,17
+81,18
@@
binary-arch: build
dh_clean -k
dh_installdirs -a
make install DESTDIR=$(r)
dh_clean -k
dh_installdirs -a
make install DESTDIR=$(r)
+ sed -i "/dependency_libs/ s/'.*'/''/" `find $(r)/usr/lib/amanda/ -name '*.la'`
install -m 644 debian/amandahosts $(r)/etc/amandahosts
dh_installdocs -a
dh_installexamples -a
install -m 644 debian/amandahosts $(r)/etc/amandahosts
dh_installdocs -a
dh_installexamples -a
+ ln -s ../amanda/example $(r)/usr/share/doc/examples
cp ChangeLog $(r)/usr/share/doc/amanda-common/changelog
cp ChangeLog $(r)/usr/share/doc/amanda-common/changelog
- cp debian/xinetd.d/amandaidx $(s)/etc/xinetd.d
- cp debian/xinetd.d/amidxtape $(s)/etc/xinetd.d
- cp debian/xinetd.d/amanda $(r)/etc/xinetd.d
+ cp example/xinetd.amandaserver $(r)/etc/xinetd.d/amanda
dh_installmenu -a
dh_installcron -a
dh_installchangelogs -a
dh_installdebconf -a
dh_installmenu -a
dh_installcron -a
dh_installchangelogs -a
dh_installdebconf -a
+ dh_installman -a
dh_strip -a
dh_compress -a
dh_movefiles -a --sourcedir=debian/amanda-common
dh_strip -a
dh_compress -a
dh_movefiles -a --sourcedir=debian/amanda-common
@@
-148,4
+152,4
@@
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY:
configure build-indep build-arch
build clean binary-indep binary-arch binary