0a909c8159
1) Move the INSTALL_TEMPLATES line to the 'winbind' option section. 2) Enable the install script on all platforms. 3) Use the value of ${NSS_WINBIND} in the script as the name of the library (should work on all platforms). 4) In the install script only create the symlink if ${NSS_WINBIND} doesn't start with '@comment' (i.e. no nss winbind on this platform) and the target file exists and the symlink _doesn't_ already exist. 5) Create a DEINSTALL_TEMPLATES to remove the nss winbind symlink if it exists and point to the correct target. Bump PKGREVISION.
19 lines
490 B
Text
19 lines
490 B
Text
# $NetBSD: DEINSTALL.nss_winbind,v 1.1 2012/08/19 07:28:36 sbd Exp $
|
|
|
|
case ${STAGE} in
|
|
DEINSTALL)
|
|
NSS_WINBIND='@NSS_WINBIND@'
|
|
case $NSS_WINBIND in
|
|
"@comment *") ;;
|
|
*)
|
|
if ${TEST} -e /usr/lib/${NSS_WINBIND##*/} && \
|
|
target=`${LS} -l /usr/lib/${NSS_WINBIND##*/} | \
|
|
${AWK} '{print $NF;}'` && \
|
|
${TEST} x"$target" = x"${PREFIX}/${NSS_WINBIND}" ;then
|
|
${ECHO} "Removeing /usr/lib/${NSS_WINBIND##*/} symlink."
|
|
${RM} -f /usr/lib/${NSS_WINBIND##*/}
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|