Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FL-129: fix perms on /etc/netif.d

  • Loading branch information...
commit b81395ad35600e4e0d62afe9ed2fe45edc2c5d8c 1 parent fd6915b
Daniel Robbins authored October 10, 2012
11  sys-apps/openrc/Manifest
... ...
@@ -1,9 +1,2 @@
1  
-DIST corenetwork-1.2.tar.gz 12839 SHA256 9f4e1f52f42e345a9931270704b61ddb62efe00c169a84b04495516457e04284
2  
-DIST corenetwork-1.3-r1.tar.gz 13391 SHA256 d53f572c8d9c10994f6e149d1937a76e4ffe3ce35b3928cc01cd21912c9cdf93
3  
-DIST corenetwork-1.3-r2.tar.gz 13405 SHA256 5ed666055eb9a3371abd135b8cb7780c2ff61233950d82af411c2b6030b71749 SHA512 a4adab27b375ef0539752ed93a435c65b6e97af32dafd33f45713ede378c16a6460d17d48c1faf1dd3bb3b64e89320b67bf378e14fa7c987c0239e2f5e57057f WHIRLPOOL 74b13be415c10fddfc35e050ce328508f2dcd2d0faa35b3d6c4b7c56b3521e6555b17fa57ad2e0c449cdf187b9f1a28fdf3359d414b8330ff23523dd6a2c3c39
4  
-DIST corenetwork-1.3.1-r1.tar.gz 13514 SHA256 8a6512b9533d02e2b84b0e553069eb026968123993a1c913a1a73d4857c5ab77 SHA512 0114eb3346dd0f6396fcba743e43ea94e735584fd8141ebf01c6a63ca1cf07f74a747e1a3ca421088c124ff2223cf445e8eb37643a9c9179b61f14f1001b3c98 WHIRLPOOL f0b0cd2988830731996fb8abf14eea1baf485d7f0497f0082ebbdd31566c9ee575f8d4e005fd7dc86ab9156c47042e1e67de3c90f93cf3f6e647aa6c3da52d35
5  
-DIST corenetwork-1.3.1.tar.gz 13477 SHA256 4b67d3c762351f12d97ac683625a4e4f1470100ece5f065b24159938c6d9bde5 SHA512 3e24c11748ef3c977bfaab89ad9a3dd9e13df12e7884a646e2a7547d886ff778eee2b5da0356871907636ee72ac6d06f784a49ef412742fda59294fe308146be WHIRLPOOL d881cda7c6ca97d3445ca00ceb077cbb4d89788b5c758a90549e6efd0acc13cd6d5d452b8e861ff15a848155b846b863fe019fea86f3576ef45b0039403c8485
6  
-DIST corenetwork-1.3.tar.gz 13321 SHA256 e77e67d1e143ab977b6a46aa12a0005f177393be4d3fbe825d1a8f05697fb38a
7  
-DIST openrc-funtoo-openrc-0.10.2-r4.tar.gz 214794 SHA256 f134da20ea689b4fff938a47177528ee40bb56c96d40deeffd5c6fdf86da898d SHA512 ff299e99e3ddca625948967a718be929cdf43ce068f8c3b52f8ba5cc3c86a55e8689ea1acb759c8e6ff24fc2e459dfbc865f7b45baaf849fb4f1bb0123b5dccc WHIRLPOOL 5821707a7c4c39a5c10f1d32079abbae1813dd2ee2d92c02aa984e539cc74bc4edb7c5b6e53d75185d2e765cf938b1870f0808b4a6bcab12247592324d874621
8  
-DIST openrc-funtoo-openrc-0.10.tar.gz 214391 SHA256 2aa36866f9e176988619be08a6d78770d30c406f4b1ea55dc912d7ee453b2cf3 SHA512 896b7207748bd7bdfbdc45cad15a914dbfe6a9cb77154cefea725ab44dc63e63ec00a383c5ad9559f0267954f19fb15bb68dadd6c7bfd85545edfd1abcb104e8 WHIRLPOOL 486b8e8a9e39e2dc2ef05062b68b1e226e483572ee87111087ee4a886e2062c01c6b606933c5d04115e8d30c0e8674125d675555736cbdbc662bbfb3d9aaa413
9  
-DIST openrc-funtoo-openrc-0.8.3.tar.gz 203837 SHA256 a410ecff9971ec9d89c8dbfd50fa299da17bde63912e1e9392be53daf22d448c SHA512 c01d80010a4fee8965886e46c72ddb546f2bc18bcb8b95074bb3893802820d1d9a39a85dc9f128d6faf77b473c3cab119055522d07b7c1d037a6c26a89d1ba6f WHIRLPOOL 6ce229b13d69b3c6010e5825c91a80d384db13667d8d1d316be5731f2b6a46843b68141d6b33fd2c3c6420a279e5b611de329efbddb91abb496aac736502e447
  1
+DIST corenetwork-1.3.1-r1.tar.gz 13514 RMD160 1cadcf477526505caa38988aaa1f23fde0125b16 SHA1 4720fc0b01f673627331d984b48e6f64c74120f8 SHA256 8a6512b9533d02e2b84b0e553069eb026968123993a1c913a1a73d4857c5ab77
  2
+DIST openrc-funtoo-openrc-0.10.2-r4.tar.gz 214794 RMD160 7377ac088829b5e914b02be22880dd04d100b7ee SHA1 6993d1e349643f30e3a040df871fa703e0f4c45c SHA256 f134da20ea689b4fff938a47177528ee40bb56c96d40deeffd5c6fdf86da898d
10  sys-apps/openrc/openrc-0.10.2-r4.ebuild → sys-apps/openrc/openrc-0.10.2-r6.ebuild
@@ -28,7 +28,7 @@ GITHUB_REPO="${PN}"
28 28
 GITHUB_USER="funtoo"
29 29
 GITHUB_TAG="funtoo-openrc-0.10.2-r4"
30 30
 
31  
-NETV="1.3.1"
  31
+NETV="1.3.1-r1"
32 32
 GITHUB_REPO_CN="corenetwork"
33 33
 GITHUB_TAG_CN="$NETV"
34 34
 
@@ -159,9 +159,9 @@ src_install() {
159 159
 	doexe init.d/{netif.tmpl,netif.lo} || die
160 160
 	cp -a netif.d ${D}/etc || die
161 161
 	chown -R root:root ${D}/etc/netif.d || die
162  
-	chmod -R 0644 ${D}/etc/netif.d || die
  162
+	chmod 0755 ${D}/etc/netif.d || die
  163
+	chmod -R 0644 ${D}/etc/netif.d/* || die
163 164
 	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
164  
-
165 165
 }
166 166
 
167 167
 add_init() {
@@ -220,11 +220,13 @@ pkg_postinst() {
220 220
 		done
221 221
 	done
222 222
 
  223
+	chmod +x ${ROOT}/etc/netif.d
  224
+
223 225
 	# OTHER STUFF
224 226
 	# ===========
225 227
 
226 228
 	# update the dependency tree bug #224171
227  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
  229
+	[[ "${ROOT}" = "/" ]] && "${ROOT}/$(get_libdir)"/rc/bin/rc-depend -u
228 230
 
229 231
 	elog "You should now update all files in /etc, using etc-update"
230 232
 	elog "or equivalent before rebooting."
240  sys-apps/openrc/openrc-0.10.2.ebuild
... ...
@@ -1,240 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="4"
4  
-
5  
-inherit eutils flag-o-matic multilib pam toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="mirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="~*"
15  
-IUSE="debug elibc_glibc ncurses pam selinux static-libs unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.2
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.10"
30  
-
31  
-NETV="1.3-r2"
32  
-GITHUB_REPO_CN="corenetwork"
33  
-GITHUB_TAG_CN="$NETV"
34  
-
35  
-SRC_URI="
36  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz
37  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO_CN}/tarball/${GITHUB_TAG_CN} -> corenetwork-${NETV}.tar.gz
38  
-	"
39  
-
40  
-make_args() {
41  
-	unset LIBDIR #266688
42  
-
43  
-	MAKE_ARGS="${MAKE_ARGS} LIBNAME=$(get_libdir) LIBEXECDIR=/$(get_libdir)/rc"
44  
-
45  
-	local brand="Unknown"
46  
-	if use kernel_linux ; then
47  
-		MAKE_ARGS="${MAKE_ARGS} OS=Linux"
48  
-		brand="Linux"
49  
-	elif use kernel_FreeBSD ; then
50  
-		MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
51  
-		brand="FreeBSD"
52  
-	fi
53  
-	if use selinux; then
54  
-			MAKE_ARGS="${MAKE_ARGS} MKSELINUX=yes"
55  
-	fi
56  
-	export BRANDING="Funtoo ${brand}"
57  
-	if ! use static-libs; then
58  
-			MAKE_ARGS="${MAKE_ARGS} MKSTATICLIBS=no"
59  
-	fi
60  
-}
61  
-
62  
-pkg_setup() {
63  
-	export DEBUG=$(usev debug)
64  
-	export MKPAM=$(usev pam)
65  
-	export MKTERMCAP=$(usev ncurses)
66  
-}
67  
-
68  
-src_unpack() {
69  
-	unpack $A
70  
-	# rename github directories to the names we're expecting:
71  
-	local old=${WORKDIR}/${GITHUB_USER}-${PN}-*
72  
-	mv $old "${WORKDIR}/${P}" || die "move fail 1"
73  
-	old="${WORKDIR}/${GITHUB_USER}-corenetwork-*"
74  
-	mv $old "${WORKDIR}/corenetwork-${NETV}" || die "move fail 2"
75  
-}
76  
-
77  
-src_prepare() {
78  
-	sed -i 's:0444:0644:' mk/sys.mk || die
79  
-	sed -i "/^DIR/s:/openrc:/${PF}:" doc/Makefile || die #241342
80  
-
81  
-	if [[ ${PV} == "9999" ]] ; then
82  
-		local ver="git-${EGIT_VERSION:0:6}"
83  
-		sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
84  
-	fi
85  
-}
86  
-src_compile() {
87  
-	make_args
88  
-
89  
-	tc-export CC AR RANLIB
90  
-	emake ${MAKE_ARGS}
91  
-}
92  
-
93  
-# set_config <file> <option name> <yes value> <no value> test
94  
-# a value of "#" will just comment out the option
95  
-set_config() {
96  
-	local file="${D}/$1" var=$2 val com
97  
-	eval "${@:5}" && val=$3 || val=$4
98  
-	[[ ${val} == "#" ]] && com="#" && val='\2'
99  
-	sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
100  
-}
101  
-
102  
-set_config_yes_no() {
103  
-	set_config "$1" "$2" YES NO "${@:3}"
104  
-}
105  
-
106  
-src_install() {
107  
-	make_args
108  
-	emake ${MAKE_ARGS} DESTDIR="${D}" install
109  
-
110  
-	# move the shared libs back to /usr so ldscript can install
111  
-	# more of a minimal set of files
112  
-	# disabled for now due to #270646
113  
-	#mv "${D}"/$(get_libdir)/lib{einfo,rc}* "${D}"/usr/$(get_libdir)/ || die
114  
-	#gen_usr_ldscript -a einfo rc
115  
-	gen_usr_ldscript libeinfo.so
116  
-	gen_usr_ldscript librc.so
117  
-
118  
-	if ! use kernel_linux; then
119  
-		keepdir /$(get_libdir)/rc/init.d
120  
-	fi
121  
-	keepdir /$(get_libdir)/rc/tmp
122  
-
123  
-	# Backup our default runlevels
124  
-	dodir /usr/share/"${PN}"
125  
-	cp -PR "${D}"/etc/runlevels "${D}"/usr/share/${PN} || die
126  
-	rm -rf "${D}"/etc/runlevels
127  
-
128  
-	# Setup unicode defaults for silly unicode users
129  
-	set_config_yes_no /etc/rc.conf unicode use unicode
130  
-
131  
-	# Cater to the norm
132  
-	set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
133  
-
134  
-	# On HPPA, do not run consolefont by default (bug #222889)
135  
-	if use hppa; then
136  
-		rm -f "${D}"/usr/share/openrc/runlevels/boot/consolefont
137  
-	fi
138  
-
139  
-	# Support for logfile rotation
140  
-	insinto /etc/logrotate.d
141  
-	newins "${FILESDIR}"/openrc.logrotate openrc
142  
-
143  
-	# install the gentoo pam.d file
144  
-	newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
145  
-
146  
-	# Remove upstream networking parts:
147  
-
148  
-	for pat in ${D}/etc/init.d/{net.lo,network,staticroute} \
149  
-	${D}/usr/share/openrc/runlevels/boot/{net.lo,network,staticroute} \
150  
-	${D}/etc/conf.d/{net,network,staticroute}; do
151  
-		rm -f "$pat" || die "Couldn't remove upstream $pat from source."
152  
-	done
153  
-
154  
-	# Install funtoo networking parts:
155  
-
156  
-	cd ${WORKDIR}/corenetwork-${NETV} || die
157  
-	dodoc docs/index.rst || die
158  
-	exeinto /etc/init.d || die
159  
-	doexe init.d/{netif.tmpl,netif.lo} || die
160  
-	cp -a netif.d ${D}/etc || die
161  
-	chown -R root:root ${D}/etc/netif.d || die
162  
-	chmod -R 0644 ${D}/etc/netif.d || die
163  
-	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
164  
-
165  
-}
166  
-
167  
-add_init() {
168  
-	local runl=$1
169  
-	shift
170  
-	if [ ! -e ${ROOT}/etc/runlevels/${runl} ]
171  
-	then
172  
-		install -d -m0755 ${ROOT}/etc/runlevels/${runl}
173  
-	fi
174  
-	for initd in $*
175  
-	do
176  
-		[[ -e ${ROOT}/etc/runlevels/${runl}/${initd} ]] && continue
177  
-		elog "Auto-adding '${initd}' service to your ${runl} runlevel"
178  
-		ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runl}/${initd}
179  
-	done
180  
-}
181  
-
182  
-pkg_postinst() {
183  
-	local runl
184  
-	install -d -m0755 ${ROOT}/etc/runlevels
185  
-	local runldir="${ROOT}usr/share/openrc/runlevels"
186  
-
187  
-	# Remove old baselayout links
188  
-	rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin}
189  
-	rm -f "${ROOT}"/etc/init.d/{depscan,runscript}.sh
190  
-	rm -f "${ROOT}"/etc/runlevels/boot/netif.lo
191  
-
192  
-	# CREATE RUNLEVEL DIRECTORIES	
193  
-	# ===========================
194  
-
195  
-	# To ensure proper system operation, this portion of the script ensures that
196  
-	# all of OpenRC's default initscripts in all runlevels are properly
197  
-	# installed.
198  
-
199  
-	for runl in $( cd "$runldir"; echo * )
200  
-	do
201  
-		einfo "Processing $runl..."
202  
-		einfo "Ensuring runlevel $runl has all required scripts..."
203  
-		add_init $runl $( cd "$runldir/$runl"; echo * )
204  
-	done
205  
-
206  
-	# Rather than try to migrate everyone using complex scripts, simply print
207  
-	# names of initscripts that are in the user's runlevels but not provided by
208  
-	# OpenRC. This loop can be upgraded to look for particular scripts that
209  
-	# might have come from baselayout.
210  
-
211  
-	for runl in $( cd ${ROOT}/etc/runlevels; echo * )
212  
-	do
213  
-		[ ! -d ${runldir}/${runl} ] && continue
214  
-		for init in $( cd "$runldir/$runl"; echo * )
215  
-		do
216  
-			if [ -e ${ROOT}/etc/runlevels/${runl}/${init} ] && [ ! -e ${runldir}/${runl}/${init} ]
217  
-			then
218  
-				echo "Initscript ${init} exists in runlevel ${runl} but not in OpenRC."
219  
-			fi
220  
-		done
221  
-	done
222  
-
223  
-	# OTHER STUFF
224  
-	# ===========
225  
-
226  
-	# update the dependency tree bug #224171
227  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
228  
-
229  
-	elog "You should now update all files in /etc, using etc-update"
230  
-	elog "or equivalent before rebooting."
231  
-	elog
232  
-
233  
-	if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
234  
-		ewarn "/etc/conf.d/local.{start,stop} are deprecated.  Please convert"
235  
-		ewarn "your files to /etc/conf.d/local and delete the files."
236  
-	fi
237  
-
238  
-	ewarn "Make sure that correct symlink exist"
239  
-	ewarn "Re-establish it by ln -s /etc/init.d/netif.tmpl /etc/init.d/netif.ethX"
240  
-}
192  sys-apps/openrc/openrc-0.8.3-r3.ebuild
... ...
@@ -1,192 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="2"
4  
-
5  
-inherit eutils flag-o-matic multilib toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="nomirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="x86 amd64 sparc"
15  
-IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.1
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.8.3"
30  
-
31  
-NETV="1.2"
32  
-GITHUB_REPO_CN="corenetwork"
33  
-GITHUB_TAG_CN="$NETV"
34  
-
35  
-SRC_URI="
36  
-	http://www.funtoo.org/distfiles/${PN}-${GITHUB_TAG}.tar.gz
37  
-	http://www.funtoo.org/distfiles/corenetwork-${GITHUB_TAG_CN}.tar.gz
38  
-	"
39  
-
40  
-pkg_setup() {
41  
-	LIBDIR="lib"
42  
-	[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}")
43  
-
44  
-	MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}"
45  
-
46  
-	local brand="Unknown"
47  
-	if use kernel_linux ; then
48  
-		MAKE_ARGS="${MAKE_ARGS} OS=Linux"
49  
-		brand="Linux"
50  
-	elif use kernel_FreeBSD ; then
51  
-		MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
52  
-		brand="FreeBSD"
53  
-	fi
54  
-	export BRANDING="Funtoo ${brand}"
55  
-
56  
-	export DEBUG=$(usev debug)
57  
-	export MKPAM=$(usev pam)
58  
-	export MKTERMCAP=$(usev ncurses)
59  
-}
60  
-
61  
-pre_src_prepare() {
62  
-	# rename github directories to the names we're expecting:
63  
-	local old=${WORKDIR}/${GITHUB_USER}-${PN}-*
64  
-	mv $old "${WORKDIR}/${P}" || die "move fail 1"
65  
-	old="${WORKDIR}/${GITHUB_USER}-corenetwork-*"
66  
-	mv $old "${WORKDIR}/corenetwork-${NETV}" || die "move fail 2"
67  
-}
68  
-
69  
-src_compile() {
70  
-	cd $S
71  
-	# catch people running `ebuild` w/out setup
72  
-	if [[ -z ${MAKE_ARGS} ]] ; then
73  
-		die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?"
74  
-	fi
75  
-
76  
-	#sed -i "/^VERSION[[:space:]]*=/s:=.*:=${PV}:" Makefile
77  
-
78  
-	tc-export CC AR RANLIB
79  
-	echo emake ${MAKE_ARGS}
80  
-	emake ${MAKE_ARGS} || die "emake ${MAKE_ARGS} failed"
81  
-}
82  
-
83  
-src_install() {
84  
-	emake ${MAKE_ARGS} DESTDIR="${D}" install || die "make install failed"
85  
-	gen_usr_ldscript libeinfo.so
86  
-	gen_usr_ldscript librc.so
87  
-
88  
-	dodir /etc/runlevels/default
89  
-
90  
-	keepdir /"${LIBDIR}"/rc/init.d
91  
-	keepdir /"${LIBDIR}"/rc/tmp
92  
-
93  
-	# Backup our default runlevels
94  
-	dodir /usr/share/"${PN}"
95  
-	mv "${D}/etc/runlevels" "${D}/usr/share/${PN}"
96  
-
97  
-	# Setup unicode defaults for silly unicode users
98  
-	use unicode && sed -i -e '/^.*unicode=/s:^.*"NO":unicode="YES":' "${D}"/etc/rc.conf
99  
-
100  
-	# Cater to the norm
101  
-	(use x86 || use amd64) && sed -i -e '/^.*windowkeys=/s:^.*"NO":windowkeys="YES":' "${D}"/etc/conf.d/keymaps
102  
-
103  
-	# Remove upstream networking parts:
104  
-
105  
-	for pat in ${D}/etc/init.d/{net.lo,network,staticroute} \
106  
-	${D}/usr/share/openrc/runlevels/boot/{net.lo,network,staticroute} \
107  
-	${D}/etc/conf.d/{net,network,staticroute}; do
108  
-		rm -f "$pat" || die "Couldn't remove upstream $pat from source."
109  
-	done
110  
-
111  
-	# Install funtoo networking parts:
112  
-
113  
-	cd ${WORKDIR}/corenetwork-${NETV} || die
114  
-	dodoc docs/index.rst || die
115  
-	exeinto /etc/init.d || die
116  
-	doexe init.d/{netif.tmpl,netif.lo} || die
117  
-	cp -a netif.d ${D}/etc || die
118  
-	chown -R root:root ${D}/etc/netif.d || die
119  
-	chmod -R 0644 ${D}/etc/netif.d || die
120  
-	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
121  
-}
122  
-
123  
-add_init() {
124  
-	local runl=$1
125  
-	shift
126  
-	if [ ! -e ${ROOT}/etc/runlevels/${runl} ]
127  
-	then
128  
-		install -d -m0755 ${ROOT}/etc/runlevels/${runl}
129  
-	fi
130  
-	for initd in $*
131  
-	do
132  
-		[[ -e ${ROOT}/etc/runlevels/${runl}/${initd} ]] && continue
133  
-		elog "Auto-adding '${initd}' service to your ${runl} runlevel"
134  
-		ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runl}/${initd}
135  
-	done
136  
-}
137  
-
138  
-pkg_postinst() {
139  
-	local runl
140  
-	install -d -m0755 ${ROOT}/etc/runlevels
141  
-	local runldir="${ROOT}usr/share/openrc/runlevels"
142  
-
143  
-	# Remove old baselayout links
144  
-	rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin}
145  
-	rm -f "${ROOT}"/etc/runlevels/boot/netif.lo
146  
-
147  
-	# CREATE RUNLEVEL DIRECTORIES	
148  
-	# ===========================
149  
-
150  
-	# To ensure proper system operation, this portion of the script ensures that
151  
-	# all of OpenRC's default initscripts in all runlevels are properly
152  
-	# installed.
153  
-
154  
-	for runl in $( cd "$runldir"; echo * )
155  
-	do
156  
-		einfo "Processing $runl..."
157  
-		einfo "Ensuring runlevel $runl has all required scripts..."
158  
-		add_init $runl $( cd "$runldir/$runl"; echo * )
159  
-	done
160  
-
161  
-	# Rather than try to migrate everyone using complex scripts, simply print
162  
-	# names of initscripts that are in the user's runlevels but not provided by
163  
-	# OpenRC. This loop can be upgraded to look for particular scripts that
164  
-	# might have come from baselayout.
165  
-
166  
-	for runl in $( cd ${ROOT}/etc/runlevels; echo * )
167  
-	do
168  
-		[ ! -d ${runldir}/${runl} ] && continue
169  
-		for init in $( cd "$runldir/$runl"; echo * )
170  
-		do
171  
-			if [ -e ${ROOT}/etc/runlevels/${runl}/${init} ] && [ ! -e ${runldir}/${runl}/${init} ]
172  
-			then
173  
-				echo "Initscript ${init} exists in runlevel ${runl} but not in OpenRC."
174  
-			fi
175  
-		done
176  
-	done
177  
-
178  
-	# OTHER STUFF
179  
-	# ===========
180  
-
181  
-	# update the dependency tree bug #224171
182  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
183  
-
184  
-	elog "You should now update all files in /etc, using etc-update"
185  
-	elog "or equivalent before rebooting."
186  
-	elog
187  
-
188  
-	if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
189  
-		ewarn "/etc/conf.d/local.{start,stop} are deprecated.  Please convert"
190  
-		ewarn "your files to /etc/conf.d/local and delete the files."
191  
-	fi
192  
-}
197  sys-apps/openrc/openrc-0.8.3-r4.ebuild
... ...
@@ -1,197 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="2"
4  
-
5  
-inherit eutils flag-o-matic multilib toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="nomirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="*"
15  
-IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.1
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.8.3"
30  
-
31  
-NETV="1.2"
32  
-GITHUB_REPO_CN="corenetwork"
33  
-GITHUB_TAG_CN="$NETV"
34  
-
35  
-SRC_URI="
36  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz
37  
-	http://www.funtoo.org/distfiles/${PN}-${GITHUB_TAG}.tar.gz
38  
-	http://www.funtoo.org/distfiles/corenetwork-${GITHUB_TAG_CN}.tar.gz
39  
-	"
40  
-
41  
-pkg_setup() {
42  
-	LIBDIR="lib"
43  
-	[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}")
44  
-
45  
-	MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}"
46  
-
47  
-	local brand="Unknown"
48  
-	if use kernel_linux ; then
49  
-		MAKE_ARGS="${MAKE_ARGS} OS=Linux"
50  
-		brand="Linux"
51  
-	elif use kernel_FreeBSD ; then
52  
-		MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
53  
-		brand="FreeBSD"
54  
-	fi
55  
-	export BRANDING="Funtoo ${brand}"
56  
-
57  
-	export DEBUG=$(usev debug)
58  
-	export MKPAM=$(usev pam)
59  
-	export MKTERMCAP=$(usev ncurses)
60  
-}
61  
-
62  
-pre_src_prepare() {
63  
-	# rename github directories to the names we're expecting:
64  
-	local old=${WORKDIR}/${GITHUB_USER}-${PN}-*
65  
-	mv $old "${WORKDIR}/${P}" || die "move fail 1"
66  
-	old="${WORKDIR}/${GITHUB_USER}-corenetwork-*"
67  
-	mv $old "${WORKDIR}/corenetwork-${NETV}" || die "move fail 2"
68  
-}
69  
-
70  
-src_compile() {
71  
-	cd $S
72  
-	# catch people running `ebuild` w/out setup
73  
-	if [[ -z ${MAKE_ARGS} ]] ; then
74  
-		die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?"
75  
-	fi
76  
-
77  
-	#sed -i "/^VERSION[[:space:]]*=/s:=.*:=${PV}:" Makefile
78  
-
79  
-	tc-export CC AR RANLIB
80  
-	echo emake ${MAKE_ARGS}
81  
-	emake ${MAKE_ARGS} || die "emake ${MAKE_ARGS} failed"
82  
-}
83  
-
84  
-src_install() {
85  
-	emake ${MAKE_ARGS} DESTDIR="${D}" install || die "make install failed"
86  
-	gen_usr_ldscript libeinfo.so
87  
-	gen_usr_ldscript librc.so
88  
-
89  
-	dodir /etc/runlevels/default
90  
-
91  
-	keepdir /"${LIBDIR}"/rc/init.d
92  
-	keepdir /"${LIBDIR}"/rc/tmp
93  
-
94  
-	# Backup our default runlevels
95  
-	dodir /usr/share/"${PN}"
96  
-	mv "${D}/etc/runlevels" "${D}/usr/share/${PN}"
97  
-
98  
-	# Setup unicode defaults for silly unicode users
99  
-	use unicode && sed -i -e '/^.*unicode=/s:^.*"NO":unicode="YES":' "${D}"/etc/rc.conf
100  
-
101  
-	# Cater to the norm
102  
-	(use x86 || use amd64) && sed -i -e '/^.*windowkeys=/s:^.*"NO":windowkeys="YES":' "${D}"/etc/conf.d/keymaps
103  
-
104  
-	# Remove upstream networking parts:
105  
-
106  
-	for pat in ${D}/etc/init.d/{net.lo,network,staticroute} \
107  
-	${D}/usr/share/openrc/runlevels/boot/{net.lo,network,staticroute} \
108  
-	${D}/etc/conf.d/{net,network,staticroute}; do
109  
-		rm -f "$pat" || die "Couldn't remove upstream $pat from source."
110  
-	done
111  
-
112  
-	# Install funtoo networking parts:
113  
-
114  
-	cd ${WORKDIR}/corenetwork-${NETV} || die
115  
-	dodoc docs/index.rst || die
116  
-	exeinto /etc/init.d || die
117  
-	doexe init.d/{netif.tmpl,netif.lo} || die
118  
-	cp -a netif.d ${D}/etc || die
119  
-	chown -R root:root ${D}/etc/netif.d || die
120  
-	chmod -R 0644 ${D}/etc/netif.d || die
121  
-	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
122  
-
123  
-	# Install gentoo pam.d file:
124  
-
125  
-	newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
126  
-}
127  
-
128  
-add_init() {
129  
-	local runl=$1
130  
-	shift
131  
-	if [ ! -e ${ROOT}/etc/runlevels/${runl} ]
132  
-	then
133  
-		install -d -m0755 ${ROOT}/etc/runlevels/${runl}
134  
-	fi
135  
-	for initd in $*
136  
-	do
137  
-		[[ -e ${ROOT}/etc/runlevels/${runl}/${initd} ]] && continue
138  
-		elog "Auto-adding '${initd}' service to your ${runl} runlevel"
139  
-		ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runl}/${initd}
140  
-	done
141  
-}
142  
-
143  
-pkg_postinst() {
144  
-	local runl
145  
-	install -d -m0755 ${ROOT}/etc/runlevels
146  
-	local runldir="${ROOT}usr/share/openrc/runlevels"
147  
-
148  
-	# Remove old baselayout links
149  
-	rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin}
150  
-	rm -f "${ROOT}"/etc/runlevels/boot/netif.lo
151  
-
152  
-	# CREATE RUNLEVEL DIRECTORIES	
153  
-	# ===========================
154  
-
155  
-	# To ensure proper system operation, this portion of the script ensures that
156  
-	# all of OpenRC's default initscripts in all runlevels are properly
157  
-	# installed.
158  
-
159  
-	for runl in $( cd "$runldir"; echo * )
160  
-	do
161  
-		einfo "Processing $runl..."
162  
-		einfo "Ensuring runlevel $runl has all required scripts..."
163  
-		add_init $runl $( cd "$runldir/$runl"; echo * )
164  
-	done
165  
-
166  
-	# Rather than try to migrate everyone using complex scripts, simply print
167  
-	# names of initscripts that are in the user's runlevels but not provided by
168  
-	# OpenRC. This loop can be upgraded to look for particular scripts that
169  
-	# might have come from baselayout.
170  
-
171  
-	for runl in $( cd ${ROOT}/etc/runlevels; echo * )
172  
-	do
173  
-		[ ! -d ${runldir}/${runl} ] && continue
174  
-		for init in $( cd "$runldir/$runl"; echo * )
175  
-		do
176  
-			if [ -e ${ROOT}/etc/runlevels/${runl}/${init} ] && [ ! -e ${runldir}/${runl}/${init} ]
177  
-			then
178  
-				echo "Initscript ${init} exists in runlevel ${runl} but not in OpenRC."
179  
-			fi
180  
-		done
181  
-	done
182  
-
183  
-	# OTHER STUFF
184  
-	# ===========
185  
-
186  
-	# update the dependency tree bug #224171
187  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
188  
-
189  
-	elog "You should now update all files in /etc, using etc-update"
190  
-	elog "or equivalent before rebooting."
191  
-	elog
192  
-
193  
-	if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
194  
-		ewarn "/etc/conf.d/local.{start,stop} are deprecated.  Please convert"
195  
-		ewarn "your files to /etc/conf.d/local and delete the files."
196  
-	fi
197  
-}
199  sys-apps/openrc/openrc-0.8.3-r5.ebuild
... ...
@@ -1,199 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="2"
4  
-
5  
-inherit eutils flag-o-matic multilib toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="nomirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="x86 amd64 sparc"
15  
-IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.1
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.8.3"
30  
-
31  
-NETV="1.3"
32  
-GITHUB_REPO_CN="corenetwork"
33  
-GITHUB_TAG_CN="$NETV"
34  
-
35  
-SRC_URI="
36  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz
37  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO_CN}/tarball/${GITHUB_TAG_CN} -> corenetwork-${NETV}.tar.gz
38  
-	"
39  
-
40  
-pkg_setup() {
41  
-	LIBDIR="lib"
42  
-	[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}")
43  
-
44  
-	MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}"
45  
-
46  
-	local brand="Unknown"
47  
-	if use kernel_linux ; then
48  
-		MAKE_ARGS="${MAKE_ARGS} OS=Linux"
49  
-		brand="Linux"
50  
-	elif use kernel_FreeBSD ; then
51  
-		MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
52  
-		brand="FreeBSD"
53  
-	fi
54  
-	export BRANDING="Funtoo ${brand}"
55  
-
56  
-	export DEBUG=$(usev debug)
57  
-	export MKPAM=$(usev pam)
58  
-	export MKTERMCAP=$(usev ncurses)
59  
-}
60  
-
61  
-pre_src_prepare() {
62  
-	# rename github directories to the names we're expecting:
63  
-	local old=${WORKDIR}/${GITHUB_USER}-${PN}-*
64  
-	mv $old "${WORKDIR}/${P}" || die "move fail 1"
65  
-	old="${WORKDIR}/${GITHUB_USER}-corenetwork-*"
66  
-	mv $old "${WORKDIR}/corenetwork-${NETV}" || die "move fail 2"
67  
-}
68  
-
69  
-src_compile() {
70  
-	cd $S
71  
-	# catch people running `ebuild` w/out setup
72  
-	if [[ -z ${MAKE_ARGS} ]] ; then
73  
-		die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?"
74  
-	fi
75  
-
76  
-	#sed -i "/^VERSION[[:space:]]*=/s:=.*:=${PV}:" Makefile
77  
-
78  
-	tc-export CC AR RANLIB
79  
-	echo emake ${MAKE_ARGS}
80  
-	emake ${MAKE_ARGS} || die "emake ${MAKE_ARGS} failed"
81  
-}
82  
-
83  
-src_install() {
84  
-	emake ${MAKE_ARGS} DESTDIR="${D}" install || die "make install failed"
85  
-	gen_usr_ldscript libeinfo.so
86  
-	gen_usr_ldscript librc.so
87  
-
88  
-	dodir /etc/runlevels/default
89  
-
90  
-	keepdir /"${LIBDIR}"/rc/init.d
91  
-	keepdir /"${LIBDIR}"/rc/tmp
92  
-
93  
-	# Backup our default runlevels
94  
-	dodir /usr/share/"${PN}"
95  
-	mv "${D}/etc/runlevels" "${D}/usr/share/${PN}"
96  
-
97  
-	# Setup unicode defaults for silly unicode users
98  
-	use unicode && sed -i -e '/^.*unicode=/s:^.*"NO":unicode="YES":' "${D}"/etc/rc.conf
99  
-
100  
-	# Cater to the norm
101  
-	(use x86 || use amd64) && sed -i -e '/^.*windowkeys=/s:^.*"NO":windowkeys="YES":' "${D}"/etc/conf.d/keymaps
102  
-
103  
-	# Remove upstream networking parts:
104  
-
105  
-	for pat in ${D}/etc/init.d/{net.lo,network,staticroute} \
106  
-	${D}/usr/share/openrc/runlevels/boot/{net.lo,network,staticroute} \
107  
-	${D}/etc/conf.d/{net,network,staticroute}; do
108  
-		rm -f "$pat" || die "Couldn't remove upstream $pat from source."
109  
-	done
110  
-
111  
-	# Install funtoo networking parts:
112  
-
113  
-	cd ${WORKDIR}/corenetwork-${NETV} || die
114  
-	dodoc docs/index.rst || die
115  
-	exeinto /etc/init.d || die
116  
-	doexe init.d/{netif.tmpl,netif.lo} || die
117  
-	cp -a netif.d ${D}/etc || die
118  
-	chown -R root:root ${D}/etc/netif.d || die
119  
-	chmod -R 0644 ${D}/etc/netif.d || die
120  
-	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
121  
-
122  
-	# Install gentoo pam.d file:
123  
-
124  
-	newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
125  
-}
126  
-
127  
-add_init() {
128  
-	local runl=$1
129  
-	shift
130  
-	if [ ! -e ${ROOT}/etc/runlevels/${runl} ]
131  
-	then
132  
-		install -d -m0755 ${ROOT}/etc/runlevels/${runl}
133  
-	fi
134  
-	for initd in $*
135  
-	do
136  
-		[[ -e ${ROOT}/etc/runlevels/${runl}/${initd} ]] && continue
137  
-		elog "Auto-adding '${initd}' service to your ${runl} runlevel"
138  
-		ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runl}/${initd}
139  
-	done
140  
-}
141  
-
142  
-pkg_postinst() {
143  
-	local runl
144  
-	install -d -m0755 ${ROOT}/etc/runlevels
145  
-	local runldir="${ROOT}usr/share/openrc/runlevels"
146  
-
147  
-	# Remove old baselayout links
148  
-	rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin}
149  
-	rm -f "${ROOT}"/etc/runlevels/boot/netif.lo
150  
-
151  
-	# CREATE RUNLEVEL DIRECTORIES	
152  
-	# ===========================
153  
-
154  
-	# To ensure proper system operation, this portion of the script ensures that
155  
-	# all of OpenRC's default initscripts in all runlevels are properly
156  
-	# installed.
157  
-
158  
-	for runl in $( cd "$runldir"; echo * )
159  
-	do
160  
-		einfo "Processing $runl..."
161  
-		einfo "Ensuring runlevel $runl has all required scripts..."
162  
-		add_init $runl $( cd "$runldir/$runl"; echo * )
163  
-	done
164  
-
165  
-	# Rather than try to migrate everyone using complex scripts, simply print
166  
-	# names of initscripts that are in the user's runlevels but not provided by
167  
-	# OpenRC. This loop can be upgraded to look for particular scripts that
168  
-	# might have come from baselayout.
169  
-
170  
-	for runl in $( cd ${ROOT}/etc/runlevels; echo * )
171  
-	do
172  
-		[ ! -d ${runldir}/${runl} ] && continue
173  
-		for init in $( cd "$runldir/$runl"; echo * )
174  
-		do
175  
-			if [ -e ${ROOT}/etc/runlevels/${runl}/${init} ] && [ ! -e ${runldir}/${runl}/${init} ]
176  
-			then
177  
-				echo "Initscript ${init} exists in runlevel ${runl} but not in OpenRC."
178  
-			fi
179  
-		done
180  
-	done
181  
-
182  
-	# OTHER STUFF
183  
-	# ===========
184  
-
185  
-	# update the dependency tree bug #224171
186  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
187  
-
188  
-	elog "You should now update all files in /etc, using etc-update"
189  
-	elog "or equivalent before rebooting."
190  
-	elog
191  
-
192  
-	if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
193  
-		ewarn "/etc/conf.d/local.{start,stop} are deprecated.  Please convert"
194  
-		ewarn "your files to /etc/conf.d/local and delete the files."
195  
-	fi
196  
-
197  
-	ewarn "Make sure that correct symlink exist"
198  
-	ewarn "Re-establish it by ln -s /etc/init.d/netif.tmpl /etc/init.d/netif.ethX"
199  
-}
199  sys-apps/openrc/openrc-0.8.3-r6.ebuild
... ...
@@ -1,199 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="2"
4  
-
5  
-inherit eutils flag-o-matic multilib toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="mirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="~*"
15  
-IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.1
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.8.3"
30  
-
31  
-NETV="1.3-r1"
32  
-GITHUB_REPO_CN="corenetwork"
33  
-GITHUB_TAG_CN="$NETV"
34  
-
35  
-SRC_URI="
36  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz
37  
-	https://www.github.com/${GITHUB_USER}/${GITHUB_REPO_CN}/tarball/${GITHUB_TAG_CN} -> corenetwork-${NETV}.tar.gz
38  
-	"
39  
-
40  
-pkg_setup() {
41  
-	LIBDIR="lib"
42  
-	[ "${SYMLINK_LIB}" = "yes" ] && LIBDIR=$(get_abi_LIBDIR "${DEFAULT_ABI}")
43  
-
44  
-	MAKE_ARGS="${MAKE_ARGS} LIBNAME=${LIBDIR}"
45  
-
46  
-	local brand="Unknown"
47  
-	if use kernel_linux ; then
48  
-		MAKE_ARGS="${MAKE_ARGS} OS=Linux"
49  
-		brand="Linux"
50  
-	elif use kernel_FreeBSD ; then
51  
-		MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
52  
-		brand="FreeBSD"
53  
-	fi
54  
-	export BRANDING="Funtoo ${brand}"
55  
-
56  
-	export DEBUG=$(usev debug)
57  
-	export MKPAM=$(usev pam)
58  
-	export MKTERMCAP=$(usev ncurses)
59  
-}
60  
-
61  
-pre_src_prepare() {
62  
-	# rename github directories to the names we're expecting:
63  
-	local old=${WORKDIR}/${GITHUB_USER}-${PN}-*
64  
-	mv $old "${WORKDIR}/${P}" || die "move fail 1"
65  
-	old="${WORKDIR}/${GITHUB_USER}-corenetwork-*"
66  
-	mv $old "${WORKDIR}/corenetwork-${NETV}" || die "move fail 2"
67  
-}
68  
-
69  
-src_compile() {
70  
-	cd $S
71  
-	# catch people running `ebuild` w/out setup
72  
-	if [[ -z ${MAKE_ARGS} ]] ; then
73  
-		die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?"
74  
-	fi
75  
-
76  
-	#sed -i "/^VERSION[[:space:]]*=/s:=.*:=${PV}:" Makefile
77  
-
78  
-	tc-export CC AR RANLIB
79  
-	echo emake ${MAKE_ARGS}
80  
-	emake ${MAKE_ARGS} || die "emake ${MAKE_ARGS} failed"
81  
-}
82  
-
83  
-src_install() {
84  
-	emake ${MAKE_ARGS} DESTDIR="${D}" install || die "make install failed"
85  
-	gen_usr_ldscript libeinfo.so
86  
-	gen_usr_ldscript librc.so
87  
-
88  
-	dodir /etc/runlevels/default
89  
-
90  
-	keepdir /"${LIBDIR}"/rc/init.d
91  
-	keepdir /"${LIBDIR}"/rc/tmp
92  
-
93  
-	# Backup our default runlevels
94  
-	dodir /usr/share/"${PN}"
95  
-	mv "${D}/etc/runlevels" "${D}/usr/share/${PN}"
96  
-
97  
-	# Setup unicode defaults for silly unicode users
98  
-	use unicode && sed -i -e '/^.*unicode=/s:^.*"NO":unicode="YES":' "${D}"/etc/rc.conf
99  
-
100  
-	# Cater to the norm
101  
-	(use x86 || use amd64) && sed -i -e '/^.*windowkeys=/s:^.*"NO":windowkeys="YES":' "${D}"/etc/conf.d/keymaps
102  
-
103  
-	# Remove upstream networking parts:
104  
-
105  
-	for pat in ${D}/etc/init.d/{net.lo,network,staticroute} \
106  
-	${D}/usr/share/openrc/runlevels/boot/{net.lo,network,staticroute} \
107  
-	${D}/etc/conf.d/{net,network,staticroute}; do
108  
-		rm -f "$pat" || die "Couldn't remove upstream $pat from source."
109  
-	done
110  
-
111  
-	# Install funtoo networking parts:
112  
-
113  
-	cd ${WORKDIR}/corenetwork-${NETV} || die
114  
-	dodoc docs/index.rst || die
115  
-	exeinto /etc/init.d || die
116  
-	doexe init.d/{netif.tmpl,netif.lo} || die
117  
-	cp -a netif.d ${D}/etc || die
118  
-	chown -R root:root ${D}/etc/netif.d || die
119  
-	chmod -R 0644 ${D}/etc/netif.d || die
120  
-	ln -s /etc/init.d/netif.lo ${D}/usr/share/openrc/runlevels/sysinit/netif.lo || die
121  
-
122  
-	# Install gentoo pam.d file:
123  
-
124  
-	newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
125  
-}
126  
-
127  
-add_init() {
128  
-	local runl=$1
129  
-	shift
130  
-	if [ ! -e ${ROOT}/etc/runlevels/${runl} ]
131  
-	then
132  
-		install -d -m0755 ${ROOT}/etc/runlevels/${runl}
133  
-	fi
134  
-	for initd in $*
135  
-	do
136  
-		[[ -e ${ROOT}/etc/runlevels/${runl}/${initd} ]] && continue
137  
-		elog "Auto-adding '${initd}' service to your ${runl} runlevel"
138  
-		ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runl}/${initd}
139  
-	done
140  
-}
141  
-
142  
-pkg_postinst() {
143  
-	local runl
144  
-	install -d -m0755 ${ROOT}/etc/runlevels
145  
-	local runldir="${ROOT}usr/share/openrc/runlevels"
146  
-
147  
-	# Remove old baselayout links
148  
-	rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin}
149  
-	rm -f "${ROOT}"/etc/runlevels/boot/netif.lo
150  
-
151  
-	# CREATE RUNLEVEL DIRECTORIES	
152  
-	# ===========================
153  
-
154  
-	# To ensure proper system operation, this portion of the script ensures that
155  
-	# all of OpenRC's default initscripts in all runlevels are properly
156  
-	# installed.
157  
-
158  
-	for runl in $( cd "$runldir"; echo * )
159  
-	do
160  
-		einfo "Processing $runl..."
161  
-		einfo "Ensuring runlevel $runl has all required scripts..."
162  
-		add_init $runl $( cd "$runldir/$runl"; echo * )
163  
-	done
164  
-
165  
-	# Rather than try to migrate everyone using complex scripts, simply print
166  
-	# names of initscripts that are in the user's runlevels but not provided by
167  
-	# OpenRC. This loop can be upgraded to look for particular scripts that
168  
-	# might have come from baselayout.
169  
-
170  
-	for runl in $( cd ${ROOT}/etc/runlevels; echo * )
171  
-	do
172  
-		[ ! -d ${runldir}/${runl} ] && continue
173  
-		for init in $( cd "$runldir/$runl"; echo * )
174  
-		do
175  
-			if [ -e ${ROOT}/etc/runlevels/${runl}/${init} ] && [ ! -e ${runldir}/${runl}/${init} ]
176  
-			then
177  
-				echo "Initscript ${init} exists in runlevel ${runl} but not in OpenRC."
178  
-			fi
179  
-		done
180  
-	done
181  
-
182  
-	# OTHER STUFF
183  
-	# ===========
184  
-
185  
-	# update the dependency tree bug #224171
186  
-	[[ "${ROOT}" = "/" ]] && "${ROOT}/libexec"/rc/bin/rc-depend -u
187  
-
188  
-	elog "You should now update all files in /etc, using etc-update"
189  
-	elog "or equivalent before rebooting."
190  
-	elog
191  
-
192  
-	if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
193  
-		ewarn "/etc/conf.d/local.{start,stop} are deprecated.  Please convert"
194  
-		ewarn "your files to /etc/conf.d/local and delete the files."
195  
-	fi
196  
-
197  
-	ewarn "Make sure that correct symlink exist"
198  
-	ewarn "Re-establish it by ln -s /etc/init.d/netif.tmpl /etc/init.d/netif.ethX"
199  
-}
199  sys-apps/openrc/openrc-0.8.3-r7.ebuild
... ...
@@ -1,199 +0,0 @@
1  
-# Distributed under the terms of the GNU General Public License v2
2  
-
3  
-EAPI="2"
4  
-
5  
-inherit eutils flag-o-matic multilib toolchain-funcs
6  
-
7  
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
8  
-HOMEPAGE="http://roy.marples.name/openrc"
9  
-PROVIDE="virtual/baselayout"
10  
-RESTRICT="mirror"
11  
-
12  
-LICENSE="BSD-2"
13  
-SLOT="0"
14  
-KEYWORDS="*"
15  
-IUSE="debug ncurses pam unicode kernel_linux kernel_FreeBSD"
16  
-
17  
-RDEPEND="kernel_linux? ( >=sys-apps/sysvinit-2.86-r11 )
18  
-	kernel_FreeBSD? ( virtual/init sys-process/fuser-bsd )
19  
-	ncurses? ( sys-libs/ncurses )
20  
-	pam? ( virtual/pam )
21  
-	>=sys-apps/baselayout-2.1
22  
-	>=sys-fs/udev-135
23  
-	sys-apps/iproute2"
24  
-
25  
-DEPEND="ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) virtual/os-headers"
26  
-
27  
-GITHUB_REPO="${PN}"
28  
-GITHUB_USER="funtoo"
29  
-GITHUB_TAG="funtoo-openrc-0.8.3"
30