1 |
cardoe 08/03/26 14:17:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openrc-0.2_pre20080326.ebuild |
5 |
Removed: openrc-0.2_pre20080325.ebuild |
6 |
Log: |
7 |
switched to proper branch for snapshot |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 sys-apps/openrc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 25 Mar 2008 16:01:59 -0000 1.2 |
24 |
+++ ChangeLog 26 Mar 2008 14:17:17 -0000 1.3 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-apps/openrc |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.2 2008/03/25 16:01:59 cardoe Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.3 2008/03/26 14:17:17 cardoe Exp $ |
30 |
+ |
31 |
+*openrc-0.2_pre20080326 (26 Mar 2008) |
32 |
+ |
33 |
+ 26 Mar 2008; Doug Goldstein <cardoe@g.o> |
34 |
+ -openrc-0.2_pre20080325.ebuild, +openrc-0.2_pre20080326.ebuild: |
35 |
+ switched to proper branch for snapshot |
36 |
|
37 |
*openrc-0.2_pre20080325 (25 Mar 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/openrc/openrc-0.2_pre20080326.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080326.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080326.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openrc-0.2_pre20080326.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080326.ebuild,v 1.1 2008/03/26 14:17:17 cardoe Exp $ |
52 |
|
53 |
inherit eutils flag-o-matic multilib toolchain-funcs |
54 |
|
55 |
DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" |
56 |
HOMEPAGE="http://roy.marples.name/openrc" |
57 |
#SRC_URI="http://roy.marples.name/${PN}/${P}.tar.bz2" |
58 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
59 |
http://dev.gentoo.org/~cardoe/files/${P}.tar.bz2" |
60 |
LICENSE="BSD-2" |
61 |
SLOT="0" |
62 |
#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
63 |
KEYWORDS="~amd64" |
64 |
IUSE="debug ncurses pam static unicode kernel_linux kernel_FreeBSD" |
65 |
|
66 |
RDEPEND="virtual/init |
67 |
kernel_linux? ( >=sys-apps/module-init-tools-3.2.2-r2 ) |
68 |
kernel_FreeBSD? ( sys-process/fuser-bsd ) |
69 |
ncurses? ( sys-libs/ncurses ) |
70 |
pam? ( virtual/pam ) |
71 |
>=sys-apps/baselayout-2.0.0 |
72 |
!<sys-fs/udev-118-r2" |
73 |
DEPEND="virtual/os-headers |
74 |
>=sys-apps/baselayout-2.0.0" |
75 |
|
76 |
S="${WORKDIR}/${PN}-0.2" |
77 |
|
78 |
pkg_setup() { |
79 |
LIBDIR="lib" |
80 |
[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
81 |
|
82 |
MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}" |
83 |
|
84 |
local brand="Unknown" |
85 |
if use kernel_linux ; then |
86 |
MAKE_ARGS="${MAKE_ARGS} OS=Linux" |
87 |
brand="Linux" |
88 |
elif use kernel_FreeBSD; then |
89 |
MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD SUBOS=BSD" |
90 |
brand="FreeBSD" |
91 |
fi |
92 |
|
93 |
export BRANDING="Gentoo ${brand}" |
94 |
export DEBUG=$(usev debug) |
95 |
export MKTERMCAP=$(usev ncurses) |
96 |
export MKPAM=$(use static || usev pam) |
97 |
|
98 |
if use static; then |
99 |
if use elibc_glibc; then |
100 |
export PROGLDFLAGS="-Wl,-Bstatic" |
101 |
else |
102 |
export PROGLDFLAGS="-static" |
103 |
fi |
104 |
fi |
105 |
|
106 |
if use pam && use static; then |
107 |
ewarn "OpenRC cannot be built statically with PAM" |
108 |
elog "not building PAM support" |
109 |
fi |
110 |
|
111 |
MAKE_ARGS="${MAKE_ARGS} CC=$(tc-getCC)" |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
emake ${MAKE_ARGS} || die "emake ${MAKE_ARGS} failed" |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
emake ${MAKE_ARGS} DESTDIR="${D}" install || die "make install failed" |
120 |
|
121 |
# Portage likes to remove our mount points for the state dir |
122 |
keepdir /"${LIBDIR}"/rc/init.d |
123 |
keepdir /"${LIBDIR}"/rc/tmp |
124 |
|
125 |
# Backup our default runlevels |
126 |
dodir /usr/share/"${PN}" |
127 |
mv "${D}/etc/runlevels" "${D}/usr/share/${PN}" |
128 |
|
129 |
# Setup unicode defaults for silly unicode users |
130 |
use unicode && sed -i -e '/^unicode=/s:NO:YES:' "${D}"/etc/rc.conf |
131 |
|
132 |
# Fix portage bitching |
133 |
gen_usr_ldscript libeinfo.so |
134 |
gen_usr_ldscript librc.so |
135 |
} |
136 |
|
137 |
pkg_preinst() { |
138 |
# upgrade timezone file |
139 |
if [ ! -e "${ROOT}"etc/timezone ] ; then |
140 |
( |
141 |
source "${ROOT}"etc/conf.d/clock |
142 |
[[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" > "${ROOT}"etc/timezone |
143 |
) |
144 |
fi |
145 |
|
146 |
# /etc/conf.d/clock moved to /etc/conf.d/hwclock |
147 |
mv "${ROOT}etc/conf.d/clock" "${ROOT}etc/conf.d/hwclock" |
148 |
|
149 |
# /etc/conf.d/rc is no longer used for configuration |
150 |
rm "${ROOT}etc/conf.d/rc" |
151 |
|
152 |
# skip remaining migration if we already have openrc installed |
153 |
has_version sys-apps/openrc && return 0 |
154 |
|
155 |
# baselayout bootmisc init script has been split out in OpenRC |
156 |
# so handle upgraders |
157 |
local x= xtra= |
158 |
use kernel_linux && xtra="${xtra} mtab procfs sysctl" |
159 |
use kernel_FreeBSD && xtra="${xtra} dumpon savecore" |
160 |
for x in fsck root swap ${xtra}; do |
161 |
[ -e "${ROOT}"etc/runlevels/boot/"${x}" ] && continue |
162 |
ln -snf /etc/init.d/"${x}" "${ROOT}"etc/runlevels/boot/"${x}" |
163 |
elog "Auto-adding ${x} service to boot runlevel" |
164 |
done |
165 |
|
166 |
# Upgrade out state for baselayout-1 users |
167 |
if [ ! -e "${ROOT}${LIBDIR}"/rc/init.d/started ]; then |
168 |
( |
169 |
[ -e "${ROOT}"etc/conf.d/rc ] && . "${ROOT}etc/conf.d/rc" |
170 |
svcdir=${svcdir:-/var/lib/init.d} |
171 |
if [ ! -d "${ROOT}${svcdir}/started" ]; then |
172 |
ewarn "No state found, and no state exists" |
173 |
elog "You should reboot this host" |
174 |
else |
175 |
mkdir -p "${ROOT}${LIBDIR}/rc/init.d" |
176 |
einfo "Moving state from ${ROOT}${svcdir} to ${ROOT}${LIBDIR}/rc/init.d" |
177 |
mv "${ROOT}${svcdir}"/* "${ROOT}${LIBDIR}"/rc/init.d |
178 |
rm -rf "${ROOT}${LIBDIR}"/rc/init.d/daemons \ |
179 |
"${ROOT}${LIBDIR}"/rc/init.d/console |
180 |
umount "${ROOT}${svcdir}" 2>/dev/null |
181 |
rm -rf "${ROOT}${svcdir}" |
182 |
fi |
183 |
) |
184 |
fi |
185 |
|
186 |
# Handle the /etc/modules.autoload.d -> /etc/conf.d/modules transition |
187 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
188 |
elog "Converting your /etc/modules.autoload.d/ files to /etc/conf.d/modules" |
189 |
rm -f "${ROOT}"/etc/modules.autoload.d/.keep* |
190 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
191 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
192 |
local f v |
193 |
for f in "${ROOT}"/etc/modules.autoload.d/* ; do |
194 |
v=${f##*/} |
195 |
v=${v#kernel-} |
196 |
v=${v//[^[:alnum:]]/_} |
197 |
gawk -v v="${v}" -v f="${f##*/}" ' |
198 |
BEGIN { print "\n### START: Auto-converted from " f "\n" } |
199 |
{ |
200 |
if ($0 ~ /^[^#]/) { |
201 |
print "modules_" v "=\"${modules_" v "} " $1 "\"" |
202 |
gsub(/[^[:alnum:]]/, "_", $1) |
203 |
printf "module_" $1 "_args_" v "=\"" |
204 |
for (i = 2; i <= NF; ++i) { |
205 |
if (i > 2) |
206 |
printf " " |
207 |
printf $i |
208 |
} |
209 |
print "\"\n" |
210 |
} else |
211 |
print |
212 |
} |
213 |
END { print "\n### END: Auto-converted from " f "\n" } |
214 |
' "${f}" >> "${D}"/etc/conf.d/modules |
215 |
done |
216 |
rm -f "${f}" |
217 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
218 |
fi |
219 |
fi |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
# Remove old baselayout links |
224 |
rm -f "${ROOT}"etc/runlevels/boot/{check{fs,root},rmnologin} |
225 |
|
226 |
# Make our runlevels if they don't exist |
227 |
if [ ! -e "${ROOT}"etc/runlevels ]; then |
228 |
einfo "Copying across default runlevels" |
229 |
cp -RPp "${ROOT}"usr/share/${PN}/runlevels "${ROOT}"/etc |
230 |
fi |
231 |
|
232 |
if [ -d "${ROOT}"etc/modules.autoload.d ]; then |
233 |
ewarn "${ROOT}etc/modules.autoload.d exists" |
234 |
ewarn "This has been deprecated in favour of /etc/conf.d/modules" |
235 |
fi |
236 |
|
237 |
elog "You should now update all files in /etc, using etc-update" |
238 |
elog "or equivalent before restarting any services or this host." |
239 |
} |
240 |
|
241 |
|
242 |
|
243 |
-- |
244 |
gentoo-commits@l.g.o mailing list |