mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
7b2d17f983
PR: 148569 Submitted by: Ports Fury
19 lines
351 B
Bash
19 lines
351 B
Bash
#!/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
|