[SCM] Debian Qt/KDE packaging tools branch, master, updated. master/0.4.7-1-gb14d8d0

Modestas Vainius modax-guest at alioth.debian.org
Wed May 27 11:21:10 UTC 2009


The following commit has been merged in the master branch:
commit b14d8d05ef135ef888fe2a6b44c2ae79adb1f0c5
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Wed May 27 14:20:26 2009 +0300

    Add maintainer check to debian-qt-kde.mk to stop widespreading use of this snippet.
    
    Signed-off-by: Modestas Vainius <modestas at vainius.eu>

diff --git a/debian/changelog b/debian/changelog
index 56f6ef0..26141be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pkg-kde-tools (0.4.8) unstable; urgency=low
+
+  * Add maintainer check to debian_qt_kde.mk to disallow anybody else but
+    Debian Qt/KDE Maintainers to use this snippet (i.e. for official KDE
+    packages only). The check is supposed to support Kubuntu packages too.
+
+ -- Modestas Vainius <modestas at vainius.eu>  Wed, 27 May 2009 13:42:22 +0300
+
 pkg-kde-tools (0.4.7) unstable; urgency=low
 
   +++ Changes by Modestas Vainius:
diff --git a/qt-kde-team/1/policy.mk b/qt-kde-team/1/policy.mk
index 8aef5b8..2086de0 100644
--- a/qt-kde-team/1/policy.mk
+++ b/qt-kde-team/1/policy.mk
@@ -5,10 +5,21 @@ include /usr/share/cdbs/1/rules/buildvars.mk
 
 DEB_KDE_DISTRIBUTION := $(shell dpkg-parsechangelog | grep '^Distribution: ' | sed 's/^Distribution: \(.*\)/\1/g')
 DEB_KDE_MAJOR_VERSION := $(shell echo "$(DEB_UPSTREAM_VERSION)" | cut -d. -f1-2)
+DEB_KDE_MAINTAINER_CHECK := $(shell grep -e '^Maintainer:.*<debian-qt-kde at lists\.debian\.org>[[:space:]]*$$' \
+                                         -e '^XSBC-Original-Maintainer:.*<debian-qt-kde at lists\.debian\.org>[[:space:]]*$$' debian/control)
 
 # Distribution-specific policy file may not exist. It is fine
 ifeq (,$(filter $(DEB_KDE_DISTRIBUTION),$(DEB_KDE_DISABLE_POLICY_CHECK)))
   -include $(DEB_PKG_KDE_QT_KDE_TEAM)/policy/$(DEB_KDE_DISTRIBUTION).mk
 endif
 
+# Reject packages not maintained by Debian Qt/KDE Maintainers
+ifeq (,$(DEB_KDE_MAINTAINER_CHECK))
+$(info ### debian_qt_kde.mk can only be used with packages (originally) maintained by)
+$(info ### Debian Qt/KDE Maintainers, please read /usr/share/pkg-kde-tools/qt-kde-team/README)
+$(info ### for more details. Please read /usr/share/doc/pkg-kde-tools/README.Debian for more)
+$(info ### information on how to use pkg-kde-tools with other KDE packages.)
+$(error debian_qt_kde.mk usage denied by policy.)
+endif
+
 endif

-- 
Debian Qt/KDE packaging tools



More information about the pkg-kde-commits mailing list