Simplified distributed block storage with strong consistency, like in Ceph
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1004 B

  1. #!/bin/bash
  2. # Cheatsheet for CentOS 7 packaging (not a build script)
  3. set -e
  4. rm -f /etc/yum.repos.d/CentOS-Media.repo
  5. yum -y --enablerepo=extras install centos-release-scl epel-release
  6. yum -y --enablerepo='*' install devtoolset-9-gcc-c++ devtoolset-9-libatomic-devel gperftools-devel
  7. yumdownloader --source qemu
  8. yumdownloader --source fio
  9. yum-builddep -y --enablerepo='*' qemu
  10. yum -y install rpm-build
  11. . /opt/rh/devtoolset-9/enable
  12. rpm --nomd5 -i qemu*.src.rpm
  13. rpm --nomd5 -i fio*.src.rpm
  14. cd ~/rpmbuild/SPECS
  15. rpmbuild -bp fio.spec
  16. perl -i -pe 's/^make V=1/exit 1; make V=1/' qemu.spec
  17. rpmbuild -bc qemu.spec
  18. perl -i -pe 's/^exit 1; make V=1/make V=1/' qemu.spec
  19. cd ~/rpmbuild/BUILD/qemu*/
  20. make qapi-types.h
  21. mkdir -p ~/vitastor/qemu/b/qemu
  22. cp config-host.h ~/vitastor/qemu/b/qemu
  23. cp qapi-types.h ~/vitastor/qemu/b/qemu
  24. cp -r include ~/vitastor/qemu
  25. cd ~/vitastor
  26. sh copy-qemu-includes.sh
  27. mv qemu qemu-old
  28. mv qemu-copy qemu
  29. ln -s ~/rpmbuild/BUILD/fio*/ fio
  30. sh copy-fio-includes.sh
  31. rm fio
  32. mv fio-copy fio