diff options
author | adamw <adamw@FreeBSD.org> | 2012-12-17 00:39:46 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2012-12-17 00:39:46 +0800 |
commit | 82c90335d09c8858746f852463c4e46c63895ba5 (patch) | |
tree | 7a1e927bd54e0e303fbf47c2d6e72341d0708781 /www/baikal | |
parent | e721126fa2b086be70063c498d1d7017a6cee83c (diff) | |
download | freebsd-ports-gnome-82c90335d09c8858746f852463c4e46c63895ba5.tar.gz freebsd-ports-gnome-82c90335d09c8858746f852463c4e46c63895ba5.tar.zst freebsd-ports-gnome-82c90335d09c8858746f852463c4e46c63895ba5.zip |
* Don't give www ownership of anything it shouldn't need to write to
* Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS [1]
* PORTREVISION bump
Submitted by: jgh [1]
Diffstat (limited to 'www/baikal')
-rw-r--r-- | www/baikal/Makefile | 20 | ||||
-rw-r--r-- | www/baikal/files/pkg-message.in | 3 |
2 files changed, 11 insertions, 12 deletions
diff --git a/www/baikal/Makefile b/www/baikal/Makefile index 3c69aa82335b..de66e720e03b 100644 --- a/www/baikal/Makefile +++ b/www/baikal/Makefile @@ -3,6 +3,7 @@ PORTNAME= baikal PORTVERSION= 0.2.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://baikal.codr.fr/get/ DISTNAME= ${PORTNAME}-regular-${PORTVERSION} @@ -20,15 +21,12 @@ PLIST_SUB+= CALDB="${WWWDIR}/Specific/db/db.sqlite" SUB_LIST+= CALDB="${WWWDIR}/Specific/db/db.sqlite" SUB_FILES= pkg-install pkg-message -.if !defined(NOPORTDOCS) PORTDOCS= * -.endif -.if !defined(NOPORTEXAMPLES) PORTEXAMPLES= * -.endif +.include <bsd.port.options.mk> post-patch: - ${FIND} ${WRKSRC} -type f \! -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \; + ${FIND} ${WRKSRC} -type f -not -name '*.php' -exec ${CHMOD} ${SHAREMODE} {} \; ${FIND} ${WRKSRC} -type f -name '*.php' -exec ${CHMOD} ${BINMODE} {} \; ${FIND} ${WRKSRC} -type d -exec ${CHMOD} 0755 {} \; ${MV} ${WRKSRC}/Specific/db/db.sqlite \ @@ -42,18 +40,20 @@ post-patch: do-install: ${MKDIR} ${WWWDIR} -.for DIR in Core html Specific - cd ${WRKSRC} && ${FIND} ${DIR} \! -path '*/virtualhosts*' | \ - ${CPIO} -pdmu -R ${WWWOWN}:${WWWGRP} --quiet ${WWWDIR} +.for DIR in Core html + cd ${WRKSRC} && ${FIND} ${DIR} | \ + ${CPIO} -pdmu -R ${BINOWN}:${BINGRP} --quiet ${WWWDIR} .endfor + cd ${WRKSRC} && ${FIND} Specific -not -path '*/virtualhosts*' | \ + ${CPIO} -pdmu -R ${WWWOWN}:${WWWGRP} --quiet ${WWWDIR} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} .for f in INSTALL.md LICENSE.txt README.md TROUBLESHOOTING.md ${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR} .endfor .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} .for f in apache2 nginx ${INSTALL_DATA} ${WRKSRC}/Specific/virtualhosts/baikal.$f ${EXAMPLESDIR} .endfor diff --git a/www/baikal/files/pkg-message.in b/www/baikal/files/pkg-message.in index 403a6bcb1d7f..59389bab86ee 100644 --- a/www/baikal/files/pkg-message.in +++ b/www/baikal/files/pkg-message.in @@ -1,7 +1,6 @@ To finish installing Baikal: - 1) Set up an httpd directive; Baikal *MUST* run from - the root of a VirtualHost or subdomain. + 1) Set up an httpd directive See %%EXAMPLESDIR%% 2) touch %%WWWDIR%%/Specific/ENABLE_INSTALL 3) Browse http://your.host.here/admin |