pkgsrc/net/samba/DEINSTALL.nss_winbind

20 lines
494 B
Text
Raw Normal View History

2013-04-19 09:17:46 +02:00
# $NetBSD: DEINSTALL.nss_winbind,v 1.2 2013/04/19 07:17:46 sborrill 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
2013-04-19 09:17:46 +02:00
${ECHO} "Removing /usr/lib/${NSS_WINBIND##*/} symlink."
${RM} -f /usr/lib/${NSS_WINBIND##*/}
fi
;;
esac
;;
esac