summaryrefslogtreecommitdiff
path: root/www/gn/scripts/configure
blob: cd81783f0464edc15d4b876979ca1cbafc7a8296 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#

hostname=`hostname`
echo -n "Hostname of server machine? [$hostname] "
read answer; if [ X$answer != X ]; then hostname=$answer; fi
maintainer="mailto:www-admin@$hostname"
echo -n "URL to default WWW admin? [$maintainer] "
read answer; if [ X$answer != X ]; then maintainer=$answer; fi
sed -e "/GN_HOSTNAME/s/\".*\"/\"$hostname\"/" \
    -e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \
    ${WRKSRC}/config.h >${WRKSRC}/config.h.foo
mv ${WRKSRC}/config.h.foo ${WRKSRC}/config.h