1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/www/geeklog/Makefile
Antoine Brodin b64d26e8c3 - Allow staging as a regular user
- Bump portrevision as files were not packaged with intended owner
2014-10-13 18:29:44 +00:00

35 lines
955 B
Makefile

# Created by: Bob Bomar <bob@fly.homeunix.org>
# $FreeBSD$
PORTNAME= geeklog
PORTVERSION= 1.6.1
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.geeklog.net/filemgmt/upload_dir/
MAINTAINER= sahil@FreeBSD.org
COMMENT= Web content management system
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
USE_MYSQL= yes
NO_BUILD= yes
USE_PHP= yes
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
@(cd ${WRKSRC} && \
${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR} "! -name db-config.php \
-or -name siteconfig.php")
@${INSTALL_DATA} ${WRKSRC}/db-config.php ${STAGEDIR}${WWWDIR}/db-config.php.sample;
@${INSTALL_DATA} ${WRKSRC}/public_html/siteconfig.php \
${STAGEDIR}${WWWDIR}/public_html/siteconfig.php.sample
@${RM} ${STAGEDIR}${WWWDIR}/public_html/siteconfig.php
.for i in db-config.php error.log siteconfig.php geeklog.rss
@${FIND} ${STAGEDIR}${WWWDIR} -name ${i} | ${XARGS} ${CHMOD} 755
.endfor
.include <bsd.port.mk>