aboutsummaryrefslogtreecommitdiff
path: root/www/mysar/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-01-11 05:10:58 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-01-11 05:10:58 +0000
commit733e6b41bc68942726784fb2e0a4ab4d62ae7ad9 (patch)
tree95ca3caf708fae99f1f2adc3c10188dceb47dd05 /www/mysar/Makefile
parentf8fdcfdf45c0e8ea814503816072151d9a839ed9 (diff)
downloadports-733e6b41bc68942726784fb2e0a4ab4d62ae7ad9.tar.gz
ports-733e6b41bc68942726784fb2e0a4ab4d62ae7ad9.zip
Notes
Diffstat (limited to 'www/mysar/Makefile')
-rw-r--r--www/mysar/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/www/mysar/Makefile b/www/mysar/Makefile
new file mode 100644
index 000000000000..a0fdd1697815
--- /dev/null
+++ b/www/mysar/Makefile
@@ -0,0 +1,50 @@
+#
+# ports collection makefile for: mysar
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+# Date created: 2006-01-10
+#
+# $FreeBSD$
+#
+
+PORTNAME= mySAR
+PORTVERSION= 2.0.7
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= mysar
+DISTNAME= ${PORTNAME:L}-${PORTVERSION}
+
+MAINTAINER= edwin@mavetju.org
+COMMENT= MySQL Squid Access Report
+
+WRKSRC= ${WRKDIR}/${PORTNAME:L}
+USE_MYSQL= yes
+USE_PHP= mysql
+USE_REINPLACE= yes
+NO_BUILD= yes
+
+MYSARPREFIX= mysar
+MYSARDIR?= ${PREFIX}/${MYSARPREFIX}
+PLIST_SUB= MYSAR=${MYSARPREFIX}
+
+SUB_FILES= pkg-message
+SUB_LIST= MYSARDIR=${MYSARDIR}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,%%MYSARDIR%%,${MYSARDIR},g' \
+ ${WRKSRC}/etc/*
+ ${REINPLACE_CMD} -e 's,%%PHP%%,${LOCALBASE}/bin/php,g' \
+ ${WRKSRC}/bin/*
+
+ ${FIND} ${WRKSRC} -name *.orig -delete
+ ${FIND} ${WRKSRC} -name *.bak -delete
+
+do-install:
+ ${MKDIR} ${MYSARDIR}
+ ${CP} -R ${WRKSRC}/* ${MYSARDIR}
+ ${CHOWN} -R ${WWWOWN} ${MYSARDIR}/www-templates
+ ${CHOWN} -R ${WWWOWN} ${MYSARDIR}/smarty-tmp
+
+post-install:
+ ${CAT} ${PKGMESSAGE}
+.include <bsd.port.mk>