mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
19 lines
351 B
Plaintext
19 lines
351 B
Plaintext
|
#!/bin/sh
|
||
|
# $FreeBSD$
|
||
|
|
||
|
sysconfdir=${PKG_PREFIX}/etc
|
||
|
conffile=pnm2ppa.conf
|
||
|
|
||
|
case $2 in
|
||
|
POST-INSTALL)
|
||
|
if test ! -f ${sysconfdir}/${conffile}; then
|
||
|
cp ${sysconfdir}/${conffile}.sample ${sysconfdir}/${conffile};
|
||
|
fi
|
||
|
;;
|
||
|
DEINSTALL)
|
||
|
if cmp -s ${sysconfdir}/${conffile} ${sysconfdir}/${conffile}.sample; then
|
||
|
rm -f ${sysconfdir}/${conffile}
|
||
|
fi
|
||
|
;;
|
||
|
esac
|