Name cron
Description process scheduling daemon
Version 3.0pl1-197
Package Base
Homepage https://ftp.isc.org/isc/cron/
Maintainers ['Georges Khaznadar <georgesk@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/debian/cron
Sources ['https://sources.debian.org/data/main/c/cron/3.0pl1-197/debian/watch', 'https://sources.debian.org/src/cron/3.0pl1-197/debian/patches/docs', 'https://sources.debian.org/src/cron/3.0pl1-197/debian/patches/features', 'https://sources.debian.org/src/cron/3.0pl1-197/debian/patches/fixes', 'https://sources.debian.org/src/cron/3.0pl1-197/debian/patches/series']
Dependencies ['cron-daemon-common', 'init-system-helpers', 'libc6', 'libpam-runtime', 'libpam0g', 'libselinux1', 'sensible-utils']
Optional-Dependencies ['anacron', 'bat', 'checksecurity', 'default-mta', 'logrotate', 'mail-transport-agent', 'supercat']
Build-Dependencies ['debhelper-compat', 'libpam0g-dev', 'libselinux1-dev [linux-any]', 'libaudit-dev [linux-any]', 'python3', 'docbook-xsl', 'xsltproc']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 32d7fc3e00dc504401c61682ac31c4a60068721b4e267e8439a04754af914c5b
#!/usr/bin/make -f
# -*- makefile -*-

# The package build supports three optional features. To enable/disable them,
# modify DEB_BUILD_OPTIONS accordingly:
#  * PAM support        default: ON     disable: DEB_BUILD_OPTIONS=nopam
#  * SELinux support    default: ON     disable: DEB_BUILD_OPTIONS=noselinux
#  * audit support      default: OFF    enable:  DEB_BUILD_OPTIONS=withaudit
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Retrieve architecture-related variables
include /usr/share/dpkg/architecture.mk

# Enable cross-compiling support
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
export CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

# Customize build flags
export DEB_CFLAGS_MAINT_APPEND += -Wall -Wno-unused -Wno-comment
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# debug is enabled by default
ifneq (,$(findstring nodebug,$(DEB_BUILD_OPTIONS)))
  DEBUG_DEFS = -DDEBUGGING=0
else
  DEBUG_DEFS = -DDEBUGGING=1
endif
export DEBUG_DEFS

# PAM is enabled by default
ifeq (,$(findstring nopam,$(DEB_BUILD_OPTIONS)))
    PAM_DEFS = -DUSE_PAM
    PAM_LIBS = -lpam
    export PAM_DEFS PAM_LIBS
endif

# SELinux and audit are only available on Linux
ifeq ($(DEB_HOST_ARCH_OS), linux)
# SELinux is enabled by default
ifeq (,$(findstring noselinux,$(DEB_BUILD_OPTIONS)))
    SELINUX_DEFS = -DWITH_SELINUX
    SELINUX_LIBS = -lselinux
    export SELINUX_DEFS SELINUX_LIBS
endif

# audit is disabled by default
ifneq (,$(findstring withaudit,$(DEB_BUILD_OPTIONS)))
    AUDIT_DEFS = -DWITH_AUDIT
    AUDIT_LIBS = -laudit
    export AUDIT_DEFS AUDIT_LIBS
endif
endif # Linux


%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	: # remove generated man pages
	rm -f debian/crontab.1 debian/crontab.5 debian/cron.8


override_dh_auto_install: manpages
	: # Empty target to bypass the auto-detected install target in Makefile
	: #
	: # this step is automatic with DebHelper >= 14
	dh_installsysusers

COMMON_ETC = debian/cron-daemon-common/etc
# beginning with release 3.0pl1-139, the configuration files
# are managed by the package cron-daemon-common

override_dh_install-indep:
	install -m 644 debian/crontab.main $(COMMON_ETC)/crontab
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.d/.placeholder
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.hourly/.placeholder
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.daily/.placeholder
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.weekly/.placeholder
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.monthly/.placeholder
	install -m 644 debian/placeholder $(COMMON_ETC)/cron.yearly/.placeholder

manpages:
	for f in debian/crontab.1 debian/crontab.5 debian/cron.8; do \
	  xsltproc --nonet --param man.charmap.use.subset "0" \
            --param make.year.ranges "1" --param make.single.year.ranges "1" \
	    --output $$f \
            /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
            $$f.xml; \
	done

.PHONY: manpages