ports/108331: New Port: www/entrans

Prudhvi Krishna prudhvikrishna at gmail.com
Thu Jan 25 10:10:16 UTC 2007


>Number:         108331
>Category:       ports
>Synopsis:       New Port: www/entrans
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 25 10:10:15 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Prudhvi Krishna
>Release:        6.2-RELEASE amd64
>Organization:
Individual
>Environment:
FreeBSD x64.prudhvi.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007     root at portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64
>Description:
Entrans is an online, collaborative translation tool that can be used for the translation of PO (Portable Object) files. Entrans was developed with Indic community in mind and has features, like built-in input editor, that make the translation job a lot easier for Indic translators.
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	entrans
#	entrans/Makefile
#	entrans/pkg-descr
#	entrans/distinfo
#	entrans/pkg-message
#
echo c - entrans
mkdir -p entrans > /dev/null 2>&1
echo x - entrans/Makefile
sed 's/^X//' >entrans/Makefile << 'END-of-entrans/Makefile'
X# New ports collection makefile for:	entrans
X# Date created:		Jan-25-2007
X# Whom:			Prudhvi Krishna <prudhvikrishna at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	entrans
XPORTVERSION=	0.3.2
XCATEGORIES=	www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	prudhvikrishna at gmail.com
XCOMMENT=	Entrans is an online, collaborative translation tool
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XUSE_PHP=	mysql
XNO_BUILD=	YES
XWANT_PHP_WEB=	YES
XENTRANS?=	www/data/entrans
XPLIST_SUB+=	ENTRANS=${ENTRANS}
XPLIST=		${WRKSRC}/pkg-plist
X
XPORTDOCS=	README INSTALL COPYING AUTHORS HACKING THANKS
X
Xpre-install:
X	cd ${WRKSRC} && ${FIND} -s * -type f | \
X		${SED} -e 's|^|${ENTRANS}/|' > ${PLIST} \
X		&& ${FIND} -d * -type d | \
X		${SED} -e 's|^|@dirrm ${ENTRANS}/|' >> ${PLIST} \
X		&& ${ECHO_CMD} @dirrm ${ENTRANS} >> ${PLIST} \
X		&& ${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
X	if [ ! -f ${WRKSRC}/conf/database.conf.php.sample ]; then ${CP} \
X		${WRKSRC}/conf/database.conf.php.sample ${WRKSRC}/conf/database.conf.php; fi
X
Xdo-install:
X	-@${MKDIR} ${PREFIX}/${ENTRANS}
X	@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${ENTRANS}
X	@${CHMOD} 755 ${PREFIX}/${ENTRANS}
X	${CP} -R ${WRKSRC}/ ${PREFIX}/${ENTRANS}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-entrans/Makefile
echo x - entrans/pkg-descr
sed 's/^X//' >entrans/pkg-descr << 'END-of-entrans/pkg-descr'
XAn online, collaborative translation tool for translation of PO files.
END-of-entrans/pkg-descr
echo x - entrans/distinfo
sed 's/^X//' >entrans/distinfo << 'END-of-entrans/distinfo'
XMD5 (entrans-0.3.2.tar.gz) = 5dd7680126aa5facfd20f507ef90a24a
XSHA256 (entrans-0.3.2.tar.gz) = d6c83483f047ffb2dd9e3a0ba3f6adcc993b8e8108acafeb298673311e2132a5
XSIZE (entrans-0.3.2.tar.gz) = 128415
END-of-entrans/distinfo
echo x - entrans/pkg-message
sed 's/^X//' >entrans/pkg-message << 'END-of-entrans/pkg-message'
XMake sure you create Virtual Directories to reflect the Doc-root of entrans
Xif you are creating a VHost look for the <VirtualHost> directive and then set
XDocumentRoot appropriately
END-of-entrans/pkg-message
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list