| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.35 2016/02/25 16:20:52 jperkin Exp $ | | 1 | # $NetBSD: options.mk,v 1.36 2016/03/18 12:28:21 jperkin Exp $ |
2 | | | 2 | |
3 | # Recommended package options for various setups: | | 3 | # Recommended package options for various setups: |
4 | # | | 4 | # |
5 | # Standalone Samba server cups | | 5 | # Standalone Samba server cups |
6 | # Domain Member server cups ldap winbind | | 6 | # Domain Member server cups ldap winbind |
7 | # Active Directory Member server ads cups winbind | | 7 | # Active Directory Member server ads cups winbind |
8 | # Domain Controller ldap winbind | | 8 | # Domain Controller ldap winbind |
9 | # | | 9 | # |
10 | PKG_OPTIONS_VAR= PKG_OPTIONS.samba | | 10 | PKG_OPTIONS_VAR= PKG_OPTIONS.samba |
11 | PKG_SUPPORTED_OPTIONS= ads cups fam ldap pam winbind | | 11 | PKG_SUPPORTED_OPTIONS= ads cups fam ldap pam winbind |
12 | PKG_SUGGESTED_OPTIONS= ldap pam winbind | | 12 | PKG_SUGGESTED_OPTIONS= ldap pam winbind |
13 | | | 13 | |
14 | .include "../../mk/bsd.fast.prefs.mk" | | 14 | .include "../../mk/bsd.fast.prefs.mk" |
| @@ -141,28 +141,30 @@ FILES_SUBST+= NSS_WINBIND=${NSS_WINBIND | | | @@ -141,28 +141,30 @@ FILES_SUBST+= NSS_WINBIND=${NSS_WINBIND |
141 | NSS_WINBIND= ${NSS_WINBIND_cmd:sh} | | 141 | NSS_WINBIND= ${NSS_WINBIND_cmd:sh} |
142 | NSS_WINBIND_cmd= \ | | 142 | NSS_WINBIND_cmd= \ |
143 | ${TEST} -x ${WRKSRC}/config.status || \ | | 143 | ${TEST} -x ${WRKSRC}/config.status || \ |
144 | { ${ECHO} "@comment no NSS winbind module" ; exit 0; }; \ | | 144 | { ${ECHO} "@comment no NSS winbind module" ; exit 0; }; \ |
145 | cd ${WRKDIR} && ${ECHO} @WINBIND_NSS@ | \ | | 145 | cd ${WRKDIR} && ${ECHO} @WINBIND_NSS@ | \ |
146 | ${WRKSRC}/config.status --file=-:- | \ | | 146 | ${WRKSRC}/config.status --file=-:- | \ |
147 | ${AWK} '/^$$/ { print "@comment no NSS winbind module"; exit 0; } \ | | 147 | ${AWK} '/^$$/ { print "@comment no NSS winbind module"; exit 0; } \ |
148 | { sub(".*/", "lib/"); print; }' && \ | | 148 | { sub(".*/", "lib/"); print; }' && \ |
149 | ${RM} -f config.log | | 149 | ${RM} -f config.log |
150 | | | 150 | |
151 | # Install a /usr/lib/${NSS_WINBIND:T} -> ${PREFIX}/${NSS_WINBIND} symlink | | 151 | # Install a /usr/lib/${NSS_WINBIND:T} -> ${PREFIX}/${NSS_WINBIND} symlink |
152 | # Unfortunately NSS_WINDIND_cmd can not be used to determine whether the | | 152 | # Unfortunately NSS_WINDIND_cmd can not be used to determine whether the |
153 | # (de)install templates are needed or not. | | 153 | # (de)install templates are needed or not. |
| | | 154 | .if ${OS_VARIANT} != "SmartOS" |
154 | INSTALL_TEMPLATES+= INSTALL.nss_winbind | | 155 | INSTALL_TEMPLATES+= INSTALL.nss_winbind |
155 | DEINSTALL_TEMPLATES+= DEINSTALL.nss_winbind | | 156 | DEINSTALL_TEMPLATES+= DEINSTALL.nss_winbind |
| | | 157 | .endif |
156 | | | 158 | |
157 | .PHONY: samba-nss-winbind-install | | 159 | .PHONY: samba-nss-winbind-install |
158 | post-install: samba-nss-winbind-install | | 160 | post-install: samba-nss-winbind-install |
159 | samba-nss-winbind-install: | | 161 | samba-nss-winbind-install: |
160 | lib=${WRKDIR}/${DISTNAME}/nsswitch/${NSS_WINBIND:T:Q}; \ | | 162 | lib=${WRKDIR}/${DISTNAME}/nsswitch/${NSS_WINBIND:T:Q}; \ |
161 | ${TEST} ! -f $$lib || ${INSTALL_LIB} $$lib ${DESTDIR}${PREFIX}/lib | | 163 | ${TEST} ! -f $$lib || ${INSTALL_LIB} $$lib ${DESTDIR}${PREFIX}/lib |
162 | | | 164 | |
163 | # Install the NSS WINS module if it exists. | | 165 | # Install the NSS WINS module if it exists. |
164 | PLIST_SUBST+= NSS_WINS=${NSS_WINS:Q} | | 166 | PLIST_SUBST+= NSS_WINS=${NSS_WINS:Q} |
165 | NSS_WINS= ${NSS_WINS_cmd:sh} | | 167 | NSS_WINS= ${NSS_WINS_cmd:sh} |
166 | NSS_WINS_cmd= \ | | 168 | NSS_WINS_cmd= \ |
167 | ${TEST} -x ${WRKSRC}/config.status || \ | | 169 | ${TEST} -x ${WRKSRC}/config.status || \ |
168 | { ${ECHO} "@comment no NSS WINS module" ; exit 0; }; \ | | 170 | { ${ECHO} "@comment no NSS WINS module" ; exit 0; }; \ |