File: rules

package info (click to toggle)
pam-mysql 0.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: ansic: 4,535; python: 102; makefile: 31
file content (24 lines) | stat: -rwxr-xr-x 550 bytes parent folder | download | duplicates (2)
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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Fail on undefined symbols in the module
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

SECDIR = /usr/lib/$(DEB_HOST_MULTIARCH)/security

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-pam-mods-dir=$(SECDIR) \
		--with-openssl

execute_after_dh_auto_install:
	rm debian/libpam-mysql/$(SECDIR)/pam_mysql.la

execute_after_dh_fixperms:
	chmod 640 debian/libpam-mysql/etc/pam-mysql.conf