diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:15:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:15:36 +0000 |
commit | 7b2e846aab7d883d4a822520462b79aacedc11b9 (patch) | |
tree | d4ace23b2fbca02ebe8b393da333c2147fed0f9d /debian/rules | |
parent | Adding upstream version 10.3+deb10u13. (diff) | |
download | base-files-debian/10.3+deb10u13.tar.xz base-files-debian/10.3+deb10u13.zip |
Adding debian version 10.3+deb10u13.debian/10.3+deb10u13debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..88db04b --- /dev/null +++ b/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f + +OSNAME = "GNU/`uname | sed -e 's/GNU\///'`" +ifeq ($(DEB_HOST_GNU_SYSTEM),linux) + OSNAME=GNU/Linux +endif +ifeq ($(DEB_HOST_GNU_SYSTEM),gnu) + OSNAME=GNU/Hurd +endif + +VENDORFILE = debian +DESTDIR = debian/base-files + +%: + dh $@ + +override_dh_auto_build: + sh debian/check-md5sum-etc profile + sed -e "s&#OSNAME#&$(OSNAME)&g" debian/copyright.in > debian/copyright + sed -e "s/#VENDORFILE#/$(VENDORFILE)/g" debian/postinst.in > debian/postinst + +override_dh_auto_install: + install -p -m 644 etc/* $(DESTDIR)/etc + install -p -m 755 motd/* $(DESTDIR)/etc/update-motd.d + install -p -m 644 licenses/* $(DESTDIR)/usr/share/common-licenses + install -p -m 644 origins/* $(DESTDIR)/etc/dpkg/origins + install -p -m 644 share/* $(DESTDIR)/usr/share/base-files +ifeq ($(DEB_HOST_GNU_SYSTEM),gnu) + rmdir $(DESTDIR)/sys +endif + sed -e "s&#OSNAME#&$(OSNAME)&g" share/motd > $(DESTDIR)/usr/share/base-files/motd + sed -e "s&#OSNAME#&$(OSNAME)&g" share/info.dir > $(DESTDIR)/usr/share/base-files/info.dir + sed -e "s&#OSNAME#&$(OSNAME)&g" etc/issue > $(DESTDIR)/etc/issue + sed -e "s&#OSNAME#&$(OSNAME)&g" etc/issue.net > $(DESTDIR)/etc/issue.net + sed -e "s&#OSNAME#&$(OSNAME)&g" etc/os-release > $(DESTDIR)/etc/os-release + mv $(DESTDIR)/etc/os-release $(DESTDIR)/usr/lib/os-release + ln -s ../usr/lib/os-release $(DESTDIR)/etc/os-release + +override_dh_link: + dh_link -X os-release + +override_dh_compress: + dh_compress -X README + +override_dh_fixperms: + dh_fixperms + cd debian/base-files && chown root:staff var/local + cd debian/base-files && chmod 755 `find . -type d` + cd debian/base-files && chmod 1777 `cat ../1777-dirs` + cd debian/base-files && chmod 2775 `cat ../2775-dirs` + cd debian/base-files && chmod 700 root |