#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Add build flags CFLAGS += -Wall # Build the config options string CONFIG_OPTIONS = # PAM is enabled by default ifeq (,$(findstring nopam,$(DEB_BUILD_OPTIONS))) CONFIG_OPTIONS += --with-pam endif ### Linux-only options ### ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_OS), linux) # SELINUX is enabled by default ifeq (,$(findstring noselinux,$(DEB_BUILD_OPTIONS))) CONFIG_OPTIONS += --with-selinux endif # inotify is enabled by default ifeq (,$(findstring noinotify,$(DEB_BUILD_OPTIONS))) CONFIG_OPTIONS += --with-inotify endif # audit is disabled by default ifneq (,$(findstring withaudit,$(DEB_BUILD_OPTIONS))) CONFIG_OPTIONS += --with-audit endif endif ### End Linux-only ### %: dh $@ --with autoreconf # Set SPOOL_DIR to Debian's traditional location for crontabs (see Policy) # Set CRON_GROUP to "crontab" to enable SGID functionality (avoids SUID) override_dh_auto_configure: SPOOL_DIR=/var/spool/cron/crontabs dh_auto_configure CRON_GROUP=crontab -- $(CONFIG_OPTIONS) override_dh_install: dh_install # Create /etc/cron.deny to allow crontab(1) for all users by default install -m 644 debian/cronie.deny debian/cronie/etc/cron.deny # System-wide crontab install -m 644 debian/crontab.system debian/cronie/etc/crontab # Placeholders for dpkg install -m 644 debian/placeholder debian/cronie/etc/cron.d/.placeholder install -m 644 debian/placeholder debian/cronie/etc/cron.hourly/.placeholder install -m 644 debian/placeholder debian/cronie/etc/cron.daily/.placeholder install -m 644 debian/placeholder debian/cronie/etc/cron.weekly/.placeholder install -m 644 debian/placeholder debian/cronie/etc/cron.monthly/.placeholder # Don't need stop (redundant with sendsigs) override_dh_installinit: dh_installinit -- start 89 2 3 4 5 . override_dh_clean: dh_clean rm -f src/cron-paths.h