- Utilize Makefile.modules.3rd

IMHO, it's one of the best example to see how Makefile.modules.3rd
  can be useful.
This commit is contained in:
Clement Laforet 2004-04-16 13:52:18 +00:00
parent 024cdc752e
commit 9659b8cfc9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107227
3 changed files with 9 additions and 23 deletions

View File

@ -13,23 +13,12 @@ MASTER_SITES= http://stderr.net/apache/rpaf/download/
MAINTAINER= clement@FreeBSD.org
COMMENT= Make proxied requests appear with client IP
USE_APACHE= yes
AP_FAST_BUILD= YES
AP_FAST_BUILD= YES
AP_GENPLIST= YES
AP2_SRC_FILE= mod_rpaf-2.0.c
AP2_PKGNAMESUFFIX= -ap2
.if defined(WITH_APACHE2)
PLIST_SUB+= APACHE=apache2
AP_EXT= la
SRC_FILE= mod_rpaf-2.0.c
PKGNAMESUFFIX= -ap2
.else
PLIST_SUB+= APACHE=apache
AP_EXT= so
SRC_FILE= mod_rpaf.c
.endif
do-build:
@cd ${WRKSRC} && ${APXS} -c -o ${PORTNAME}.${AP_EXT} ${SRC_FILE}
do-install:
${APXS} -i -a -n ${PORTNAME:S/mod_//} ${WRKSRC}/${PORTNAME}.${AP_EXT}
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/apache2/Makefile.modules.3rd"
.include <bsd.port.post.mk>

View File

@ -1,3 +0,0 @@
libexec/%%APACHE%%/mod_rpaf.so
@exec %D/sbin/apxs -e -a -n rpaf %D/%F
@unexec %D/sbin/apxs -e -A -n rpaf %D/%F

View File

@ -5,7 +5,7 @@
# $FreeBSD$
#
WITH_APACHE2= yes
WANT_APACHE= 2
LATEST_LINK= mod_rpaf2
MASTERDIR= ${.CURDIR}/../mod_rpaf