[SCM] primesense-nite-nonfree/master: update download URLs and add SHA256 sums

eighthave at users.alioth.debian.org eighthave at users.alioth.debian.org
Tue May 21 20:01:20 UTC 2013


The following commit has been merged in the master branch:
commit a325d78a458f2fb96caed3ee05aeb5ab69a1fa76
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Mon May 20 17:56:20 2013 -0400

    update download URLs and add SHA256 sums

diff --git a/debian/control b/debian/control
index 033c4dd..2d356dd 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Depends: debconf | debconf-2.0,
          dpkg-dev,
          devscripts,
          wget,
+         unzip,
          gnupg,
          quilt,
          libopenni-dev,
diff --git a/nite_debian_dir/changelog b/nite_debian_dir/changelog
index c192831..c7f3fa5 100644
--- a/nite_debian_dir/changelog
+++ b/nite_debian_dir/changelog
@@ -1,4 +1,4 @@
-primesense-nite-nonfree (1.3.1.5-1) UNRELEASED; urgency=low
+primesense-nite-nonfree (1.5.2.21-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #XXXXXX)
 
diff --git a/primesense-nite-nonfree-make-deb b/primesense-nite-nonfree-make-deb
index ed3d399..4cceb66 100755
--- a/primesense-nite-nonfree-make-deb
+++ b/primesense-nite-nonfree-make-deb
@@ -3,8 +3,9 @@
 test -n "$1" || (echo "`basename $0` <tarbz2>" ; exit 1)
 test -f "$1" || (echo "`basename $0` <tarbz2>" ; exit 1)
 
-TARBALL="$1"
-BASE=`tar tvjf ${TARBALL} |  head -1 | awk '{print $6}'`
+ZIPBALL="$1"
+TARBALL=`unzip -lqq $ZIPBALL | awk '{print $4}'`
+BASE=`unzip -p $ZIPBALL | tar tvj |  head -1 | awk '{print $6}'`
 ORIG_BASE="openni-modules-primesense-nite-nonfree.orig"
 DEB_BASE="openni-modules-primesense-nite-nonfree"
 TMPDIR="/tmp/primesense-nite.$$"
@@ -35,7 +36,8 @@ mkdir ${TMPDIR}
 pushd ${TMPDIR}
 
 # Rename the content of the passed tarball in a Debian compliant way
-tar xjf ${TARBALL} > /dev/null || (echo cannot untar original package ; exit 1)
+unzip -qq $ZIPBALL > /dev/null || (echo cannot unzip original package ; exit 1)
+tar xjf ${TARBALL} > /dev/null || (echo cannot untarbz2 original package ; exit 1)
 mv ${BASE} ${ORIG_BASE}
 cp -a ${ORIG_BASE} ${DEB_BASE}
 cp -a /usr/share/primesense-nite-nonfree/nite_debian_dir ${DEB_BASE}/debian
diff --git a/update-primesense-nite-nonfree b/update-primesense-nite-nonfree
index 4e8a4b9..3ee8bc0 100755
--- a/update-primesense-nite-nonfree
+++ b/update-primesense-nite-nonfree
@@ -14,9 +14,15 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-URL32="http://www.openni.org/downloadfiles/opennimodules/openni-compliant-middleware-binaries/latest-unstable/112-primesense-nite-unstable-build-for-ubuntu-10-10-x86-32-bit-v1-3-1/download"
-URL64="http://www.openni.org/downloadfiles/opennimodules/openni-compliant-middleware-binaries/latest-unstable/112-primesense-nite-unstable-build-for-ubuntu-10-10-x86-64-bit-v1-3-1/download"
-downloadedfile="/tmp/primesense-nite.tar.gz"
+#URL32="http://www.openni.org/downloadfiles/opennimodules/openni-compliant-middleware-binaries/latest-unstable/112-primesense-nite-unstable-build-for-ubuntu-10-10-x86-32-bit-v1-3-1/download"
+#URL64="http://www.openni.org/downloadfiles/opennimodules/openni-compliant-middleware-binaries/latest-unstable/112-primesense-nite-unstable-build-for-ubuntu-10-10-x86-64-bit-v1-3-1/download"
+#URL32="http://www.openni.org/downloads/nite-bin-linux-x86-v1.5.2.21.tar.bz2"
+#URL64="http://www.openni.org/downloads/nite-bin-linux-x64-v1.5.2.21.tar.bz2"
+URL32=http://www.openni.org/wp-content/uploads/2012/12/NITE-Bin-Linux-x86-v1.5.2.21.tar.zip
+URL32_SHA256SUM=8be3bf3b325ff6a3538381e8aacf2b7632a4dab422c1bd54ac7ee81d75a140e4
+URL64=http://www.openni.org/wp-content/uploads/2012/12/NITE-Bin-Linux-x64-v1.5.2.21.tar.zip
+URL64_SHA256SUM=57cd7daa38e82321270179574c3a96b9e8e92348b4c7011c8d58af3d1b2fdb45
+downloadedfile="/tmp/primesense-nite.tar.bz2.zip"
 
 set -e
 

-- 
primesense-nite-nonfree packaging



More information about the pkg-multimedia-commits mailing list