17 lines
564 B
Plaintext
17 lines
564 B
Plaintext
|
|
#!/usr/bin/make -f
|
||
|
|
|
||
|
|
%:
|
||
|
|
dh $@
|
||
|
|
|
||
|
|
override_dh_auto_install:
|
||
|
|
dh_auto_install
|
||
|
|
# Install client script
|
||
|
|
install -d $(CURDIR)/debian/oculog-client/opt/oculog
|
||
|
|
install -m 755 client.py $(CURDIR)/debian/oculog-client/opt/oculog/
|
||
|
|
# Install systemd service
|
||
|
|
install -d $(CURDIR)/debian/oculog-client/etc/systemd/system
|
||
|
|
install -m 644 oculog-client.service $(CURDIR)/debian/oculog-client/etc/systemd/system/
|
||
|
|
# Create symlink
|
||
|
|
install -d $(CURDIR)/debian/oculog-client/usr/local/bin
|
||
|
|
ln -sf /opt/oculog/client.py $(CURDIR)/debian/oculog-client/usr/local/bin/oculog-client
|