31 lines
1.2 KiB
Makefile
31 lines
1.2 KiB
Makefile
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;
|
|
make checkperm
|
|
|
|
clean:
|
|
@echo Nothing to do
|
|
|
|
test:
|
|
@./test-torrent-engine 'S01E01 Tech-TV' ./1337x.torrentengine.sample
|
|
./wolfpack --help
|
|
|
|
reverse:
|
|
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
|
|
|
|
checkperm: /usr/local/etc/WolfPack/
|
|
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/*;
|