File: rules

package info (click to toggle)
libnss-db 2.2.3pre1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,476 kB
  • ctags: 691
  • sloc: sh: 7,113; ansic: 4,507; makefile: 497; yacc: 318
file content (30 lines) | stat: -rwxr-xr-x 905 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
25
26
27
28
29
30
#!/usr/bin/make -f

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

ifeq ($(DEB_HOST_ARCH_OS), linux)
selinux = --with-selinux
endif

%:
	dh $@ --parallel --with autoreconf --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build -- \
		$(selinux) \
		--libdir=/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_build:
	dh_auto_build --builddirectory=build
	pod2man debian/man/makedb.pod makedb.1

DESTDIR = debian/libnss-db

override_dh_auto_install:
	dh_auto_install --builddirectory=build
	rm -f debian/libnss-db/lib/$(DEB_HOST_MULTIARCH)/libnss_db.so
	install -d -m 755 $(DESTDIR)/etc/default
	install -m 644 debian/conf/default $(DESTDIR)/etc/default/libnss-db
	install -d -m 755 $(DESTDIR)/var/lib/misc
	install -m 644 debian/scripts/db-Makefile $(DESTDIR)/var/lib/misc/Makefile