Massive cleanup

- APACHE_COMPAT is deprecated
- Use DOS2UNIX
- Kill AP_* garbage
- Use PORTDOCS var
This commit is contained in:
Philip M. Gollucci 2009-04-13 02:27:07 +00:00
parent 3af18d3222
commit b5a2d6b67c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232262
2 changed files with 10 additions and 36 deletions

View File

@ -8,53 +8,30 @@ PORTNAME= mod_auth_pgsql
PORTVERSION= 0.9.12
PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= http://www.giuseppetanzilli.it/mod_auth_pgsql/dist/
MASTER_SITES= http://www.giuseppetanzilli.it/${PORTNAME}/dist/
MAINTAINER= apache@FreeBSD.org
COMMENT= Allows users to use PostgreSQL databases for user authentication
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/${APACHE_PORT}
USE_DOS2UNIX= ${PORTNAME}.html
USE_PGSQL= yes
APACHE_COMPAT= yes
USE_APACHE= 1.3
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}
.include <bsd.port.pre.mk>
.if exists(${APXS})
APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no
.endif
.if exists(${APXS}) && ${APXS_WORKS} != no
AP_TARGET!= ${APXS} -q TARGET
AP_SYSCONF!= ${APXS} -q SYSCONFDIR
AP_INCLUDE!= ${APXS} -q INCLUDEDIR
AP_LIBEXEC!= ${APXS} -q LIBEXECDIR
CFLAGS:= `${APXS} -q CFLAGS` ${CFLAGS}
.else
AP_TARGET?= httpd
AP_SYSCONF?= ${PREFIX}/etc/apache
AP_INCLUDE?= ${PREFIX}/include/apache
AP_LIBEXEC?= ${PREFIX}/libexec/apache
.endif
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-pgsql=${PREFIX} \
--with-apxs=${APXS}
PORTDOCS= README index.html
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README \
${DOCSDIR}
${TR} -d \\015 < ${WRKSRC}/mod_auth_pgsql.html \
> ${DOCSDIR}/index.html
${CHMOD} ${SHAREMODE} \
${DOCSDIR}/index.html
${CHOWN} ${SHAREOWN}:${SHAREGRP} \
${DOCSDIR}/index.html
@${MKDIR} ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}/index.html
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,6 +1,3 @@
libexec/apache/mod_auth_pgsql.so
%%APACHEMODDIR%%/mod_auth_pgsql.so
@exec %D/sbin/apxs -e -a -n auth_pgsql %f
@unexec %D/sbin/apxs -e -A -n auth_pgsql %f
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%