1 |
cardoe 08/03/28 21:17:44 |
2 |
|
3 |
Modified: openrc-0.2-r2.ebuild |
4 |
Log: |
5 |
re-add Mike's changes I accidently dropped when rev bumpping |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 sys-apps/openrc/openrc-0.2-r2.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: openrc-0.2-r2.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- openrc-0.2-r2.ebuild 28 Mar 2008 20:11:39 -0000 1.1 |
22 |
+++ openrc-0.2-r2.ebuild 28 Mar 2008 21:17:44 -0000 1.2 |
23 |
@@ -1,6 +1,6 @@ |
24 |
# Copyright 1999-2008 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild,v 1.1 2008/03/28 20:11:39 cardoe Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2-r2.ebuild,v 1.2 2008/03/28 21:17:44 cardoe Exp $ |
28 |
|
29 |
inherit eutils flag-o-matic multilib toolchain-funcs |
30 |
|
31 |
@@ -21,7 +21,7 @@ |
32 |
LICENSE="BSD-2" |
33 |
SLOT="0" |
34 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc-fbsd ~x86" #"~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
35 |
-IUSE="debug ncurses pam static unicode kernel_linux kernel_FreeBSD" |
36 |
+IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD" |
37 |
|
38 |
RDEPEND="virtual/init |
39 |
kernel_linux? ( >=sys-apps/module-init-tools-3.2.2-r2 ) |
40 |
@@ -51,19 +51,17 @@ |
41 |
fi |
42 |
export BRANDING="Gentoo ${brand}" |
43 |
|
44 |
- export PROGLDFLAGS=$(use static && echo -static) |
45 |
export DEBUG=$(usev debug) |
46 |
- export MKPAM=$(use static || usev pam) |
47 |
+ export MKPAM=$(usev pam) |
48 |
export MKTERMCAP=$(usev ncurses) |
49 |
- |
50 |
- if use pam && use static ; then |
51 |
- ewarn "OpenRC cannot be built statically with PAM support," |
52 |
- ewarn "so PAM support has been disabled." |
53 |
- fi |
54 |
} |
55 |
|
56 |
src_unpack() { |
57 |
- unpack ${A} |
58 |
+ if [[ ${PV} == "9999" ]] ; then |
59 |
+ git_src_unpack |
60 |
+ else |
61 |
+ unpack ${A} |
62 |
+ fi |
63 |
cd "${S}" |
64 |
|
65 |
epatch "${FILESDIR}"/${PN}-0.2-freebsd-install-rc.patch |
66 |
@@ -108,6 +106,8 @@ |
67 |
} |
68 |
|
69 |
pkg_preinst() { |
70 |
+ local f |
71 |
+ |
72 |
# default net script is just comments, so no point in biting people |
73 |
# in the ass by accident |
74 |
[[ -e ${ROOT}/etc/conf.d/net ]] && rm -f "${D}"/etc/conf.d/net |
75 |
@@ -141,15 +141,24 @@ |
76 |
) |
77 |
fi |
78 |
|
79 |
+ # force net init.d scripts into symlinks |
80 |
+ for f in "${ROOT}"/etc/init.d/net.* ; do |
81 |
+ if [[ ! -L ${f} ]] ; then |
82 |
+ elog "Moved net service '${f##*/}' to '${f##*/}.openrc.bak' to force a symlink." |
83 |
+ elog "You should delete '${f##*/}.openrc.bak' if you don't need it." |
84 |
+ mv "${f}" "${f}.openrc.bak" |
85 |
+ ln -snf net.lo "${f}" |
86 |
+ fi |
87 |
+ done |
88 |
+ |
89 |
# skip remaining migration if we already have openrc installed |
90 |
has_version sys-apps/openrc && return 0 |
91 |
|
92 |
# baselayout boot init scripts have been split out |
93 |
- local x |
94 |
- for x in $(cd "${D}"/usr/share/${PN}/runlevels/boot || exit; echo *) ; do |
95 |
- [[ -e ${ROOT}/etc/runlevels/boot/${x} ]] && continue |
96 |
- elog "Auto-adding '${x}' service to your boot runlevel" |
97 |
- ln -snf /etc/init.d/${x} "${ROOT}"/etc/runlevels/boot/${x} |
98 |
+ for f in $(cd "${D}"/usr/share/${PN}/runlevels/boot || exit; echo *) ; do |
99 |
+ [[ -e ${ROOT}/etc/runlevels/boot/${f} ]] && continue |
100 |
+ elog "Auto-adding '${f}' service to your boot runlevel" |
101 |
+ ln -snf /etc/init.d/${f} "${ROOT}"/etc/runlevels/boot/${f} |
102 |
done |
103 |
|
104 |
# Upgrade out state for baselayout-1 users |
105 |
|
106 |
|
107 |
|
108 |
-- |
109 |
gentoo-commits@l.g.o mailing list |