Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7 DPKG_EXPORT_BUILDFLAGS = 1
8
9 include /usr/share/dpkg/buildflags.mk
10
11 include /usr/share/dpkg/architecture.mk
12
13 CFLAGS += -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc
14 ifeq ($(DEB_HOST_ARCH),powerpc)
15 CFLAGS += -D__BYTEORDER_HAS_U64__
16 endif
17
18 override_dh_auto_configure:
19 LIBS="-ltirpc"; dh_auto_configure -- --enable-rpcsetquota=yes
20
21 override_dh_installsystemd:
22 dh_installsystemd quota.service
23 dh_installsystemd --name=quotarpc quotarpc.service
24
25 override_dh_installinit:
26 dh_installinit --no-start
27 dh_installinit --name=quotarpc
28 #
29 # dh_installinit cannot be configured to not install the defaults
30 # file for quotarpc, so we have to manually delete it
31 #
32 -rm -rf `pwd`/debian/quota/etc/default/quotarpc
33
34 override_dh_installman:
35 dh_installman
36 # remove man pages already in libc
37 -rm -rf `pwd`/debian/quota/usr/share/man/man2
38
39 override_dh_install:
40 dh_install
41 # remove include files already in libc-dev
42 -rm -rf `pwd`/debian/quota/usr/include
43 # set permission of scripts
44 -chmod 755 `pwd`/debian/quota/usr/share/quota/ldap/setquota-ldap.pl
45 -chmod 755 `pwd`/debian/quota/usr/share/quota/*.sh
46
47 %:
48 dh $@