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