diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:45:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:45:21 +0000 |
commit | 205caf41689832ea4d75c8ac23b9b9d4adeb983e (patch) | |
tree | 6f8b92bdd97783cba644b3d14e8f57b160741b12 /debian/rules | |
parent | Adding upstream version 1:43.6. (diff) | |
download | gnome-control-center-205caf41689832ea4d75c8ac23b9b9d4adeb983e.tar.xz gnome-control-center-205caf41689832ea4d75c8ac23b9b9d4adeb983e.zip |
Adding debian version 1:43.6-2~deb12u1.debian/1%43.6-2_deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..07f0478 --- /dev/null +++ b/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CPPFLAGS_MAINT_APPEND = -DSSHD_SERVICE=\"ssh.service\" +export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs + +# Not in Ubuntu main yet https://launchpad.net/bugs/1892456 +ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes) +DISTRIBUTOR_LOGO := /usr/share/pixmaps/ubuntu-logo-text.png +DISTRIBUTOR_LOGO_DARK := /usr/share/pixmaps/ubuntu-logo-text-dark.png +MALCONTENT := -Dmalcontent=false +else +DISTRIBUTOR_LOGO := /usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg +DISTRIBUTOR_LOGO_DARK := /usr/share/icons/vendor/scalable/emblems/emblem-vendor.svg +ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el s390x hppa powerpc powerpcspe ppc64)) +MALCONTENT := -Dmalcontent=true +else +MALCONTENT := -Dmalcontent=false +endif +endif + +ifeq ($(DEB_HOST_ARCH_OS),linux) +SNAP := -Dsnap=true +else +SNAP := -Dsnap=false +endif + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + -Dprivileged_group=sudo \ + -Ddocumentation=true \ + -Ddistributor_logo=$(DISTRIBUTOR_LOGO) \ + -Ddark_mode_distributor_logo=$(DISTRIBUTOR_LOGO) \ + $(MALCONTENT) \ + $(SNAP) + +# Ubuntu-specific +override_dh_translations: + dh_translations --domain=gnome-control-center-2.0 |