Browse Source

make all %config sections visible for any package

master
parent
commit
ce2a88e0a6
  1. 4
      openpkg/openpkg.spec
  2. 10
      openpkg/rc

4
openpkg/openpkg.spec

@ -39,8 +39,8 @@
# o any cc(1)
# the package version and release
%define V_openpkg 20021119
%define R_openpkg 20021119
%define V_openpkg 20021120
%define R_openpkg 20021120
# the used software versions
%define V_rpm 4.0.2

10
openpkg/rc

@ -293,7 +293,10 @@ for cmd in $cmds; do
fi
if [ ".$print" = .1 -o ".$eval" = .1 ]; then
echo ". $rcfunc" >>$tmpfile
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
for l_name in $scripts; do
sed <$rcdir/rc.$l_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
done
echo ". $rcconf" >>$tmpfile
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%common/d" -e '/^%.*/,$d'
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%$cmd/d" -e '/^%.*/,$d'
@ -305,7 +308,10 @@ for cmd in $cmds; do
echo "set -x" >>$tmpfile
fi
echo ". $rcfunc" >>$tmpfile
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
for l_name in $scripts; do
sed <$rcdir/rc.$l_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
done
echo ". $rcconf" >>$tmpfile
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%common/d" -e '/^%.*/,$d'
sed <$rcdir/rc.$s_name >>$tmpfile -e "1,/^%$cmd/d" -e '/^%.*/,$d'

Loading…
Cancel
Save