From a248c1e0f98fd04ebbc8e968431eae9fa79c297c Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Wed, 5 Aug 2015 21:23:17 +0200 Subject: Set $(VENDOR) to sanitized output of "dpkg-vendor --query vendor" Closes: #794696 --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 2766e4a72..97bf9769d 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,8 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk H_LDFLAGS = $(LDFLAGS) +VENDOR=$(shell dpkg-vendor --query vendor | env LC_ALL=C tr A-Z a-z | env LC_ALL=C tr -d -c '[:alnum:]') + CFLAGS += -Wall -g CONFIGFLAGS = --prefix=/usr @@ -80,6 +82,7 @@ configure-stamp: configure chmod 755 configure mkdir -p obj/testhome dh_auto_configure -B obj -- $(CONFIGFLAGS) + sed -e 's/#define VENDOR "pc"/#define VENDOR "$(VENDOR)"/' -i obj/config.h touch $@ configure-static-stamp: configure @@ -89,6 +92,7 @@ configure-static-stamp: configure # cp debian/static.conf obj-static/Src/mymods.conf sed -i -e 's/files.mdd link=no/files.mdd link=static/;s/stat.mdd link=no/stat.mdd link=static/' \ obj-static/config.modules + sed -e 's/#define VENDOR "pc"/#define VENDOR "$(VENDOR)"/' -i obj-static/config.h touch $@ clean: -- cgit v1.2.3