2017-05-17 16:12:56 -05:00
|
|
|
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash
|
|
|
|
|
2016-11-02 20:31:21 -05:00
|
|
|
compile: ./tpb.torrentengine.sample
|
|
|
|
if [ ! -d /usr/local/src/SharedLibraries ]; then git -C /usr/local/src/ clone https://aninix.net/foundation/SharedLibraries; fi
|
|
|
|
git -C /usr/local/src/SharedLibraries pull;
|
|
|
|
if [ ! -d /usr/local/etc/WolfPack ]; then mkdir -p /usr/local/etc/WolfPack; chmod 0770 /usr/local/etc/WolfPack; cp ./*.pup /usr/local/etc/WolfPack; cp ./tpb.torrentengine.sample /usr/local/etc/WolfPack; chmod 0660 /usr/local/etc/WolfPack/*; echo "Default configuration directory of /usr/local/etc/WolfPack created with example pups and torrent engine."; fi
|
2017-09-19 16:35:01 -05:00
|
|
|
${INSTALLER} deluge mlocate
|
2016-08-04 12:08:16 -05:00
|
|
|
|
2017-09-19 16:35:01 -05:00
|
|
|
install: compile /usr/bin/wget /usr/bin/deluge-console /usr/bin/googler ./wolfpack /usr/local/bin/whatismyip /usr/bin/lynx
|
2016-08-04 12:08:16 -05:00
|
|
|
cp -p /usr/local/src/WolfPack/wolfpack /usr/local/bin/wolfpack
|
2016-09-28 14:12:16 -05:00
|
|
|
make checkperm
|
2017-09-19 16:35:01 -05:00
|
|
|
systemctl enable deluged
|
|
|
|
systemctl start deluged
|
2017-05-17 16:12:56 -05:00
|
|
|
@echo
|
|
|
|
@echo "Add pups to /usr/local/etc/WolfPack/ to set up your searches."
|
|
|
|
@echo "Add '/usr/local/bin/wolfpack --alpha' to root's crontab to schedule data collection."
|
|
|
|
@echo WolfPack installed\!
|
2016-08-04 12:08:16 -05:00
|
|
|
|
2016-08-30 13:17:18 -05:00
|
|
|
clean:
|
|
|
|
@echo Nothing to do
|
|
|
|
|
|
|
|
test:
|
2017-09-19 16:35:01 -05:00
|
|
|
./test-torrent-engine 'S01E01 Tech-TV'
|
2016-08-30 13:17:18 -05:00
|
|
|
./wolfpack --member ./example-download.pup
|
|
|
|
./wolfpack --member ./example-search.pup
|
|
|
|
./wolfpack --member ./example-shows.pup
|
|
|
|
./wolfpack --member ./example-torrent.pup
|
|
|
|
|
2016-08-04 12:08:16 -05:00
|
|
|
reverse:
|
|
|
|
cp /usr/local/bin/wolfpack* .
|
2016-08-30 13:17:18 -05:00
|
|
|
cp /root/bin/offload-wolfpack .
|
2016-08-04 12:08:16 -05:00
|
|
|
|
2016-09-23 16:42:15 -05:00
|
|
|
checkperm: /usr/local/etc/WolfPack/
|
|
|
|
chmod -R ug+rw /usr/local/etc/WolfPack/
|
|
|
|
chmod 0770 /usr/local/etc/WolfPack/
|
2016-09-28 14:12:16 -05:00
|
|
|
chmod 0755 /usr/local/bin/wolfpack
|
|
|
|
chown root:root /usr/local/bin/wolfpack*
|
2016-09-23 16:42:15 -05:00
|
|
|
|
2016-08-04 12:08:16 -05:00
|
|
|
offload: offload-wolfpack /root/.ssh/id_rsa /root/.ssh/id_rsa.pub
|
|
|
|
cp offload-wolfpack /root/bin
|
|
|
|
chmod 0700 /root/bin/offload-wolfpack
|
|
|
|
chown root:root /root/bin/offload-wolfpack
|
2017-06-19 17:01:52 -05:00
|
|
|
|
|
|
|
diff: /usr/local/bin/wolfpack
|
2017-09-19 16:35:01 -05:00
|
|
|
@echo wolfpack:; diff ./wolfpack /usr/local/bin/wolfpack; echo; if [ -f /root/bin/offload-wolfpack ]; then echo offload-wolfpack:; diff ./offload-wolfpack /root/bin/offload-wolfpack; echo; fi;
|