Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= hastymail |
8 |
PORTNAME= hastymail |
9 |
PORTVERSION= 1.5 |
9 |
PORTVERSION= 1.5 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= www |
11 |
CATEGORIES= www |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} |
13 |
MASTER_SITE_SUBDIR= hastymail |
13 |
MASTER_SITE_SUBDIR= hastymail |
Lines 27-42
Link Here
|
27 |
|
27 |
|
28 |
.include <bsd.port.pre.mk> |
28 |
.include <bsd.port.pre.mk> |
29 |
|
29 |
|
|
|
30 |
# Don't install automatically CVS directories, patched files and the default config file. |
31 |
FIND_SKIP_OPTS= -not -name hastymail.conf-example -not -name '*.orig' \ |
32 |
-not -name '*.bak' -not -path '*/CVS/*' -not -name CVS |
33 |
|
34 |
post-patch: |
35 |
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ |
36 |
${WRKSRC}/lib/constant.php |
37 |
|
30 |
pre-install: |
38 |
pre-install: |
31 |
@${FIND} -s -d ${WRKSRC}/ -type f | ${SED} "s?${WRKSRC}?${INSTALL_DIR}?g" >${PLIST} |
39 |
@${FIND} -s -d ${WRKSRC}/ -type f ${FIND_SKIP_OPTS} | \ |
32 |
@${FIND} -s -d ${WRKSRC}/ -type d | ${SED} "s?${WRKSRC}?@dirrm ${INSTALL_DIR}?g" >> ${PLIST} |
40 |
${SED} "s?${WRKSRC}?${INSTALL_DIR}?g" >${PLIST} |
|
|
41 |
@${FIND} -s -d ${WRKSRC}/ -type d ${FIND_SKIP_OPTS} | \ |
42 |
${SED} "s?${WRKSRC}?@dirrm ${INSTALL_DIR}?g" >> ${PLIST} |
43 |
@${ECHO_CMD} etc/hastymail.conf.sample >> ${PLIST} |
33 |
|
44 |
|
34 |
do-install: |
45 |
do-install: |
35 |
@${MKDIR} ${PREFIX}/${INSTALL_DIR} |
46 |
@${MKDIR} ${PREFIX}/${INSTALL_DIR} |
36 |
@cd ${WRKSRC} && ${FIND} . | ${PAX} -rw ${PREFIX}/${INSTALL_DIR} |
47 |
@cd ${WRKSRC} && ${FIND} . ${FIND_SKIP_OPTS} | \ |
37 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALL_DIR} |
48 |
${PAX} -rwd ${PREFIX}/${INSTALL_DIR} |
|
|
49 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALL_DIR} |
50 |
@${INSTALL_DATA} ${WRKSRC}/hastymail.conf-example \ |
51 |
${PREFIX}/etc/hastymail.conf.sample |
38 |
|
52 |
|
39 |
post-install: |
53 |
post-install: |
40 |
@${CAT} ${PKGMESSAGE} |
54 |
@${CAT} ${PKGMESSAGE} |
41 |
|
55 |
|
42 |
.include <bsd.port.post.mk> |
56 |
.include <bsd.port.post.mk> |