View | Details | Raw Unified | Return to bug 113480
Collapse All | Expand All

(-)/srv/home/winfried/tmp/ports/hastymail/Makefile (-7 / +21 lines)
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>
(-)/srv/home/winfried/tmp/ports/hastymail/files/patch-lib-constant.php (+11 lines)
Line 0 Link Here
1
--- lib/constant.php.orig Fri Jun  8 15:15:54 2007
2
+++ lib/constant.php      Fri Jun  8 15:16:10 2007
3
@@ -24,7 +24,7 @@
4
 */
5
 
6
 /* absolute path to the configuration file */
7
-$config_file = '/etc/hastymail.conf';
8
+$config_file = '%%PREFIX%%/etc/hastymail.conf';
9
 
10
 /* hastymail version */
11
 $version = '1.5';
(-)/srv/home/winfried/tmp/ports/hastymail/files/pkg-message.in (-5 / +6 lines)
Lines 1-12 Link Here
1
******************************************************
1
******************************************************
2
2
3
You have successfully installed Hastymail webmail client.
3
You have successfully installed Hastymail webmail client.
4
Dont forget to move config file to proper directory and
4
Don't forget to edit your own config file. A sample config
5
to change that variable in hastymail/lib/constant.php
5
has been installed in:
6
6
7
$config_file = '/etc/hastymail.conf';
7
%%PREFIX%%/etc/hastymail.conf.sample
8
8
9
as needed. After that, follow the instructions in INSTALL
9
The proper config file path is:
10
file to configure Hastymail finally.
10
11
%%PREFIX%%/etc/hastymail.conf
11
12
12
******************************************************
13
******************************************************

Return to bug 113480