apache: remove references to -specs

Closes #6322.
This commit is contained in:
Alessio Sergi 2017-05-07 15:10:46 +02:00
parent 86210a3f20
commit 182539ed36

View file

@ -1,7 +1,7 @@
# Template file for 'apache'
pkgname=apache
version=2.4.25
revision=3
revision=4
wrksrc=httpd-${version}
build_style=gnu-configure
configure_args="--prefix= --sbindir=/usr/bin --enable-pie --enable-modules=all
@ -110,6 +110,10 @@ post_install() {
-e 's|#\(Include /etc/apache/extra/httpd-default.conf\)|\1|' \
-i "${DESTDIR}/etc/apache/httpd.conf"
# Remove references to hardening -specs.
sed -e "s|\(-specs=.*hardened-ld\)||g" -e "s|\(-specs=.*hardened-cc1\)||g" -i \
${DESTDIR}/usr/share/apache/webroot/build/config{.nice,_vars.mk}
# Remove unused stuff.
vmkdir usr/share/apache/webroot
mv ${DESTDIR}/srv/www/$pkgname/cgi-bin ${DESTDIR}/usr/share/apache/webroot