29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
build:
|
|
Nothing to build -- this is a bash script.
|
|
|
|
configure:
|
|
mkdir -p /usr/local/etc/WolfPack
|
|
chmod 0770 /usr/local/etc/WolfPack
|
|
cp ./*.pup /usr/local/etc/WolfPack
|
|
chmod 0660 /usr/local/etc/WolfPack/*
|
|
@echo "Default configuration directory of /usr/local/etc/WolfPack created with example pups"
|
|
@echo "Run make install and add '/usr/local/bin/wolfpack --alpha' to root's crontab to schedule data collection."
|
|
|
|
install: /usr/bin/wget /usr/bin/transmission-cli /usr/bin/googler wolfpack wolfpack-stoptorrent /usr/local/bin/whatismyip
|
|
cp -p /usr/local/src/WolfPack/wolfpack /usr/local/bin/wolfpack
|
|
cp -p /usr/local/src/WolfPack/wolfpack-stoptorrent /usr/local/bin/wolfpack-stoptorrent
|
|
chmod 0700 /usr/local/bin/wolfpack-stoptorrent
|
|
chmod 0755 /usr/local/bin/wolfpack
|
|
chown root:root /usr/local/bin/wolfpack*
|
|
|
|
reverse:
|
|
cp /usr/local/bin/wolfpack* .
|
|
[ ! -f /root/bin/offload-wolfpack ] || cp /root/bin/offload-wolfpack .
|
|
|
|
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
|
|
|
|
|