| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
export V=1 |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_autoreconf: |
| 16 |
dh_autoreconf autoreconf -- -f -i -I m4 |
| 17 |
|
| 18 |
override_dh_auto_configure: |
| 19 |
dh_auto_configure -- \ |
| 20 |
--docdir=/usr/share/doc/atheme-services/ \ |
| 21 |
--sysconfdir=/etc/atheme \ |
| 22 |
--disable-rpath \ |
| 23 |
--enable-contrib \ |
| 24 |
--enable-fhs-paths \ |
| 25 |
--enable-reproducible-builds \ |
| 26 |
--with-libmowgli=no \ |
| 27 |
--without-cracklib \ |
| 28 |
--without-ldap \ |
| 29 |
--without-perl |
| 30 |
|
| 31 |
override_dh_auto_clean: |
| 32 |
[ ! -f buildsys.mk ] || make clean |
| 33 |
|
| 34 |
find -name .deps -type f -delete |
| 35 |
[ ! -f buildsys.mk ] || rm buildsys.mk |
| 36 |
[ ! -f config.sub ] || rm config.sub |
| 37 |
[ ! -f config.guess ] || rm config.guess |
| 38 |
[ ! -f config.log ] || rm config.log |
| 39 |
[ ! -f config.status ] || rm config.status |
| 40 |
[ ! -f dist/atheme.conf.operserv-example ] || rm dist/atheme.conf.operserv-example |
| 41 |
[ ! -f dist/atheme.conf.userserv-example ] || rm dist/atheme.conf.userserv-example |
| 42 |
[ ! -f extra.mk ] || rm extra.mk |
| 43 |
[ ! -f include/sysconf.h ] || rm include/sysconf.h |
| 44 |
|
| 45 |
override_dh_install: |
| 46 |
dh_install -p atheme-services -X/contrib/ |
| 47 |
dh_install --remaining-packages |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
rm -f $(CURDIR)/debian/atheme-services/etc/atheme/*example |
| 52 |
|
| 53 |
|
| 54 |
rm -f $(CURDIR)/debian/atheme-services/usr/share/doc/atheme-services/LICENSE |
| 55 |
rm -f $(CURDIR)/debian/atheme-services/usr/share/doc/atheme/LICENSE |
| 56 |
|
| 57 |
|
| 58 |
rm -rf $(CURDIR)/debian/atheme-services/var/run |
| 59 |
|
| 60 |
override_dh_installinit: |
| 61 |
dh_installinit --no-enable |
| 62 |
|
| 63 |
override_dh_installsystemd: |
| 64 |
dh_installsystemd --no-enable |