diff options
Diffstat (limited to 'config/tgz.am')
-rw-r--r-- | config/tgz.am | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/config/tgz.am b/config/tgz.am index 1ed09ca40..2997b1de2 100644 --- a/config/tgz.am +++ b/config/tgz.am @@ -7,22 +7,20 @@ tgz-local: exit 1; \ fi) -tgz-modules: tgz-local rpm-modules +tgz-kmod: tgz-local rpm-kmod if CONFIG_KERNEL - name=${PACKAGE}-modules; \ - version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ - release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \ - arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ - pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \ - pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \ - fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \ - $(RM) $$pkg1 $$pkg2 + name=${PACKAGE}; \ + version=${VERSION}-${RELEASE}; \ + arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \ + pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \ + fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \ + $(RM) $$pkg1 endif tgz-utils: tgz-local rpm-utils if CONFIG_USER name=${PACKAGE}; \ - version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ + version=${VERSION}-${RELEASE}; \ arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ pkg1=$${name}-$${version}.$${arch}.rpm; \ pkg2=$${name}-devel-$${version}.$${arch}.rpm; \ @@ -31,4 +29,4 @@ if CONFIG_USER $(RM) $$pkg1 $$pkg2 $$pkg3 endif -tgz: tgz-modules tgz-utils +tgz: tgz-kmod tgz-utils |