[SCM] mate-polkit Debian package branch, master, updated. debian/1.6.1-1-10-g8148b66
Mike Gabriel
sunweaver at moszumanska.debian.org
Tue Mar 11 20:52:19 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-mate/mate-polkit.git;a=commitdiff;h=c30d7d8
The following commit has been merged in the master branch:
commit c30d7d80697117c94f2f12f6262b59749035af29
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Mar 11 21:19:22 2014 +0100
Repack upstream tarball and omit non-DFSG (GFDL-1.1) files.
---
debian/rules | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index b18dffd..b13543a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,12 @@
#!/usr/bin/make -f
+PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DTYPE = +dfsg1
+VER ?= $(subst $(DTYPE),,$(UVER))
+
+
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
@@ -14,5 +21,25 @@ DEB_CONFIGURE_EXTRA_FLAGS := --localstatedir=/var \
--libexecdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/polkit-mate \
--disable-static \
--disable-introspection
-get-orig-source:
- uscan --noconf --force-download --rename --download-current-version --destdir=..
\ No newline at end of file
+
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+ @
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+ $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+ @echo "# Extracting..."
+ mkdir $(PKG)-$(VER) \
+ && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+ || $(RM) -r $(PKG)-$(VER)
+ @echo "# Cleaning-up..."
+ cd $(PKG)-$(VER) \
+ && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p
' \
+ && $(RM) -r -v \
+ docs/
+ $(RM) -v $(PKG)_$(VER).orig.tar.*
+ @echo "# Packing..."
+ find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+ | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+ && $(RM) -r "$(PKG)-$(VER)"
\ No newline at end of file
--
mate-polkit Debian package
More information about the pkg-mate-commits
mailing list