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)
This commit is contained in:
Bartek Rutkowski 2015-07-02 11:53:57 +00:00
parent 84d9a3bdf0
commit fc7e200928
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=391135
2 changed files with 7 additions and 11 deletions

View file

@ -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}

View file

@ -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/