mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- Fix service command always returning 0 [1]
- Add STAGE support PR: ports/187073 [1] Submitted by: Derek Kulinski <takeda@takeda.tk> [1]
This commit is contained in:
parent
31cc356bf4
commit
e479225efe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346906
4 changed files with 14 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= nss-pam-ldapd
|
||||
PORTVERSION= 0.8.13
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
|
||||
http://mirrors.rit.edu/zi/
|
||||
|
@ -49,7 +49,6 @@ CONFLICTS+= nss-pam-ldapd-sasl-[0-9]*
|
|||
USERS= nslcd
|
||||
GROUPS= nslcd
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
|
@ -78,7 +77,6 @@ CONFIGURE_ARGS+= --disable-sasl
|
|||
CONFIGURE_ARGS+= --enable-pam \
|
||||
--with-pam-seclib-dir=${PREFIX}/lib \
|
||||
--with-pam-ldap-soname=pam_ldap.so.${PAM_LDAP_SHMAJOR}
|
||||
MAN8+= pam_ldap.8
|
||||
CONFLICTS+= pam_ldap-1.*
|
||||
PLIST_SUB+= PAM=""
|
||||
.else
|
||||
|
@ -106,8 +104,6 @@ PLIST_SUB+= NSLCD="@comment "
|
|||
.else
|
||||
CONFIGURE_ARGS+= --enable-nslcd
|
||||
PLIST_SUB+= NSLCD=""
|
||||
MAN5+= nslcd.conf.5
|
||||
MAN8+= nslcd.8
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
|
@ -122,12 +118,12 @@ show-pkgmessage::
|
|||
# We take care of the sample file, upstream install target installs the actual
|
||||
# file if it does not exist yet.
|
||||
post-install: show-pkgmessage
|
||||
@${INSTALL_DATA} ${WRKSRC}/nslcd.conf ${PREFIX}/etc/nslcd.conf.sample
|
||||
@${INSTALL_DATA} ${WRKSRC}/nslcd.conf ${STAGEDIR}${PREFIX}/etc/nslcd.conf.sample
|
||||
.if ${PORT_OPTIONS:MNSS}
|
||||
@${LN} -fs nss_ldap.so.${NSS_LDAP_SHMAJOR} ${PREFIX}/lib/nss_ldap.so
|
||||
@${LN} -fs nss_ldap.so.${NSS_LDAP_SHMAJOR} ${STAGEDIR}${PREFIX}/lib/nss_ldap.so
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MPAM}
|
||||
@${LN} -fs pam_ldap.so.${PAM_LDAP_SHMAJOR} ${PREFIX}/lib/pam_ldap.so
|
||||
@${LN} -fs pam_ldap.so.${PAM_LDAP_SHMAJOR} ${STAGEDIR}${PREFIX}/lib/pam_ldap.so
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -62,6 +62,7 @@ nslcd_status()
|
|||
echo "${name} is running with PID ${mypid}.";
|
||||
else
|
||||
echo "${name} not running?";
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
=====================================================================
|
||||
|
||||
LDAP and nslcd daemon parameters should be set in %%CONFIG_FILE%%. When upgrading review %%CONFIG_FILE%%.sample for additional or changed parameters.
|
||||
LDAP and nslcd daemon parameters should be set in:
|
||||
%%CONFIG_FILE%%.
|
||||
|
||||
When upgrading review %%CONFIG_FILE%%.sample for
|
||||
additional or changed parameters.
|
||||
|
||||
%%NSS_MESSAGE%%
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
@comment $FreeBSD$
|
||||
@unexec if cmp -s %D/etc/%%CONFIG%%.sample %D/etc/%%CONFIG%%; then rm -f %D/etc/%%CONFIG%%; fi
|
||||
etc/%%CONFIG%%.sample
|
||||
%%NSS%%lib/nss_ldap.so
|
||||
%%NSS%%lib/nss_ldap.so.%%NSS_LDAP_SHMAJOR%%
|
||||
%%NSLCD%%sbin/nslcd
|
||||
%%NSLCD%%man/man8/nslcd.8.gz
|
||||
%%NSLCD%%man/man5/nslcd.conf.5.gz
|
||||
%%PAM%%lib/pam_ldap.so
|
||||
%%PAM%%lib/pam_ldap.so.%%PAM_LDAP_SHMAJOR%%
|
||||
%%PAM%%man/man8/pam_ldap.8.gz
|
||||
@exec if [ ! -f %D/etc/%%CONFIG%% ]; then cp -p %D/etc/%%CONFIG%%.sample %D/etc/%%CONFIG%%; fi
|
||||
|
|
Loading…
Add table
Reference in a new issue