summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 05:55:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 05:55:27 +0000
commit065405a17c6bcde90c61f2706ba500e04fe5d03c (patch)
tree0508f3454e5197bb34b475d5f7374935a703c40d /debian/rules
parentAdding upstream version 3.118+deb11u1. (diff)
downloadadduser-debian.tar.xz
adduser-debian.zip
Adding debian version 3.118+deb11u1.debian/3.118+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..369aec2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+package = adduser
+version = $(DEB_VERSION_UPSTREAM)
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ $(MAKE) -C po all adduser.pot
+ # generate man pages
+ cd doc/po4a && po4a --previous po4a.conf
+
+override_dh_auto_clean:
+ $(MAKE) -C po update clean
+ debconf-updatepo
+ cd doc/po4a && po4a --previous --rm-translations po4a.conf
+
+override_dh_auto_install:
+ $(MAKE) -C po install DESTDIR=`pwd`/debian/adduser
+
+override_dh_install:
+ dh_install
+ sed -e s/VERSION/$(version)/g adduser > debian/adduser/usr/sbin/adduser
+ sed -e s/VERSION/$(version)/g deluser > debian/adduser/usr/sbin/deluser
+ sed -e s/VERSION/$(version)/g AdduserCommon.pm > debian/adduser/usr/share/perl5/Debian/AdduserCommon.pm
+ chmod 755 debian/adduser/usr/sbin/*
+ ln -s adduser debian/adduser/usr/sbin/addgroup
+ ln -s deluser debian/adduser/usr/sbin/delgroup
+
+ ./debian/scripts/install-manpages.pl $(version) doc/ debian/adduser/usr/share/man/
+
+# install -o root -g root -m644 TODO debian/adduser/usr/share/doc/adduser/
+ install -o root -g root -m0755 -d debian/adduser/DEBIAN
+ po2debconf debian/templates > debian/adduser/DEBIAN/templates
+
+override_dh_compress:
+ dh_compress -X examples/adduser.local
+