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

sitename=`hostname`
echo -n "Site name? [$sitename] "
read answer; if [ X$answer != X ]; then sitename=$answer; fi
maintainer="mailto:webmaster@$sitename"
echo -n "URL to default WWW admin? [$maintainer] "
read answer; if [ X$answer != X ]; then maintainer=$answer; fi
sed -e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \
    ${WRKSRC}/config.h >${WRKSRC}/config.h.foo
mv ${WRKSRC}/config.h.foo ${WRKSRC}/config.h
sed -e "s/\$MAINTAINER/$maintainer/g" -e "s/\$SITENAME/$sitename/g" \
				${FILESDIR}/index >${WRKDIR}/index