Skip to content

Instantly share code, notes, and snippets.

@sintaxi
Last active December 3, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sintaxi/11368216 to your computer and use it in GitHub Desktop.
Save sintaxi/11368216 to your computer and use it in GitHub Desktop.
poor mans package manager
dirs:
mkdir -p pids logs data bin scripts conf/ssl src
haproxy: dirs
cd src; \
curl http://www.haproxy.org/download/1.5/src/haproxy-1.5.1.tar.gz -o haproxy-1.5.1.tar.gz; \
tar -zxvf haproxy-1.5.1.tar.gz; \
cd haproxy-1.5.1; \
make USE_OPENSSL=1 TARGET=generic; \
mv haproxy ../../bin/haproxy; \
cd ../..;
rm -rf src/haproxy-*
redis: dirs
cd src; \
curl http://download.redis.io/releases/redis-2.8.9.tar.gz -o redis-2.8.9.tar.gz; \
tar -zxvf redis-2.8.9.tar.gz; \
cd redis-2.8.9; \
make && make test \
mv src/redis-cli ../../bin/redis-cli; \
mv src/redis-server ../../bin/redis-server; \
cd ../..;
rm -rf src/redis-*
init: redis haproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment