File: rules

package info (click to toggle)
libpam-ccreds 10-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 644 kB
  • sloc: sh: 2,981; ansic: 2,066; makefile: 60
file content (31 lines) | stat: -rwxr-xr-x 834 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_CONFIGURE_EXTRA_ARGS := \
	--libdir=/lib/$(DEB_BUILD_GNU_TYPE) \
	--sbindir=/sbin \
	--enable-gcrypt \
	$(NULL)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_ARGS)

override_dh_auto_install:
	dh_auto_install
	chown root:root debian/libpam-ccreds/sbin/ccreds_chkpwd
	chmod 4755 debian/libpam-ccreds/sbin/ccreds_chkpwd

	mkdir -p debian/libpam-ccreds/usr/share/pam-configs
	install -m 0644 debian/libpam-ccreds.pam-auth-update.ccreds-save \
		debian/libpam-ccreds/usr/share/pam-configs/ccreds-save
	install -m 0644 debian/libpam-ccreds.pam-auth-update.ccreds-check \
		debian/libpam-ccreds/usr/share/pam-configs/ccreds-check
	rmdir debian/libpam-ccreds/lib/security

override_dh_fixperms:
	dh_fixperms -X/sbin/ccreds_chkpwd