mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -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
|
PORTNAME= nss-pam-ldapd
|
||||||
PORTVERSION= 0.8.13
|
PORTVERSION= 0.8.13
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
|
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
|
||||||
http://mirrors.rit.edu/zi/
|
http://mirrors.rit.edu/zi/
|
||||||
|
@ -49,7 +49,6 @@ CONFLICTS+= nss-pam-ldapd-sasl-[0-9]*
|
||||||
USERS= nslcd
|
USERS= nslcd
|
||||||
GROUPS= nslcd
|
GROUPS= nslcd
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
CPPFLAGS+= -I${LOCALBASE}/include
|
||||||
|
@ -78,7 +77,6 @@ CONFIGURE_ARGS+= --disable-sasl
|
||||||
CONFIGURE_ARGS+= --enable-pam \
|
CONFIGURE_ARGS+= --enable-pam \
|
||||||
--with-pam-seclib-dir=${PREFIX}/lib \
|
--with-pam-seclib-dir=${PREFIX}/lib \
|
||||||
--with-pam-ldap-soname=pam_ldap.so.${PAM_LDAP_SHMAJOR}
|
--with-pam-ldap-soname=pam_ldap.so.${PAM_LDAP_SHMAJOR}
|
||||||
MAN8+= pam_ldap.8
|
|
||||||
CONFLICTS+= pam_ldap-1.*
|
CONFLICTS+= pam_ldap-1.*
|
||||||
PLIST_SUB+= PAM=""
|
PLIST_SUB+= PAM=""
|
||||||
.else
|
.else
|
||||||
|
@ -106,8 +104,6 @@ PLIST_SUB+= NSLCD="@comment "
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+= --enable-nslcd
|
CONFIGURE_ARGS+= --enable-nslcd
|
||||||
PLIST_SUB+= NSLCD=""
|
PLIST_SUB+= NSLCD=""
|
||||||
MAN5+= nslcd.conf.5
|
|
||||||
MAN8+= nslcd.8
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
|
@ -122,12 +118,12 @@ show-pkgmessage::
|
||||||
# We take care of the sample file, upstream install target installs the actual
|
# We take care of the sample file, upstream install target installs the actual
|
||||||
# file if it does not exist yet.
|
# file if it does not exist yet.
|
||||||
post-install: show-pkgmessage
|
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}
|
.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
|
.endif
|
||||||
.if ${PORT_OPTIONS:MPAM}
|
.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
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -62,6 +62,7 @@ nslcd_status()
|
||||||
echo "${name} is running with PID ${mypid}.";
|
echo "${name} is running with PID ${mypid}.";
|
||||||
else
|
else
|
||||||
echo "${name} not running?";
|
echo "${name} not running?";
|
||||||
|
return 1
|
||||||
fi
|
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%%
|
%%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
|
@unexec if cmp -s %D/etc/%%CONFIG%%.sample %D/etc/%%CONFIG%%; then rm -f %D/etc/%%CONFIG%%; fi
|
||||||
etc/%%CONFIG%%.sample
|
etc/%%CONFIG%%.sample
|
||||||
%%NSS%%lib/nss_ldap.so
|
%%NSS%%lib/nss_ldap.so
|
||||||
%%NSS%%lib/nss_ldap.so.%%NSS_LDAP_SHMAJOR%%
|
%%NSS%%lib/nss_ldap.so.%%NSS_LDAP_SHMAJOR%%
|
||||||
%%NSLCD%%sbin/nslcd
|
%%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%%lib/pam_ldap.so.%%PAM_LDAP_SHMAJOR%%
|
%%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
|
@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