freebsd-ports/print/cups-lpr/pkg-deinstall
Pav Lucistnik d964da3bd5 - Base lpr lives in /usr not in /
Approved by:	maintainer
2003-12-04 10:05:06 +00:00

18 lines
278 B
Bash

#!/bin/sh
REPLACES_BINARIES="/usr/bin/lpr
/usr/bin/lp
/usr/bin/lpq
/usr/bin/lprm
/usr/bin/lpstat
/usr/sbin/lpc"
case $2 in
POST-DEINSTALL)
for FILE in ${REPLACES_BINARIES}; do
[ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}"
done
;;
esac
exit 0