Lines 28-35
Link Here
|
28 |
pre-install: |
28 |
pre-install: |
29 |
@if [ -f ${WRKSRC}/config.php ]; then \ |
29 |
@if [ -f ${WRKSRC}/config.php ]; then \ |
30 |
${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.dist ; fi |
30 |
${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.dist ; fi |
31 |
@cd ${WRKSRC} && ${FIND} -s * -type f | \ |
31 |
@cd ${WRKSRC} && \ |
32 |
${SED} -e 's|^|${VHCPDIR}/|g' > ${PLIST} && \ |
32 |
${ECHO_CMD} "@unexec if cmp -s %D/${VHCPDIR}/config.php.dist \ |
|
|
33 |
%D/${VHCPDIR}/config.php; then \ |
34 |
rm -f %D/${VHCPDIR}/config.php; fi" > ${PLIST} && \ |
35 |
${FIND} -s * -type f | \ |
36 |
${SED} -e 's|^|${VHCPDIR}/|g' >> ${PLIST} && \ |
37 |
${ECHO_CMD} "@exec if [ ! -f %D/${VHCPDIR}/config.php ] ; then \ |
38 |
cp -p %D/${VHCPDIR}/config.php.dist \ |
39 |
%D/${VHCPDIR}/config.php; fi" >> ${PLIST} && \ |
33 |
${FIND} -d * -type d | \ |
40 |
${FIND} -d * -type d | \ |
34 |
${SED} -e 's|^|@dirrm ${VHCPDIR}/|g' >> ${PLIST} && \ |
41 |
${SED} -e 's|^|@dirrm ${VHCPDIR}/|g' >> ${PLIST} && \ |
35 |
${ECHO_CMD} @dirrm ${VHCPDIR} >> ${PLIST} |
42 |
${ECHO_CMD} @dirrm ${VHCPDIR} >> ${PLIST} |
Lines 39-45
Link Here
|
39 |
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${VHCPDIR} |
46 |
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${VHCPDIR} |
40 |
@${CHMOD} 755 ${PREFIX}/${VHCPDIR} |
47 |
@${CHMOD} 755 ${PREFIX}/${VHCPDIR} |
41 |
@${CP} -R ${WRKSRC}/ ${PREFIX}/${VHCPDIR} |
48 |
@${CP} -R ${WRKSRC}/ ${PREFIX}/${VHCPDIR} |
42 |
${CP} ${PREFIX}/${VHCPDIR}/config.php.dist ${PREFIX}/${VHCPDIR}/config.php |
49 |
if [ ! -f ${PREFIX}/${VHCPDIR}/config.php ]; then \ |
|
|
50 |
${CP} ${PREFIX}/${VHCPDIR}/config.php.dist \ |
51 |
${PREFIX}/${VHCPDIR}/config.php ; \ |
52 |
fi |
43 |
|
53 |
|
44 |
post-install: |
54 |
post-install: |
45 |
@${CAT} ${PKGMESSAGE} |
55 |
@${CAT} ${PKGMESSAGE} |