aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_accounting/Makefile
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2003-07-25 03:28:51 +0800
committeroliver <oliver@FreeBSD.org>2003-07-25 03:28:51 +0800
commit40440de537178a8fa9444afe6fb119495a559f9c (patch)
tree54edc8bec526432481f068b66d71bb09e2f145ea /www/mod_accounting/Makefile
parent8546595c7320c9b77193098403747e4904501605 (diff)
downloadfreebsd-ports-gnome-40440de537178a8fa9444afe6fb119495a559f9c.tar.gz
freebsd-ports-gnome-40440de537178a8fa9444afe6fb119495a559f9c.tar.zst
freebsd-ports-gnome-40440de537178a8fa9444afe6fb119495a559f9c.zip
Add mod_accounting 0.5,
an Apache module that records traffic statistics into a database. PR: 45502 Submitted by: Clément Laforêt <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'www/mod_accounting/Makefile')
-rw-r--r--www/mod_accounting/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/mod_accounting/Makefile b/www/mod_accounting/Makefile
new file mode 100644
index 000000000000..f15ddf6da446
--- /dev/null
+++ b/www/mod_accounting/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: mod_accounting
+# Date created: 15 November 2002
+# Whom: Clément Laforêt <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_accounting
+PORTVERSION= 0.5
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= mod-acct
+
+MAINTAINER= sheepkiller@cultdeadsheep.org
+COMMENT= An Apache module that records traffic statistics into a database
+
+BUILD_DEPENDS+= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+
+MAKE_ARGS+= APXS="${APXS}"
+APXS?= ${LOCALBASE}/sbin/apxs
+
+.if defined(WITHOUT_PGSQL)
+MAKE_ARGS+= WITHOUT_PGSQL=YES
+.else
+LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
+.endif
+
+.if defined(WITHOUT_MYSQL)
+MAKE_ARGS+= WITHOUT_MYSQL=YES
+.else
+LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+.endif
+
+pre-everything:
+ @${ECHO} "*-----------------------------------------*"
+ @${ECHO} "To disable MySQL support just define :"
+ @${ECHO} " WITHOUT_MYSQL=YES"
+ @${ECHO} "To disable PostgreSQL support just define :"
+ @${ECHO} " WITHOUT_PGSQL=YES"
+ @${ECHO} "*-----------------------------------------*"
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/schema.sql ${PREFIX}/share/${PORTNAME}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/FAQ.txt
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/LICENSE
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>