unrar, unrar-native: Bump to version 3.9.9
authorMichael Lippautz <michael.lippautz@gmail.com>
Mon, 15 Mar 2010 12:38:32 +0000 (13:38 +0100)
committerMichael Lippautz <michael.lippautz@gmail.com>
Mon, 15 Mar 2010 12:42:01 +0000 (13:42 +0100)
* Fixes CVE name CVE-2007-0855
* Remove old recipe, because it neither used current staging, nor native
  extension

recipes/unrar/files/makefile.unix.patch [new file with mode: 0644]
recipes/unrar/unrar-native_3.4.3.bb [deleted file]
recipes/unrar/unrar.inc [deleted file]
recipes/unrar/unrar_3.4.3.bb [deleted file]
recipes/unrar/unrar_3.9.9.bb [new file with mode: 0644]

diff --git a/recipes/unrar/files/makefile.unix.patch b/recipes/unrar/files/makefile.unix.patch
new file mode 100644 (file)
index 0000000..ce72351
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/makefile.unix    2009-05-03 07:18:45.000000000 +0200
++++ b/makefile.unix    2010-03-15 13:31:31.000000000 +0100
+@@ -9,8 +9,8 @@
+ #CXX=g++
+ #CXXFLAGS=-O2
+ DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+-STRIP=strip
+-DESTDIR=/usr
++#STRIP=strip
++#DESTDIR=/usr
+ # Linux using LCC
+ #CXX=lcc
+@@ -136,6 +136,7 @@
+       $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+ install-unrar:
++                      install -d $(DESTDIR)/bin
+                       install unrar $(DESTDIR)/bin
+ uninstall-unrar:
diff --git a/recipes/unrar/unrar-native_3.4.3.bb b/recipes/unrar/unrar-native_3.4.3.bb
deleted file mode 100644 (file)
index 4b87691..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-require unrar.inc
-inherit native
-
-do_stage() {
-    install unrar ${STAGING_BINDIR}
-}
-
-do_package() {
-    :
-}
-
-do_install() {
-    :
-}
diff --git a/recipes/unrar/unrar.inc b/recipes/unrar/unrar.inc
deleted file mode 100644 (file)
index 4887ac9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-SRC_URI = "http://www.rarlab.com/rar/unrarsrc-${PV}.tar.gz"
-S = "${WORKDIR}/unrar"
-
-do_compile() {
-    oe_runmake -f makefile.unix
-}
-
diff --git a/recipes/unrar/unrar_3.4.3.bb b/recipes/unrar/unrar_3.4.3.bb
deleted file mode 100644 (file)
index 39d8199..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-require unrar.inc
-
-do_install() {
-    install -d ${D}${bindir}
-    install -m 0755 unrar ${D}${bindir}
-}
diff --git a/recipes/unrar/unrar_3.9.9.bb b/recipes/unrar/unrar_3.9.9.bb
new file mode 100644 (file)
index 0000000..21e1f23
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "RAR archivers"
+HOMEPAGE = "http://www.rarlab.com/"
+PR = "r0"
+
+SRC_URI = "http://www.rarlab.com/rar/unrarsrc-${PV}.tar.gz;name=unrar \
+               file://makefile.unix.patch;patch=1"
+SRC_URI[unrar.md5sum] = "4271fc8710d299341c969666492b305c"
+SRC_URI[unrar.sha256sum] = "460d4c014f5aaaa9b1c810dca180f07e155678b322169e20f4e51c616fa0e7ff"
+
+S = "${WORKDIR}/unrar"
+
+BBCLASSEXTEND = "native"
+NATIVE_INSTALL_WORKS = "1"
+
+EXTRA_OEMAKE = "-f makefile.unix DESTDIR=${D}${exec_prefix}"
+
+do_compile() {
+    oe_runmake
+}
+
+do_install() {
+    oe_runmake install 
+}