Browse Source

rrdtool: fix to remove the installed rrd.a and rrd.la from lua's cmod dir

Note:

autofoo magic installs an rrd.a and rrd.la file into lua's cmod directory
which is completely nonsense.
user/karasz/firmware
Christian Wiese 13 years ago committed by Christian Wiese
parent
commit
e8e9a6d05c
  1. 22
      database/rrdtool/rrdtool.conf

22
database/rrdtool/rrdtool.conf

@ -33,3 +33,25 @@ fi
# ruby support is broken right now (2007-05-13)
var_append extraconfopt ' ' "--disable-ruby"
# lua binding support
# fix to remove the installed rrd.a and rrd.la from lua's cmod dir
rrdtool_lua_installfix() {
egrep '.*\/rrd\.(a|la)$' $builddir/flist.txt |
while read fn ; do
if [ -e $root/$fn ]; then
# remove the file
rm -f $root/$fn
# fix flist.txt
local pattern=$( echo $fn | sed "s:\/:\\\/:g" )
sed '/$pattern/d' $builddir/flist.txt > $builddir/flist.txt.fixed
fi
done
# replace the old flist.txt with the fixed one
[ -e $builddir/flist.txt.fixed ] && mv $builddir/flist.txt{.fixed,}
}
if pkginstalled -f lua; then
hook_add postflist 9 'rrdtool_lua_installfix'
fi

Loading…
Cancel
Save