Lines 55-65
Link Here
|
55 |
} |
55 |
} |
56 |
|
56 |
|
57 |
src_prepare() { |
57 |
src_prepare() { |
58 |
epatch "${FILESDIR}/selinux.patch" |
|
|
59 |
# Fix compilation against mozldap |
58 |
# Fix compilation against mozldap |
60 |
epatch "${FILESDIR}/389-ds-base-1.2.11-fix-mozldap.patch" |
59 |
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 |
60 |
# Upstream patch, will be in 1.2.11.16, fixes CVE-2012-4450 |
62 |
epatch "${FILESDIR}/389-ds-base-1.2.11.16-cve-2012-4450.patch" |
61 |
epatch "${FILESDIR}/389-ds-base-1.2.11.16-cve-2012-4450.patch" |
|
|
62 |
# Fix SELinux build as per bug #445484 |
63 |
epatch "${FILESDIR}/389-ds-base-1.2.11.15-fix-selinux-build.patch" |
63 |
|
64 |
|
64 |
# as per 389 documentation, when 64bit, export USE_64 |
65 |
# as per 389 documentation, when 64bit, export USE_64 |
65 |
use amd64 && export USE_64=1 |
66 |
use amd64 && export USE_64=1 |
Lines 163-182
Link Here
|
163 |
|
164 |
|
164 |
pkg_postinst() { |
165 |
pkg_postinst() { |
165 |
if use selinux; then |
166 |
if use selinux; then |
166 |
if has "loadpolicy" $FEATURES; then |
167 |
local SELINUXTYPE=$(grep ^SELINUXTYPE /etc/selinux/config | cut -d '=' -f 2); |
167 |
einfo "Inserting the following modules into the module store" |
168 |
cd /usr/share/selinux/${SELINUXTYPE}; |
168 |
cd /usr/share/selinux/targeted # struct policy not supported |
169 |
semodule -i dirsrv.pp; |
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 |
170 |
fi |
181 |
|
171 |
|
182 |
elog |
172 |
elog |