Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ldapscripts |
8 |
PORTNAME= ldapscripts |
9 |
PORTVERSION= 1.7 |
9 |
PORTVERSION= 1.7.1 |
10 |
CATEGORIES= net |
10 |
CATEGORIES= net |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
12 |
http://contribs.martymac.com/ldapscripts/ |
12 |
http://contribs.martymac.com/ldapscripts/ |
Lines 46-51
Link Here
|
46 |
${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/* |
46 |
${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/* |
47 |
${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime |
47 |
${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime |
48 |
|
48 |
|
|
|
49 |
${REINPLACE_CMD} -E -e "s|^BINDPWDFILE=.*|BINDPWDFILE=\"${ETCDIR}/ldapscripts.passwd\"|g" ${WRKSRC}/etc/ldapscripts.conf |
49 |
${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf |
50 |
${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf |
50 |
${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf |
51 |
${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf |
51 |
${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf |
52 |
${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf |
Lines 77-85
Link Here
|
77 |
|
78 |
|
78 |
${MKDIR} ${ETCDIR} |
79 |
${MKDIR} ${ETCDIR} |
79 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample |
80 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample |
|
|
81 |
${CHMOD} 0440 ${ETCDIR}/ldapscripts.conf.sample |
80 |
if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \ |
82 |
if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \ |
81 |
${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \ |
83 |
${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \ |
82 |
fi |
84 |
fi |
|
|
85 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.passwd ${ETCDIR}/ldapscripts.passwd.sample |
86 |
${CHMOD} 0440 ${ETCDIR}/ldapscripts.passwd.sample |
87 |
if [ ! -f ${ETCDIR}/ldapscripts.passwd ]; then \ |
88 |
${CP} -p ${ETCDIR}/ldapscripts.passwd.sample ${ETCDIR}/ldapscripts.passwd; \ |
89 |
fi |
83 |
${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR} |
90 |
${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR} |
84 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR} |
91 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR} |
85 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR} |
92 |
${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR} |
Lines 97-100
Link Here
|
97 |
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1 |
104 |
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1 |
98 |
${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5 |
105 |
${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5 |
99 |
|
106 |
|
|
|
107 |
post-install: |
108 |
@${CAT} ${PKGMESSAGE} |
109 |
|
100 |
.include <bsd.port.mk> |
110 |
.include <bsd.port.mk> |