aboutsummaryrefslogtreecommitdiff
path: root/www/geeklog/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-12-25 20:11:33 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-12-25 20:11:33 +0000
commit70df1020071f92bef64984a2dba4c94b132bcfd3 (patch)
tree392f9f63e72264fe8b4e1c91b24c99687dc68335 /www/geeklog/Makefile
parentd078a426c9345888a35c21bfe822d4e8c92be87f (diff)
Notes
Diffstat (limited to 'www/geeklog/Makefile')
-rw-r--r--www/geeklog/Makefile41
1 files changed, 22 insertions, 19 deletions
diff --git a/www/geeklog/Makefile b/www/geeklog/Makefile
index 59c5bacece39..5797022a929c 100644
--- a/www/geeklog/Makefile
+++ b/www/geeklog/Makefile
@@ -6,35 +6,38 @@
#
PORTNAME= geeklog
-PORTVERSION= 1.5.2
+PORTVERSION= 1.6.1
CATEGORIES= www
MASTER_SITES= http://www.geeklog.net/filemgmt/upload_dir/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sahil@tandon.net
COMMENT= GeekLog is a web content magagement system
+SUB_FILES= pkg-message
+
USE_MYSQL= yes
NO_BUILD= yes
USE_PHP= yes
do-install:
- ${MKDIR} ${WWWDIR}
- ${CP} -R ${WRKSRC}/* ${WWWDIR}
- ${CHOWN} -R www:www ${WWWDIR}
- ${CHMOD} -R 775 ${WWWDIR}/logs
- ${CHMOD} -R 775 ${WWWDIR}/public_html/images/articles
- ${CHMOD} -R 775 ${WWWDIR}/public_html/images/userphotos
- ${CHMOD} -R 775 ${WWWDIR}/public_html/backend
- @${ECHO_MSG} ""
- @${ECHO_MSG} "***********************************************************************"
- @${ECHO_MSG} "* You now need to create the database that you want GeekLog *"
- @${ECHO_MSG} "* to reside in. *"
- @${ECHO_MSG} "* Then edit the config.php file to your needs. *"
- @${ECHO_MSG} "* Once you have done that, the goto *"
- @${ECHO_MSG} "* http://<your_website>/geeklog/public_html/admin/install/install.php *"
- @${ECHO_MSG} "* And follow the instructions, then you are done!! *"
- @${ECHO_MSG} "***********************************************************************"
+ @${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 555 -d ${WWWDIR}
+ @(cd ${WRKSRC} && \
+ ${COPYTREE_SHARE} \* ${WWWDIR} "! -name db-config.php \
+ -or -name siteconfig.php")
+ @if [ ! -f ${WWWDIR}/db-config.php ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/db-config.php ${WWWDIR}/db-config.php; \
+ fi
+ @if [ ! -f ${WWWDIR}/public_html/siteconfig.php ]; then \
+ {INSTALL_DATA} ${WRKSRC}/public_html/siteconfig.php \
+ ${WWWDIR}/public_html/siteconfig.php; \
+ fi
+
+post-install:
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+.for i in db-config.php error.log siteconfig.php geeklog.rss
+ @${FIND} ${WWWDIR} -name ${i} | ${XARGS} ${CHMOD} 755
+.endfor
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>