Skip to content
Browse files

working debian package

  • Loading branch information...
1 parent aac50dc commit 8e86901667d7057cbcb020d72ed953a30cb70bfa @eighthave committed Apr 30, 2011
Showing with 102 additions and 14 deletions.
  1. +5 −0 debian/changelog
  2. +1 −0 debian/compat
  3. +18 −0 debian/control
  4. +7 −0 debian/copyright
  5. +8 −0 debian/postinst
  6. +48 −0 debian/rules
  7. +1 −0 debian/source/format
  8. +14 −14 install.sh
View
5 debian/changelog
@@ -0,0 +1,5 @@
+nite (1.3.1.5-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #XXXXXX)
+
+ -- Hans-Christoph Steiner <hans@eds.org> Sat, 30 Apr 2011 00:25:19 -0400
View
1 debian/compat
@@ -0,0 +1 @@
+7
View
18 debian/control
@@ -0,0 +1,18 @@
+Source: nite
+Priority: optional
+Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
+Uploaders: Hans-Christoph Steiner <hans@eds.org>
+Build-Depends: debhelper (>= 7.0.50~),
+ python,
+ make
+Standards-Version: 3.9.1
+Homepage: http://www.openni.org
+
+Package: nite
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ openni
+Description: library to support 'Natural Interaction' for Kinect cameras
+ binary blob :( middleware for supporting the PrimeSense Xbox Kinect camera
+ for OpenNI.
View
7 debian/copyright
@@ -0,0 +1,7 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135
+Name: nite
+Maintainer: Hans-Christoph Steiner
+Source: http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/33-latest-unstable
+
+Copyright: 2010-2011, PrimeSense Ltd.
+License: PrimeSense Proprietary
View
8 debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+/usr/bin/niLicense -r PrimeSense 0KOIk2JeIBYClPWVnMoRKn5cdY4=
+
+/usr/bin/niReg /usr/lib/libXnVFeatures.so /etc/primesense/Features_1_3_0
+/usr/bin/niReg /usr/lib/libXnVFeatures_1_3_1.so /etc/primesense/Features_1_3_1
+/usr/bin/niReg /usr/lib/libXnVHandGenerator.so /etc/primesense/Hands_1_3_0
+/usr/bin/niReg /usr/lib/libXnVHandGenerator_1_3_1.so /etc/primesense/Hands_1_3_1
View
48 debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+
+packageinstall = $(CURDIR)/debian/nite
+NITEFILES = $(CURDIR)/Nite-1.3.1.5
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ wget -O NITE-Bin-Linux32-v1.3.1.5.tar.bz2 \
+ http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/latest-unstable/112-primesense-nite-unstable-build-for-ubuntu-10-10-x86-32-bit-v1-3-1/download
+ tar -xjf NITE-Bin-Linux32-v1.3.1.5.tar.bz2
+
+override_dh_auto_install:
+ install -d $(packageinstall)/usr/include/nite
+ install -p $(NITEFILES)/Include/*.h \
+ $(packageinstall)/usr/include/nite
+ install -d $(packageinstall)/etc/primesense/Features_1_3_0
+ install -p $(NITEFILES)/Features_1_3_0/Data/FeatureExtraction.ini \
+ $(NITEFILES)/Features_1_3_0/Data/h.dat \
+ $(NITEFILES)/Features_1_3_0/Data/s.dat \
+ $(packageinstall)/etc/primesense/Features_1_3_0
+ install -d $(packageinstall)/usr/lib
+ install -p $(NITEFILES)/Features_1_3_0/Bin/libXnVFeatures.so \
+ $(packageinstall)/usr/lib
+ install -d $(packageinstall)/etc/primesense/Features_1_3_1
+ install -p $(NITEFILES)/Features_1_3_1/Data/FeatureExtraction.ini \
+ $(NITEFILES)/Features_1_3_1/Data/h.dat \
+ $(NITEFILES)/Features_1_3_1/Data/s.dat \
+ $(packageinstall)/etc/primesense/Features_1_3_1
+ install -p $(NITEFILES)/Features_1_3_1/Bin/libXnVFeatures_1_3_1.so \
+ $(packageinstall)/usr/lib
+ install -d $(packageinstall)/etc/primesense/Hands_1_3_0
+ install -p $(NITEFILES)/Hands_1_3_0/Data/Nite.ini \
+ $(packageinstall)/etc/primesense/Hands_1_3_0
+ install -p $(NITEFILES)/Hands_1_3_0/Bin/libXnVHandGenerator.so \
+ $(packageinstall)/usr/lib
+ install -d $(packageinstall)/etc/primesense/Hands_1_3_1
+ install -p $(NITEFILES)/Hands_1_3_1/Data/Nite.ini \
+ $(packageinstall)/etc/primesense/Hands_1_3_1
+ install -p $(NITEFILES)/Hands_1_3_1/Bin/libXnVHandGenerator_1_3_1.so \
+ $(packageinstall)/usr/lib
+
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf -- $(CURDIR)/Nite-1.3.1.5
+ rm -rf -- $(CURDIR)/NITE-Bin-Linux32-v1.3.1.5.tar.bz2
View
1 debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
View
28 install.sh
@@ -6,43 +6,43 @@ else
LIBEXT="so"
fi
-cp Bin/libXnVNite*$LIBEXT /usr/lib
-cp Bin/libXnVCNITE*$LIBEXT /usr/lib
+cp Bin/libXnVNite*$LIBEXT ${DESTDIR}/usr/lib
+cp Bin/libXnVCNITE*$LIBEXT ${DESTDIR}/usr/lib
if [ -e Makefile ]
then
- mkdir -p /usr/include/nite
- cp Include/* /usr/include/nite
+ mkdir -p ${DESTDIR}/usr/include/nite
+ cp Include/* ${DESTDIR}/usr/include/nite
fi
for fdir in `ls -1 | grep Features`
do
- mkdir -p /usr/etc/primesense/$fdir
- cp $fdir/Data/* /usr/etc/primesense/$fdir
+ mkdir -p ${DESTDIR}/etc/primesense/$fdir
+ cp $fdir/Data/* ${DESTDIR}/etc/primesense/$fdir
for so in `ls -1 $fdir/Bin/lib*$LIBEXT`
do
base=`basename $so`
- cp $so /usr/lib
- niReg /usr/lib/$base /usr/etc/primesense/$fdir
+ cp $so ${DESTDIR}/usr/lib
+ niReg ${DESTDIR}/usr/lib/$base ${DESTDIR}/etc/primesense/$fdir
done
done
for hdir in `ls -1 | grep Hands`
do
- mkdir -p /usr/etc/primesense/$hdir
- cp $hdir/Data/* /usr/etc/primesense/$hdir
+ mkdir -p ${DESTDIR}/etc/primesense/$hdir
+ cp $hdir/Data/* ${DESTDIR}/etc/primesense/$hdir
for so in `ls -1 $hdir/Bin/lib*$LIBEXT`
do
base=`basename $so`
- cp $so /usr/lib
- niReg /usr/lib/$base /usr/etc/primesense/$hdir
+ cp $so ${DESTDIR}/usr/lib
+ niReg ${DESTDIR}/usr/lib/$base ${DESTDIR}/etc/primesense/$hdir
done
done
-if [ -f /usr/bin/gmcs ]
+if [ -f ${DESTDIR}/usr/bin/gmcs ]
then
for net in `ls -1 Bin/*dll`
do
gacutil -i $net -package 2.0
netdll=`basename $net`
- echo $netdll >> /usr/etc/primesense/XnVNITE.net.dll.list
+ echo $netdll >> ${DESTDIR}/etc/primesense/XnVNITE.net.dll.list
done
fi

0 comments on commit 8e86901

Please sign in to comment.
Something went wrong with that request. Please try again.