From: Marcin Juszkiewicz Date: Wed, 10 Jan 2007 13:02:48 +0000 (+0000) Subject: gpm: provide libgpm.so.1 link, use update-rc.d class - close #543 X-Git-Tag: Release-2010-05/1~9400^2~1^2~3^2~6^2^2^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4d953b836d587233d546c5156a258d8c86682cc;p=openembedded.git gpm: provide libgpm.so.1 link, use update-rc.d class - close #543 --- diff --git a/packages/gpm/gpm_1.20.1.bb b/packages/gpm/gpm_1.20.1.bb index 5623ebbf16..c017cafc9a 100644 --- a/packages/gpm/gpm_1.20.1.bb +++ b/packages/gpm/gpm_1.20.1.bb @@ -1,21 +1,25 @@ -SECTION = "console/utils" -LICENSE = "GPL" -DEPENDS = "ncurses" DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \ for the console and xterm, with sample clients included \ (emacs, etc)." +SECTION = "console/utils" +LICENSE = "GPL" +DEPENDS = "ncurses" -PR="r1" -PARALLEL_MAKE="" +PR = "r2" +PARALLEL_MAKE = "" SRC_URI = "ftp://arcana.linux.it/pub/gpm/gpm-${PV}.tar.bz2 \ file://configure.patch;patch=1 \ file://no-docs.patch;patch=1 \ file://init" -inherit autotools +inherit autotools update-rc.d + +INITSCRIPT_NAME = "gpm" +INITSCRIPT_PARAMS = "defaults" export LIBS = "-lm" + do_configure_prepend () { cp aclocal.m4 acinclude.m4 } @@ -29,18 +33,5 @@ do_install () { oe_runmake 'ROOT=${D}' install install -d ${D}/${sysconfdir}/init.d install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/gpm -} - -pkg_postinst () { - if test -n "${D}"; then - D="-r $D" - fi - update-rc.d $D gpm defaults -} - -pkg_prerm () { - if test -n "${D}"; then - D="-r $D" - fi - update-rc.d $D gpm remove + cd ${D}${libdir} && ln -sf libgpm.so.1.19.0 libgpm.so.1 }