diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 13:52:18 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 13:52:18 +0000 |
commit | 9659b8cfc964162df12dd1f049f469ea3a1de1fb (patch) | |
tree | e754b4e4f647dc4284265616a95be5c2b4dd64cd /www | |
parent | Upgrade to version 3.6. (diff) |
- Utilize Makefile.modules.3rd
IMHO, it's one of the best example to see how Makefile.modules.3rd
can be useful.
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_rpaf/Makefile | 27 | ||||
-rw-r--r-- | www/mod_rpaf/pkg-plist | 3 | ||||
-rw-r--r-- | www/mod_rpaf2/Makefile | 2 |
3 files changed, 9 insertions, 23 deletions
diff --git a/www/mod_rpaf/Makefile b/www/mod_rpaf/Makefile index 1dbccb5759c0..2ac4fb80824e 100644 --- a/www/mod_rpaf/Makefile +++ b/www/mod_rpaf/Makefile @@ -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> diff --git a/www/mod_rpaf/pkg-plist b/www/mod_rpaf/pkg-plist deleted file mode 100644 index de91bc63a465..000000000000 --- a/www/mod_rpaf/pkg-plist +++ /dev/null @@ -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 diff --git a/www/mod_rpaf2/Makefile b/www/mod_rpaf2/Makefile index 531e607b10e3..a5f3499dd8b1 100644 --- a/www/mod_rpaf2/Makefile +++ b/www/mod_rpaf2/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ # -WITH_APACHE2= yes +WANT_APACHE= 2 LATEST_LINK= mod_rpaf2 MASTERDIR= ${.CURDIR}/../mod_rpaf |