Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 84908 | Differences between
and this patch

Collapse All | Expand All

(-)/root/overlay/sys-apps/freebsd-usbin/files/crontab (+38 lines)
Line 0 Link Here
1
# for vixie cron
2
#
3
# $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab,v 1.1 2005/03/04 23:59:48 ciaranm Exp $
4
#
5
6
# Global variables
7
SHELL=/bin/bash
8
PATH=/sbin:/bin:/usr/sbin:/usr/bin
9
MAILTO=root
10
HOME=/
11
12
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
13
*/15 * * * *	root	test -x /usr/sbin/run-crons && /usr/sbin/run-crons 
14
0  *  * * *	root	rm -f /var/spool/cron/lastrun/cron.hourly
15
0  3  * * *	root	rm -f /var/spool/cron/lastrun/cron.daily
16
15 4  * * 6	root	rm -f /var/spool/cron/lastrun/cron.weekly
17
30 5  1 * *	root	rm -f /var/spool/cron/lastrun/cron.monthly
18
19
# FreeBSD specific services
20
*/5     *       *       *       *       root    /usr/libexec/atrun
21
#
22
# Save some entropy so that /dev/random can re-seed on boot.
23
*/11    *       *       *       *       operator /usr/libexec/save-entropy
24
#
25
# Rotate log files every hour, if necessary.
26
0       *       *       *       *       root    newsyslog
27
#
28
# Perform daily/weekly/monthly maintenance.
29
# This makes useless cronbase provided things, but those is gentoo-related
30
# and instead this is fbsd related. When we'll move this to gentoo standard
31
# it will be better
32
1       3       *       *       *       root    periodic daily
33
15      4       *       *       6       root    periodic weekly
34
30      5       1       *       *       root    periodic monthly
35
#
36
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
37
# UTC time.  See adjkerntz(8) for details.
38
1,31    0-5     *       *       *       root    adjkerntz -a
(-)/root/overlay/sys-apps/freebsd-usbin/files/vixie-cron.rc6 (+27 lines)
Line 0 Link Here
1
diff -Npaur usr.sbin.orig/ntp/doc/Makefile usr.sbin/ntp/doc/Makefile
2
--- usr.sbin.orig/ntp/doc/Makefile	Thu Mar 10 21:57:57 2005
Line 0 Link Here
1
--- Makefile.orig	Mon Nov  8 23:26:31 2004
Line 0 Link Here
1
diff -Npaur usr.sbin.org/cron/cron/cron.8 usr.sbin/cron/cron/cron.8
2
--- usr.sbin.org/cron/cron/cron.8	Fri Mar 11 15:27:30 2005
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2004 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/vixie-cron.rc6,v 1.1 2005/03/04 23:59:48 ciaranm Exp $
5
6
depend() {
7
	use logger
8
	need localmount
9
	provide cron	
10
}
11
12
start() {
13
	ebegin "Starting vixie-cron"
14
	start-stop-daemon --start --quiet --exec /usr/sbin/cron
15
	eend $?
16
}
17
18
stop() {
19
	ebegin "Stopping vixie-cron"
20
	start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid
21
	eend $?
22
}
(-)/root/overlay/sys-apps/freebsd-usbin/freebsd-usbin-5.3-r1.ebuild (-31 / +61 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-projects/bsd/fbsd/overlay/sys-apps/freebsd-usbin/freebsd-usbin-5.3-r1.ebuild,v 1.1 2005/02/28 00:17:13 angusyoung Exp $
3
# $Header: /var/cvsroot/gentoo-projects/bsd/fbsd/overlay/sys-apps/freebsd-usbin/freebsd-usbin-5.3-r1.ebuild,v 1.1 2005/02/28 00:17:13 angusyoung Exp $
4
4
5
inherit freebsd-utils flag-o-matic eutils
5
inherit freebsd-utils flag-o-matic eutils cron
6
6
7
CONTRIB="freebsd-contrib-${PV}"
7
CONTRIB="freebsd-contrib-${PV}"
8
UBIN="freebsd-ubin-${PV}"
8
UBIN="freebsd-ubin-${PV}"
Lines 26-41 Link Here
26
LICENSE="BSD"
26
LICENSE="BSD"
27
SLOT="0"
27
SLOT="0"
28
KEYWORDS="~x86-fbsd"
28
KEYWORDS="~x86-fbsd"
29
IUSE=""
29
IUSE="atm bluetooth crypt ssl sendmail usb bind named dnssec bind-utils ipv6
30
	pf acpi lpr ipfilter"
30
DEPEND="=sys-devel/freebsd-mk-defs-5.3*
31
DEPEND="=sys-devel/freebsd-mk-defs-5.3*
31
	=sys-libs/freebsd-lib-5.3*
32
	=sys-libs/freebsd-lib-5.3*
32
	=sys-libs/freebsd-libexec-5.3*
33
	=sys-libs/freebsd-libexec-5.3*
33
	=sys-kernel/freebsd-sources-5.3*
34
	=sys-kernel/freebsd-sources-5.3*
34
	=sys-kernel/freebsd-headers-5.3*"
35
	=sys-kernel/freebsd-headers-5.3*
35
PROVIDE="virtual/cron"
36
	ssl? ( =sys-apps/freebsd-crypto-5.3* )
37
	sendmail? ( net-mail/mailbase )
38
	sys-process/cronbase"
39
PROVIDE="virtual/cron
40
	lpr? virtual/lpr
41
	sendmail? virtual/mta"
36
42
37
S=${WORKDIR}/usr.sbin
43
S=${WORKDIR}/usr.sbin
38
44
45
pkg_setup() {
46
	if ! use bind && ( use named || use dnssec || use bind-utils ); then
47
		eerror "Please enable bind if you want to use named, dnssec or bind-utils"
48
	fi	
49
50
	use atm || mymakeopts="${mymakeopts} NO_ATM= "
51
	use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
52
	use bind || mymakeopts="${mymakeopts} NO_BIND= "
53
	use dnssec || mymakeopts="${mymakeopts} NO_BIND_DNSSEC= "
54
	use named || mymakeopts="${mymakeopts} NO_BIND_NAMED= "
55
	use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
56
	use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
57
	use pf || mymakeopts="${mymakeopts} NO_PF= "
58
	use lpr || mymakeopts="${mymakeopts} NO_LPR= "
59
	use crypt || mymakeopts="${mymakeopts} NOCRYPT= "
60
	use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
61
	use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
62
	use usb || mymakeopts="${mymakeopts} NO_USB= "
63
	use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
64
}
65
39
src_unpack() {
66
src_unpack() {
40
	unpack ${P}.tar.bz2
67
	unpack ${P}.tar.bz2
41
	unpack ${CONTRIB}.tar.bz2
68
	unpack ${CONTRIB}.tar.bz2
Lines 92-103 Link Here
92
	# sandbox)
119
	# sandbox)
93
	cd ${S}/mailwrapper
120
	cd ${S}/mailwrapper
94
	epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
121
	epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
95
122
	
96
	# Installation related patches
97
	cd ${S}/nologin
98
	epatch ${FILESDIR}/${MY_PATCH}-nologin-makefile.patch
99
	cd ${S}/pcvt/keycap
123
	cd ${S}/pcvt/keycap
100
	epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
124
	epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
125
126
	cd ${S}
127
	epatch ${FILESDIR}/${P}-r1-makefile-docpaths.patch
128
	epatch ${FILESDIR}/${PN}-cron-gentoo-location.patch
101
}
129
}
102
130
103
src_compile() {
131
src_compile() {
Lines 107-141 Link Here
107
	replace-flags "-O?" "-O1"
135
	replace-flags "-O?" "-O1"
108
136
109
	einfo "Building library dependencies for this package"
137
	einfo "Building library dependencies for this package"
110
	cd ${WORKDIR}/lib/bind
138
	if use bind; then
111
	emake || die "emake libbind failed"
139
		cd ${WORKDIR}/lib/bind
112
	cd ${WORKDIR}/lib/libsm
140
		fmake || die "fmake libbind failed"
113
	emake || die "emake libsm failed"
141
	fi
114
	cd ${WORKDIR}/lib/libsmdb
142
	
115
	emake || die "emake libsmdb failed"
143
	if use sendmail; then
116
	cd ${WORKDIR}/lib/libsmutil
144
		cd ${WORKDIR}/lib/libsm
117
	emake || die "emake libsmdb failed"
145
		fmake || die "fmake libsm failed"
146
		cd ${WORKDIR}/lib/libsmdb
147
		fmake || die "fmake libsmdb failed"
148
		cd ${WORKDIR}/lib/libsmutil
149
		fmake || die "fmake libsmdb failed"
150
	fi
118
	
151
	
119
	einfo "Building package now"
152
	einfo "Building package now"
120
	cd ${S}
153
	cd ${S}
121
	emake || die "emake failed"
154
	fmake || die "fmake failed"
122
}
155
}
123
156
124
src_install() {	
157
src_install() {	
158
	docrondir
159
	newinitd ${FILESDIR}/vixie-cron.rc6 freebsd-cron
160
	insinto /etc; doins ${FILESDIR}/crontab
161
125
	# By creating these two directories we avoid having to do a 
162
	# By creating these two directories we avoid having to do a 
126
	# more complex hack inside lpr/SMM.doc and nologin makefiles.
163
	# more complex hack inside lpr/SMM.doc and nologin makefiles.
127
	dodir ${D}/usr/share/doc
164
	dodir /usr/share/doc
128
	dodir ${D}/sbin
165
	dodir /sbin
129
	emake DESTDIR=${D} install || die "Install failed"
166
	dodir /usr/libexec
130
	enforce_correct_path
167
131
}
168
	# FILESDIR is used by some makefiles which will install files
132
169
	# in the wrong place, just put it in the doc directory.
133
enforce_correct_path() {
170
	fmake DESTDIR=${D} DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
134
	local WRONG="local/sys-apps/freebsd-usbin/files/"
135
	local CORRECT="/usr/libexec/lpr/ru/"
136
137
	einfo "Correcting the path of files installed in an incorrect dir"
138
	mv ${D}/${PORTDIR}/${WRONG}/bjc-240.sh.sample ${D}/${CORRECT}
139
	rm -rf ${D}/${PORTDIR}
140
141
}
171
}

Return to bug 84908