diff options
author | beech <beech@FreeBSD.org> | 2008-04-30 00:01:27 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2008-04-30 00:01:27 +0800 |
commit | a6114b2f6029c1ea85be37114f836520a0fc3015 (patch) | |
tree | 8aa7f632aab01a24df5aac5327acc865e4d6660c /www/phpgedview | |
parent | 51a3ea0ec88334e1f2fe2cce6b293224673f6a9f (diff) | |
download | freebsd-ports-gnome-a6114b2f6029c1ea85be37114f836520a0fc3015.tar.gz freebsd-ports-gnome-a6114b2f6029c1ea85be37114f836520a0fc3015.tar.zst freebsd-ports-gnome-a6114b2f6029c1ea85be37114f836520a0fc3015.zip |
- Add options
- Fix permissions
- Bump portrevision
Submitted by: "J.R. Oldroyd" <jr@opal.com> (Maintainer)
Diffstat (limited to 'www/phpgedview')
-rw-r--r-- | www/phpgedview/Makefile | 42 | ||||
-rw-r--r-- | www/phpgedview/pkg-message | 11 |
2 files changed, 33 insertions, 20 deletions
diff --git a/www/phpgedview/Makefile b/www/phpgedview/Makefile index ebc273e47e01..6d149bbe9561 100644 --- a/www/phpgedview/Makefile +++ b/www/phpgedview/Makefile @@ -7,6 +7,7 @@ PORTNAME= phpGedView PORTVERSION= 4.1.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= SF MASTER_SITE_SUBDIR= phpgedview @@ -19,12 +20,37 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} EXTRACT_AFTER_ARGS= -d ${WRKSRC} USE_ZIP= yes -USE_PHP= yes +USE_PHP= calendar dom gd pcre session xml NO_BUILD= yes SUB_FILES= pkg-message pkg-deinstall DISTATE= config.php config_download.php config_gedcom.php +OPTIONS=\ + MYSQL "Install MYSQL data storage option" off \ + PGSQL "Install Postgress data storage option" off \ + SQLITE "Install SQLITE data storage option" on + +.include <bsd.port.pre.mk> + +.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) +check-makevars:: + @${ECHO_CMD} "${PKGNAME}: Makefile options: at least one database: MYSQL, PGSQL or SQLITE must be installed." + @${FALSE} +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL= yes +.endif + +.if defined(WITH_SQLITE) +USE_PHP += sqlite +.endif + post-extract: .for f in ${DISTATE} @${MV} ${WRKSRC}/${f} ${WRKSRC}/${f}-dist @@ -32,20 +58,18 @@ post-extract: do-install: @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} - @${CHMOD} 755 ${WWWDIR} - @${CHMOD} 644 ${WWWDIR}/index - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >>${TMPPLIST} - @${ECHO_CMD} '@exec ${CHMOD} 755 ${WWWDIR}' >>${TMPPLIST} - @${ECHO_CMD} '@exec ${CHMOD} 644 ${WWWDIR}/index' >>${TMPPLIST} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media + @${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST} + @${ECHO_CMD} '@exec ${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST} post-install: .for f in ${DISTATE} @if [ ! -f ${WWWDIR}/${f} ]; then \ ${CP} -p ${WWWDIR}/${f}-dist ${WWWDIR}/${f}; \ - ${CHMOD} 666 ${WWWDIR}/${f}; \ + ${CHMOD} a+w ${WWWDIR}/${f}; \ fi .endfor @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/phpgedview/pkg-message b/www/phpgedview/pkg-message deleted file mode 100644 index 3f39ab16d4c8..000000000000 --- a/www/phpgedview/pkg-message +++ /dev/null @@ -1,11 +0,0 @@ -======================================= -If it's your initial installation, you should: - -- Go to /usr/local/www/data/phpGedView/ and copy all files ending - with -dist to their name without -dist. - -- point your web browser to the phpGedView folder - (http://www.yourserver.com/phpGedView/) to automatically begin - the online configuration process. - -======================================= |