File: rules

package info (click to toggle)
perdition 2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,676 kB
  • sloc: ansic: 14,560; sh: 5,274; makefile: 391
file content (39 lines) | stat: -rwxr-xr-x 1,109 bytes parent folder | download
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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

pwd:=$(shell pwd)
cfg:= --with-group=nogroup --with-ldap-schema-directory=no --disable-ldap-doc --enable-shared
pkg:=perdition

override_dh_auto_configure:
	dh_auto_configure -- $(shell dpkg-buildflags --export=configure) $(cfg)
	# Lame libtool workaround that lintian seems keen on
	sed < libtool > libtool-2 \
		-e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
		-e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
	mv libtool-2 libtool
	chmod 755 libtool

override_dh_auto_build:
	dh_auto_build -- V=1

override_dh_install:
	dh_install
	mkdir -p $(pwd)/debian/$(pkg)/etc/init.d
	chmod 755 $(pwd)/debian/$(pkg)/etc/init.d
	install -c -m 755 etc/rc.d/init.d/perdition.debian \
	  $(pwd)/debian/$(pkg)/etc/init.d/perdition

override_dh_installman:
	dh_installman
	mv debian/tmp/usr/share/man/man8/perdition.[i-p]*8	debian/$(pkg)/usr/share/man/man8/

override_dh_shlibdeps:
	dh_shlibdeps -L perdition -l debian/perdition/usr/lib