[oe-commits] org.oe.dev gpm: provide libgpm.so.1 link, use update-rc.d class - close #543

hrw commit openembedded-commits at lists.openembedded.org
Wed Jan 10 13:12:25 UTC 2007


gpm: provide libgpm.so.1 link, use update-rc.d class - close #543

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: a3d69e8acfe7a989913d0a2d2755cffb7a0fbbc1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a3d69e8acfe7a989913d0a2d2755cffb7a0fbbc1
Files:
1
packages/gpm/gpm_1.20.1.bb
Diffs:

#
# mt diff -r038ccefff3c8828b23ffdbf20c895724d0bd13d1 -ra3d69e8acfe7a989913d0a2d2755cffb7a0fbbc1
#
# 
# 
# patch "packages/gpm/gpm_1.20.1.bb"
#  from [2727a9c8c46cd213a1fe406b2e3c162543ac112e]
#    to [c86e1d07a2d8663df3dd37be659660dbc98765a8]
# 
============================================================
--- packages/gpm/gpm_1.20.1.bb	2727a9c8c46cd213a1fe406b2e3c162543ac112e
+++ packages/gpm/gpm_1.20.1.bb	c86e1d07a2d8663df3dd37be659660dbc98765a8
@@ -1,21 +1,25 @@
+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"
-DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \
-for the console and xterm, with sample clients included \
-(emacs, etc)."
 
-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
+	cd ${D}${libdir} && ln -sf libgpm.so.1.19.0 libgpm.so.1
 }
-
-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
-}






More information about the Openembedded-commits mailing list