[Pkg-javascript-commits] [node-leveldown] 02/03: much simpler way to repack source tarball
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Wed Jul 23 03:22:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to branch master
in repository node-leveldown.
commit 2f2576d97f7bd83160cae5598ecaa833ef416c73
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Fri Jul 11 20:32:48 2014 +0000
much simpler way to repack source tarball
---
debian/copyright | 1 +
debian/rules | 28 ----------------------------
2 files changed, 1 insertion(+), 28 deletions(-)
diff --git a/debian/copyright b/debian/copyright
index d0923d6..72d848a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,7 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: leveldown
Upstream-Contact: https://github.com/rvagg/node-leveldown/issues
Source: https://github.com/rvagg/node-leveldown
+Files-Excluded: deps/*
Comment: The orig tarball is repacked because upstream contains a deps/
directory which bundles snappy and leveldb. On Debian systems we always
link against system libraries so we avoid these bundled dependencies
diff --git a/debian/rules b/debian/rules
index 2a1ed8a..b089fee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,13 +7,6 @@
SHLIBSDIR = debian/node-leveldown/usr/lib/nodejs/leveldown/build
SHLIBS = leveldown.node
-PKD = $(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 = +dfsg
-VER ?= $(subst $(DTYPE),,$(UVER))
-
-
%:
dh $@
@@ -41,24 +34,3 @@ override_dh_shlibdeps:
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.md
-
-.PHONY: get-orig-source
-get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.gz $(info I: $(PKG)_$(VER)$(DTYPE))
- @
-
-$(PKG)_$(VER)$(DTYPE).orig.tar.gz:
- @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) \
- && $(RM) -rfv deps
- $(RM) -v $(PKG)_$(VER).orig.tar.*
- @echo "# Packing..."
- find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
- | tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.gz" -T- --owner=root --group=root --mode=a+rX \
- && $(RM) -r "$(PKG)-$(VER)"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list