Revision bump; fix /etc/pam.d/cron perms bug #71326
authorAaron Walker <ka0ttic@gentoo.org>
Tue, 16 Nov 2004 00:34:57 +0000 (00:34 +0000)
committerAaron Walker <ka0ttic@gentoo.org>
Tue, 16 Nov 2004 00:34:57 +0000 (00:34 +0000)
sys-apps/vixie-cron/ChangeLog
sys-apps/vixie-cron/Manifest
sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r4 [new file with mode: 0644]
sys-apps/vixie-cron/vixie-cron-4.1-r4.ebuild [new file with mode: 0644]

index 93ca2fb690fe6a7e547e3505441a620185cfd929..cb64c6a97883476096715db49b8b3178f488255f 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-apps/vixie-cron
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.35 2004/11/08 23:55:55 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.36 2004/11/16 00:34:57 ka0ttic Exp $
+
+*vixie-cron-4.1-r4 (15 Nov 2004)
+
+  15 Nov 2004; Aaron Walker <ka0ttic@gentoo.org> +vixie-cron-4.1-r4.ebuild:
+  Revision bump; fix /etc/pam.d/cron perms bug #71326
 
   09 Nov 2004; Bryan Ã˜stergaard <kloeri@gentoo.org>
   vixie-cron-4.1-r3.ebuild:
index 79cea688c96c60b7e3cd5111717fe791f9e6f92b..eb7b30e337fc2950d3eaa9e5ef00ac1d5457fb80 100644 (file)
@@ -1,38 +1,40 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+MD5 570905ddd12bf81d50d21a591343775c vixie-cron-4.1-r3.ebuild 2661
 MD5 3ff8b5eb733d9a828e916a46eabfa6ca vixie-cron-3.0.1-r4.ebuild 1852
 MD5 141bf296f623dc44f4bfa4d856dc21fa vixie-cron-3.0.1-r1.ebuild 1502
-MD5 3e4a0b98e2211a638e0a866bdc226bc3 ChangeLog 9191
-MD5 570905ddd12bf81d50d21a591343775c vixie-cron-4.1-r3.ebuild 2661
-MD5 0fcc78652b11c683f3fe76d614934379 metadata.xml 288
-MD5 dfd6ea62f7a18c13729d8c240f7692af vixie-cron-4.1-r1.ebuild 2062
 MD5 36b96df568b03fc07852be8e5afd893f vixie-cron-4.1-r2.ebuild 2605
-MD5 ab3b7df1ed3ce81f23a9050de83ca101 vixie-cron-3.0.1-r5.ebuild 2035
 MD5 dd33c1120b51b3d049054c798c20d5fa vixie-cron-3.0.1-r3.ebuild 1748
+MD5 244e99c75d80984efafd0e32dc9f4693 vixie-cron-4.1-r4.ebuild 2700
+MD5 ab3b7df1ed3ce81f23a9050de83ca101 vixie-cron-3.0.1-r5.ebuild 2035
+MD5 296c8a871c48d84d4429742890bf0789 ChangeLog 9357
+MD5 0fcc78652b11c683f3fe76d614934379 metadata.xml 288
+MD5 dfd6ea62f7a18c13729d8c240f7692af vixie-cron-4.1-r1.ebuild 2062
+MD5 8692002451e69ee31d667eb2d0dc904d files/vixie-cron-4.1-cron.deny 220
+MD5 90b7dda2ca0ecdd2f4dcd9764eaa2358 files/crontab-3.0.1-r4 617
 MD5 f9c762005dc744193babe199ba3fb297 files/crontab 604
+MD5 de84c3326555349db053b4aa13c0805f files/crontab.5.diff 772
 MD5 5eab102dfecfc35810ab8cf50f95d0d3 files/cron.pam.d 123
-MD5 cec7bf697ed66fa43aedb973b2ad5362 files/vixie-cron-3.0.1-pam.patch 1854
-MD5 9d66b761d15afae9471d33509b712fe9 files/vixie-cron-3.0.1-close_stdin.diff 810
+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 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r5 144
-MD5 cdf831673f04d48d38020428f6c72937 files/digest-vixie-cron-4.1-r3 143
-MD5 de8a7ebb15e58d9c6496378ff64c5137 files/digest-vixie-cron-4.1-r1 143
-MD5 de84c3326555349db053b4aa13c0805f files/crontab.5.diff 772
-MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r3 144
-MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r4 144
+MD5 9d66b761d15afae9471d33509b712fe9 files/vixie-cron-3.0.1-close_stdin.diff 810
 MD5 f1c3dce98a19679e79606650336e6aca files/vixie-cron-4.1-commandline.patch 360
-MD5 8692002451e69ee31d667eb2d0dc904d files/vixie-cron-4.1-cron.deny 220
-MD5 620b10c2982aed3071acd92d52e76d8e files/vixie-cron-4.1-pam.patch 1714
-MD5 1915f29deae7e87c569877f1dbbbec67 files/vixie-cron-3.0.1-selinux.diff.bz2 1853
 MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r1 144
-MD5 90b7dda2ca0ecdd2f4dcd9764eaa2358 files/crontab-3.0.1-r4 617
+MD5 041d9eec86f3869f6613b876ada841a1 files/digest-vixie-cron-3.0.1-r3 144
+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 de8a7ebb15e58d9c6496378ff64c5137 files/digest-vixie-cron-4.1-r1 143
 MD5 de8a7ebb15e58d9c6496378ff64c5137 files/digest-vixie-cron-4.1-r2 143
-MD5 4c35adb745265e3008fe1999d6a18952 files/vixie-cron-4.1-selinux.diff 3557
+MD5 cdf831673f04d48d38020428f6c72937 files/digest-vixie-cron-4.1-r3 143
+MD5 cdf831673f04d48d38020428f6c72937 files/digest-vixie-cron-4.1-r4 143
+MD5 1915f29deae7e87c569877f1dbbbec67 files/vixie-cron-3.0.1-selinux.diff.bz2 1853
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBkAeWugEuf3OQ0akRAvjRAJ9bd1y+CUfWw0n/RAo6AOz/QkkcBQCdFs2G
-atay8uPAWC40/QIbSRb+wrw=
-=C5+Y
+iD8DBQFBmUtFEZCkKN40op4RAn0WAJ9O4oSHLbxLVpXj1ZUYoPf7uKD17QCZAbdn
+JKn90N7WC+X14aVRDLILy+4=
+=Z7QF
 -----END PGP SIGNATURE-----
diff --git a/sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r4 b/sys-apps/vixie-cron/files/digest-vixie-cron-4.1-r4
new file mode 100644 (file)
index 0000000..880d1f0
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 09dc04f9879684d27c64c910174a9536 vixie-cron-4.1.tar.bz2 54246
+MD5 c08e12c3ba0ab1363a777072e7f23b55 vixie-cron-4.1-gentoo-r2.patch.bz2 3861
diff --git a/sys-apps/vixie-cron/vixie-cron-4.1-r4.ebuild b/sys-apps/vixie-cron/vixie-cron-4.1-r4.ebuild
new file mode 100644 (file)
index 0000000..0693495
--- /dev/null
@@ -0,0 +1,105 @@
+# Copyright 1999-2004 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-r4.ebuild,v 1.1 2004/11/16 00:34:57 ka0ttic Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+# 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="r2"
+
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+       mirror://gentoo/${P}-gentoo-${GENTOO_PATCH_REV}.patch.bz2"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~ia64 ~amd64 ~ppc64"
+IUSE="selinux pam"
+
+DEPEND=">=sys-apps/portage-2.0.47-r10
+       >=sys-apps/sed-4.0.5
+       selinux? ( sys-libs/libselinux )
+       pam? ( sys-libs/pam )"
+
+RDEPEND="!virtual/cron
+       >=sys-apps/cronbase-0.2.1-r3
+        virtual/mta
+        selinux? ( sys-libs/libselinux )
+        pam? ( sys-libs/pam )"
+
+PROVIDE="virtual/cron"
+
+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
+       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() {
+       # this does not work if the directory exists already
+       diropts -m0750 -o root -g cron
+       dodir /var/spool/cron/crontabs
+       keepdir /var/spool/cron/crontabs/
+
+       doman crontab.1 crontab.5 cron.8
+
+       dodoc CHANGES CONVERSION FEATURES MAIL README THANKS
+
+       diropts -m0755 ; dodir /etc/cron.d
+       keepdir /etc/cron.d/
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/vixie-cron.rc6 vixie-cron
+
+       insinto /etc
+       insopts -o root -g root -m 0644
+       newins  ${FILESDIR}/crontab-3.0.1-r4 crontab
+       newins ${FILESDIR}/${P}-cron.deny cron.deny
+
+       dodoc ${FILESDIR}/crontab
+
+       insinto /usr/sbin
+       insopts -o root -g root -m 0750 ; doins cron
+
+       insinto /usr/bin
+       insopts -o root -g cron -m 4750 ; doins crontab
+
+       if use pam ; then
+               insinto /etc/pam.d
+               insopts -o root -g root -m 0644
+               newins ${FILESDIR}/cron.pam.d cron
+       fi
+}
+
+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
+}