blob: 33c88ed33605d6d3a1053bd1ca8956f78785d8e7 (
plain) (
tree)
|
|
# Installation for the reolink daemon
#
# N.b. written for OpenBSD. YMMV on other platforms.
# protect a little against blindly typing "make"
all:
@echo 'Try "make install" instead'
install:
libdir=`perl -V:installsitelib | sed -e "s/^installsitelib='//" -e "s/';\$$//"`; \
if [ -d "$$libdir" ]; then \
install -m 0444 Reolink.pm "$$libdir/Reolink.pm"; \
else \
echo "perl site libdir $$libdir does not exist"; exit 1; \
fi
install -m 0555 reolink /usr/sbin/reolink
install -m 0555 reolink.rc /etc/rc.d/reolink
@echo "Enable reolink service manually with rcctl(8)"
|