2020-12-22 09:46:21 -06:00
|
|
|
compile:
|
|
|
|
@echo Nothing to compile.
|
|
|
|
|
|
|
|
install: compile ./wolfpack ./offload-wolfpack ./1337x.torrentengine.sample
|
|
|
|
mkdir -p ${pkgdir}/usr/local/bin/
|
|
|
|
for i in wolfpack offload-wolfpack; do install -o root -g root -m 0755 $$i ${pkgdir}/usr/local/bin/$$i; done
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/systemd/system
|
|
|
|
for i in *.service *.timer; do install -o root -g root -m 0755 $$i ${pkgdir}/usr/lib/systemd/system/$$i; done
|
|
|
|
mkdir -p ${pkgdir}/usr/local/etc/WolfPack
|
|
|
|
chmod 0770 ${pkgdir}/usr/local/etc/WolfPack
|
|
|
|
cp ./*.pup ${pkgdir}/usr/local/etc/WolfPack; cp ./1337x.torrentengine.sample ${pkgdir}/usr/local/etc/WolfPack/torrentengine;
|
2016-09-28 14:12:16 -05:00
|
|
|
make checkperm
|
2016-08-04 12:08:16 -05:00
|
|
|
|
2016-08-30 13:17:18 -05:00
|
|
|
clean:
|
|
|
|
@echo Nothing to do
|
|
|
|
|
|
|
|
test:
|
2020-12-22 09:46:21 -06:00
|
|
|
@./test-torrent-engine 'S01E01 Tech-TV' ./1337x.torrentengine.sample
|
|
|
|
./wolfpack --help
|
2016-08-30 13:17:18 -05:00
|
|
|
|
2016-08-04 12:08:16 -05:00
|
|
|
reverse:
|
2020-12-22 09:46:21 -06:00
|
|
|
for i in wolfpack offload-wolfpack; do cp /usr/local/bin/$$i .; done
|
|
|
|
for i in *.service *.timer; do cp /usr/lib/systemd/system/$$i .; done
|
2016-08-04 12:08:16 -05:00
|
|
|
|
2016-09-23 16:42:15 -05:00
|
|
|
checkperm: /usr/local/etc/WolfPack/
|
2020-12-22 09:46:21 -06:00
|
|
|
chmod -R ug+rw ${pkgdir}/usr/local/etc/WolfPack/
|
|
|
|
chmod 0770 ${pkgdir}/usr/local/etc/WolfPack/
|
|
|
|
chmod 0755 ${pkgdir}/usr/local/bin/*wolfpack
|
|
|
|
chown root:root ${pkgdir}/usr/local/bin/*wolfpack
|
|
|
|
chmod 0660 ${pkgdir}/usr/local/etc/WolfPack/*;
|