[oe-commits] org.oe.dev fbset: stop making my eyes bleed with '############' and use the update-alternatives bbclass to update the alternatives
koen commit
openembedded-commits at lists.openembedded.org
Fri Jan 5 00:22:32 UTC 2007
fbset: stop making my eyes bleed with '############' and use the update-alternatives bbclass to update the alternatives
~lart coredump and his templates
Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 01a972a4a4b052553563e6fcd8fd4451494370e6
ViewMTN: http://monotone.openembedded.org/revision.psp?id=01a972a4a4b052553563e6fcd8fd4451494370e6
Files:
1
packages/fbset/fbset_2.1.bb
Diffs:
#
# mt diff -r26b6f2ca94e06577e1913ee1713dc0c34d84903a -r01a972a4a4b052553563e6fcd8fd4451494370e6
#
#
#
# patch "packages/fbset/fbset_2.1.bb"
# from [84daf4d25046999865b338975c16cc6e7880f139]
# to [40a6c728d0367db58266310f67a8cd583691333e]
#
============================================================
--- packages/fbset/fbset_2.1.bb 84daf4d25046999865b338975c16cc6e7880f139
+++ packages/fbset/fbset_2.1.bb 40a6c728d0367db58266310f67a8cd583691333e
@@ -6,40 +6,27 @@ DESCRIPTION = "The fbset console tool"
# Date: 28-May-06
DESCRIPTION = "The fbset console tool"
-HOMEPAGE = ""
LICENSE = "GPL"
-######################################################################################
+PR = "r2"
SRC_URI = "http://ftp.debian.org/debian/pool/main/f/fbset/fbset_2.1.orig.tar.gz \
- file://makefile.patch;patch=1"
+ file://makefile.patch;patch=1"
-######################################################################################
+inherit autotools update-alternatives
-PR = "r1"
-PARALLEL_MAKE=""
+PARALLEL_MAKE = ""
-######################################################################################
-
-inherit autotools
-
-######################################################################################
-
do_install() {
- install -d ${D}/usr/sbin ${D}/usr/share/man/man8 ${D}/usr/share/man/man5
-
- install -m 0755 ${WORKDIR}/${P}/fbset ${D}/usr/sbin/fbset.real
-
- install -m 0644 ${WORKDIR}/${P}/*.5 ${D}/usr/share/man/man5
- install -m 0644 ${WORKDIR}/${P}/*.8 ${D}/usr/share/man/man8
+ install -d ${D}/usr/sbin ${D}/usr/share/man/man8 ${D}/usr/share/man/man5
+ install -m 0755 ${WORKDIR}/${P}/fbset ${D}/usr/sbin/fbset.real
+ install -m 0644 ${WORKDIR}/${P}/*.5 ${D}/usr/share/man/man5
+ install -m 0644 ${WORKDIR}/${P}/*.8 ${D}/usr/share/man/man8
}
-######################################################################################
+ALTERNATIVE_NAME = "fbset"
+ALTERNATIVE_LINK = "${sbindir}/${ALTERNATIVE_NAME}"
+ALTERNATIVE_PATH = "${sbindir}/fbset.real"
+ALTERNATIVE_PRIORITY = "55"
-pkg_postinst_${PN}() {
- update-alternatives --install /usr/sbin/fbset fbset /usr/sbin/fbset.real 55
-}
-pkg_postrm_${PN}() {
- update-alternatives --remove fbset /usr/sbin/fbset.real
-}
More information about the Openembedded-commits
mailing list