summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-08-01 14:56:30 -0400
committerDaniil Baturin <daniil@vyos.io>2024-08-01 14:56:30 -0400
commit61e9cf0755e65b656b83f4378896bce451a8091a (patch)
treecc398526fed6f2308406c729b5cccfb195b76b07 /debian/rules
parent82bb974201c00a2ceb0f8b817059a5cbde8083ed (diff)
downloaduncron-61e9cf0755e65b656b83f4378896bce451a8091a.tar.gz
uncron-61e9cf0755e65b656b83f4378896bce451a8091a.zip
Add hacky Debian packagingHEADmain
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7519cd9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DIR := debian/uncron
+
+%:
+ dh $@ --with quilt
+
+override_dh_auto_build:
+ dune build --profile static
+
+override_dh_auto_install:
+ mkdir -p $(DIR)/usr/bin
+ cp _build/default/src/uncron.exe $(DIR)/usr/bin/uncron
+ cp src/uncron-add $(DIR)/usr/bin/uncron-add
+ mkdir -p $(DIR)/usr/lib/systemd/system
+ cp data/uncron.service $(DIR)/usr/lib/systemd/system/uncron.service
+
+override_dh_auto_test:
+ echo "No tests yet"