blob: 767d3a7c8e26cf8cf8098c84f78f7249adce9ef4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1 2000/07/27 12:42:09 jlam Exp $
PKGNAME=$1
STAGE=$2
case ${STAGE} in
PRE-INSTALL)
;;
POST-INSTALL)
EXAMPLE_DIR=${PKG_PREFIX}/share/examples
INSTALL_DATA="/usr/bin/install -c -o root -g wheel -m 0644"
if [ ! -f /etc/thttpd.conf ]
then
echo "Installing example thttpd.conf in /etc..."
${INSTALL_DATA} ${EXAMPLE_DIR}/thttpd.conf /etc/thttpd.conf
fi
;;
*)
echo "Unexpected argument: ${STAGE}"
exit 1
;;
esac
exit 0
|