palantier: add 2.7
authorKoen Kooi <koen@openembedded.org>
Mon, 5 Jan 2009 14:04:06 +0000 (15:04 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 5 Jan 2009 14:04:06 +0000 (15:04 +0100)
conf/checksums.ini
packages/palantir/palantir_2.7.bb [new file with mode: 0644]

index 150789c..95d3fb2 100644 (file)
@@ -14562,6 +14562,10 @@ sha256=e17c283be0afa5abdf0be276e0240b3f1805afaea76537aacadc8e2ff626f9ef
 md5=5ffdc958313345c69d3e0d5ec5c013cd
 sha256=2798b2a5e4d248244d5f40cce32dfb0f027e103dd8469a800b6b934467bf6117
 
+[http://downloads.sourceforge.net/motion/motion-3.2.11.tar.gz]
+md5=3a26c00f3250eacf6fa93c7a7e0249d9
+sha256=f1e187c61702a727bbd20bf5a66a310363257acc04b1f1c6e0b2e06e9b5dfa6e
+
 [http://heanet.dl.sourceforge.net/motion/motion-3.2.11.tar.gz]
 md5=3a26c00f3250eacf6fa93c7a7e0249d9
 sha256=f1e187c61702a727bbd20bf5a66a310363257acc04b1f1c6e0b2e06e9b5dfa6e
@@ -15834,6 +15838,10 @@ sha256=7526d8de006817e5c6bc79826f810a15490611dcbd2d4fb9d8e9b9991c7ed506
 md5=677c4817c156136a3042025191ed243b
 sha256=3dfe058a121e5ff2d2c7675af74a7309b0048ff9fc6dd6129d2c37cef44f0105
 
+[http://www.fastpath.it/products/palantir/pub/palantir-2.7.tgz]
+md5=3a5b1fb340857f6d8e357bf39b77583e
+sha256=dbe9c8317e66e7239a53e9bcb68595cd31ec949474bb3d9fc15f51f3773c167b
+
 [ftp://ftp.gtk.org/pub/gtk/v2.8/pango-1.10.2.tar.bz2]
 md5=7302220d93ac17d2c44f356d852e81dc
 sha256=677d3a943cfeedebf138024de6e4a773f7f6626236613401f3a797f82f04eba7
diff --git a/packages/palantir/palantir_2.7.bb b/packages/palantir/palantir_2.7.bb
new file mode 100644 (file)
index 0000000..ad1b2f6
--- /dev/null
@@ -0,0 +1,37 @@
+DESCRIPTION = "Palantir - a multichannel interactive streaming solution"
+LICENSE = "GPLv2"
+DEPENDS = "jpeg libgsm"
+
+SRC_URI = "http://www.fastpath.it/products/palantir/pub/palantir-${PV}.tgz"
+
+S = "${WORKDIR}/palantir-${PV}/server"
+
+TARGET_CC_ARCH += "${CFLAGS} ${LDFLAGS}"
+
+export BASE_DIR="${prefix}"
+
+do_install() {
+       sed -i -e s:chown:echo:g -e s:chmod:echo:g Makefile
+       mkdir -p ${D}/var/log/palantir
+       LOG_FILE="${D}/var/log/palantir" OWNER="${USER}" BASE_DIR="${D}${prefix}" oe_runmake install
+       rm ${D}/${datadir}/palantir/telmu_pipe
+}
+
+FILES_${PN} += "${datadir}/palantir/"
+
+pkg_postinst_${PN} () {
+       # can't do this offline
+       if [ "x$D" != "x" ]; then
+               exit 1
+       fi
+       grep "^palantir:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/palantir --no-create-home palantir --ingroup palantir -g palantir
+       mkfifo ${datadir}/palantir/telmu_pipe
+       chown palantir ${datadir}/palantir/*
+       chmod 600 ${datadir}/palantir/telmu_pipe
+}
+
+
+pkg_postrm_${PN} () {
+       deluser palantir || true
+}
+