1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/net/cricket/scripts/configure

24 lines
821 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# $FreeBSD$
echo var set to ${PERL5} >/tmp/debug1
FILES_PERLPATH="util/dump-targets util/generate-statics util/listInterfaces \
compile util/newsstats util/pmlines.pl util/rrd-dump util/rrd-tune \
util/test-url util/usrModemUsage collect-subtrees collector \
grapher.cgi mini-graph.cgi"
FILES_PREFIX="sample-config/news-server/Defaults collect-subtrees collector \
compile grapher.cgi mini-graph.cgi util/dump-targets \
util/generate-statics util/listInterfaces util/rrd-dump \
util/rrd-tune util/usrModemUsage"
for f in $FILES_PERLPATH ; do
mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
s+%%PATHPERLBIN%%+${PERL5}+g >${WRKSRC}/${f}
done
for f in $FILES_PREFIX ; do
mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
s+%%PREFIX%%+${PREFIX}+g >${WRKSRC}/${f}
done