Apache2 has .la, apache13 has .so
Noticed by: Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
parent
9f89ab7bed
commit
0f4e91f73a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82358
@ -26,11 +26,14 @@ APXS?= ${LOCALBASE}/sbin/apxs
|
||||
APACHE_PORT?= ${PORTSDIR}/www/apache2
|
||||
APWRKSRC?= ${WRKSRC}/apache2
|
||||
PLIST_SUB= APACHE=apache2
|
||||
SO= la
|
||||
.else
|
||||
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
||||
APWRKSRC?= ${WRKSRC}/apache1
|
||||
PLIST_SUB= APACHE=apache
|
||||
SO= so
|
||||
.endif
|
||||
PLIST_SUB+= SO=${SO}
|
||||
|
||||
BUILD_DEPENDS+= ${APXS}:${APACHE_PORT}
|
||||
RUN_DEPENDS+= ${APXS}:${APACHE_PORT}
|
||||
@ -41,7 +44,7 @@ do-build:
|
||||
@cd ${APWRKSRC} && ${APXS} -c mod_security.c
|
||||
|
||||
do-install:
|
||||
${APXS} -i -a -n security ${APWRKSRC}/mod_security.so
|
||||
${APXS} -i -a -n security ${APWRKSRC}/mod_security.${SO}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/httpd.conf.example-* ${EXAMPLESDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
@ -1,4 +1,4 @@
|
||||
libexec/%%APACHE%%/mod_security.so
|
||||
libexec/%%APACHE%%/mod_security.%%SO%%
|
||||
@exec %D/sbin/apxs -e -a -n security %D/%F
|
||||
@unexec %D/sbin/apxs -e -A -n security %D/%F
|
||||
%%PORTDOCS%%share/doc/mod_security/CHANGES
|
||||
|
Loading…
Reference in New Issue
Block a user