X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=cfe01c5e5eaa972024d74fa929f243ef150bea10;hb=3a9beabdb44ee1b2dcce141c2571fbb2b3fa90b1;hp=764713c38507ca9ba1cf3b014124b416594787d4;hpb=79cdc4b6ea8848b21ba4a0e7d2fd3bc401e0bebe;p=debian%2Famanda diff --git a/debian/rules b/debian/rules index 764713c..cfe01c5 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 @@ -25,6 +26,7 @@ configure-stamp: --bindir=/usr/sbin \ --libexecdir=/usr/lib/amanda \ --without-amlibexecdir \ + --without-amperldir \ --sysconfdir=/etc \ --sharedstatedir=/var/lib \ --localstatedir=/var/lib \ @@ -41,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 @@ -76,21 +81,22 @@ 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 + ln -s ../amanda/example $(r)/usr/share/doc/examples 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 $(s)/usr/lib/amanda/chg-mtx + rm -r $(r)/usr/share/amanda dh_fixperms -av # fix perms manually chown -R backup:backup debian/*/var/lib/* @@ -103,6 +109,9 @@ binary-arch: build chmod -R u=rwX,g=rwX,o-rwx $(c)/var/lib/amanda/gnutar-lists # .. setuid chown root:backup \ + $(c)/usr/lib/amanda/application/amgtar \ + $(c)/usr/lib/amanda/application/amstar \ + $(c)/usr/lib/amanda/calcsize \ $(c)/usr/lib/amanda/killpgrp \ $(c)/usr/lib/amanda/rundump \ $(c)/usr/lib/amanda/runtar \ @@ -110,6 +119,9 @@ binary-arch: build $(s)/usr/lib/amanda/planner \ $(s)/usr/sbin/amcheck chmod u=srwx,g=rx,o=r \ + $(c)/usr/lib/amanda/application/amgtar \ + $(c)/usr/lib/amanda/application/amstar \ + $(c)/usr/lib/amanda/calcsize \ $(c)/usr/lib/amanda/killpgrp \ $(c)/usr/lib/amanda/rundump \ $(c)/usr/lib/amanda/runtar \ @@ -122,8 +134,9 @@ binary-arch: build $(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 -a + dh_makeshlibs -pamanda-common --noscripts dh_installdeb -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... @@ -139,4 +152,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