Lines 1-7
Link Here
|
1 |
# $FreeBSD: head/sysutils/ldap-account-manager/Makefile 351612 2014-04-20 06:36:26Z rm $ |
1 |
# $FreeBSD: head/sysutils/ldap-account-manager/Makefile 351612 2014-04-20 06:36:26Z rm $ |
2 |
|
2 |
|
3 |
PORTNAME= ldap-account-manager |
3 |
PORTNAME= ldap-account-manager |
4 |
PORTVERSION= 4.5 |
4 |
PORTVERSION= 4.6 |
5 |
CATEGORIES= sysutils www |
5 |
CATEGORIES= sysutils www |
6 |
MASTER_SITES= SF/${SHORTNAME}/LAM/${PORTVERSION} |
6 |
MASTER_SITES= SF/${SHORTNAME}/LAM/${PORTVERSION} |
7 |
|
7 |
|
Lines 31-61
Link Here
|
31 |
|
31 |
|
32 |
.include <bsd.port.options.mk> |
32 |
.include <bsd.port.options.mk> |
33 |
|
33 |
|
|
|
34 |
post-extract: |
35 |
.for CONFIG in ${CONFIGS} |
36 |
@${MV} ${WRKSRC}/config/${CONFIG}_sample ${WRKSRC}/config/${CONFIG}.sample |
37 |
.endfor |
34 |
do-install: |
38 |
do-install: |
35 |
@${ECHO_CMD} '@unexec if [ -f %D/${WWWDIR_REL}/config/shells ]; then ${RM} -f %D/${WWWDIR_REL}/config/shells; fi' >> ${TMPPLIST} |
39 |
@${ECHO_CMD} '@unexec if [ -f %D/${WWWDIR_REL}/config/shells ]; then ${RM} -f %D/${WWWDIR_REL}/config/shells; fi' >> ${TMPPLIST} |
36 |
.for CONFIG in ${CONFIGS} |
40 |
.for CONFIG in ${CONFIGS} |
37 |
@${ECHO_CMD} '@unexec if cmp -s %D/${WWWDIR_REL}/config/${CONFIG}_sample %D/${WWWDIR_REL}/config/${CONFIG}; then ${RM} -f %D/${WWWDIR_REL}/config/${CONFIG}; fi' >> ${TMPPLIST} |
41 |
@${ECHO_CMD} '@sample ${WWWDIR_REL}/config/${CONFIG}.sample' >> ${TMPPLIST} |
38 |
.endfor |
42 |
.endfor |
39 |
.for I in ${LAMDATA} |
43 |
.for I in ${LAMDATA} |
40 |
@${FIND} -s ${WRKSRC}/${I} -type f -not -name '${CONFIGS}'| ${SED} -e 's,^${WRKSRC},${WWWDIR_REL},' >> ${TMPPLIST} |
44 |
@${FIND} -s ${WRKSRC}/${I} -type f -not -name '*.sample' | ${SED} -e 's,^${WRKSRC},${WWWDIR_REL},' >> ${TMPPLIST} |
41 |
@${FIND} -ds ${WRKSRC}/${I} -type d | ${SED} -e 's,^${WRKSRC},@dirrm ${WWWDIR_REL},' >> ${TMPPLIST} |
45 |
@${FIND} -ds ${WRKSRC}/${I} -type d | ${SED} -e 's,^${WRKSRC},@dirrmtry ${WWWDIR_REL},' >> ${TMPPLIST} |
42 |
.endfor |
46 |
.endfor |
43 |
@${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST} |
47 |
@${ECHO_CMD} '@dirrmtry ${WWWDIR_REL}' >> ${TMPPLIST} |
44 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${LAMDATA}" ${STAGEDIR}${WWWDIR} |
48 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${LAMDATA}" ${STAGEDIR}${WWWDIR} |
45 |
.for CONFIG in ${CONFIGS} |
|
|
46 |
@${ECHO_CMD} '@exec if [ ! -f %D/${WWWDIR_REL}/config/${CONFIG} ]; then ${CP} %D/${WWWDIR_REL}/config/${CONFIG}_sample %D/${WWWDIR_REL}/config/${CONFIG}; ${CHOWN} ${WWWOWN} %D/${WWWDIR_REL}/config/${CONFIG}; fi' >> ${TMPPLIST} |
47 |
.if !exists(${STAGEDIR}${WWWDIR}/config/${CONFIG}) |
48 |
@${CP} ${STAGEDIR}${WWWDIR}/config/${CONFIG}_sample ${STAGEDIR}${WWWDIR}/config/${CONFIG} |
49 |
.endif |
50 |
.endfor |
51 |
.for DIR in ${WRITEABLES} |
49 |
.for DIR in ${WRITEABLES} |
52 |
@${CHOWN} -R ${WWWOWN} ${STAGEDIR}${WWWDIR}/${DIR} |
50 |
@${CHOWN} -R ${WWWOWN} ${STAGEDIR}${WWWDIR}/${DIR} |
53 |
@${CHMOD} -R u+w ${STAGEDIR}${WWWDIR}/${DIR} |
51 |
@${CHMOD} -R u+w ${STAGEDIR}${WWWDIR}/${DIR} |
54 |
@${CHMOD} u+x ${STAGEDIR}${WWWDIR}/lib/lamdaemon.pl |
|
|
55 |
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN} %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} |
52 |
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN} %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} |
56 |
@${ECHO_CMD} '@exec ${CHMOD} -R u+w %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} |
53 |
@${ECHO_CMD} '@exec ${CHMOD} -R u+w %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} |
57 |
@${ECHO_CMD} '@exec ${CHMOD} u+x %D/${WWWDIR_REL}/lib/lamdaemon.pl' >> ${TMPPLIST} |
|
|
58 |
.endfor |
54 |
.endfor |
|
|
55 |
@${CHMOD} u+x ${STAGEDIR}${WWWDIR}/lib/lamdaemon.pl |
56 |
@${ECHO_CMD} '@exec ${CHMOD} u+x %D/${WWWDIR_REL}/lib/lamdaemon.pl' >> ${TMPPLIST} |
59 |
.if ${PORT_OPTIONS:MDOCS} |
57 |
.if ${PORT_OPTIONS:MDOCS} |
60 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
58 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
61 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} |
59 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} |