summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lippautz <michael.lippautz@gmail.com>2010-03-15 13:38:32 +0100
committerMichael Lippautz <michael.lippautz@gmail.com>2010-03-15 13:42:01 +0100
commitf91644ae2ef0d983496285264a3f3537a4cea536 (patch)
tree883fdf3cf267aae7e9a7af30d9d834fe1e9bb632
parent5ae3348001d680637744864037c8425159bfbc7b (diff)
unrar, unrar-native: Bump to version 3.9.9
* Fixes CVE name CVE-2007-0855 * Remove old recipe, because it neither used current staging, nor native extension
-rw-r--r--recipes/unrar/files/makefile.unix.patch21
-rw-r--r--recipes/unrar/unrar-native_3.4.3.bb14
-rw-r--r--recipes/unrar/unrar.inc7
-rw-r--r--recipes/unrar/unrar_3.4.3.bb6
-rw-r--r--recipes/unrar/unrar_3.9.9.bb23
5 files changed, 44 insertions, 27 deletions
diff --git a/recipes/unrar/files/makefile.unix.patch b/recipes/unrar/files/makefile.unix.patch
new file mode 100644
index 0000000000..ce72351d4b
--- /dev/null
+++ b/recipes/unrar/files/makefile.unix.patch
@@ -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
index 4b87691e89..0000000000
--- a/recipes/unrar/unrar-native_3.4.3.bb
+++ /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
index 4887ac9fb2..0000000000
--- a/recipes/unrar/unrar.inc
+++ /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
index 39d81990e2..0000000000
--- a/recipes/unrar/unrar_3.4.3.bb
+++ /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
index 0000000000..21e1f23d53
--- /dev/null
+++ b/recipes/unrar/unrar_3.9.9.bb
@@ -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
+}