X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=d8c11ee369e0d982bf9b50f8ba4aadca2f467f25;hb=HEAD;hp=9b171cac9cff5c60bc4ec1a5c9cbf8d7ca37235c;hpb=f62188753ffc49e6b684b288dd9394f71b1e776c;p=debian%2Famanda diff --git a/debian/rules b/debian/rules index 9b171ca..d8c11ee 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,10 @@ #!/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 @@ -42,15 +43,18 @@ configure-stamp: --with-ssh-security \ --with-bsdtcp-security \ --with-bsdudp-security \ - --without-ipv6 + --without-ipv6 \ + --enable-s3-device 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 - 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 @@ -77,28 +81,25 @@ binary-arch: build 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 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_installman -a dh_strip -a dh_compress -a dh_movefiles -a --sourcedir=debian/amanda-common rm -r $(r)/usr/share/amanda - rm $(s)/usr/lib/amanda/chg-mtx dh_fixperms -av # fix perms manually chown -R backup:backup debian/*/var/lib/* chmod -R u=rwX,g=rwX,o-rwx debian/*/var/lib/* - chown -R backup:backup $(s)/var/log/amanda - chmod -R u=rwX,g=rwX,o-rwx $(s)/var/log/amanda chown -R backup:backup $(s)/etc/amanda chmod -R u=rwX,g=rwX,o-rwx $(s)/etc/amanda chown -R backup:backup $(c)/var/lib/amanda/gnutar-lists @@ -126,13 +127,13 @@ binary-arch: build $(s)/usr/sbin/amcheck install -o root -g root -m 0644 debian/amanda-client.lintian \ $(c)/usr/share/lintian/overrides/amanda-client -# install -o root -g root -m 0644 debian/amanda-common.lintian \ -# $(r)/usr/share/lintian/overrides/amanda-common + install -o root -g root -m 0644 debian/amanda-common.lintian \ + $(r)/usr/share/lintian/overrides/amanda-common install -o root -g root -m 0644 debian/amanda-server.lintian \ $(s)/usr/share/lintian/overrides/amanda-server dh_makeshlibs -pamanda-common --noscripts dh_installdeb -a - dh_perl -a + dh_perl -a usr/lib/amanda/perl dh_shlibdeps -a -l"debian/amanda-common/usr/lib:debian/amanda-client/usr/lib:debian/amanda-server/usr/lib" # strip out the non-versioned amanda-common references, we need # the versioned ones in the control file and dupes are ugly... @@ -148,4 +149,4 @@ source diff: @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