diff options
author | 2003-12-11 16:19:37 +0000 | |
---|---|---|
committer | 2003-12-11 16:19:37 +0000 | |
commit | 5a73baff87c37c297688da613ffa8647eb98d9b2 (patch) | |
tree | 0d6422d6097912f9af0e9b3cccbba72548349149 /sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild | |
parent | vixie-cron added -- vcron to be removed soon (diff) | |
download | gentoo-2-5a73baff87c37c297688da613ffa8647eb98d9b2.tar.gz gentoo-2-5a73baff87c37c297688da613ffa8647eb98d9b2.tar.bz2 gentoo-2-5a73baff87c37c297688da613ffa8647eb98d9b2.zip |
vixie-cron added -- vcron to be removed soon
Diffstat (limited to 'sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild')
-rw-r--r-- | sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild b/sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild new file mode 100644 index 000000000000..6a6a0628c404 --- /dev/null +++ b/sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/vixie-cron-3.0.1-r3.ebuild,v 1.1 2003/12/11 16:19:36 seemant Exp $ + +inherit eutils + +IUSE="selinux" + +SELINUX_PATCH="${P}-selinux.diff.bz2" + +S=${WORKDIR}/${P} +DESCRIPTION="The Vixie cron daemon" +HOMEPAGE="" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="x86 ~amd64 ppc sparc ~alpha ~arm ~mips ~hppa ~ia64" + +DEPEND=">=sys-apps/portage-2.0.47-r10 + >=sys-apps/sed-4.0.5 + selinux? ( sys-libs/libselinux )" + +RDEPEND="!virtual/cron + sys-apps/cronbase + virtual/mta + selinux? ( sys-libs/libselinux )" + +PROVIDE="virtual/cron" + +src_unpack() { + unpack ${A} + + cd ${S} + + epatch ${FILESDIR}/${P}-gentoo.patch + epatch ${FILESDIR}/${P}-close_stdin.diff + + use selinux && epatch ${FILESDIR}/${SELINUX_PATCH} + + sed -i "s:-O2:${CFLAGS}:" Makefile +} + +src_compile() { + emake || die +} + +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 MANIFEST README THANKS + + diropts -m0755 ; dodir /etc/cron.d + touch ${D}/etc/cron.d/.keep + + exeinto /etc/init.d + newexe ${FILESDIR}/vixie-cron.rc6 vixie-cron + + insinto /etc + doins ${FILESDIR}/crontab + + 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 +} + +pkg_postinst() { + + if [ -f ${ROOT}/etc/init.d/vcron ] + then + ewarn "Please run:" + ewarn "rc-update del vcron" + ewarn "rc-update add vixie-cron" + fi +} |