1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/emulators/mtools/pkg-install
Jean-Marc Zucconi 846ea1e4cf Add official patch mtools-3.9.7-20001213.diff.
Do not overwrite an existing mtools.conf file - install it as
mtools.conf.sample
2001-03-06 16:35:13 +00:00

10 lines
258 B
Bash

#!/bin/sh
if [ $2 != "POST-INSTALL" ]; then
exit 0
fi
if [ -e ${PKG_PREFIX}/etc/mtools.conf ]; then
echo "Will not overwrite existing ${PKG_PREFIX}/etc/mtools.conf file."
else
cp -p ${PKG_PREFIX}/etc/mtools.conf.sample ${PKG_PREFIX}/etc/mtools.conf
fi