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

(-)orig-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
(-)orig-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
}
(-)orig-overlay/sys-apps/freebsd-usbin/freebsd-usbin-5.3-r1.ebuild (-31 / +73 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 SRC_URI="${BASE_SRC_URI}${P}.tar.bz2 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 isdn pam ssl radius netgraph minimal suid ipsec"
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
	# Release crunch is something like minimal. It seems to remove everything
51
	# which is not needed to work.
52
	use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
53
			
54
	use atm || mymakeopts="${mymakeopts} NO_ATM= "
55
	use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
56
	use bind || mymakeopts="${mymakeopts} NO_BIND= "
57
	use dnssec || mymakeopts="${mymakeopts} NO_BIND_DNSSEC= "
58
	use named || mymakeopts="${mymakeopts} NO_BIND_NAMED= "
59
	use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
60
	use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
61
	use pf || mymakeopts="${mymakeopts} NO_PF= "
62
	use lpr || mymakeopts="${mymakeopts} NO_LPR= "
63
	use crypt || mymakeopts="${mymakeopts} NOCRYPT= "
64
	use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
65
	use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
66
	use usb || mymakeopts="${mymakeopts} NO_USB= "
67
	use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
68
	use isdn || mymakeopts="${mymakeopts} NO_I4B= "
69
	use pam || mymakeopts="${mymakeopts} NOPAM= "
70
	use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
71
	use radius || mymakeopts="${mymakeopts} NORADIUS= "
72
	use suid || mymakeopts="${mymakeopts} NOSUID= "
73
	use ipsec || mymakeopts="${mymakeopts} NOIPSEC= "
74
}
75
39
src_unpack() {
76
src_unpack() {
40
	unpack ${P}.tar.bz2
77
	unpack ${P}.tar.bz2
41
	unpack ${CONTRIB}.tar.bz2
78
	unpack ${CONTRIB}.tar.bz2
Lines 92-103 src_unpack() { Link Here
92
	# sandbox)
129
	# sandbox)
93
	cd ${S}/mailwrapper
130
	cd ${S}/mailwrapper
94
	epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
131
	epatch ${FILESDIR}/${MY_PATCH}-mailwrapper-makefile.patch
95
132
	
96
	# Installation related patches
97
	cd ${S}/nologin
98
	epatch ${FILESDIR}/${MY_PATCH}-nologin-makefile.patch
99
	cd ${S}/pcvt/keycap
133
	cd ${S}/pcvt/keycap
100
	epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
134
	epatch ${FILESDIR}/${MY_PATCH}-pcvt_keycap-makefile.patch
135
136
	cd ${S}
137
	epatch ${FILESDIR}/${P}-r1-makefile-docpaths.patch
138
	epatch ${FILESDIR}/${PN}-cron-gentoo-location.patch
101
}
139
}
102
140
103
src_compile() {
141
src_compile() {
Lines 106-141 src_compile() { Link Here
106
	# kldxref does not build with -O2
144
	# kldxref does not build with -O2
107
	replace-flags "-O?" "-O1"
145
	replace-flags "-O?" "-O1"
108
146
147
	append-ldflags -z,now
148
109
	einfo "Building library dependencies for this package"
149
	einfo "Building library dependencies for this package"
110
	cd ${WORKDIR}/lib/bind
150
	if use bind; then
111
	emake || die "emake libbind failed"
151
		cd ${WORKDIR}/lib/bind
112
	cd ${WORKDIR}/lib/libsm
152
		fmake || die "fmake libbind failed"
113
	emake || die "emake libsm failed"
153
	fi
114
	cd ${WORKDIR}/lib/libsmdb
154
	
115
	emake || die "emake libsmdb failed"
155
	if use sendmail; then
116
	cd ${WORKDIR}/lib/libsmutil
156
		cd ${WORKDIR}/lib/libsm
117
	emake || die "emake libsmdb failed"
157
		fmake || die "fmake libsm failed"
158
		cd ${WORKDIR}/lib/libsmdb
159
		fmake || die "fmake libsmdb failed"
160
		cd ${WORKDIR}/lib/libsmutil
161
		fmake || die "fmake libsmdb failed"
162
	fi
118
	
163
	
119
	einfo "Building package now"
164
	einfo "Building package now"
120
	cd ${S}
165
	cd ${S}
121
	emake || die "emake failed"
166
	fmake || die "fmake failed"
122
}
167
}
123
168
124
src_install() {	
169
src_install() {	
170
	docrondir
171
	newinitd ${FILESDIR}/vixie-cron.rc6 freebsd-cron
172
	insinto /etc; doins ${FILESDIR}/crontab
173
125
	# By creating these two directories we avoid having to do a 
174
	# By creating these two directories we avoid having to do a 
126
	# more complex hack inside lpr/SMM.doc and nologin makefiles.
175
	# more complex hack inside lpr/SMM.doc and nologin makefiles.
127
	dodir ${D}/usr/share/doc
176
	dodir /usr/share/doc
128
	dodir ${D}/sbin
177
	dodir /sbin
129
	emake DESTDIR=${D} install || die "Install failed"
178
	dodir /usr/libexec
130
	enforce_correct_path
179
131
}
180
	# FILESDIR is used by some makefiles which will install files
132
181
	# in the wrong place, just put it in the doc directory.
133
enforce_correct_path() {
182
	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
}
183
}

Return to bug 84908