Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 289314
Collapse All | Expand All

(-)/usr/portage/sys-apps/openrc/openrc-0.5.1-r1.ebuild (-6 / +7 lines)
Lines 37-43 Link Here
37
DEPEND="${RDEPEND}
37
DEPEND="${RDEPEND}
38
	virtual/os-headers"
38
	virtual/os-headers"
39
39
40
pkg_setup() {
40
make_args() {
41
	unset LIBDIR #266688
41
	unset LIBDIR #266688
42
42
43
	MAKE_ARGS="${MAKE_ARGS} LIBNAME=$(get_libdir) LIBEXECDIR=/$(get_libdir)/rc"
43
	MAKE_ARGS="${MAKE_ARGS} LIBNAME=$(get_libdir) LIBEXECDIR=/$(get_libdir)/rc"
Lines 52-58 Link Here
52
		brand="FreeBSD"
52
		brand="FreeBSD"
53
	fi
53
	fi
54
	export BRANDING="Gentoo ${brand}"
54
	export BRANDING="Gentoo ${brand}"
55
}
55
56
57
pkg_setup() {
56
	export DEBUG=$(usev debug)
58
	export DEBUG=$(usev debug)
57
	export MKPAM=$(usev pam)
59
	export MKPAM=$(usev pam)
58
	export MKTERMCAP=$(usev ncurses)
60
	export MKTERMCAP=$(usev ncurses)
Lines 73-82 Link Here
73
}
75
}
74
76
75
src_compile() {
77
src_compile() {
76
	# catch people running `ebuild` w/out setup
78
	make_args
77
	if [[ -z ${MAKE_ARGS} ]] ; then
78
		die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?"
79
	fi
80
79
81
	if [[ ${PV} == "9999" ]] ; then
80
	if [[ ${PV} == "9999" ]] ; then
82
		local ver="git-$(echo ${EGIT_VERSION} | cut -c1-8)"
81
		local ver="git-$(echo ${EGIT_VERSION} | cut -c1-8)"
Lines 100-105 Link Here
100
}
99
}
101
100
102
src_install() {
101
src_install() {
102
	make_args
103
	emake ${MAKE_ARGS} DESTDIR="${D}" install || die
103
	emake ${MAKE_ARGS} DESTDIR="${D}" install || die
104
104
105
	# move the shared libs back to /usr so ldscript can install
105
	# move the shared libs back to /usr so ldscript can install
Lines 114-120 Link Here
114
114
115
	# Backup our default runlevels
115
	# Backup our default runlevels
116
	dodir /usr/share/"${PN}"
116
	dodir /usr/share/"${PN}"
117
	mv "${D}"/etc/runlevels "${D}"/usr/share/${PN} || die
117
	cp -PR "${D}"/etc/runlevels "${D}"/usr/share/${PN} || die
118
	rm -rf "${D}"/etc/runlevels
118
119
119
	# Stick with "old" net as the default for now
120
	# Stick with "old" net as the default for now
120
	doconfd conf.d/net || die
121
	doconfd conf.d/net || die

Return to bug 289314