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

(-)b/www/geeklog/Makefile (-12 / +8 lines)
Lines 16-39 USE_MYSQL= yes Link Here
16
NO_BUILD=	yes
16
NO_BUILD=	yes
17
USE_PHP=	yes
17
USE_PHP=	yes
18
18
19
NO_STAGE=	yes
20
do-install:
19
do-install:
21
	@${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 555 -d ${WWWDIR}
20
	@${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 555 -d ${STAGEDIR}${WWWDIR}
22
	@(cd ${WRKSRC} && \
21
	@(cd ${WRKSRC} && \
23
		${COPYTREE_SHARE} \* ${WWWDIR} "! -name db-config.php \
22
		${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR} "! -name db-config.php \
24
			-or -name siteconfig.php")
23
			-or -name siteconfig.php")
25
	@if [ ! -f ${WWWDIR}/db-config.php ]; then \
24
	@${INSTALL_DATA} ${WRKSRC}/db-config.php ${STAGEDIR}${WWWDIR}/db-config.php.sample; 
26
		${INSTALL_DATA} ${WRKSRC}/db-config.php ${WWWDIR}/db-config.php; \
25
	@${INSTALL_DATA} ${WRKSRC}/public_html/siteconfig.php \
27
	fi
26
			${STAGEDIR}${WWWDIR}/public_html/siteconfig.php.sample
28
	@if [ ! -f ${WWWDIR}/public_html/siteconfig.php ]; then \
27
	@${RM} ${STAGEDIR}${WWWDIR}/public_html/siteconfig.php
29
		{INSTALL_DATA} ${WRKSRC}/public_html/siteconfig.php \
30
			${WWWDIR}/public_html/siteconfig.php; \
31
	fi
32
28
33
post-install:
29
post-install:
34
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
30
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
35
.for i in db-config.php error.log siteconfig.php geeklog.rss
31
.for i in db-config.php error.log siteconfig.php geeklog.rss
36
	@${FIND} ${WWWDIR} -name ${i} | ${XARGS} ${CHMOD} 755
32
	@${FIND} ${STAGEDIR}${WWWDIR} -name ${i} | ${XARGS} ${CHMOD} 755
37
.endfor
33
.endfor
38
	@${CAT} ${PKGMESSAGE}
34
	@${CAT} ${PKGMESSAGE}
39
35
(-)b/www/geeklog/pkg-plist (-2 / +6 lines)
Lines 1-5 Link Here
1
@unexec if [ "`md5 -q %D/%%WWWDIR%%/db-config.php`" = "e152b8b4ebd7e8b5bf05c9466f618bfa" ]; then rm -f %D/%%WWWDIR%%/db-config.php; fi
1
@unexec if cmp -s %D/%%WWWDIR%%/db-config.php %D/%%WWWDIR%%/db-config.php.sample; then rm -f %D/%%WWWDIR%%/db-config.php; fi
2
@unexec if [ "`md5 -q %D/%%WWWDIR%%/public_html/siteconfig.php`" = "a713c0e73d143db728d350010f7cf289" ]; then rm -f %D/%%WWWDIR%%/public_html/siteconfig.php; fi
2
%%WWWDIR%%/db-config.php.sample
3
@exec cp -n %D/%F %B/db-config.php
4
@unexec if cmp -s %D/%%WWWDIR%%/public_html/siteconfig.php %D/%%WWWDIR%%/public_html/siteconfig.php.sample; then rm -f %D/%%WWWDIR%%/public_html/siteconfig.php; fi
5
%%WWWDIR%%/public_html/siteconfig.php.sample
6
@exec cp -n %D/%F %B/siteconfig.php
3
%%WWWDIR%%/INSTALL
7
%%WWWDIR%%/INSTALL
4
%%WWWDIR%%/backups/README
8
%%WWWDIR%%/backups/README
5
%%WWWDIR%%/data/README
9
%%WWWDIR%%/data/README

Return to bug 190114