mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
846ea1e4cf
Do not overwrite an existing mtools.conf file - install it as mtools.conf.sample
10 lines
258 B
Bash
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
|