diff options
Diffstat (limited to 'meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb')
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb new file mode 100644 index 0000000000..d285c5047c --- /dev/null +++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | |||
@@ -0,0 +1,63 @@ | |||
1 | SUMMARY = "A system tool for maintaining the /etc/rc*.d hierarchy" | ||
2 | DESCRIPTION = "Chkconfig is a basic system utility. It updates and queries runlevel \ | ||
3 | information for system services. Chkconfig manipulates the numerous \ | ||
4 | symbolic links in /etc/rc.d, to relieve system administrators of some \ | ||
5 | of the drudgery of manually editing the symbolic links." | ||
6 | |||
7 | HOMEPAGE = "http://fedorahosted.org/releases/c/h/chkconfig" | ||
8 | |||
9 | LICENSE = "GPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" | ||
11 | |||
12 | DEPENDS = "libnewt popt" | ||
13 | PROVIDES += "virtual/update-alternatives" | ||
14 | |||
15 | PR = "r7" | ||
16 | |||
17 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" | ||
18 | |||
19 | SRC_URI[md5sum] = "c2039ca67f2749fe0c06ef7c6f8ee246" | ||
20 | SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f18271211de68" | ||
21 | |||
22 | inherit gettext | ||
23 | |||
24 | # Makefile uses RPM_OPT_FLAGS to construct CFLAGS | ||
25 | # | ||
26 | EXTRA_OEMAKE = "\ | ||
27 | 'RPM_OPT_FLAGS=${CFLAGS}' \ | ||
28 | 'LDFLAGS=${LDFLAGS}' \ | ||
29 | 'BINDIR=${base_sbindir}' \ | ||
30 | 'SBINDIR=${sbindir}' \ | ||
31 | 'MANDIR=${mandir}' \ | ||
32 | 'ALTDIR=${localstatedir}/lib/alternatives' \ | ||
33 | 'ALTDATADIR=${sysconfdir}/alternatives' \ | ||
34 | " | ||
35 | |||
36 | do_unpack[postfuncs] += "obey_variables" | ||
37 | do_unpack[vardeps] += "obey_variables" | ||
38 | obey_variables () { | ||
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 | ||
43 | } | ||
44 | |||
45 | do_install() { | ||
46 | oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' \ | ||
47 | 'BINDIR=${sbindir}' install | ||
48 | install -d ${D}${sysconfdir}/chkconfig.d | ||
49 | } | ||
50 | |||
51 | PACKAGES =+ "${PN}-alternatives ${PN}-alternatives-doc" | ||
52 | SUMMARY_${PN}-alternatives = "Maintain symbolic links determining default commands" | ||
53 | DESCRIPTION_${PN}-alternatives = "alternatives creates, removes, maintains and displays \ | ||
54 | information about the symbolic links comprising the alternatives system." | ||
55 | SUMMARY_${PN}-alternatives-doc = "${SUMMARY_${PN}-alternatives} - Documentation files" | ||
56 | DESCRIPTION_${PN}-alternatives-doc = "${DESCRIPTION_${PN}-alternatives} \ | ||
57 | This package contains documentation." | ||
58 | RPROVIDES_${PN}-alternatives += "update-alternatives" | ||
59 | RCONFLICTS_${PN}-alternatives = "update-alternatives-opkg update-alternatives-dpkg" | ||
60 | FILES_${PN}-alternatives = "${sbindir}/alternatives ${sbindir}/update-alternatives \ | ||
61 | ${sysconfdir}/alternatives ${localstatedir}/lib/alternatives" | ||
62 | FILES_${PN}-alternatives-doc = "${mandir}/man8/alternatives.8 \ | ||
63 | ${mandir}/man8/update-alternatives.8" | ||