[Pkg-voip-commits] r3271 - in srtp/trunk/debian: . cdbs/1/rules
Jonas Smedegaard
js at alioth.debian.org
Wed Mar 21 11:50:56 CET 2007
Author: js
Date: 2007-03-21 10:50:55 +0000 (Wed, 21 Mar 2007)
New Revision: 3271
Added:
srtp/trunk/debian/cdbs/1/rules/bts.mk
Modified:
srtp/trunk/debian/changelog
srtp/trunk/debian/rules
Log:
Add new cdbs tweak bts.mk: Redirects bugreports to email address in DEB_BTS_EMAIL if that variable exist and the build is targeted at a non-Debian suite.
Added: srtp/trunk/debian/cdbs/1/rules/bts.mk
===================================================================
--- srtp/trunk/debian/cdbs/1/rules/bts.mk 2007-03-21 10:45:01 UTC (rev 3270)
+++ srtp/trunk/debian/cdbs/1/rules/bts.mk 2007-03-21 10:50:55 UTC (rev 3271)
@@ -0,0 +1,49 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2004-2007 Jonas Smedegaard <dr at jones.dk>
+# Description: Install control files for the Debian Bug Tracking System
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+
+ifndef _cdbs_bootstrap
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+endif
+
+ifndef _cdbs_rules_bts
+_cdbs_rules_bts := 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+DEB_BTS_SUITES_EXCLUDE = stable testing unstable experimental
+DEB_BTS_EMAIL = $(DEBEMAIL)
+
+deb_bts_suite := $(shell head -n 1 debian/changelog | awk '{print $3}' | sed 's/;$$//')
+
+$(patsubst %,install/%,$(DEB_ALL_PACKAGES)) :: install/% :
+ @if [ -n "$(filter-out $DEB_BTS_SUITES_EXCLUDE,$(deb_bts_suite))" ]; then \
+ mkdir -p "debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)"; \
+ if test -e "debian/$(cdbs_curpkg).bts"; then \
+ install "debian/$(cdbs_curpkg).bts" "debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/bts"; \
+ elif test -e "debian/bts"; then \
+ install "debian/bts" "debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/bts"; \
+ elif test -n "$(DEB_BTS_EMAIL)"; then \
+ echo "Send-To: $(DEB_BTS_EMAIL)" > "debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/bts"; \
+ fi; \
+ fi
+
+endif
Modified: srtp/trunk/debian/changelog
===================================================================
--- srtp/trunk/debian/changelog 2007-03-21 10:45:01 UTC (rev 3270)
+++ srtp/trunk/debian/changelog 2007-03-21 10:50:55 UTC (rev 3271)
@@ -5,6 +5,8 @@
* Update cdbs tweaks:
+ Replace vcs.mk with new and improved upstream-tarball.mk.
+ List matching non-binaries when copyright changes are found.
+ + Add new tweak bts.mk redirecting bugreports for unofficial builds
+ to the email-adress $DEB_BTS_EMAIL if defined.
+ Update notes in README.cdbs-tweaks.
-- Jonas Smedegaard <dr at jones.dk> Wed, 21 Mar 2007 10:48:59 +0100
Modified: srtp/trunk/debian/rules
===================================================================
--- srtp/trunk/debian/rules 2007-03-21 10:45:01 UTC (rev 3270)
+++ srtp/trunk/debian/rules 2007-03-21 10:50:55 UTC (rev 3271)
@@ -9,6 +9,7 @@
include debian/cdbs/1/rules/copyright-check.mk
include debian/cdbs/1/rules/buildinfo.mk
include debian/cdbs/1/rules/upstream-tarball.mk
+include debian/cdbs/1/rules/bts.mk
# Update this checksum when new releases occur, to catch silent server side file content forges
DEB_UPSTREAM_TARBALL_MD5 = 7b0ffbfad9bbaf33d397027e031cb35a
More information about the Pkg-voip-commits
mailing list