Private Decentralized Communication Network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.1 KiB

  1. ONIONR_HOME ?= data
  2. all:;: '$(ONIONR_HOME)'
  3. PREFIX = /usr/local
  4. .DEFAULT_GOAL := setup
  5. setup:
  6. pip3 install -r requirements.txt --require-hashes --user
  7. -@cd onionr/static-data/ui/; ./compile.py
  8. install:
  9. cp -rfp ./onionr $(DESTDIR)$(PREFIX)/share/onionr
  10. echo '#!/bin/sh' > $(DESTDIR)$(PREFIX)/bin/onionr
  11. echo 'cd $(DESTDIR)$(PREFIX)/share/onionr' > $(DESTDIR)$(PREFIX)/bin/onionr
  12. echo './onionr "$$@"' > $(DESTDIR)$(PREFIX)/bin/onionr
  13. chmod +x $(DESTDIR)$(PREFIX)/bin/onionr
  14. uninstall:
  15. rm -rf $(DESTDIR)$(PREFIX)/share/onionr
  16. rm -f $(DESTDIR)$(PREFIX)/bin/onionr
  17. test:
  18. ./run_tests.sh
  19. soft-reset:
  20. @echo "Soft-resetting Onionr..."
  21. ./onionr.sh soft-reset
  22. @./onionr.sh version | grep -v "Failed" --color=always
  23. reset:
  24. @echo "Hard-resetting Onionr..."
  25. rm -rf $(ONIONR_HOME)/ | true > /dev/null 2>&1
  26. cd onionr/static-data/www/ui/; rm -rf ./dist; python compile.py
  27. #@./onionr.sh version | grep -v "Failed" --color=always
  28. plugins-reset:
  29. @echo "Resetting plugins..."
  30. @./onionr.sh reset-plugins | true > /dev/null 2>&1
  31. @./onionr.sh version | grep -v "Failed" --color=always