aboutsummaryrefslogtreecommitdiffstats
path: root/www/entrans
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2015-07-02 19:53:57 +0800
committerrobak <robak@FreeBSD.org>2015-07-02 19:53:57 +0800
commit8ef2351048106e8d4c4f9e8bd889eed75ccfc49c (patch)
treeecfc480a675de4d3afaf035552fc54b32f117a84 /www/entrans
parent42f91230fa617e67c40181f84357cd98c94bf5be (diff)
downloadfreebsd-ports-gnome-8ef2351048106e8d4c4f9e8bd889eed75ccfc49c.tar.gz
freebsd-ports-gnome-8ef2351048106e8d4c4f9e8bd889eed75ccfc49c.tar.zst
freebsd-ports-gnome-8ef2351048106e8d4c4f9e8bd889eed75ccfc49c.zip
www/entrans: various fixes and cleanup
- Don't needlessly set WRKSRC to its default value - Add NO_ARCH - Fix WWW - Modernize plist: switch to @dir - Remove useless chown - Pet portlint PR: 200706 Submitted by: amdmi3 Approved by: maintainer timeout (25 days)
Diffstat (limited to 'www/entrans')
-rw-r--r--www/entrans/Makefile16
-rw-r--r--www/entrans/pkg-descr2
2 files changed, 7 insertions, 11 deletions
diff --git a/www/entrans/Makefile b/www/entrans/Makefile
index a241e26e06ed..2325bd4c7745 100644
--- a/www/entrans/Makefile
+++ b/www/entrans/Makefile
@@ -9,11 +9,10 @@ MASTER_SITES= SF
MAINTAINER= prudhvi-krishna-bsd@surapaneni.in
COMMENT= Entrans is an online, collaborative translation tool
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
USE_PHP= mysql
-NO_BUILD= YES
-WANT_PHP_WEB= YES
+NO_BUILD= yes
+NO_ARCH= yes
+WANT_PHP_WEB= yes
ENTRANS?= www/entrans
PLIST_SUB+= ENTRANS=${ENTRANS}
PLIST= ${WRKDIR}/pkg-plist
@@ -25,16 +24,13 @@ OPTIONS_DEFINE= DOCS
pre-install:
cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${ENTRANS}/|' > ${PLIST} \
- && ${FIND} -d * -type d | \
- ${SED} -e 's|^|@dirrm ${ENTRANS}/|' >> ${PLIST} \
- && ${ECHO_CMD} @dirrm ${ENTRANS} >> ${PLIST}
+ && ${FIND} -d * -type d -empty | \
+ ${SED} -e 's|^|@dir ${ENTRANS}/|' >> ${PLIST}
if [ ! -f ${WRKSRC}/conf/database.conf.php.sample ]; then ${CP} \
${WRKSRC}/conf/database.conf.php.sample ${WRKSRC}/conf/database.conf.php; fi
do-install:
- -@${MKDIR} ${STAGEDIR}${PREFIX}/${ENTRANS}
- @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${ENTRANS}
- @${CHMOD} 755 ${STAGEDIR}${PREFIX}/${ENTRANS}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${ENTRANS}
${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${ENTRANS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
diff --git a/www/entrans/pkg-descr b/www/entrans/pkg-descr
index ab2f94033eb8..512e4987e8a2 100644
--- a/www/entrans/pkg-descr
+++ b/www/entrans/pkg-descr
@@ -18,4 +18,4 @@ Some of the other useful features include
* Upload files as compressed archives of PO files
* Upload files through URLs
-WWW: http://entrans.sourceforge.net
+WWW: http://entrans.sourceforge.net/