Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 490246 | Differences between
and this patch

Collapse All | Expand All

(-)sandbox-2.6-r1.ebuild (-17 / +19 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-2.6-r1.ebuild,v 1.13 2013/09/05 09:54:16 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-2.6-r1.ebuild,v 1.13 2013/09/05 09:54:16 vapier Exp $
4
4
5
EAPI=5
5
#
6
#
6
# don't monkey with this ebuild unless contacting portage devs.
7
# don't monkey with this ebuild unless contacting portage devs.
7
# period.
8
# period.
Lines 43-57 Link Here
43
	ABI=${OABI}
44
	ABI=${OABI}
44
}
45
}
45
46
46
src_unpack() {
47
src_prepare() {
47
	unpacker
48
	cd "${S}"
49
	epatch "${FILESDIR}"/${P}-trace-hppa.patch #425062
48
	epatch "${FILESDIR}"/${P}-trace-hppa.patch #425062
50
	epatch "${FILESDIR}"/${P}-log-var.patch
49
	epatch "${FILESDIR}"/${P}-log-var.patch
51
	epatch "${FILESDIR}"/${P}-static-close-fd.patch #364877
50
	epatch "${FILESDIR}"/${P}-static-close-fd.patch #364877
52
	epatch "${FILESDIR}"/${P}-desktop.patch #443672
51
	epatch "${FILESDIR}"/${P}-desktop.patch #443672
53
	epatch "${FILESDIR}"/${P}-open-nofollow.patch #413441
52
	epatch "${FILESDIR}"/${P}-open-nofollow.patch #413441
54
	epatch "${FILESDIR}"/${P}-check-empty-paths-at.patch #346929
53
	epatch "${FILESDIR}"/${P}-check-empty-paths-at.patch #346929
54
	epatch "${FILESDIR}"/${P}-prefix.patch
55
	epatch_user
55
	epatch_user
56
}
56
}
57
57
Lines 63-76 Link Here
63
63
64
	einfo "Configuring sandbox for ABI=${ABI}..."
64
	einfo "Configuring sandbox for ABI=${ABI}..."
65
	ECONF_SOURCE="../${P}/" \
65
	ECONF_SOURCE="../${P}/" \
66
	econf ${myconf} || die
66
	econf ${myconf}
67
}
68
69
sb_compile() {
70
	emake || die
71
}
67
}
72
68
73
src_compile() {
69
src_configure() {
74
	filter-lfs-flags #90228
70
	filter-lfs-flags #90228
75
71
76
	# Run configures in parallel!
72
	# Run configures in parallel!
Lines 81-92 Link Here
81
	done
77
	done
82
	ABI=${OABI}
78
	ABI=${OABI}
83
	multijob_finish
79
	multijob_finish
80
}
84
81
82
sb_compile() {
83
	emake
84
}
85
86
src_compile() {
85
	sb_foreach_abi sb_compile
87
	sb_foreach_abi sb_compile
86
}
88
}
87
89
88
sb_test() {
90
sb_test() {
89
	emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)" || die
91
	emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
90
}
92
}
91
93
92
src_test() {
94
src_test() {
Lines 94-102 Link Here
94
}
96
}
95
97
96
sb_install() {
98
sb_install() {
97
	emake DESTDIR="${D}" install || die
99
	emake DESTDIR="${D}" install
98
	insinto /etc/sandbox.d #333131
100
	insinto /etc/sandbox.d #333131
99
	doins etc/sandbox.d/00default || die
101
	doins etc/sandbox.d/00default
100
}
102
}
101
103
102
src_install() {
104
src_install() {
Lines 113-129 Link Here
113
}
115
}
114
116
115
pkg_preinst() {
117
pkg_preinst() {
116
	chown root:portage "${D}"/var/log/sandbox
118
	fowners root:portage /var/log/sandbox
117
	chmod 0770 "${D}"/var/log/sandbox
119
	fperms 0770 /var/log/sandbox
118
120
119
	local old=$(find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
121
	local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
120
	if [[ -n ${old} ]] ; then
122
	if [[ -n ${old} ]] ; then
121
		elog "Removing old sandbox libraries for you:"
123
		elog "Removing old sandbox libraries for you:"
122
		elog ${old//${ROOT}}
124
		elog ${old//${ROOT}}
123
		find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -exec rm -fv {} \;
125
		find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -exec rm -fv {} \;
124
	fi
126
	fi
125
}
127
}
126
128
127
pkg_postinst() {
129
pkg_postinst() {
128
	chmod 0755 "${ROOT}"/etc/sandbox.d #265376
130
	chmod 0755 "${EROOT}"/etc/sandbox.d #265376
129
}
131
}

Return to bug 490246