Code

Add get-orig-source target to debian/rules
authortolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Tue, 6 Mar 2012 15:08:04 +0000 (15:08 +0000)
committertolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Tue, 6 Mar 2012 15:08:04 +0000 (15:08 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@2015 98d490a6-b407-0410-aaaa-fdee166ba3f5

debian/changelog
debian/rules

index 1665e527634cee2fa92c1b4d253c4e00b9e5662d..3505be4635025cd7ae122264d26dd59cad19034d 100644 (file)
@@ -7,8 +7,9 @@ nagvis (1:1.6.4.dfsg.1-1) UNRELEASED; urgency=low
   * Fix "Germish" in package description
   * Remove unbuildable swf files
     * Add patches/remove-shell-swf to don't use it
+    * Add get-orig-source target to debian/rules
 
- -- Alexander Reichle-Schmehl <tolimar@debian.org>  Tue, 06 Mar 2012 14:30:34 +0100
+ -- Alexander Reichle-Schmehl <tolimar@debian.org>  Tue, 06 Mar 2012 16:07:30 +0100
 
 nagvis (1:1.6.4-1) experimental; urgency=low
 
index 27b1337b7c6ab93765049f8331ad1fc32ad6c6af..b98fd5ff3852ac1418c83bd7ce3c4a1ea60c0b04 100755 (executable)
@@ -60,3 +60,15 @@ override_dh_fixperms:
 override_dh_clean:
        dh_clean
        debconf-updatepo
+
+get-orig-source:
+       $(eval TMP := $(shell mktemp -d))
+       wget -q -O $(TMP)/nagvis-1.6.4.tar.gz "http://downloads.sourceforge.net/project/nagvis/NagVis%201.6/nagvis-1.6.4.tar.gz"
+       tar --directory $(TMP) -xzf $(TMP)/nagvis-1.6.4.tar.gz
+       rm -rf $(TMP)/nagvis-1.6.4/uifx/
+       rm -rf $(TMP)/nagvis-1.6.4/share/netmap/shell.swf
+       rm -rf $(TMP)/nagvis-1.6.4/share/netmap/shell.html
+       rm -rf $(TMP)/nagvis-1.6.4/share/netmap/modules/gmap/
+       mv $(TMP)/nagvis-1.6.4 $(TMP)/nagvis-1.6.4.dfsg.1
+       tar --directory $(TMP) -czf nagvis_1.6.4.dfsg.1.orig.tar.gz nagvis-1.6.4.dfsg.1
+       rm -rf $(TMP)