1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
## In case when both Python2 and Python3 are installed together.
export PYTHON=/usr/bin/python3
#include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export XSLTPROCFLAGS=--nonet
%:
dh $@ --with python3
#,bash-completion
override_dh_auto_configure:
dh_auto_configure -- \
--disable-silent-rules \
--with-default-user=mfs \
--with-default-group=mfs \
--localstatedir=/var/lib \
--with-systemdsystemunitdir=no \
--with-mfscgi-dir=/usr/share/moosefs-gui \
;
override_dh_makeshlibs:
dh_makeshlibs -V
override_dh_auto_install:
dh_auto_install
## rename config files
for i in debian/tmp/etc/mfs/*.cfg.sample; do \
mv -n -v "$$i" "$${i%%.sample}" \
;done
override_dh_install:
dh_install
override_dh_compress:
## See #781131
dh_compress --exclude="examples/"
override_dh_installchangelogs:
dh_installchangelogs NEWS
override_dh_installinit:
dh_installinit --no-start
override_dh_installsystemd:
dh_installsystemd --no-stop-on-upgrade --no-enable --no-start
|