TheRaven/ravensend/Makefile

34 lines
1.2 KiB
Makefile
Raw Normal View History

2021-11-29 03:45:30 -06:00
CONFDIR = ${pkgdir}/usr/local/etc/TheRaven
LIST = ravensend ravensend-daemon
compile:
@echo Nothing to do.
clean:
rm -Rf pkg src
test: compile
./ravensend -h
install: compile
mkdir -p ${pkgdir}/usr/local/bin
for i in ${LIST}; do install -m 0755 -o raven -g raven $$i ${pkgdir}/usr/local/bin; done
# Hook for Systemd
mkdir -p ${pkgdir}/usr/lib/systemd/system/
install -m 0644 -o raven -g raven ./ravensend-daemon.service ${pkgdir}/usr/lib/systemd/system/
mkdir -p ${pkgdir}/usr/local/etc/
install -m 0640 -o raven -g raven ./ravensend-daemon.yml ${pkgdir}/usr/local/etc/
2024-04-08 00:03:30 -05:00
diff:
for i in ${LIST}; do diff /usr/local/bin/$$i $$i; done
diff ${pkgdir}/usr/lib/systemd/system/ravensend-daemon.service ./ravensend-daemon.service
2021-11-29 03:45:30 -06:00
reverse: ${pkgdir}/usr/lib/systemd/system/ravensend-daemon.service
cp ${pkgdir}/usr/lib/systemd/system/ravensend-daemon.service .
2024-04-08 00:03:30 -05:00
for i in ${LIST}; do cp ${pkgdir}/usr/local/bin/$$i .; done
2021-11-29 03:45:30 -06:00
checkperm: ${pkgdir}/opt/raven.mono
for i in ${LIST}; do chown -R raven: ${pkgdir}/usr/local/bin/$$i; chmod 0755 ${pkgdir}/usr/local/bin/$$i; done
chown raven: ${pkgdir}/usr/lib/systemd/system/ravensend-daemon.service
chmod 0644 ${pkgdir}/usr/lib/systemd/system/ravensend-daemon.service