diff options
author | Adam David <adam@FreeBSD.org> | 1995-10-20 00:42:33 +0000 |
---|---|---|
committer | Adam David <adam@FreeBSD.org> | 1995-10-20 00:42:33 +0000 |
commit | 089657e46bd9af7ada3cf71621442cc335eaa544 (patch) | |
tree | 8e8e076f69aab9434e28933c5e6207412af5b5c9 /www/wn/scripts/configure | |
parent | ".b/" -> "pub/" (diff) |
Initial import of the WN server for the Web
Notes
Notes:
svn path=/head/; revision=2349
Diffstat (limited to 'www/wn/scripts/configure')
-rw-r--r-- | www/wn/scripts/configure | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/wn/scripts/configure b/www/wn/scripts/configure new file mode 100644 index 000000000000..83c4366b3a5e --- /dev/null +++ b/www/wn/scripts/configure @@ -0,0 +1,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 |