File debian.rules of Package cyphesis
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@ --parallel --builddir=_build
override_dh_auto_configure:
dh_auto_configure -- \
-DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/
override_dh_auto_test:
cd _build && $(MAKE) check
override_dh_install:
( find $(CURDIR)/debian/tmp/usr/share/cyphesis/rulesets/ -name *.py -print | xargs chmod a-x )
dh_install --list-missing -X.la -X.a
override_dh_installinit:
dh_installinit --noscripts