mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
8dca1abfdd
Submitted by: Joe Kraft <jvk-list@thekrafts.org>
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
#
|
|
# ports collection makefile for: mysar
|
|
# Whom: Edwin Groothuis <edwin@mavetju.org>
|
|
# Date created: 2006-01-10
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mySAR
|
|
PORTVERSION= 2.0.12
|
|
PORTREVISION= 1
|
|
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 pcre
|
|
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>
|