blob: cdcd58098dbf442837b09820ef96ad25d6fa1815 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Created by: Prudhvi Krishna <prudhvikrishna@gmail.com>
# $FreeBSD$
PORTNAME= entrans
PORTVERSION= 0.3.2
CATEGORIES= www
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
ENTRANS?= www/entrans
PLIST_SUB+= ENTRANS=${ENTRANS}
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= README INSTALL COPYING AUTHORS HACKING THANKS
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}
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}
${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${ENTRANS}
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|