Author: onlyjob
Date: 2013-07-21 03:27:57 +0000 (Sun, 21 Jul 2013)
New Revision: 14195

Modified:
   trunk/packages/ginkgocadx/trunk/debian/rules
Log:
reference get-orig-source implementation

Modified: trunk/packages/ginkgocadx/trunk/debian/rules
===================================================================
--- trunk/packages/ginkgocadx/trunk/debian/rules        2013-07-20 23:08:53 UTC 
(rev 14194)
+++ trunk/packages/ginkgocadx/trunk/debian/rules        2013-07-21 03:27:57 UTC 
(rev 14195)
@@ -43,14 +43,16 @@
 override_dh_builddeb:
        dh_builddeb -- -Zxz
 
+## http://wiki.debian.org/onlyjob/get-orig-source
 DTYPE := +dfsg
 .PHONY: get-orig-source
-get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz
+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 2 \
@@ -59,8 +61,8 @@
        cd $(PKG)-$(VER) \
         && $(RM) -r -v src/cadxcore/jsoncpp
        @echo "# Correcting permissions..."
-       chmod a-x $(PKG)-$(VER)/src/cadxcore/resources/conformance.xml
-       find $(PKG)-$(VER) -type f -executable -exec chmod a-x '{}' \;
+       find $(PKG)-$(VER) -type f -executable -exec chmod --changes a-x '{}' \;
        @echo "# Packing..."
-       tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" "$(PKG)-$(VER)" \
+       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)"


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to