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)
ifeq ($(DEB_HOST_ARCH_OS), linux)
selinux = --with-selinux
endif
%:
dh $@ --with quilt,autoreconf --builddirectory=build
override_dh_auto_configure:
dh_auto_configure --builddirectory=build -- $(selinux)
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 -- slibdir=/usr/lib
rm -f $(DESTDIR)/usr/lib/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
install -d -m 755 $(DESTDIR)/usr/share/man/man1
install -m 644 makedb.1 $(DESTDIR)/usr/share/man/man1/makedb.1
|