Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= cricket |
4 |
PORTNAME= cricket |
5 |
PORTVERSION= 1.0.5 |
5 |
PORTVERSION= 1.0.5 |
6 |
PORTREVISION= 9 |
6 |
PORTREVISION= 10 |
7 |
CATEGORIES= net-mgmt |
7 |
CATEGORIES= net-mgmt |
8 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
9 |
|
9 |
|
Lines 25-58
Link Here
|
25 |
USERS= cricket |
25 |
USERS= cricket |
26 |
GROUPS= www |
26 |
GROUPS= www |
27 |
|
27 |
|
28 |
NO_STAGE= yes |
28 |
CRICKETBASE= ${STAGEDIR}${PREFIX}/cricket |
|
|
29 |
|
29 |
.include <bsd.port.pre.mk> |
30 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
|
31 |
post-patch: |
32 |
post-patch: |
32 |
@${REINPLACE_CMD} -e 's,/home/cricket,${PREFIX},g' \ |
33 |
${REINPLACE_CMD} -e 's,/home/cricket,${PREFIX},g' \ |
33 |
${WRKSRC}/cricket-conf.pl.sample |
34 |
${WRKSRC}/cricket-conf.pl.sample |
34 |
@${REINPLACE_CMD} -e 's,/usr/local/net/bin/ssh,/usr/bin/ssh,g' \ |
35 |
${REINPLACE_CMD} -e 's,/usr/local/net/bin/ssh,/usr/bin/ssh,g' \ |
35 |
${WRKSRC}/sample-config/news-server/Defaults |
36 |
${WRKSRC}/sample-config/news-server/Defaults |
36 |
|
37 |
|
37 |
do-install: |
38 |
do-install: |
38 |
@${MKDIR} -m 755 ${PREFIX}/cricket/cricket-${PORTVERSION} |
39 |
${MKDIR} -m 755 ${CRICKETBASE}/cricket-${PORTVERSION} |
39 |
@${CP} -R ${WRKSRC}/* ${PREFIX}/cricket/cricket-${PORTVERSION} |
40 |
${CP} -R ${WRKSRC}/* ${CRICKETBASE}/cricket-${PORTVERSION} |
40 |
@${FIND} ${PREFIX}/cricket/cricket-${PORTVERSION} -name \*.orig -or \ |
41 |
${FIND} ${CRICKETBASE}/cricket-${PORTVERSION} -name \*.orig -or \ |
41 |
-name \*.bak | ${XARGS} ${RM} -f |
42 |
-name \*.bak | ${XARGS} ${RM} -f |
42 |
${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/cricket |
43 |
${LN} -s cricket-${PORTVERSION} \ |
43 |
@if [ -L ${PREFIX}/cricket/cricket ]; then \ |
44 |
${CRICKETBASE}/cricket |
44 |
${ECHO_MSG} "Updating ${PREFIX}/cricket/cricket symbolic link"; \ |
45 |
if [ -f ${LOCALBASE}/cricket/compile ] ; then \ |
45 |
${RM} ${PREFIX}/cricket/cricket; \ |
|
|
46 |
fi |
47 |
${LN} -s ${PREFIX}/cricket/cricket-${PORTVERSION} \ |
48 |
${PREFIX}/cricket/cricket |
49 |
@if [ -f ${LOCALBASE}/cricket/compile ] ; then \ |
50 |
${ECHO_MSG} "You should migrate manually to use new cricket"; \ |
46 |
${ECHO_MSG} "You should migrate manually to use new cricket"; \ |
51 |
${ECHO_MSG} "installation scheme."; \ |
47 |
${ECHO_MSG} "installation scheme."; \ |
52 |
fi |
48 |
fi |
53 |
@${INSTALL_DATA} ${WRKSRC}/cricket-conf.pl.sample ${PREFIX}/etc/cricket-conf.pl.dist |
49 |
${INSTALL_DATA} ${WRKSRC}/cricket-conf.pl.sample \ |
|
|
50 |
${STAGEDIR}${PREFIX}/etc/cricket-conf.pl.dist |
54 |
|
51 |
|
55 |
post-install: |
|
|
56 |
@${CAT} ${PKGMESSAGE} |
57 |
|
58 |
.include <bsd.port.post.mk> |
52 |
.include <bsd.port.post.mk> |