|
|
@@ -0,0 +1,47 @@ |
|
|
|
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 |
|
|
|
|
|
|
|
.PHONY : hiredis |
|
|
|
hiredis: |
|
|
|
pushd hiredis && \ |
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$$PWD/../out/hiredis -DENABLE_SSL=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/ |
|
|
|
cp -prv out/ pkg_out/opt/cppse/build/ |
|
|
|
rm -rf cppse_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 |
|
|
|
|
|
|
|
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 ../ubuntu2204.sh /bin/bash |