summaryrefslogtreecommitdiff
path: root/net-mgmt/cricket/scripts/configure
blob: bcf7568dd6b3603dc11ef5a47b3154336b966f17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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