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

Collapse All | Expand All

(-)389-ds-base-1.2.11.15.ebuild (-28 / +1 lines)
Lines 34-47 Link Here
34
	sys-libs/pam
34
	sys-libs/pam
35
	sys-libs/zlib
35
	sys-libs/zlib
36
	kerberos? ( net-nds/openldap >=app-crypt/mit-krb5-1.7-r100[openldap] )
36
	kerberos? ( net-nds/openldap >=app-crypt/mit-krb5-1.7-r100[openldap] )
37
	selinux? ( >=sys-apps/policycoreutils-1.30.30
37
	selinux? ( sec-policy/selinux-dirsrv )"
38
		sec-policy/selinux-base-policy )"
39
38
40
DEPEND="${ALL_DEPEND}
39
DEPEND="${ALL_DEPEND}
41
	virtual/pkgconfig
40
	virtual/pkgconfig
42
	sys-devel/libtool
41
	sys-devel/libtool
43
	doc? ( app-doc/doxygen )
42
	doc? ( app-doc/doxygen )
44
	selinux? ( sys-devel/m4 >=sys-apps/checkpolicy-1.30.12 )
45
	sys-apps/sed"
43
	sys-apps/sed"
46
RDEPEND="${ALL_DEPEND}
44
RDEPEND="${ALL_DEPEND}
47
	virtual/perl-Time-Local
45
	virtual/perl-Time-Local
Lines 55-61 Link Here
55
}
53
}
56
54
57
src_prepare() {
55
src_prepare() {
58
	epatch "${FILESDIR}/selinux.patch"
59
	# Fix compilation against mozldap
56
	# Fix compilation against mozldap
60
	epatch "${FILESDIR}/389-ds-base-1.2.11-fix-mozldap.patch"
57
	epatch "${FILESDIR}/389-ds-base-1.2.11-fix-mozldap.patch"
61
	# Upstream patch, will be in 1.2.11.16, fixes CVE-2012-4450
58
	# Upstream patch, will be in 1.2.11.16, fixes CVE-2012-4450
Lines 99-117 Link Here
99
96
100
	# Use -j1 otherwise libacl-plugin.so could fail to install properly
97
	# Use -j1 otherwise libacl-plugin.so could fail to install properly
101
	emake -j1 || die "compile failed"
98
	emake -j1 || die "compile failed"
102
	if use selinux; then
103
		emake -f selinux/Makefile || die " build selinux policy failed"
104
	fi
105
}
99
}
106
100
107
src_install () {
101
src_install () {
108
	# Use -j1 otherwise libacl-plugin.so could fail to install properly
102
	# Use -j1 otherwise libacl-plugin.so could fail to install properly
109
	emake -j1 DESTDIR="${D}" install || die "emake install failed"
103
	emake -j1 DESTDIR="${D}" install || die "emake install failed"
110
104
111
	if use selinux;then
112
		emake -f selinux/Makefile DESTDIR="${D}" install || die "Install selinux policy failed"
113
	fi
114
115
	# install not installed header
105
	# install not installed header
116
	insinto /usr/include/dirsrv
106
	insinto /usr/include/dirsrv
117
	doins ldap/servers/slapd/slapi-plugin.h
107
	doins ldap/servers/slapd/slapi-plugin.h
Lines 162-184 Link Here
162
}
152
}
163
153
164
pkg_postinst() {
154
pkg_postinst() {
165
	if use selinux; then
166
		if has "loadpolicy" $FEATURES; then
167
			einfo "Inserting the following modules into the module store"
168
			cd /usr/share/selinux/targeted # struct policy not supported
169
			semodule -s dirsrv -i dirsrv.pp
170
		else
171
			elog
172
			elog "Policy has not been loaded.  It is strongly suggested"
173
			elog "that the policy be loaded before continuing!!"
174
			elog
175
			elog "Automatic policy loading can be enabled by adding"
176
			elog "\"loadpolicy\" to the FEATURES in make.conf."
177
			elog
178
			ebeep 4
179
		fi
180
	fi
181
182
	elog
155
	elog
183
	elog "If you are planning to use 389-ds-snmp (ldap-agent),"
156
	elog "If you are planning to use 389-ds-snmp (ldap-agent),"
184
	elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
157
	elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"

Return to bug 445484