diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-11-24 10:26:38 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-11-24 10:26:38 +0000 |
commit | 309ae39263ea03de0f3de57b5022aa3b8c0c2972 (patch) | |
tree | e0715d44167b557b687b1d69def4b9087012dfd0 /www/mysar/Makefile | |
parent | ea08f78b3924f47f66de6b5fc8e3f2ef4716bd9a (diff) | |
download | ports-309ae39263ea03de0f3de57b5022aa3b8c0c2972.tar.gz ports-309ae39263ea03de0f3de57b5022aa3b8c0c2972.zip |
Notes
Diffstat (limited to 'www/mysar/Makefile')
-rw-r--r-- | www/mysar/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/www/mysar/Makefile b/www/mysar/Makefile index 376cb2e94bdd..461000af7a86 100644 --- a/www/mysar/Makefile +++ b/www/mysar/Makefile @@ -11,10 +11,13 @@ DISTNAME= ${PORTNAME:tl}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= MySQL Squid Access Report +LICENSE= GPLv2 +LICENSE_FILE= ${WRKROOT}/COPYING + BUILD_DEPENDS= bash:shells/bash WRKROOT= ${WRKDIR}/${PORTNAME:tl} -WRKSRC= ${WRKROOT}/bin/mysar-binary-importer/ +WRKSRC= ${WRKROOT}/bin/mysar-binary-importer GNU_CONFIGURE= yes USE_MYSQL= yes USE_PHP= mysql pcre @@ -31,26 +34,26 @@ SUB_LIST= MYSARDIR=${MYSARDIR} PKGMESSAGE= ${WRKDIR}/pkg-message post-extract: - ${CHMOD} +x ${WRKSRC}/config/* + @${CHMOD} +x ${WRKSRC}/config/* post-patch: - ${REINPLACE_CMD} \ + @${REINPLACE_CMD} \ -e 's,/usr/local/mysar/,${MYSARDIR},g' \ ${WRKROOT}/etc/mysar.cron - ${REINPLACE_CMD} \ + @${REINPLACE_CMD} \ -e 's,/usr/local/mysar/,${MYSARDIR},g' \ ${WRKROOT}/etc/mysar.apache - ${REINPLACE_CMD} \ + @${REINPLACE_CMD} \ -e 's,/usr/bin/php,${LOCALBASE}/bin/php,g' \ -e 's,\([=,. ]\)mktime(),\1time(),g' \ `find ${WRKROOT}/bin -type f` - ${REINPLACE_CMD} \ + @${REINPLACE_CMD} \ -e 's,/bin/sh,${LOCALBASE}/bin/bash,g' \ `find ${WRKROOT}/bin/mysar-binary-importer -type f` - ${FIND} ${WRKROOT} -name *.orig -delete - ${FIND} ${WRKROOT} -name *.bak -delete + @${FIND} ${WRKROOT} -name *.orig -delete + @${FIND} ${WRKROOT} -name *.bak -delete do-install: ${MV} ${WRKSRC} ${WRKROOT} |