1 |
vapier 08/03/23 00:03:21 |
2 |
|
3 |
Added: openrc-9999.ebuild metadata.xml Manifest ChangeLog |
4 |
Log: |
5 |
Initial ebuild #212696. |
6 |
(Portage version: 2.2_pre5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/openrc/openrc-9999.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: openrc-9999.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.1 2008/03/23 00:03:21 vapier Exp $ |
19 |
|
20 |
inherit eutils flag-o-matic multilib toolchain-funcs |
21 |
|
22 |
if [[ ${PV} == "9999" ]] ; then |
23 |
inherit git |
24 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/openrc.git" |
25 |
else |
26 |
SRC_URI="http://roy.marples.name/${PN}/${P}.tar.bz2" |
27 |
fi |
28 |
|
29 |
DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" |
30 |
HOMEPAGE="http://roy.marples.name/openrc" |
31 |
|
32 |
LICENSE="BSD-2" |
33 |
SLOT="0" |
34 |
KEYWORDS="" #"~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
35 |
IUSE="debug ncurses pam static unicode kernel_linux kernel_FreeBSD" |
36 |
|
37 |
RDEPEND="virtual/init |
38 |
kernel_linux? ( >=sys-apps/module-init-tools-3.2.2-r2 ) |
39 |
kernel_FreeBSD? ( sys-process/fuser-bsd ) |
40 |
ncurses? ( sys-libs/ncurses ) |
41 |
pam? ( virtual/pam ) |
42 |
>=sys-apps/baselayout-2.0.0 |
43 |
!<sys-fs/udev-118-r2" |
44 |
DEPEND="${RDEPEND} |
45 |
virtual/os-headers" |
46 |
|
47 |
pkg_setup() { |
48 |
LIBDIR="lib" |
49 |
[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
50 |
|
51 |
MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}" |
52 |
local brand="Unknown" |
53 |
if use kernel_linux ; then |
54 |
MAKE_ARGS="${MAKE_ARGS} OS=Linux" |
55 |
brand="Linux" |
56 |
elif use kernel_FreeBSD ; then |
57 |
MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD SUBOS=BSD" |
58 |
brand="FreeBSD" |
59 |
fi |
60 |
export BRANDING="Gentoo ${brand}" |
61 |
|
62 |
export PROGLDFLAGS=$(use static && echo -static) |
63 |
export DEBUG=$(usev debug) |
64 |
export MKPAM=$(use static || usev pam) |
65 |
export MKTERMCAP=$(usev ncurses) |
66 |
|
67 |
if use pam && use static ; then |
68 |
ewarn "OpenRC cannot be built statically with PAM support," |
69 |
ewarn "so PAM support has been disabled." |
70 |
fi |
71 |
} |
72 |
|
73 |
src_compile() { |
74 |
tc-export CC AR RANLIB |
75 |
emake ${MAKE_ARGS} || die |
76 |
} |
77 |
|
78 |
src_install() { |
79 |
emake ${MAKE_ARGS} DESTDIR="${D}" install || die |
80 |
gen_usr_ldscript libeinfo.so |
81 |
gen_usr_ldscript librc.so |
82 |
|
83 |
keepdir /"${LIBDIR}"/rc/init.d |
84 |
keepdir /"${LIBDIR}"/rc/tmp |
85 |
|
86 |
# Backup our default runlevels |
87 |
dodir /usr/share/"${PN}" |
88 |
mv "${D}/etc/runlevels" "${D}/usr/share/${PN}" |
89 |
|
90 |
# Setup unicode defaults for silly unicode users |
91 |
use unicode && sed -i -e '/^unicode=/s:NO:YES:' "${D}"/etc/rc.conf |
92 |
|
93 |
# Cater to the norm |
94 |
(use x86 || use amd64) && sed -i -e '/^windowkeys=/s:NO:YES:' "${D}"/etc/conf.d/keymaps |
95 |
} |
96 |
|
97 |
pkg_preinst() { |
98 |
# default net script is just comments, so no point in biting people |
99 |
# in the ass by accident |
100 |
[[ -e ${ROOT}/etc/conf.d/net ]] && rm -f "${D}"/etc/conf.d/net |
101 |
|
102 |
has_version sys-apps/openrc || return 0 |
103 |
|
104 |
# upgrade timezone file |
105 |
if [[ ! -e ${ROOT}/etc/timezone ]] ; then |
106 |
( |
107 |
source "${ROOT}"/etc/conf.d/timezone |
108 |
[[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" > "${ROOT}"/etc/timezone |
109 |
) |
110 |
fi |
111 |
|
112 |
# baselayout bootmisc init script has been split out in OpenRC |
113 |
# so handle upgraders |
114 |
local x= xtra= |
115 |
use kernel_linux && xtra="${xtra} mtab procfs sysctl" |
116 |
use kernel_FreeBSD && xtra="${xtra} dumpon savecore" |
117 |
for x in fsck root swap ${xtra} ; do |
118 |
[[ -e ${ROOT}/etc/runlevels/boot/${x} ]] && continue |
119 |
ln -snf /etc/init.d/${x} "${ROOT}"/etc/runlevels/boot/${x} |
120 |
done |
121 |
|
122 |
# Upgrade out state for baselayout-1 users |
123 |
if [[ ! -e ${ROOT}${LIBDIR}/rc/init.d/started ]] ; then |
124 |
( |
125 |
[[ -e ${ROOT}/etc/conf.d/rc ]] && source "${ROOT}"/etc/conf.d/rc |
126 |
svcdir=${svcdir:-/var/lib/init.d} |
127 |
if [[ ! -d ${ROOT}${svcdir}/started ]] ; then |
128 |
ewarn "No state found, and no state exists" |
129 |
elog "You should reboot this host" |
130 |
else |
131 |
einfo "Moving state from ${ROOT}${svcdir} to ${ROOT}${LIBDIR}/rc/init.d" |
132 |
mv "${ROOT}${svcdir}"/* "${ROOT}${LIBDIR}"/rc/init.d |
133 |
rm -rf "${ROOT}${LIBDIR}"/rc/init.d/daemons \ |
134 |
"${ROOT}${LIBDIR}"/rc/init.d/console |
135 |
umount "${ROOT}${svcdir}" 2>/dev/null |
136 |
rm -rf "${ROOT}${svcdir}" |
137 |
fi |
138 |
) |
139 |
fi |
140 |
|
141 |
# Handle the /etc/modules.autoload.d -> /etc/conf.d/modules transition |
142 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
143 |
elog "Converting your /etc/modules.autoload.d/ files to /etc/conf.d/modules" |
144 |
rm -f "${ROOT}"/etc/modules.autoload.d/.keep* |
145 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
146 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
147 |
local f v |
148 |
for f in "${ROOT}"/etc/modules.autoload.d/* ; do |
149 |
v=${f##*/} |
150 |
v=${v#kernel-} |
151 |
v=${v//[^[:alnum:]]/_} |
152 |
( |
153 |
printf "\n### START: Auto-converted from ${f##*/}\n\n" |
154 |
sed \ |
155 |
-e "/^[^#]/s:^\(.*\)$:modules_${v}=\"\${modules_${v}} \1\":" \ |
156 |
"${f}" |
157 |
printf "\n### END: Auto-converted from ${f##*/}\n\n" |
158 |
) >> "${D}"/etc/conf.d/modules |
159 |
rm -f "${f}" |
160 |
done |
161 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
162 |
fi |
163 |
fi |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
# Remove old baselayout links |
168 |
rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin} |
169 |
|
170 |
# Make our runlevels if they don't exist |
171 |
if [[ ! -e ${ROOT}/etc/runlevels ]] ; then |
172 |
einfo "Copying across default runlevels" |
173 |
cp -RPp "${ROOT}"/usr/share/${PN}/runlevels "${ROOT}"/etc |
174 |
fi |
175 |
|
176 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
177 |
ewarn "/etc/modules.autoload.d is no longer used. Please convert" |
178 |
ewarn "your files to /etc/conf.d/modules and delete the directory." |
179 |
fi |
180 |
|
181 |
elog "You should now update all files in /etc, using etc-update" |
182 |
elog "or equivalent before restarting any services or this host." |
183 |
} |
184 |
|
185 |
|
186 |
|
187 |
1.1 sys-apps/openrc/metadata.xml |
188 |
|
189 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/metadata.xml?rev=1.1&view=markup |
190 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/metadata.xml?rev=1.1&content-type=text/plain |
191 |
|
192 |
Index: metadata.xml |
193 |
=================================================================== |
194 |
<?xml version="1.0" encoding="UTF-8"?> |
195 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
196 |
<pkgmetadata> |
197 |
<herd>base-system</herd> |
198 |
</pkgmetadata> |
199 |
|
200 |
|
201 |
|
202 |
1.1 sys-apps/openrc/Manifest |
203 |
|
204 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/Manifest?rev=1.1&view=markup |
205 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/Manifest?rev=1.1&content-type=text/plain |
206 |
|
207 |
Index: Manifest |
208 |
=================================================================== |
209 |
EBUILD openrc-9999.ebuild 5113 RMD160 3be3ec287a30134e222bf8e32c628bb1ad74fc46 SHA1 e880e26d3c5d3f9d40e59bcfe3e4c858fde40984 SHA256 c1795c4ac5403095260c908817f5920a5d93d97c44a5a748b7f9a814524f5f51 |
210 |
MISC ChangeLog 259 RMD160 e5bccaf060de8eb7fdc1d5137911f43c2b1cfe12 SHA1 ba0fa771854d64e14f4adceb2868be0225c11edc SHA256 cb8c5a810326aa00cc12ee938a69d43aa2b8b55dfac002c9a6cb88ff0a7beb85 |
211 |
MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 |
212 |
|
213 |
|
214 |
|
215 |
1.1 sys-apps/openrc/ChangeLog |
216 |
|
217 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.1&view=markup |
218 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.1&content-type=text/plain |
219 |
|
220 |
Index: ChangeLog |
221 |
=================================================================== |
222 |
# ChangeLog for sys-apps/openrc |
223 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
224 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.1 2008/03/23 00:03:21 vapier Exp $ |
225 |
|
226 |
*openrc-9999 (23 Mar 2008) |
227 |
|
228 |
23 Mar 2008; Mike Frysinger <vapier@g.o> +metadata.xml, |
229 |
+openrc-9999.ebuild: |
230 |
Initial ebuild #212696. |
231 |
|
232 |
|
233 |
|
234 |
|
235 |
-- |
236 |
gentoo-commits@l.g.o mailing list |