From 10c8c4025fe4c8a0c1becf9c621a1ed51f8ba530 Mon Sep 17 00:00:00 2001 From: Aaron Walker Date: Sat, 15 Jan 2005 12:42:14 +0000 Subject: [PATCH] Revision bump for cron.eclass testing. Package-Manager: portage-2.0.51-r12 --- sys-apps/fcron/ChangeLog | 8 +- sys-apps/fcron/Manifest | 30 ++--- sys-apps/fcron/fcron-2.9.5.1-r1.ebuild | 106 ++++++++++++++++++ sys-apps/fcron/files/digest-fcron-2.9.5.1-r1 | 1 + sys-apps/fcron/metadata.xml | 4 + sys-apps/vixie-cron/ChangeLog | 7 +- sys-apps/vixie-cron/Manifest | 46 ++++---- .../vixie-cron/files/digest-vixie-cron-4.1-r5 | 2 + sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild | 97 ++++++++++++++++ 9 files changed, 253 insertions(+), 48 deletions(-) create mode 100644 sys-apps/fcron/fcron-2.9.5.1-r1.ebuild create mode 100644 sys-apps/fcron/files/digest-fcron-2.9.5.1-r1 create mode 100644 sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r5 create mode 100644 sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild diff --git a/sys-apps/fcron/ChangeLog b/sys-apps/fcron/ChangeLog index ea0ab7ea9443..9d11fcc2bb70 100644 --- a/sys-apps/fcron/ChangeLog +++ b/sys-apps/fcron/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/fcron # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/fcron/ChangeLog,v 1.41 2005/01/10 06:50:24 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/fcron/ChangeLog,v 1.42 2005/01/15 12:39:25 ka0ttic Exp $ + +*fcron-2.9.5.1-r1 (15 Jan 2005) + + 15 Jan 2005; Aaron Walker metadata.xml, + +fcron-2.9.5.1-r1.ebuild: + Revision bump for cron.eclass testing. 10 Jan 2005; Ciaran McCreesh fcron-2.0.2.ebuild, fcron-2.9.5.1.ebuild: diff --git a/sys-apps/fcron/Manifest b/sys-apps/fcron/Manifest index 80cfe0dd3d52..71bf8a169342 100644 --- a/sys-apps/fcron/Manifest +++ b/sys-apps/fcron/Manifest @@ -1,25 +1,17 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 d9e9e8adcb236d4cf01e918705a05e43 ChangeLog 6551 -MD5 f27d23d740050ab714fc1c315d9ae0e4 fcron-2.9.5.1.ebuild 3452 +MD5 551e214dd439635a6bf23fe52e3ef45d fcron-2.9.5.1-r1.ebuild 2874 MD5 ca42c765bc8fa7b0779424acc59d877d fcron-2.0.2.ebuild 3052 +MD5 f27d23d740050ab714fc1c315d9ae0e4 fcron-2.9.5.1.ebuild 3452 +MD5 d9e9e8adcb236d4cf01e918705a05e43 ChangeLog 6551 MD5 9c8fdf815ce980c230d763b496d4d088 metadata.xml 158 -MD5 f659349d3f24fa1b57684af8f495efe6 files/fcrontab.pam 506 -MD5 42d8a93754df65def4a3746bbc68e494 files/digest-fcron-2.9.5.1 69 MD5 52572ff759db2d68e16f8cbc46fc6cd9 files/crontab 833 -MD5 bebebfe6bc1ce39b1703b624f2be567e files/fcron-2.0.0-configure.diff 390 -MD5 583200a8686cf8bdd59e970ad8a55d21 files/fcron.conf-2.9.5.1 800 +MD5 7e9a6dd8e9a4e482d7b6bf33d1f9881b files/fcron.conf 747 MD5 d450e99144dc943526cd370c2b3a87e1 files/fcron.deny 377 -MD5 2d4d092f7a76917183b5d8086d871e67 files/fcron.allow 375 +MD5 d18b499ccc7338a352ccc5111a23e224 files/digest-fcron-2.0.2 67 MD5 618ee227782ad9a3939c89e932eb2d2e files/fcron.pam 296 MD5 54d34efc5c1c41481d4605e38ddba3a8 files/fcron.rc6 705 -MD5 d18b499ccc7338a352ccc5111a23e224 files/digest-fcron-2.0.2 67 -MD5 7e9a6dd8e9a4e482d7b6bf33d1f9881b files/fcron.conf 747 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) - -iD8DBQFB4iXnLLFUmVNQ7rkRAnAvAKCOpQ1/ZSPHoRqzytFPWVhcwl7iIgCgjJ3S -l68vOYs5aRHGu2kYrRzk7j8= -=2y5K ------END PGP SIGNATURE----- +MD5 bebebfe6bc1ce39b1703b624f2be567e files/fcron-2.0.0-configure.diff 390 +MD5 2d4d092f7a76917183b5d8086d871e67 files/fcron.allow 375 +MD5 f659349d3f24fa1b57684af8f495efe6 files/fcrontab.pam 506 +MD5 42d8a93754df65def4a3746bbc68e494 files/digest-fcron-2.9.5.1 69 +MD5 583200a8686cf8bdd59e970ad8a55d21 files/fcron.conf-2.9.5.1 800 +MD5 42d8a93754df65def4a3746bbc68e494 files/digest-fcron-2.9.5.1-r1 69 diff --git a/sys-apps/fcron/fcron-2.9.5.1-r1.ebuild b/sys-apps/fcron/fcron-2.9.5.1-r1.ebuild new file mode 100644 index 000000000000..e24973901c46 --- /dev/null +++ b/sys-apps/fcron/fcron-2.9.5.1-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/fcron/fcron-2.9.5.1-r1.ebuild,v 1.1 2005/01/15 12:39:25 ka0ttic Exp $ + +inherit cron + +DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" +HOMEPAGE="http://fcron.free.fr/" +SRC_URI="http://fcron.free.fr/archives/${P}.src.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~hppa ~amd64" +IUSE="pam doc selinux" + +DEPEND="virtual/editor + doc? ( >=app-text/docbook-dsssl-stylesheets-1.77 ) + selinux? ( sys-libs/libselinux ) + pam? ( >=sys-libs/pam-0.77 )" + +pkg_setup() { + # bug #65263 + # fcron's ./configure complains if EDITOR is not set to an absolute path, + # so try to set it to the abs path if it isn't + if [[ "${EDITOR}" != */* ]] ; then + einfo "Attempting to deduce absolute path of ${EDITOR}" + EDITOR=$(which ${EDITOR} 2>/dev/null) + if [ ! -x "${EDITOR}" ] ; then + die "Please set the EDITOR env variable to the path of a valid executable." + fi + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-2.0.0-configure.diff + # respect LDFLAGS + sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed" + autoconf || die "autoconf failed" +} + +src_compile() { + local myconf + use doc && \ + myconf="--with-dsssl-dir=/usr/share/sgml/stylesheets/dsssl/docbook" + + # QA security notice fix; see "[gentoo-core] Heads up changes in suid + # handing with portage >=51_pre21" for more details. + append-ldflags -Wl,-z,now + + econf \ + $(use_with pam) \ + $(use_with selinux) \ + --with-username=cron \ + --with-groupname=cron \ + --with-piddir=/var/run \ + --with-etcdir=/etc/fcron \ + --with-spooldir=/var/spool/cron \ + --with-fifodir=/var/run \ + --with-sendmail=/usr/sbin/sendmail \ + --with-fcrondyn=yes \ + --with-editor=${EDITOR} \ + ${myconf} \ + || die "Configure problem" + + emake || die "Compile problem" +} + +src_install() { + docrondir /var/spool/cron/fcrontabs -m0770 -o cron -g cron + docron fcron -m0110 -o root -g root + docrontab fcrontab -m6110 -o root -g cron + + docron fcrondyn -m6110 -o cron -g cron + docron fcronsighup -m6110 -o root -g cron + + # /etc stuff + insinto /etc/fcron + insopts -m 640 -o root -g cron + doins ${FILESDIR}/fcron.{allow,deny} + newins ${FILESDIR}/fcron.conf-${PV} fcron.conf + + if use pam ; then + dopamd ${FILESDIR}/fcron.pam fcron + dopamd ${FILESDIR}/fcrontab.pam fcrontab + fi + + insinto /etc + doins ${FILESDIR}/crontab + newinitd ${FILESDIR}/fcron.rc6 fcron + + # doc stuff + dodoc MANIFEST VERSION doc/txt/*.txt + newdoc ${FILESDIR}/fcron.conf-${PV} fcron.conf.sample + use doc && dohtml doc/HTML/*.html + dodoc ${FILESDIR}/crontab + + doman doc/man/*.{1,3,5,8} +} + +pkg_postinst() { + einfo "Each user who uses fcron should be added to the cron group" + einfo "in /etc/group and also be added in /etc/fcron/fcron.allow" + einfo + cron-pkg_postinst +} diff --git a/sys-apps/fcron/files/digest-fcron-2.9.5.1-r1 b/sys-apps/fcron/files/digest-fcron-2.9.5.1-r1 new file mode 100644 index 000000000000..bca17bd60680 --- /dev/null +++ b/sys-apps/fcron/files/digest-fcron-2.9.5.1-r1 @@ -0,0 +1 @@ +MD5 bf39dcef6d0c452f167f5a31a1231e4e fcron-2.9.5.1.src.tar.gz 398400 diff --git a/sys-apps/fcron/metadata.xml b/sys-apps/fcron/metadata.xml index 3f399e92bcff..5071ab0d2382 100644 --- a/sys-apps/fcron/metadata.xml +++ b/sys-apps/fcron/metadata.xml @@ -2,4 +2,8 @@ cron + + ka0ttic@gentoo.org + Aaron Walker + diff --git a/sys-apps/vixie-cron/ChangeLog b/sys-apps/vixie-cron/ChangeLog index c0e8cbfdfe1b..7e4011d03e40 100644 --- a/sys-apps/vixie-cron/ChangeLog +++ b/sys-apps/vixie-cron/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/vixie-cron # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.48 2005/01/10 06:49:11 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.49 2005/01/15 12:42:13 ka0ttic Exp $ + +*vixie-cron-4.1-r5 (15 Jan 2005) + + 15 Jan 2005; Aaron Walker +vixie-cron-4.1-r5.ebuild: + Revision bump for cron.eclass testing. 10 Jan 2005; Ciaran McCreesh vixie-cron-3.0.1-r1.ebuild, vixie-cron-3.0.1-r3.ebuild, diff --git a/sys-apps/vixie-cron/Manifest b/sys-apps/vixie-cron/Manifest index e09c8e544034..d21496d9dde3 100644 --- a/sys-apps/vixie-cron/Manifest +++ b/sys-apps/vixie-cron/Manifest @@ -1,36 +1,28 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 4b48f0ba12308f1afe776e97cf757957 vixie-cron-4.1-r3.ebuild 2830 -MD5 18d86105047be4b43ffdacd31092e91e vixie-cron-4.1-r4.ebuild 3298 -MD5 5f6e2e2e1586bca899cf1ea2080de64a vixie-cron-3.0.1-r3.ebuild 1915 MD5 1985d806ba1556d197f4054765b6006e vixie-cron-3.0.1-r4.ebuild 2019 -MD5 f3774f6f04f01a785c5ba1be837ba5e3 ChangeLog 11244 -MD5 10e6e5c36bab78f2ad1c22adb26c4931 vixie-cron-3.0.1-r5.ebuild 2202 +MD5 f69931bb1558b7ab9c161cfb970066fc vixie-cron-4.1-r5.ebuild 2633 MD5 96f9e03ead97dce72db64ee9a6730ae2 vixie-cron-3.0.1-r1.ebuild 1670 +MD5 5f6e2e2e1586bca899cf1ea2080de64a vixie-cron-3.0.1-r3.ebuild 1915 +MD5 18d86105047be4b43ffdacd31092e91e vixie-cron-4.1-r4.ebuild 3298 +MD5 10e6e5c36bab78f2ad1c22adb26c4931 vixie-cron-3.0.1-r5.ebuild 2202 +MD5 64ee12357ca15f885f60934cc41d674a ChangeLog 11396 MD5 0fcc78652b11c683f3fe76d614934379 metadata.xml 288 -MD5 4c35adb745265e3008fe1999d6a18952 files/vixie-cron-4.1-selinux.diff 3557 +MD5 8692002451e69ee31d667eb2d0dc904d files/vixie-cron-4.1-cron.deny 220 MD5 90b7dda2ca0ecdd2f4dcd9764eaa2358 files/crontab-3.0.1-r4 617 -MD5 1915f29deae7e87c569877f1dbbbec67 files/vixie-cron-3.0.1-selinux.diff.bz2 1853 -MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r5 144 -MD5 b806ca293a6934a3965a063ec2fe0381 files/digest-vixie-cron-4.1-r4 143 -MD5 9d66b761d15afae9471d33509b712fe9 files/vixie-cron-3.0.1-close_stdin.diff 810 MD5 f9c762005dc744193babe199ba3fb297 files/crontab 604 -MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r4 144 -MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r1 144 -MD5 08c5d571b72d52a2762b2c40639d6946 files/vixie-cron-4.1-commandline.patch 387 -MD5 cec7bf697ed66fa43aedb973b2ad5362 files/vixie-cron-3.0.1-pam.patch 1854 -MD5 620b10c2982aed3071acd92d52e76d8e files/vixie-cron-4.1-pam.patch 1714 -MD5 cdf831673f04d48d38020428f6c72937 files/digest-vixie-cron-4.1-r3 143 -MD5 2790891d7be3833a500e5af547546b0d files/vixie-cron.rc6 526 MD5 de84c3326555349db053b4aa13c0805f files/crontab.5.diff 772 MD5 5eab102dfecfc35810ab8cf50f95d0d3 files/cron.pam.d 123 -MD5 8692002451e69ee31d667eb2d0dc904d files/vixie-cron-4.1-cron.deny 220 +MD5 620b10c2982aed3071acd92d52e76d8e files/vixie-cron-4.1-pam.patch 1714 +MD5 4c35adb745265e3008fe1999d6a18952 files/vixie-cron-4.1-selinux.diff 3557 +MD5 2790891d7be3833a500e5af547546b0d files/vixie-cron.rc6 526 +MD5 9d66b761d15afae9471d33509b712fe9 files/vixie-cron-3.0.1-close_stdin.diff 810 +MD5 08c5d571b72d52a2762b2c40639d6946 files/vixie-cron-4.1-commandline.patch 387 +MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r1 144 MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r3 144 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) - -iD8DBQFB4iWdLLFUmVNQ7rkRAnHFAJ9Chkhq9BdAVGdnKybocjgHbd4qkwCfV8nR -2mdDXmW+nVcXZuOZMSMjhhE= -=gTls ------END PGP SIGNATURE----- +MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r4 144 +MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r5 144 +MD5 cec7bf697ed66fa43aedb973b2ad5362 files/vixie-cron-3.0.1-pam.patch 1854 +MD5 cdf831673f04d48d38020428f6c72937 files/digest-vixie-cron-4.1-r3 143 +MD5 b806ca293a6934a3965a063ec2fe0381 files/digest-vixie-cron-4.1-r4 143 +MD5 b806ca293a6934a3965a063ec2fe0381 files/digest-vixie-cron-4.1-r5 143 +MD5 1915f29deae7e87c569877f1dbbbec67 files/vixie-cron-3.0.1-selinux.diff.bz2 1853 diff --git a/sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r5 b/sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r5 new file mode 100644 index 000000000000..23195713d1ae --- /dev/null +++ b/sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r5 @@ -0,0 +1,2 @@ +MD5 09dc04f9879684d27c64c910174a9536 vixie-cron-4.1.tar.bz2 54246 +MD5 7b52dead5180d5769a70b581413bd6f0 vixie-cron-4.1-gentoo-r3.patch.bz2 4121 diff --git a/sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild b/sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild new file mode 100644 index 000000000000..3e6dc33aa79f --- /dev/null +++ b/sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/vixie-cron-4.1-r5.ebuild,v 1.1 2005/01/15 12:42:14 ka0ttic Exp $ + +inherit cron toolchain-funcs debug + +# no useful homepage, bug #65898 +HOMEPAGE="ftp://ftp.isc.org/isc/cron/" +DESCRIPTION="Paul Vixie's cron daemon, a fully featured crond implementation" + +SELINUX_PATCH="${P}-selinux.diff" +GENTOO_PATCH_REV="r3" + +SRC_URI="mirror://gentoo/${P}.tar.bz2 + mirror://gentoo/${P}-gentoo-${GENTOO_PATCH_REV}.patch.bz2" + +LICENSE="as-is" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~ia64 ~amd64 ~ppc64" +IUSE="selinux pam debug" + +DEPEND=">=sys-apps/portage-2.0.47-r10 + selinux? ( sys-libs/libselinux ) + pam? ( sys-libs/pam )" + +RDEPEND="selinux? ( sys-libs/libselinux ) + pam? ( sys-libs/pam )" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${WORKDIR}/${P}-gentoo-${GENTOO_PATCH_REV}.patch + epatch ${FILESDIR}/crontab.5.diff + epatch ${FILESDIR}/${P}-commandline.patch + + use pam && epatch ${FILESDIR}/${P}-pam.patch + use selinux && epatch ${FILESDIR}/${SELINUX_PATCH} +} + +src_compile() { + # we need to tinker with ldflags since we're installing as setuid. see + # "[gentoo-core] Heads up changes in suid handing with portage >=51_pre21" + # for details. Note that we do the sed fixes here rather than in unpack so + # that our changes to LDFLAGS are picked up. + + append-ldflags -Wl,-z,now + use debug && append-flags -DDEBUGGING + + sed -i -e "s:gcc \(-Wall.*\):$(tc-getCC) \1 ${CFLAGS}:" \ + -e "s:^\(LDFLAGS[ \t]\+=\).*:\1 ${LDFLAGS}:" Makefile \ + || die "sed Makefile failed" + + emake || die "emake failed" +} + +src_install() { + docrondir + docron + docrontab + + # /etc stuff + insinto /etc + newins ${FILESDIR}/crontab-3.0.1-r4 crontab + newins ${FILESDIR}/${P}-cron.deny cron.deny + + keepdir /etc/cron.d + use pam && dopamd ${FILESDIR}/cron.pam.d cron + newinitd ${FILESDIR}/vixie-cron.rc6 vixie-cron + + # doc stuff + doman crontab.1 crontab.5 cron.8 + dodoc ${FILESDIR}/crontab + dodoc CHANGES CONVERSION FEATURES MAIL README THANKS +} + +pkg_postinst() { + if [ -f ${ROOT}/etc/init.d/vcron ] + then + ewarn "Please run:" + ewarn "rc-update del vcron" + ewarn "rc-update add vixie-cron default" + fi + + # bug 71326 + if [ -u ${ROOT}/etc/pam.d/cron ] ; then + echo + ewarn "Warning: previous ebuilds didn't reset permissions prior" + ewarn "to installing crontab, resulting in /etc/pam.d/cron being" + ewarn "installed with the SUID and executable bits set." + ewarn + ewarn "Run the following as root to set the proper permissions:" + ewarn " chmod 0644 /etc/pam.d/cron" + echo + fi + + cron-pkg_postinst +} -- 2.26.2