# New ports collection makefile for:	GeekLog
# Date Created: 	22 April 2002
# Whom:			Bob Bomar <bob@fly.homeunix.org>
#
# $FreeBSD: ports/www/geeklog/Makefile,v 1.16 2009/03/16 22:33:17 beat Exp $
#

PORTNAME=	geeklog
PORTVERSION=	1.5.2
CATEGORIES=	www
MASTER_SITES=	http://www.geeklog.net/filemgmt/upload_dir/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.r/rc/}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GeekLog is a web content magagement system

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} "***********************************************************************"

.include <bsd.port.mk>
