aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-06-08 09:17:06 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-06-08 09:17:06 +0800
commit39254486fd8fea91bb5a6ab76c9003d5c23fe2de (patch)
tree18c0313e398a7252e205003cccb5020582291fbb /www
parent7b8024dac03f53cd964e8465b414fdddec37dc0c (diff)
downloadfreebsd-ports-gnome-39254486fd8fea91bb5a6ab76c9003d5c23fe2de.tar.gz
freebsd-ports-gnome-39254486fd8fea91bb5a6ab76c9003d5c23fe2de.tar.zst
freebsd-ports-gnome-39254486fd8fea91bb5a6ab76c9003d5c23fe2de.zip
- Add LICENSE
- Switch to USES=tar - Add NO_ARCH - Modernize plist
Diffstat (limited to 'www')
-rw-r--r--www/pmwiki/Makefile18
-rw-r--r--www/pmwiki/pkg-plist15
2 files changed, 12 insertions, 21 deletions
diff --git a/www/pmwiki/Makefile b/www/pmwiki/Makefile
index 98696fe91170..f6fe09956bd0 100644
--- a/www/pmwiki/Makefile
+++ b/www/pmwiki/Makefile
@@ -6,15 +6,19 @@ PORTVERSION= 2.2.64
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://www.pmwiki.org/pub/pmwiki/
-EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= WikiWikiWeb clone using PHP
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/docs/COPYING.txt
+
+USES= cpe tar:tgz
USE_PHP= mbstring session
WANT_PHP_WEB= yes
NO_BUILD= yes
+NO_ARCH= yes
PORTDOCS= *
@@ -39,15 +43,11 @@ post-extract:
@${MV} ${WRKSRC}/docs/sample-config.php ${WRKSRC}
do-install:
- @${MKDIR} -m 755 ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
@cd ${WRKSRC} && ${FIND} . ! \( -name docs -prune \) | \
${CPIO} ${CPIOFLAGS} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
- @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
- @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${STAGEDIR}${DOCSDIR}
- @${INSTALL_MAN} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
-
-post-install:
- @${MKDIR} -m 775 ${STAGEDIR}${PREFIX}/${PMWIKIDIR}/wiki.d
- @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}/wiki.d
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}/wiki.d
.include <bsd.port.mk>
diff --git a/www/pmwiki/pkg-plist b/www/pmwiki/pkg-plist
index 7cf96f0b8c39..ae458ce569b4 100644
--- a/www/pmwiki/pkg-plist
+++ b/www/pmwiki/pkg-plist
@@ -206,15 +206,6 @@
%%PMWIKIDIR%%/wikilib.d/SiteAdmin.GroupAttributes
%%PMWIKIDIR%%/wikilib.d/SiteAdmin.SiteAdmin
%%PMWIKIDIR%%/wikilib.d/SiteAdmin.Status
-@dirrm %%PMWIKIDIR%%/wikilib.d
-@dirrm %%PMWIKIDIR%%/wiki.d
-@dirrm %%PMWIKIDIR%%/scripts
-@dirrm %%PMWIKIDIR%%/pub/skins/print
-@dirrm %%PMWIKIDIR%%/pub/skins/pmwiki
-@dirrm %%PMWIKIDIR%%/pub/skins
-@dirrm %%PMWIKIDIR%%/pub/guiedit
-@dirrm %%PMWIKIDIR%%/pub/css
-@dirrm %%PMWIKIDIR%%/pub
-@dirrm %%PMWIKIDIR%%/local
-@dirrm %%PMWIKIDIR%%/cookbook
-@dirrmtry %%PMWIKIDIR%%
+@dir(%%WWWOWN%%,%%WWWGRP%%,775) %%PMWIKIDIR%%/wiki.d
+@dir %%PMWIKIDIR%%/pub/css
+@dir(%%WWWOWN%%,%%WWWGRP%%) %%PMWIKIDIR%%