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
|
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
-include /usr/share/dpkg/buildtools.mk
CFLAGS += -DSHADOW_PWD -DMULTITOUCH
ifeq (,$(findstring ^$(firstword $(subst +, ,$(DEB_VERSION_UPSTREAM))),^$(shell cut -d'"' -f2 patchlevel.h)))
$(error (patchlevel.h out of sync with Debian version))
endif
%:
dh $@
override_dh_auto_build:
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) xtrlock.c -o xtrlock -lcrypt -lX11 -lXi
override_dh_fixperms:
dh_fixperms -X/usr/bin/xtrlock
override_dh_install:
dh_install
# xtrlock has to be setgid shadow to support shadow passwords
chown root.shadow debian/xtrlock/usr/bin/xtrlock
chmod 2755 debian/xtrlock/usr/bin/xtrlock
|