# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-AMVER=2.6.0p1
+AMVER=2.6.1p1
# These are variables that the user can override. They get used in various
# places during configure, build, and install.
--libexecdir=$(LIBEXECDIR) \
--enable-shared \
--sysconfdir=$(SYSCONFDIR) \
- --localstatedir=$(LOCALSTATEDIR)\
+ --localstatedir=$(LOCALSTATEDIR) \
+ --with-amdatadir=$(AMHOMEDIR) \
--with-gnutar-listdir=$(AMHOMEDIR)/gnutar-lists \
--with-index-server=localhost \
--with-tape-server=localhost \
--enable-s3-device \
--disable-installperms
touch missing
+ # There's probably a better way to do this. Preinst and postrm are the
+ # same for client and server, but we leave room for differences by just
+ # appending here.
+ cat $(shell pwd)/debian/preinst >> $(shell pwd)/debian/amanda-backup-client.preinst
+ cat $(shell pwd)/debian/preinst >> $(shell pwd)/debian/amanda-backup-server.preinst
+ cat $(shell pwd)/debian/postrm >> $(shell pwd)/debian/amanda-backup-client.postrm
+ cat $(shell pwd)/debian/postrm >> $(shell pwd)/debian/amanda-backup-server.postrm
make
touch build-stamp
chmod -R u=rwX,g=rwX,o-rwx $(client)/$(AMHOMEDIR)/gnutar-lists $(server)/$(AMHOMEDIR)/gnutar-lists
# .. setuid
chown root:disk \
+ $(client)/$(AMLIBEXECDIR)/application/amgtar \
+ $(client)/$(AMLIBEXECDIR)/application/amstar \
$(client)/$(AMLIBEXECDIR)/killpgrp \
$(client)/$(AMLIBEXECDIR)/rundump \
$(client)/$(AMLIBEXECDIR)/runtar \
$(client)/$(AMLIBEXECDIR)/calcsize \
+ $(server)/$(AMLIBEXECDIR)/application/amgtar \
+ $(server)/$(AMLIBEXECDIR)/application/amstar \
$(server)/$(AMLIBEXECDIR)/killpgrp \
$(server)/$(AMLIBEXECDIR)/rundump \
$(server)/$(AMLIBEXECDIR)/runtar \
$(server)/$(AMLIBEXECDIR)/planner \
$(server)/usr/sbin/amcheck
chmod u=srwx,g=rx,o=r \
+ $(client)/$(AMLIBEXECDIR)/application/amgtar \
+ $(client)/$(AMLIBEXECDIR)/application/amstar \
$(client)$(AMLIBEXECDIR)/killpgrp \
$(client)$(AMLIBEXECDIR)/rundump \
$(client)$(AMLIBEXECDIR)/runtar \
$(client)$(AMLIBEXECDIR)/calcsize \
+ $(server)/$(AMLIBEXECDIR)/application/amgtar \
+ $(server)/$(AMLIBEXECDIR)/application/amstar \
$(server)$(AMLIBEXECDIR)/killpgrp \
$(server)$(AMLIBEXECDIR)/rundump \
$(server)$(AMLIBEXECDIR)/runtar \