summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 14:25:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 14:25:32 +0000
commit6ed35b3f14cef0f25b017564141a7b2beb7dd2e0 (patch)
treecd03d41c2481013b34b8c6bae7c993a739e5fdf3 /debian/rules
parentAdding upstream version 1.23. (diff)
downloadlziprecover-6ed35b3f14cef0f25b017564141a7b2beb7dd2e0.tar.xz
lziprecover-6ed35b3f14cef0f25b017564141a7b2beb7dd2e0.zip
Adding debian version 1.23-5.debian/1.23-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8eeee20
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/buildtools.mk
+
+%:
+ dh ${@}
+
+override_dh_auto_configure:
+ dh_auto_configure -- 'CXX=$(CXX)'
+
+override_dh_auto_install:
+ dh_auto_install -- DESTDIR=$(CURDIR)/debian/lziprecover
+
+execute_after_dh_auto_install:
+ # update-alternatives
+ mv debian/lziprecover/usr/bin/lziprecover debian/lziprecover/usr/bin/lzip.lziprecover
+ ln -s /usr/bin/lzip.lziprecover debian/lziprecover/usr/bin/lziprecover
+
+ mv debian/lziprecover/usr/share/info/lziprecover.info debian/lziprecover/usr/share/info/lzip.lziprecover.info
+ ln -s /usr/share/info/lzip.lziprecover.info.gz debian/lziprecover/usr/share/info/lziprecover.info.gz
+
+ mv debian/lziprecover/usr/share/man/man1/lziprecover.1 debian/lziprecover/usr/share/man/man1/lzip.lziprecover.1
+ ln -s /usr/share/man/man1/lzip.lziprecover.1.gz debian/lziprecover/usr/share/man/man1/lziprecover.1.gz
+
+ # removing unused files
+ rm -f debian/lziprecover/usr/share/info/dir*