diff options
author | clement <clement@FreeBSD.org> | 2004-04-16 21:52:18 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-04-16 21:52:18 +0800 |
commit | 0e6220ef575f4ce535e92d7c13b9bd317ad28a93 (patch) | |
tree | 8f1a9013e7f3525456f24d47c925fcb8c178444a /www/mod_rpaf | |
parent | 7fcaf09880a39ccf24dca030161c99b7bbad10ff (diff) | |
download | freebsd-ports-gnome-0e6220ef575f4ce535e92d7c13b9bd317ad28a93.tar.gz freebsd-ports-gnome-0e6220ef575f4ce535e92d7c13b9bd317ad28a93.tar.zst freebsd-ports-gnome-0e6220ef575f4ce535e92d7c13b9bd317ad28a93.zip |
- 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/mod_rpaf')
-rw-r--r-- | www/mod_rpaf/Makefile | 27 | ||||
-rw-r--r-- | www/mod_rpaf/pkg-plist | 3 |
2 files changed, 8 insertions, 22 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 |