mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
bc713acfba
PR: ports/74312 Submitted by: Gustavo De Nardin Approved by: maintainer
19 lines
313 B
Bash
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
|