aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/mod_auth_external/Makefile27
-rw-r--r--www/mod_auth_external/pkg-plist30
2 files changed, 16 insertions, 41 deletions
diff --git a/www/mod_auth_external/Makefile b/www/mod_auth_external/Makefile
index ea52c74d1ad..56a8774afa0 100644
--- a/www/mod_auth_external/Makefile
+++ b/www/mod_auth_external/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mod_auth_external
PORTVERSION= 2.1.19
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.unixpapa.com/software/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
@@ -14,24 +15,28 @@ MASTER_SITES= http://www.unixpapa.com/software/ \
MAINTAINER= anders@FreeBSD.org
COMMENT= Enables the use of external mechanisms for user authentication
-USE_APACHE= yes
-DOCS= AUTHENTICATORS CHANGES INSTALL README TODO
-
CONFLICTS= apache-contrib-1.*
-do-build:
- @cd ${WRKSRC} && ${APXS} -c mod_auth_external.c
+USE_APACHE= 1.3
+AP_FAST_BUILD= yes
+AP_GENPLIST= yes
+
+PORTDOCS= AUTHENTICATORS CHANGES INSTALL README TODO
+PORTEXAMPLES= mysql radius sybase test
-do-install:
- ${APXS} -i -A -n auth_external ${WRKSRC}/mod_auth_external.so
+post-install:
.if !defined(NOPORTDOCS)
- ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}/examples
- cd ${WRKSRC} && ${TAR} -chf - mysql radius sybase test \
- | ${TAR} -xf - -C ${DOCSDIR}/examples
-.for f in ${DOCS}
+ ${MKDIR} ${DOCSDIR}/
+.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}/
+.for d in ${PORTEXAMPLES}
+ ${COPYTREE_SHARE} ${WRKSRC}/${d} ${EXAMPLESDIR}/${d}
+.endfor
+.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/mod_auth_external/pkg-plist b/www/mod_auth_external/pkg-plist
deleted file mode 100644
index a8bb1e38142..00000000000
--- a/www/mod_auth_external/pkg-plist
+++ /dev/null
@@ -1,30 +0,0 @@
-libexec/apache/mod_auth_external.so
-@exec %D/sbin/apxs -e -A -n auth_external %D/%F
-@unexec %D/sbin/apxs -e -A -n auth_external %D/%F
-%%PORTDOCS%%%%DOCSDIR%%/examples/mysql/mysql-auth.pl
-%%PORTDOCS%%%%DOCSDIR%%/examples/mysql/README
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/md5-radius.c
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/md5-radius.h
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/mod-radfuncs.c
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/mod-radius.h
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/mod_auth_external_radius.c
-%%PORTDOCS%%%%DOCSDIR%%/examples/radius/README
-%%PORTDOCS%%%%DOCSDIR%%/examples/sybase/mod_auth_external_sybase.c
-%%PORTDOCS%%%%DOCSDIR%%/examples/sybase/README
-%%PORTDOCS%%%%DOCSDIR%%/examples/test/test.pipe
-%%PORTDOCS%%%%DOCSDIR%%/examples/test/test.env
-%%PORTDOCS%%%%DOCSDIR%%/examples/test/testgroup.env
-%%PORTDOCS%%%%DOCSDIR%%/examples/test/testgroup.pipe
-%%PORTDOCS%%%%DOCSDIR%%/examples/test/README
-%%PORTDOCS%%%%DOCSDIR%%/AUTHENTICATORS
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples/mysql
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples/radius
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples/sybase
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples/test
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
-%%PORTDOCS%%@dirrm %%DOCSDIR%%