[med-svn] r8128 - trunk/packages/cain/trunk/debian

Steffen Möller moeller at alioth.debian.org
Wed Oct 12 18:45:17 UTC 2011


Author: moeller
Date: 2011-10-12 18:45:16 +0000 (Wed, 12 Oct 2011)
New Revision: 8128

Modified:
   trunk/packages/cain/trunk/debian/changelog
   trunk/packages/cain/trunk/debian/rules
Log:
Fixes for a first upload.


Modified: trunk/packages/cain/trunk/debian/changelog
===================================================================
--- trunk/packages/cain/trunk/debian/changelog	2011-10-12 02:55:47 UTC (rev 8127)
+++ trunk/packages/cain/trunk/debian/changelog	2011-10-12 18:45:16 UTC (rev 8128)
@@ -1,4 +1,4 @@
-cain (1.9-1) UNRELEASED; urgency=low
+cain (1.9-1) unstable; urgency=low
 
   * New upstream release
 

Modified: trunk/packages/cain/trunk/debian/rules
===================================================================
--- trunk/packages/cain/trunk/debian/rules	2011-10-12 02:55:47 UTC (rev 8127)
+++ trunk/packages/cain/trunk/debian/rules	2011-10-12 18:45:16 UTC (rev 8128)
@@ -12,19 +12,20 @@
 SRC_TMP=$(CURDIR)/SRC_TMP
 debtmp := $(CURDIR)/debian/tmp
 
+UVESRION=1_9
+VERSION=1.9
 get-orig-source:
 	rm -rf $(SRC_TMP) && mkdir $(SRC_TMP)
-	cd $(SRC_TMP)
-	wget http://sf.net/cain/Cain-1_9.zip
-	unzip Cain-1_9.zip
-	cd Cain
-	rm -rf ../__MACOSX
-	find . -iname .DS_Store -exec rm -f {} +
-	find . -iname .scons* -exec rm -f {} +
-	rm -f solvers/*
-	rm -rf src/third-party/*
-	tar cvzf ../../cain_1.9.orig.tar.gz .
-	cd $(CURDIR)
+	#[ -f ../cain_$(VERSION).zip ] || wget -O ../cain_$(VERSION).zip http://sf.net/cain/Cain-$(UVERSION).zip # URL did not work
+	[ -f ../cain_$(VERSION).zip ] ||  wget -O ../cain_$(VERSION).zip http://qa.debian.org/watch/sf.php/cain/Cain-$(UVERSION).zip
+	cd $(SRC_TMP) && unzip ../../cain_$(VERSION).zip
+	mv $(SRC_TMP)/Cain $(SRC_TMP)/cain-$(VERSION)
+	find $(SRC_TMP) -name __MACOSX -type d | xargs -r rm -rf
+	find $(SRC_TMP) -iname .DS_Store -exec rm -f {} +
+	find $(SRC_TMP) -iname .scons* -exec rm -f {} +
+	rm -f $(SRC_TMP)/cain-$(VERSION)/solvers/*
+	rm -rf $(SRC_TMP)/cain-$(VERSION)/src/third-party/*
+	cd $(SRC_TMP) && tar cvzf ../../cain_$(VERSION).orig.tar.gz cain-$(VERSION)
 	rm -rf $(SRC_TMP)
 
 config.status: configure




More information about the debian-med-commit mailing list