File: rules

package info (click to toggle)
base-passwd 3.5.48
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 432 kB
  • sloc: ansic: 1,102; sh: 118; makefile: 51
file content (24 lines) | stat: -rwxr-xr-x 707 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
#! /usr/bin/make -f
%:
	dh $@

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_CFLAGS_MAINT_APPEND := -Wall

override_dh_installdebconf:
	touch debian/base-passwd.substvars
	mv debian/base-passwd.substvars debian/base-passwd.substvars.real
	dh_installdebconf
	sed 's/^misc:Depends=/misc:Recommends=/' \
		debian/base-passwd.substvars \
		>debian/base-passwd.substvars.real
	mv debian/base-passwd.substvars.real debian/base-passwd.substvars

override_dh_shlibdeps:
	dh_shlibdeps -- -dPre-Depends

override_dh_installdeb:
	dh_installdeb
	sed -e '/@PASSWD@/ {' -e 'r passwd.master' -e 'd' -e '}' \
	    -e '/@GROUP@/ {' -e 'r group.master' -e 'd' -e '}' \
	    -i debian/base-passwd/DEBIAN/preinst