2010-08-26 18:22:58 +00:00
|
|
|
deb-local:
|
|
|
|
@(if test "${HAVE_DPKGBUILD}" = "no"; then \
|
|
|
|
echo -e "\n" \
|
|
|
|
"*** Required util ${DPKGBUILD} missing. Please install the\n" \
|
2018-02-15 20:58:23 +00:00
|
|
|
"*** package for your distribution which provides ${DPKGBUILD},\n" \
|
2010-08-26 18:22:58 +00:00
|
|
|
"*** re-run configure, and try again.\n"; \
|
2018-02-15 20:58:23 +00:00
|
|
|
exit 1; \
|
2010-08-26 18:22:58 +00:00
|
|
|
fi; \
|
|
|
|
if test "${HAVE_ALIEN}" = "no"; then \
|
|
|
|
echo -e "\n" \
|
|
|
|
"*** Required util ${ALIEN} missing. Please install the\n" \
|
2018-02-15 20:58:23 +00:00
|
|
|
"*** package for your distribution which provides ${ALIEN},\n" \
|
2010-08-26 18:22:58 +00:00
|
|
|
"*** re-run configure, and try again.\n"; \
|
2018-02-15 20:58:23 +00:00
|
|
|
exit 1; \
|
2010-08-26 18:22:58 +00:00
|
|
|
fi)
|
|
|
|
|
2013-02-17 20:10:17 +00:00
|
|
|
deb-kmod: deb-local rpm-kmod
|
|
|
|
name=${PACKAGE}; \
|
|
|
|
version=${VERSION}-${RELEASE}; \
|
|
|
|
arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
|
2018-01-18 18:15:41 +00:00
|
|
|
debarch=`$(DPKG) --print-architecture`; \
|
2013-02-17 20:10:17 +00:00
|
|
|
pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
|
2018-01-18 18:15:41 +00:00
|
|
|
fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch $$pkg1; \
|
2013-02-17 20:10:17 +00:00
|
|
|
$(RM) $$pkg1
|
2017-10-15 20:00:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
deb-dkms: deb-local rpm-dkms
|
|
|
|
name=${PACKAGE}; \
|
|
|
|
version=${VERSION}-${RELEASE}; \
|
|
|
|
arch=`$(RPM) -qp $${name}-dkms-$${version}.src.rpm --qf %{arch} | tail -1`; \
|
2018-01-18 18:15:41 +00:00
|
|
|
debarch=`$(DPKG) --print-architecture`; \
|
2017-10-15 20:00:44 +00:00
|
|
|
pkg1=$${name}-dkms-$${version}.$${arch}.rpm; \
|
2018-01-18 18:15:41 +00:00
|
|
|
fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch $$pkg1; \
|
2017-10-15 20:00:44 +00:00
|
|
|
$(RM) $$pkg1
|
2010-08-26 18:22:58 +00:00
|
|
|
|
|
|
|
deb-utils: deb-local rpm-utils
|
|
|
|
name=${PACKAGE}; \
|
2013-02-17 20:10:17 +00:00
|
|
|
version=${VERSION}-${RELEASE}; \
|
2011-06-16 19:14:33 +00:00
|
|
|
arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
|
2018-01-18 18:15:41 +00:00
|
|
|
debarch=`$(DPKG) --print-architecture`; \
|
2010-08-26 18:22:58 +00:00
|
|
|
pkg1=$${name}-$${version}.$${arch}.rpm; \
|
2014-05-17 11:20:59 +00:00
|
|
|
pkg2=libnvpair1-$${version}.$${arch}.rpm; \
|
|
|
|
pkg3=libuutil1-$${version}.$${arch}.rpm; \
|
|
|
|
pkg4=libzfs2-$${version}.$${arch}.rpm; \
|
|
|
|
pkg5=libzpool2-$${version}.$${arch}.rpm; \
|
|
|
|
pkg6=libzfs2-devel-$${version}.$${arch}.rpm; \
|
|
|
|
pkg7=$${name}-test-$${version}.$${arch}.rpm; \
|
|
|
|
pkg8=$${name}-dracut-$${version}.$${arch}.rpm; \
|
2015-07-24 12:49:03 +00:00
|
|
|
pkg9=$${name}-initramfs-$${version}.$${arch}.rpm; \
|
Adopt pyzfs from ClusterHQ
This commit introduces several changes:
* Update LICENSE and project information
* Give a good PEP8 talk to existing Python source code
* Add RPM/DEB packaging for pyzfs
* Fix some outstanding issues with the existing pyzfs code caused by
changes in the ABI since the last time the code was updated
* Integrate pyzfs Python unittest with the ZFS Test Suite
* Add missing libzfs_core functions: lzc_change_key,
lzc_channel_program, lzc_channel_program_nosync, lzc_load_key,
lzc_receive_one, lzc_receive_resumable, lzc_receive_with_cmdprops,
lzc_receive_with_header, lzc_reopen, lzc_send_resume, lzc_sync,
lzc_unload_key, lzc_remap
Note: this commit slightly changes zfs_ioc_unload_key() ABI. This allow
to differentiate the case where we tried to unload a key on a
non-existing dataset (ENOENT) from the situation where a dataset has
no key loaded: this is consistent with the "change" case where trying
to zfs_ioc_change_key() from a dataset with no key results in EACCES.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7230
2018-03-18 08:34:45 +00:00
|
|
|
pkg10=pyzfs-$${version}.noarch.rpm; \
|
2017-07-07 17:45:17 +00:00
|
|
|
## Arguments need to be passed to dh_shlibdeps. Alien provides no mechanism
|
|
|
|
## to do this, so we install a shim onto the path which calls the real
|
|
|
|
## dh_shlibdeps with the required arguments.
|
|
|
|
path_prepend=`mktemp -d /tmp/intercept.XXX`; \
|
|
|
|
echo "#$(SHELL)" > $${path_prepend}/dh_shlibdeps; \
|
|
|
|
echo "`which dh_shlibdeps` -- \
|
|
|
|
-xlibuutil1linux -xlibnvpair1linux -xlibzfs2linux -xlibzpool2linux" \
|
|
|
|
>> $${path_prepend}/dh_shlibdeps; \
|
|
|
|
## These -x arguments are passed to dpkg-shlibdeps, which exclude the
|
|
|
|
## Debianized packages from the auto-generated dependencies of the new debs,
|
|
|
|
## which should NOT be mixed with the alien-generated debs created here
|
|
|
|
chmod +x $${path_prepend}/dh_shlibdeps; \
|
|
|
|
env PATH=$${path_prepend}:$${PATH} \
|
2018-01-18 18:15:41 +00:00
|
|
|
fakeroot $(ALIEN) --bump=0 --scripts --to-deb --target=$$debarch \
|
2015-07-24 12:49:03 +00:00
|
|
|
$$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
|
Adopt pyzfs from ClusterHQ
This commit introduces several changes:
* Update LICENSE and project information
* Give a good PEP8 talk to existing Python source code
* Add RPM/DEB packaging for pyzfs
* Fix some outstanding issues with the existing pyzfs code caused by
changes in the ABI since the last time the code was updated
* Integrate pyzfs Python unittest with the ZFS Test Suite
* Add missing libzfs_core functions: lzc_change_key,
lzc_channel_program, lzc_channel_program_nosync, lzc_load_key,
lzc_receive_one, lzc_receive_resumable, lzc_receive_with_cmdprops,
lzc_receive_with_header, lzc_reopen, lzc_send_resume, lzc_sync,
lzc_unload_key, lzc_remap
Note: this commit slightly changes zfs_ioc_unload_key() ABI. This allow
to differentiate the case where we tried to unload a key on a
non-existing dataset (ENOENT) from the situation where a dataset has
no key loaded: this is consistent with the "change" case where trying
to zfs_ioc_change_key() from a dataset with no key results in EACCES.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7230
2018-03-18 08:34:45 +00:00
|
|
|
$$pkg8 $$pkg9 $$pkg10; \
|
2017-07-07 17:45:17 +00:00
|
|
|
$(RM) $${path_prepend}/dh_shlibdeps; \
|
|
|
|
rmdir $${path_prepend}; \
|
2015-07-24 12:49:03 +00:00
|
|
|
$(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
|
Adopt pyzfs from ClusterHQ
This commit introduces several changes:
* Update LICENSE and project information
* Give a good PEP8 talk to existing Python source code
* Add RPM/DEB packaging for pyzfs
* Fix some outstanding issues with the existing pyzfs code caused by
changes in the ABI since the last time the code was updated
* Integrate pyzfs Python unittest with the ZFS Test Suite
* Add missing libzfs_core functions: lzc_change_key,
lzc_channel_program, lzc_channel_program_nosync, lzc_load_key,
lzc_receive_one, lzc_receive_resumable, lzc_receive_with_cmdprops,
lzc_receive_with_header, lzc_reopen, lzc_send_resume, lzc_sync,
lzc_unload_key, lzc_remap
Note: this commit slightly changes zfs_ioc_unload_key() ABI. This allow
to differentiate the case where we tried to unload a key on a
non-existing dataset (ENOENT) from the situation where a dataset has
no key loaded: this is consistent with the "change" case where trying
to zfs_ioc_change_key() from a dataset with no key results in EACCES.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7230
2018-03-18 08:34:45 +00:00
|
|
|
$$pkg8 $$pkg9 $$pkg10;
|
2010-08-26 18:22:58 +00:00
|
|
|
|
2017-10-15 20:00:44 +00:00
|
|
|
deb: deb-kmod deb-dkms deb-utils
|