]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
gpe-package: don't try to install suid root. provide a gpe-su based wrapper script...
authorErik Hovland <erik@hovland.org>
Sat, 27 May 2006 13:14:57 +0000 (15:14 +0200)
committerRene Wagner <rw@handhelds.org>
Sat, 27 May 2006 13:14:57 +0000 (15:14 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/gpe-package/files/gpe-package [new file with mode: 0644]
org.handhelds.familiar/packages/gpe-package/files/sbin-and-no-suid-install.patch [new file with mode: 0644]
org.handhelds.familiar/packages/gpe-package/gpe-package_0.3.bb

diff --git a/org.handhelds.familiar/packages/gpe-package/files/gpe-package b/org.handhelds.familiar/packages/gpe-package/files/gpe-package
new file mode 100644 (file)
index 0000000..2555dfb
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/gpe-su -c /usr/sbin/gpe-package
diff --git a/org.handhelds.familiar/packages/gpe-package/files/sbin-and-no-suid-install.patch b/org.handhelds.familiar/packages/gpe-package/files/sbin-and-no-suid-install.patch
new file mode 100644 (file)
index 0000000..10a90f1
--- /dev/null
@@ -0,0 +1,15 @@
+--- gpe-package-0.3/Makefile   2005-08-26 06:14:00.000000000 -0700
++++ gpe-package-0.3-oe/Makefile        2006-05-24 16:51:02.459320395 -0700
+@@ -52,9 +52,9 @@
+       mkdir -p $(DESTDIR)/CONTROL
+       sed -e s/VERSION/$(VERSION)/ < familiar/control > $(DESTDIR)/CONTROL/control
+       mkdir -p $(DESTDIR)/etc/gpe
+-      mkdir -p $(DESTDIR)/$(PREFIX)/bin
+-      $(INSTALL) -m 4755 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
+-      $(STRIP) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
++      mkdir -p $(DESTDIR)/$(PREFIX)/sbin
++      $(INSTALL) -m 0744 $(PACKAGE) $(DESTDIR)$(PREFIX)/sbin/$(PACKAGE)
++      $(STRIP) $(DESTDIR)$(PREFIX)/sbin/$(PACKAGE)
+       mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
+       for i in $(PIXMAPS); do install -m 644 -D pixmaps/$$i $(DESTDIR)$(PREFIX)/share/pixmaps/$$i; done
+       mkdir -p $(DESTDIR)$(PREFIX)/share/applications
index 0084b7e3c39e425db66af9d21144f6a2fac59014..55cc4ef2a82a4e1b33945f799e62cd65e363c898 100644 (file)
@@ -1,10 +1,19 @@
 LICENSE = "GPL"
-PR = "r0"
+PR = "r2"
 inherit gpe pkgconfig
 
 DESCRIPTION = "A package manager GUI for GPE"
-DEPENDS = "ipkg libgpewidget"
+DEPENDS = "ipkg libgpewidget gpe-su"
 RDEPENDS = "gpe-icons"
 SECTION = "gpe"
 PRIORITY = "optional"
 
+SRC_URI += " file://sbin-and-no-suid-install.patch;patch=1 \
+            file://gpe-package"
+
+FILES_${PN} += " /usr/bin/gpe-package"
+
+do_install_append() {
+       install -d ${D}/usr/bin
+       install -m 0755 ${WORKDIR}/gpe-package ${D}/usr/bin
+}