Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. RELEASEURL_tmux_conf:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/tmux.conf"
  2. RELEASEURL_atr:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/atr"
  3. RELEASEURL_iptables_http_clear:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-http-clear"
  4. RELEASEURL_iptables_http_cloudflare:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-http-cloudflare"
  5. RELEASEURL_iptables_write:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/iptables-write"
  6. RELEASEURL_ping_disable:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/ping-disable"
  7. RELEASEURL_ping_enable:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/ping-enable"
  8. RELEASEURL_sess:="https://github.com/vladimirok5959/bash-linux-utils/releases/download/latest/sess"
  9. BINDIR:=/usr/local/bin
  10. default: info
  11. install:
  12. @echo "Downloading..."
  13. @wget -q $(RELEASEURL_tmux_conf) -O ~/.tmux.conf > /dev/null
  14. @chmod 644 ~/.tmux.conf
  15. @echo "[OK] ~/.tmux.conf"
  16. @wget -q $(RELEASEURL_atr) -O $(BINDIR)/atr > /dev/null
  17. @chmod 755 $(BINDIR)/atr
  18. @echo "[OK] $(BINDIR)/atr"
  19. @wget -q $(RELEASEURL_iptables_http_clear) -O $(BINDIR)/iptables-http-clear > /dev/null
  20. @chmod 755 $(BINDIR)/iptables-http-clear
  21. @echo "[OK] $(BINDIR)/iptables-http-clear"
  22. @wget -q $(RELEASEURL_iptables_http_cloudflare) -O $(BINDIR)/iptables-http-cloudflare > /dev/null
  23. @chmod 755 $(BINDIR)/iptables-http-cloudflare
  24. @echo "[OK] $(BINDIR)/iptables-http-cloudflare"
  25. @wget -q $(RELEASEURL_iptables_write) -O $(BINDIR)/iptables-write > /dev/null
  26. @chmod 755 $(BINDIR)/iptables-write
  27. @echo "[OK] $(BINDIR)/iptables-write"
  28. @wget -q $(RELEASEURL_ping_disable) -O $(BINDIR)/ping-disable > /dev/null
  29. @chmod 755 $(BINDIR)/ping-disable
  30. @echo "[OK] $(BINDIR)/ping-disable"
  31. @wget -q $(RELEASEURL_ping_enable) -O $(BINDIR)/ping-enable > /dev/null
  32. @chmod 755 $(BINDIR)/ping-enable
  33. @echo "[OK] $(BINDIR)/ping-enable"
  34. @wget -q $(RELEASEURL_sess) -O $(BINDIR)/sess > /dev/null
  35. @chmod 755 $(BINDIR)/sess
  36. @echo "[OK] $(BINDIR)/sess"
  37. @echo "All installed successfully"
  38. info:
  39. @echo "You can run 'make install'"