| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Sample debian/rules that uses debhelper. |
| 4 |
# This file was originally written by Joey Hess and Craig Small. |
| 5 |
# As a special exception, when this file is copied by dh-make into a |
| 6 |
# dh-make output file, you may use that output file without restriction. |
| 7 |
# This special exception was added by Craig Small in version 0.37 of dh-make. |
| 8 |
|
| 9 |
# Uncomment this to turn on verbose mode. |
| 10 |
#export DH_VERBOSE=1 |
| 11 |
|
| 12 |
export systemdsystemunitdir = $(shell pkgconf --variable=systemdsystemunitdir systemd | sed s,^/,,) |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure -- \ |
| 16 |
--libexecdir=/usr/lib \ |
| 17 |
--with-homedir=/run/certmonger \ |
| 18 |
--with-tmpdir=/run/certmonger \ |
| 19 |
--disable-dsa \ |
| 20 |
--enable-systemd \ |
| 21 |
--enable-pie \ |
| 22 |
--enable-now \ |
| 23 |
--enable-tmpfiles \ |
| 24 |
CFLAGS="$(CFLAGS)" \ |
| 25 |
LDFLAGS="$(LDFLAGS)" |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
dh_auto_install --destdir=debian/tmp |
| 29 |
|
| 30 |
override_dh_auto_test: |
| 31 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 32 |
dh_auto_test || true |
| 33 |
endif |
| 34 |
|
| 35 |
override_dh_clean: |
| 36 |
dh_clean |
| 37 |
rm -f po/*.gmo |
| 38 |
rm -fr m4 |
| 39 |
|
| 40 |
gentarball: SOURCE=certmonger |
| 41 |
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//') |
| 42 |
gentarball: |
| 43 |
tar --transform 's,^,$(SOURCE)-$(UV)/,' \ |
| 44 |
--exclude 'debian' --exclude-vcs \ |
| 45 |
-cJf ../$(SOURCE)_$(UV).orig.tar.xz . |
| 46 |
|
| 47 |
%: |
| 48 |
dh $@ --with quilt --builddirectory=build/ |