1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/print/cups-lpr/pkg-deinstall
Volker Stolz bc713acfba Fix printing with JDK14 (cf. http://www.cups.org/str.php?L1004)
PR:		ports/74312
Submitted by:	Gustavo De Nardin
Approved by:	maintainer
2004-12-17 14:27:38 +00:00

19 lines
313 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
[ -L "${FILE}" ] && rm "${FILE}"
[ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}"
done
;;
esac
exit 0