diff options
author | James E. Housley <jeh@FreeBSD.org> | 2001-01-13 01:29:38 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2001-01-13 01:29:38 +0000 |
commit | 7e823ca9cbb489de6f03a3313a1d9c7bb60b980a (patch) | |
tree | c406a7745f832145adb1b9ee61a44498fd4a32b5 /www/mod_auth_pgsql/Makefile | |
parent | 6112134f225606f40880f90d267f5c1112e200db (diff) |
Notes
Diffstat (limited to 'www/mod_auth_pgsql/Makefile')
-rw-r--r-- | www/mod_auth_pgsql/Makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/www/mod_auth_pgsql/Makefile b/www/mod_auth_pgsql/Makefile new file mode 100644 index 000000000000..1edca2dfcc4c --- /dev/null +++ b/www/mod_auth_pgsql/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: apache mod_auth_pgsql +# Date created: 2000/11/10 +# Whom: Mikhail Teterin <mi@aldan.algebra.com> +# +# $FreeBSD$ + +PORTNAME= mod_auth_pgsql +PORTVERSION= 0.9.5a +CATEGORIES= www +MASTER_SITES= ftp://ftp.eurolink.it/pub/linux/postgreSQL/mod_auth_pgsql/ + +MAINTAINER= mi@aldan.algebra.com + +BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/${AP_PORT} \ + ${LOCALBASE}/pgsql/lib/libpq.so:${PORTSDIR}/databases/postgresql7 +RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT} \ + ${LOCALBASE}/pgsql/lib/libpq.so:${PORTSDIR}/databases/postgresql7 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//} + +.include <bsd.port.pre.mk> + +APXS= ${LOCALBASE}/sbin/apxs + +AP_PORT?= apache13 +.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 + +AUTH_PGSQL_DOCS= apache/manual/mod/mod_auth_pgsql + +PLIST_SUB+= AUTH_PGSQL_DOCS="${AUTH_PGSQL_DOCS}" + +PKGMESSAGE= ${WRKSRC}/.install_notes + +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --with-pgsql=${PREFIX}/pgsql \ + --with-apxs=${APXS} + +.if !defined(NOPORTDOCS) +PLIST_SUB+= DOC='' +post-install: + @${MKDIR} ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS} + ${INSTALL_DATA} ${WRKSRC}/README \ + ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/ + ${TR} -d \\015 < ${WRKSRC}/mod_auth_pgsql.html \ + > ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html + ${CHMOD} ${SHAREMODE} \ + ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html + ${CHOWN} ${SHAREOWN}:${SHAREGRP} \ + ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html + ${LN} -sf ${AUTH_PGSQL_DOCS} ${PREFIX}/share/doc/ +.else +PLIST_SUB+= DOC='@comment ' +.endif + +.include <bsd.port.post.mk> |