void-packages/srcpkgs/fcron/template

71 lines
1.7 KiB
Bash
Raw Normal View History

2015-06-10 18:32:42 +02:00
# Template file for 'fcron'
pkgname=fcron
version=3.2.0
2015-08-26 02:18:20 +02:00
revision=5
2015-06-10 18:32:42 +02:00
build_style=gnu-configure
configure_args="
--sysconfdir=/etc/fcron
--with-answer-all=no
--with-boot-install=no
--datarootdir=/usr/share
--datadir=/usr/share
--docdir=/usr/share/doc
--localstatedir=/var
--with-piddir=/run
2015-08-26 01:57:49 +02:00
--with-pam=yes
2015-06-10 18:32:42 +02:00
--with-sendmail=sendmail
--with-editor=vi
--with-shell=/bin/sh
--disable-checks"
make_dirs="
/etc/cron.daily 0755 root root
/etc/cron.hourly 0755 root root
/etc/cron.monthly 0755 root root
/etc/cron.weekly 0755 root root"
hostmakedepends="autoconf perl"
makedepends="pam-devel readline-devel"
2015-06-10 18:32:42 +02:00
depends="run-parts"
short_desc="Feature-rich cron implementation"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://fcron.free.fr"
distfiles="$homepage/archives/$pkgname-$version.src.tar.gz"
checksum=eb13b86ed96805d117e19847f1da30b834f1990f7ef4c38f5007234d44679564
system_accounts="fcron"
fcron_homedir="/var/spool/fcron"
fcron_shell="/bin/sh"
conf_files="
/etc/fcron/fcron.conf
/etc/fcron/fcron.allow
/etc/fcron/fcron.deny
/etc/fcron/pam.conf
2015-06-10 18:32:42 +02:00
/var/spool/fcron/systab.orig"
## me: fcron installer is not the king. I'm.
## fcron: Wine is coming.
2015-08-26 01:57:49 +02:00
CFLAGS="-DHAVE_LIBPAM=1"
LDFLAGS="-lpam"
2015-06-10 18:32:42 +02:00
pre_configure() {
2015-08-26 01:57:49 +02:00
sed -i 's|$(CFLAGS)|$(CFLAGS) $(LDFLAGS)|g' Makefile.in # pass LDFLAGS for PIE
2015-06-10 18:32:42 +02:00
autoupdate
autoconf -f -Wall
}
pre_install() {
sed -i 's/chgrp/true/g' Makefile doc/Makefile
sed -i 's/chown/true/g' Makefile doc/Makefile
}
post_install() {
chmod +rx $DESTDIR/usr/bin/*
vinstall files/fcron.pam 644 etc/pam.d fcron
vinstall files/fcrontab.pam 644 etc/pam.d fcrontab
vinstall $FILESDIR/systab.orig 640 var/spool/fcron
mv $DESTDIR/usr/share/doc/${pkgname}{-${version},}
vsv fcron
}