mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
c39f144013
ports, so that they now do not overwrite existing configuration files. Rather than backing up the old ones and allowing the user to merge the files by hand, config files are left untouched. Submitted by: Shaun Amott <shaun@inerd.com>
24 lines
458 B
Bash
24 lines
458 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PATH=/usr/sbin:/usr/bin:/bin ; export PATH
|
|
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
;;
|
|
|
|
POST-INSTALL)
|
|
if [ -z "${PACKAGE_BUILDING}" ]; then
|
|
# Copy over sample config files unless they already exist
|
|
|
|
for cf in `ls %%INGODIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
|
|
if [ ! -f $cf ]; then
|
|
cp -p $cf.dist $cf
|
|
fi
|
|
done
|
|
fi
|
|
;;
|
|
esac
|