Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- SHELL:=/bin/bash
-
- ubuntu2204:
- mkdir -p $$PWD/../out
-
- # check out revision that is master at the time of writing
- git clone -b v1.1.0 https://github.com/redis/hiredis || true
- bash ../ubuntu2204.sh make hiredis
-
- git clone -b 1.3.6 https://github.com/sewenew/redis-plus-plus || true
- bash ../ubuntu2204.sh make redis-plus-plus
-
- make package-ubuntu2204
-
- ubuntu2404:
- mkdir -p $$PWD/../out
-
- # check out revision that is master at the time of writing
- git clone -b v1.2.0 https://github.com/redis/hiredis || true
- bash ../ubuntu2404.sh make hiredis
-
- git clone -b 1.3.13 https://github.com/sewenew/redis-plus-plus || true
- bash ../ubuntu2404.sh make redis-plus-plus
-
- make package-ubuntu2404
-
- .PHONY : hiredis
- hiredis:
- pushd hiredis && \
- cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/../out/hiredis -DENABLE_SSL=off -DBUILD_SHARED_LIBS=OFF . && \
- make USE_SSL=0 && \
- make PREFIX=$$PWD/../out/hiredis USE_SSL=0 install && \
- popd
-
- .PHONY : redis-plus-plus
- redis-plus-plus:
- pushd redis-plus-plus && \
- mkdir -p build && \
- pushd build && \
- 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 .. && \
- make -j 8 && \
- make install && \
- cd ..
-
- package-ubuntu2204:
- rm -rf pkg_out
- mkdir -p pkg_out/opt/cppse/build/
- rsync -raPv out/ pkg_out/opt/cppse/build/
- rm -rf redis-plus-plus*amd64.deb
- 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
-
- package-ubuntu2404:
- rm -rf pkg_out
- mkdir -p pkg_out/opt/cppse/build/
- rsync -raPv out/ pkg_out/opt/cppse/build/
- rm -rf redis-plus-plus*amd64.deb
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.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
-
- clean:
- sudo rm -rf hiredis
- sudo rm -rf redis-plus-plus
- sudo rm -rf out
- sudo rm -rf pkg_out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash
|