svn commit: r364229 - in head/www/foswiki: . files
John Marino
marino at FreeBSD.org
Wed Aug 6 23:02:17 UTC 2014
Author: marino
Date: Wed Aug 6 23:02:16 2014
New Revision: 364229
URL: http://svnweb.freebsd.org/changeset/ports/364229
QAT: https://qat.redports.org/buildarchive/r364229/
Log:
Stage www/foswiki
PR: 190083
Submitted by: Joe (thralling.com)
Tons of TLC: marino
Deleted:
head/www/foswiki/files/pkg-install.in
Modified:
head/www/foswiki/Makefile
head/www/foswiki/bsd.foswiki.mk
head/www/foswiki/pkg-plist
Modified: head/www/foswiki/Makefile
==============================================================================
--- head/www/foswiki/Makefile Wed Aug 6 22:29:36 2014 (r364228)
+++ head/www/foswiki/Makefile Wed Aug 6 23:02:16 2014 (r364229)
@@ -9,13 +9,13 @@ DISTNAME= Foswiki-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Free and open source enterprise wiki
+LICENSE= GPLv2
+
RUN_DEPENDS= p5-Error>=0.15:${PORTSDIR}/lang/p5-Error \
p5-Algorithm-Diff>=1.1901:${PORTSDIR}/devel/p5-Algorithm-Diff \
p5-Text-Diff>=0.35:${PORTSDIR}/textproc/p5-Text-Diff \
p5-Sort-Maker>=0.06:${PORTSDIR}/devel/p5-Sort-Maker
-LICENSE= GPLv2
-
USES= perl5 tar:tgz
NO_BUILD= yes
@@ -25,7 +25,6 @@ OPTINT_DESC= Install Perl modules for in
OPTOTH_DESC= Install other optional Perl modules
APACHE_DESC= Install Apache web server and sample config file
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTINT}
@@ -52,8 +51,6 @@ PLIST_SUB+= NOAPACHE=""
PKGMESSAGE= pkg-message-apache
SUB_FILES+= pkg-message-apache
-.include <bsd.port.pre.mk>
-
CONFDIR_REL= ${APACHEETCDIR}/Includes
CONFDIR= ${PREFIX}/${CONFDIR_REL}
@@ -64,14 +61,13 @@ PLIST_SUB+= CONFDIR=${CONFDIR_REL}
# the include performed after the USE_APACHE variable is set so
# APACHE_VERSION can be tested above.
-.include <bsd.port.pre.mk>
-
PLIST_SUB+= NOAPACHE="@comment "
PKGMESSAGE= pkg-message-noapache
SUB_FILES+= pkg-message-noapache
.endif
SUB_FILES+= LocalSite.cfg
+PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
post-patch:
@${RM} -rf ${WRKSRC}/lib/CPAN
@@ -96,9 +92,10 @@ post-patch:
post-install:
.if ${PORT_OPTIONS:MAPACHE}
- @if [ -d "${CONFDIR}" ]; then \
+ @${MKDIR} ${STAGEDIR}${CONFDIR}
+ @if [ -d "${STAGEDIR}${CONFDIR}" ]; then \
${INSTALL_DATA} ${WRKSRC}/foswiki_httpd_conf.txt \
- ${CONFDIR}/foswiki.conf.sample; \
+ ${STAGEDIR}${CONFDIR}/foswiki.conf.sample; \
else \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please check your Apache installation -" ; \
@@ -108,7 +105,6 @@ post-install:
${FALSE} ; \
fi
.endif
- @${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/bsd.foswiki.mk"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/www/foswiki/bsd.foswiki.mk
==============================================================================
--- head/www/foswiki/bsd.foswiki.mk Wed Aug 6 22:29:36 2014 (r364228)
+++ head/www/foswiki/bsd.foswiki.mk Wed Aug 6 23:02:16 2014 (r364229)
@@ -15,7 +15,7 @@
PORTVERSION?= 0.0.${SVNREV}
.if ${PORTNAME} == foswiki
.if ${.TARGETS} == make-port
-PNAME=
+PNAME=
.else
PNAME= core
.endif
@@ -40,7 +40,6 @@ PLIST_SUB+= FWDIR=${FWDIR:S|^${PREFIX}/|
SUB_LIST+= FWDIR=${FWDIR} FIND=${FIND} CHMOD=${CHMOD} CHOWN=${CHOWN} \
TOUCH=${TOUCH} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} \
CONFDIR=${CONFDIR}
-SUB_FILES+= pkg-install
MAINTAINER?= glarkin at FreeBSD.org
RUN_DEPENDS+= ${FWDEP:C/([^=<>]*)([=<>]*)(.*)/foswiki-\1\20.0.\3:${PORTSDIR}\/www\/foswiki-\1/}
@@ -60,12 +59,11 @@ create-plist: extract
@${ECHO_CMD} '@dirrm %%FWDIR%%' >> ${PLIST}
do-install:
- @${INSTALL} -d ${FWDIR}/
- @cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${FWDIR}/
+ @${INSTALL} -d ${STAGEDIR}${FWDIR}/
+ @cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${FWDIR}/
.if ${PORTNAME} == foswiki
- @${INSTALL_DATA} ${WRKDIR}/LocalSite.cfg ${WWWDIR}/lib
+ @${INSTALL_DATA} ${WRKDIR}/LocalSite.cfg ${STAGEDIR}${WWWDIR}/lib/LocalSite.cfg.sample
.endif
- ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
make-fwdep: extract
@echo "FWDEP=`grep -v ^# ${WRKSRC}/lib/*[wW]iki/*/${PORTNAME}/DEPENDENCIES |\
@@ -124,4 +122,5 @@ make-port:
sed -E 's|.+[wW]iki:Main[./]||g;s|^|Author: |;s| | |g;s| $$||;\
s|([a-z]) |\1, |;s|([a-z])([A-Z])|\1 \2|g' >> pkg-descr &&\
echo "WWW: http://www.foswiki.org/Support/$$nnam" >> pkg-descr;\
+
done
Modified: head/www/foswiki/pkg-plist
==============================================================================
--- head/www/foswiki/pkg-plist Wed Aug 6 22:29:36 2014 (r364228)
+++ head/www/foswiki/pkg-plist Wed Aug 6 23:02:16 2014 (r364229)
@@ -1,4 +1,6 @@
-%%NOAPACHE%%%%CONFDIR%%/foswiki.conf.sample
+%%NOAPACHE%%@sample %%CONFDIR%%/foswiki.conf.sample
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
%%WWWDIR%%/AUTHORS
%%WWWDIR%%/COPYING
%%WWWDIR%%/COPYRIGHT
@@ -10,6 +12,7 @@
%%WWWDIR%%/bin/.htaccess.txt
%%WWWDIR%%/bin/LocalLib.cfg
%%WWWDIR%%/bin/LocalLib.cfg.txt
+ at mode 555
%%WWWDIR%%/bin/attach
%%WWWDIR%%/bin/changes
%%WWWDIR%%/bin/compare
@@ -38,7 +41,10 @@
%%WWWDIR%%/bin/viewauth
%%WWWDIR%%/bin/viewfile
%%WWWDIR%%/bin/viewfileauth
+ at mode 444
@unexec if [ ! -s %%WWWDIR%%/data/.htpasswd ]; then rm -f %D/%%WWWDIR%%/data/.htpasswd; fi
+%%WWWDIR%%/data/Sandbox/CompareRevisionsAddOnDemoTopic.txt,v
+ at mode 644
%%WWWDIR%%/data/Main/AdminGroup.txt
%%WWWDIR%%/data/Main/AdminUser.txt
%%WWWDIR%%/data/Main/AdminUserLeftBar.txt
@@ -73,7 +79,6 @@
%%WWWDIR%%/data/Sandbox/CommentPluginExamples.txt
%%WWWDIR%%/data/Sandbox/CommentPluginTemplateExample.txt
%%WWWDIR%%/data/Sandbox/CompareRevisionsAddOnDemoTopic.txt
-%%WWWDIR%%/data/Sandbox/CompareRevisionsAddOnDemoTopic.txt,v
%%WWWDIR%%/data/Sandbox/PluginTestEmptyPlugin.txt
%%WWWDIR%%/data/Sandbox/WebAtom.txt
%%WWWDIR%%/data/Sandbox/WebChanges.txt
@@ -617,9 +622,12 @@
%%WWWDIR%%/data/_default/WebSearchAdvanced.txt
%%WWWDIR%%/data/_default/WebTopicList.txt
%%WWWDIR%%/data/_empty/WebPreferences.txt
+ at mode 644
%%WWWDIR%%/data/mime.types
+ at mode
%%WWWDIR%%/foswiki_httpd_conf.txt
%%WWWDIR%%/index.html
+ at mode 444
%%WWWDIR%%/lib/Assert.pm
%%WWWDIR%%/lib/Foswiki.pm
%%WWWDIR%%/lib/Foswiki.spec
@@ -1141,7 +1149,7 @@
%%WWWDIR%%/lib/Foswiki/Validation.pm
%%WWWDIR%%/lib/Foswiki/ValidationException.pm
%%WWWDIR%%/lib/Foswiki/WebFilter.pm
- at unexec if [ "`md5 -q %D/%%WWWDIR%%/lib/LocalSite.cfg`" = "c648a70f925757e7e982a5a13d47cfe7" ]; then rm -f %D/%%WWWDIR%%/lib/LocalSite.cfg; fi
+%%WWWDIR%%/lib/LocalSite.cfg.sample
%%WWWDIR%%/lib/MANIFEST
%%WWWDIR%%/lib/Monitor.pm
%%WWWDIR%%/lib/TWiki.pm
@@ -1181,6 +1189,7 @@
%%WWWDIR%%/locale/uk.po
%%WWWDIR%%/locale/zh-cn.po
%%WWWDIR%%/locale/zh-tw.po
+ at mode 644
%%WWWDIR%%/pub-htaccess.txt
%%WWWDIR%%/pub/System/BeginnersStartHere/BT_logo.gif
%%WWWDIR%%/pub/System/BeginnersStartHere/Disney_logo.gif
@@ -5999,10 +6008,12 @@
%%WWWDIR%%/pub/System/WabiSabi/wabisabi.gif
%%WWWDIR%%/pub/System/WindowsInstallCookbook/cygwin-icon.gif
%%WWWDIR%%/pub/System/WysiwygPlugin/wikiringlogo20x20.png
+ at mode
%%WWWDIR%%/readme.txt
%%WWWDIR%%/robots.txt
%%WWWDIR%%/root-htaccess.txt
%%WWWDIR%%/subdir-htaccess.txt
+ at mode 444
%%WWWDIR%%/templates/attachtables.pattern01x00.tmpl
%%WWWDIR%%/templates/backlinks.pattern01x00.tmpl
%%WWWDIR%%/templates/foswiki.pattern01x00.tmpl
@@ -6119,6 +6130,7 @@
%%WWWDIR%%/templates/viewsidebar.pattern.tmpl
%%WWWDIR%%/templates/viewtopbar.pattern.tmpl
%%WWWDIR%%/templates/viewtopicactionbuttons.tmpl
+ at mode 555
%%WWWDIR%%/tools/dependencies_installer.pl
%%WWWDIR%%/tools/extender.pl
%%WWWDIR%%/tools/extension_installer
@@ -6133,6 +6145,7 @@
%%WWWDIR%%/tools/tml2html.pl
%%WWWDIR%%/tools/upgrade_emails.pl
%%WWWDIR%%/tools/yuicompressor.jar
+ at mode
%%WWWDIR%%/working/.htaccess
%%WWWDIR%%/working/README
%%WWWDIR%%/working/logs/README
More information about the svn-ports-all
mailing list