svn commit: r391135 - head/www/entrans

Bartek Rutkowski robak at FreeBSD.org
Thu Jul 2 11:53:59 UTC 2015


Author: robak
Date: Thu Jul  2 11:53:57 2015
New Revision: 391135
URL: https://svnweb.freebsd.org/changeset/ports/391135

Log:
  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)

Modified:
  head/www/entrans/Makefile
  head/www/entrans/pkg-descr

Modified: head/www/entrans/Makefile
==============================================================================
--- head/www/entrans/Makefile	Thu Jul  2 11:53:01 2015	(r391134)
+++ head/www/entrans/Makefile	Thu Jul  2 11:53:57 2015	(r391135)
@@ -9,11 +9,10 @@ MASTER_SITES=	SF
 MAINTAINER=	prudhvi-krishna-bsd at 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}

Modified: head/www/entrans/pkg-descr
==============================================================================
--- head/www/entrans/pkg-descr	Thu Jul  2 11:53:01 2015	(r391134)
+++ head/www/entrans/pkg-descr	Thu Jul  2 11:53:57 2015	(r391135)
@@ -18,4 +18,4 @@ Some of the other useful features includ
     * Upload files as compressed archives of PO files
     * Upload files through URLs
 
-WWW:	http://entrans.sourceforge.net
+WWW: http://entrans.sourceforge.net/


More information about the svn-ports-all mailing list