aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-04 17:43:46 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-04 17:43:46 +0000
commita3365a128165102576c0d0c2db7c537317c84d52 (patch)
tree25160c4dc3203b6ab762d4f221ef5aedadb26fac
parentf632eeaa41ab63f16f0a201a1a4455dbf49a4745 (diff)
downloadrpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar
rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.gz
rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.bz2
rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.xz
rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.zip
add package version in dkms.conf kmod() provides
-rwxr-xr-xkmod.prov3
1 files changed, 2 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 0a81e42..dcd9aa1 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -13,6 +13,7 @@ if (/^srcversion:/) {
'
dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
[ -n "$dkmslist" ] && echo $dkmslist | while read d; do
+ VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d`
[ -z "$VERSION" ] && continue
MODULES=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/\1/;T;p' $d`
if [ -z "$MODULES" ]; then
@@ -20,6 +21,6 @@ dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
MODULES=`sed -rne 's/^PACKAGE_NAME="?([^"]+)"?$/\1/;T;p' $d`
fi
echo "$MODULES" | while read m; do
- echo "kmod($m)"
+ echo "kmod($m) = $VERSION"
done
done