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 |
|