1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/wn/scripts/configure
1995-10-20 00:42:33 +00:00

15 lines
532 B
Bash

#!/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