From b7d00ffd48bdb794b601107ccef1094279953c15 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 10 Jun 2015 18:32:42 +0200 Subject: [PATCH] New package: fcron-3.2.0 --- srcpkgs/fcron/INSTALL | 18 +++++++++ srcpkgs/fcron/files/fcron/run | 2 + srcpkgs/fcron/files/systab.orig | 4 ++ srcpkgs/fcron/patches/fcron.patch | 18 +++++++++ srcpkgs/fcron/template | 66 +++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 srcpkgs/fcron/INSTALL create mode 100755 srcpkgs/fcron/files/fcron/run create mode 100644 srcpkgs/fcron/files/systab.orig create mode 100644 srcpkgs/fcron/patches/fcron.patch create mode 100644 srcpkgs/fcron/template diff --git a/srcpkgs/fcron/INSTALL b/srcpkgs/fcron/INSTALL new file mode 100644 index 00000000000..6caade3c45b --- /dev/null +++ b/srcpkgs/fcron/INSTALL @@ -0,0 +1,18 @@ +# *-*-shell-*-* +# +case ${ACTION} in +post) + # fix permissions and owners + chown fcron:fcron usr/bin/fcrontab usr/bin/fcrondyn + chown root:fcron usr/bin/fcronsighup + chmod 110 usr/bin/fcron + chmod 4110 usr/bin/fcronsighup + chmod 6111 usr/bin/fcrontab usr/bin/fcrondyn + + chown root:fcron etc/fcron/fcron.conf etc/fcron/fcron.allow etc/fcron/fcron.deny + chmod 640 etc/fcron/fcron.conf etc/fcron/fcron.allow etc/fcron/fcron.deny + + chown fcron:fcron var/spool/fcron + chmod 770 var/spool/fcron + ;; +esac diff --git a/srcpkgs/fcron/files/fcron/run b/srcpkgs/fcron/files/fcron/run new file mode 100755 index 00000000000..5cc2da613af --- /dev/null +++ b/srcpkgs/fcron/files/fcron/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec fcron diff --git a/srcpkgs/fcron/files/systab.orig b/srcpkgs/fcron/files/systab.orig new file mode 100644 index 00000000000..00af327bce4 --- /dev/null +++ b/srcpkgs/fcron/files/systab.orig @@ -0,0 +1,4 @@ +&bootrun 01 * * * * /usr/bin/run-parts /etc/cron.hourly +&bootrun 02 00 * * * /usr/bin/run-parts /etc/cron.daily +&bootrun 22 00 * * 0 /usr/bin/run-parts /etc/cron.weekly +&bootrun 42 00 1 * * /usr/bin/run-parts /etc/cron.monthly diff --git a/srcpkgs/fcron/patches/fcron.patch b/srcpkgs/fcron/patches/fcron.patch new file mode 100644 index 00000000000..8ef79b0cbc9 --- /dev/null +++ b/srcpkgs/fcron/patches/fcron.patch @@ -0,0 +1,18 @@ +--- configure.in.orig ++++ configure.in +@@ -201,7 +201,6 @@ + if test ! -x "$SENDMAIL" ; then + dnl ... but it is not an executable file! + AC_MSG_RESULT([$SENDMAIL]) +- AC_MSG_ERROR([File $SENDMAIL is not an executable file]) + else + dnl ... and it is valid + AC_MSG_RESULT([$SENDMAIL]) +--- script/user-group.orig ++++ script/user-group +@@ -1,4 +1,5 @@ + #!/bin/sh ++exit 0 + # Check if the user and group given in arguments + # exit in /etc/passwd and /etc/group, and create + # them if necessary. diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template new file mode 100644 index 00000000000..d6b1fe40598 --- /dev/null +++ b/srcpkgs/fcron/template @@ -0,0 +1,66 @@ +# Template file for 'fcron' +pkgname=fcron +version=3.2.0 +revision=1 +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 + --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" +depends="run-parts" +short_desc="Feature-rich cron implementation" +maintainer="Andrea Brancaleoni " +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 + /var/spool/fcron/systab.orig" + +## me: fcron installer is not the king. I'm. +## fcron: Wine is coming. +pre_configure() { + 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 +}