mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
dcron: use our CFLAGS; prepare for fakeroot removal.
This commit is contained in:
parent
099ab874c1
commit
b157085af7
1 changed files with 9 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
||||||
# Template file for 'dcron'
|
# Template file for 'dcron'
|
||||||
pkgname=dcron
|
pkgname=dcron
|
||||||
version=4.5
|
version=4.5
|
||||||
revision=23
|
revision=24
|
||||||
conf_files="/var/spool/cron/root"
|
conf_files="/var/spool/cron/root"
|
||||||
replaces="cron-daemon>=0"
|
replaces="cron-daemon>=0"
|
||||||
provides="cron-daemon-1_1"
|
provides="cron-daemon-1_1"
|
||||||
systemd_services="dcron.service on"
|
|
||||||
short_desc="Dillon's lightweight cron daemon"
|
short_desc="Dillon's lightweight cron daemon"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.jimpryor.net/linux/dcron.html"
|
homepage="http://www.jimpryor.net/linux/dcron.html"
|
||||||
|
@ -13,10 +12,6 @@ license="GPL-2"
|
||||||
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
||||||
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
|
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
|
||||||
|
|
||||||
# Build PIE binaries by default.
|
|
||||||
CFLAGS="-fPIE"
|
|
||||||
LDFLAGS="-pie"
|
|
||||||
|
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/etc/cron.d 0755 root root
|
/etc/cron.d 0755 root root
|
||||||
/etc/cron.hourly 0755 root root
|
/etc/cron.hourly 0755 root root
|
||||||
|
@ -26,12 +21,18 @@ make_dirs="
|
||||||
/var/spool/cronstamps 0755 root root"
|
/var/spool/cronstamps 0755 root root"
|
||||||
|
|
||||||
build_options="systemd"
|
build_options="systemd"
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
systemd_services="dcron.service on"
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
sed -i 's,-[og] root,,g' Makefile
|
||||||
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron \
|
make CFLAGS="$CFLAGS -fPIE" LDFLAGS="$LDFLAGS -pie" \
|
||||||
|
PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron \
|
||||||
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
|
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue