Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

48 Zeilen
1.5KB

  1. SHELL:=/bin/bash
  2. ubuntu2204:
  3. mkdir -p $$PWD/../out
  4. # check out revision that is master at the time of writing
  5. git clone -b v1.1.0 https://github.com/redis/hiredis || true
  6. bash ../ubuntu2204.sh make hiredis
  7. git clone -b 1.3.6 https://github.com/sewenew/redis-plus-plus || true
  8. bash ../ubuntu2204.sh make redis-plus-plus
  9. make package-ubuntu2204
  10. .PHONY : hiredis
  11. hiredis:
  12. pushd hiredis && \
  13. cmake -DCMAKE_INSTALL_PREFIX=$$PWD/../out/hiredis -DENABLE_SSL=off . && \
  14. make USE_SSL=0 && \
  15. make PREFIX=$$PWD/../out/hiredis USE_SSL=0 install && \
  16. popd
  17. .PHONY : redis-plus-plus
  18. redis-plus-plus:
  19. pushd redis-plus-plus && \
  20. mkdir -p build && \
  21. pushd build && \
  22. cmake -DCMAKE_PREFIX_PATH=$$PWD/../../out/hiredis -DCMAKE_INSTALL_PREFIX=$$PWD/../../out/redis-plus-plus -DREDIS_PLUS_PLUS_BUILD_STATIC=ON -DREDIS_PLUS_PLUS_USE_TLS=OFF .. && \
  23. make -j 8 && \
  24. make install && \
  25. cd ..
  26. package-ubuntu2204:
  27. rm -rf pkg_out
  28. mkdir -p pkg_out/opt/cppse/build/
  29. cp -prv out/ pkg_out/opt/cppse/build/
  30. rm -rf cppse_redis-plus-plus_*_amd64.deb
  31. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out
  32. clean:
  33. sudo rm -rf hiredis
  34. sudo rm -rf redis-plus-plus
  35. sudo rm -rf out
  36. sudo rm -rf pkg_out
  37. shell:
  38. FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash