X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=config%2Fdeb.am;h=078dd0c7aa089d0ce63b214fa3b5df535f9bfaa5;hb=b5d8c5fb08d596d598d86afce479be7e8b9bc700;hp=18b56547bc040979d123964be3bdb4e4b3c0c6e0;hpb=bd2f5ac97f4265523fb1397d845eabb8647c79e4;p=zfs.git diff --git a/config/deb.am b/config/deb.am index 18b5654..078dd0c 100644 --- a/config/deb.am +++ b/config/deb.am @@ -14,19 +14,20 @@ deb-local: exit 1; \ fi) -deb-modules: deb-local rpm-modules - 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-deb $$pkg1 $$pkg2; \ - $(RM) $$pkg1 $$pkg2 +deb-kmod: deb-local rpm-kmod +if CONFIG_KERNEL + 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-deb $$pkg1; \ + $(RM) $$pkg1 +endif deb-utils: deb-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; \ @@ -34,5 +35,6 @@ deb-utils: deb-local rpm-utils pkg4=$${name}-dracut-$${version}.$${arch}.rpm; \ fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2 $$pkg3 $$pkg4; \ $(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4 +endif -deb: deb-modules deb-utils +deb: deb-kmod deb-utils