diff options
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb index df9b193ac2..4c6985fd39 100644 --- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb +++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | |||
@@ -1,5 +1,4 @@ | |||
1 | SUMMARY = "A system tool for maintaining the /etc/rc*.d hierarchy" | 1 | SUMMARY = "A system tool for maintaining the /etc/rc*.d hierarchy" |
2 | |||
3 | DESCRIPTION = "Chkconfig is a basic system utility. It updates and queries runlevel \ | 2 | DESCRIPTION = "Chkconfig is a basic system utility. It updates and queries runlevel \ |
4 | information for system services. Chkconfig manipulates the numerous \ | 3 | information for system services. Chkconfig manipulates the numerous \ |
5 | symbolic links in /etc/rc.d, to relieve system administrators of some \ | 4 | symbolic links in /etc/rc.d, to relieve system administrators of some \ |
@@ -11,8 +10,9 @@ LICENSE = "GPLv2" | |||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" |
12 | 11 | ||
13 | DEPENDS = "libnewt popt" | 12 | DEPENDS = "libnewt popt" |
13 | PROVIDES += "virtual/update-alternatives" | ||
14 | 14 | ||
15 | PR = "r6" | 15 | PR = "r7" |
16 | 16 | ||
17 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" | 17 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" |
18 | 18 | ||
@@ -29,18 +29,22 @@ EXTRA_OEMAKE = "\ | |||
29 | 'BINDIR=${base_sbindir}' \ | 29 | 'BINDIR=${base_sbindir}' \ |
30 | 'SBINDIR=${sbindir}' \ | 30 | 'SBINDIR=${sbindir}' \ |
31 | 'MANDIR=${mandir}' \ | 31 | 'MANDIR=${mandir}' \ |
32 | 'ALTDIR=${localstatedir}/lib/alternatives' \ | ||
33 | 'ALTDATADIR=${sysconfdir}/alternatives' \ | ||
32 | " | 34 | " |
33 | 35 | ||
34 | do_unpack[postfuncs] += "obey_variables" | 36 | do_unpack[postfuncs] += "obey_variables" |
35 | do_unpack[vardeps] += "obey_variables" | 37 | do_unpack[vardeps] += "obey_variables" |
36 | obey_variables () { | 38 | obey_variables () { |
37 | sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' leveldb.h | 39 | sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' leveldb.h |
40 | sed -i -e 's,/etc/alternatives,${sysconfdir}/alternatives,' \ | ||
41 | -e 's,/var/lib/alternatives,${localstatedir}/lib/alternatives,' \ | ||
42 | -e 's,/usr/share/locale,${datadir}/locale,' alternatives.c | ||
38 | } | 43 | } |
39 | 44 | ||
40 | do_install() { | 45 | do_install() { |
41 | oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' install | 46 | oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' install |
42 | mkdir -p ${D}${sysconfdir}/chkconfig.d | 47 | install -d ${D}${sysconfdir}/chkconfig.d |
43 | rm -f ${D}${sbindir}/update-alternatives | ||
44 | } | 48 | } |
45 | 49 | ||
46 | do_install_append_linuxstdbase() { | 50 | do_install_append_linuxstdbase() { |
@@ -49,4 +53,18 @@ do_install_append_linuxstdbase() { | |||
49 | ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd | 53 | ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd |
50 | } | 54 | } |
51 | 55 | ||
56 | PACKAGES =+ "${PN}-alternatives ${PN}-alternatives-doc" | ||
57 | SUMMARY_${PN}-alternatives = "Maintain symbolic links determining default commands" | ||
58 | DESCRIPTION_${PN}-alternatives = "alternatives creates, removes, maintains and displays \ | ||
59 | information about the symbolic links comprising the alternatives system." | ||
60 | SUMMARY_${PN}-alternatives-doc = "${SUMMARY_${PN}-alternatives} - Documentation files" | ||
61 | DESCRIPTION_${PN}-alternatives-doc = "${DESCRIPTION_${PN}-alternatives} \ | ||
62 | This package contains documentation." | ||
63 | RPROVIDES_${PN}-alternatives += "update-alternatives" | ||
64 | RCONFLICTS_${PN}-alternatives = "update-alternatives-cworth update-alternatives-dpkg" | ||
65 | FILES_${PN}-alternatives = "${sbindir}/alternatives ${sbindir}/update-alternatives \ | ||
66 | ${sysconfdir}/alternatives ${localstatedir}/lib/alternatives" | ||
67 | FILES_${PN}-alternatives-doc = "${mandir}/man8/alternatives.8 \ | ||
68 | ${mandir}/man8/update-alternatives.8" | ||
69 | |||
52 | FILES_${PN}_append_linuxstdbase += "${libdir}/lsb" | 70 | FILES_${PN}_append_linuxstdbase += "${libdir}/lsb" |