Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | RECIPE_NO_UPDATE_REASON = "Version 1.5 requires selinux" |
| 8 | |
| 9 | HOMEPAGE = "http://fedorahosted.org/releases/c/h/chkconfig" |
| 10 | |
| 11 | LICENSE = "GPLv2" |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" |
| 13 | |
| 14 | DEPENDS = "libnewt popt" |
| 15 | PROVIDES += "virtual/update-alternatives" |
| 16 | |
| 17 | PR = "r7" |
| 18 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 19 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2 \ |
| 20 | file://replace_caddr_t.patch \ |
| 21 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | |
| 23 | SRC_URI[md5sum] = "c2039ca67f2749fe0c06ef7c6f8ee246" |
| 24 | SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f18271211de68" |
| 25 | |
| 26 | inherit gettext |
| 27 | |
| 28 | # Makefile uses RPM_OPT_FLAGS to construct CFLAGS |
| 29 | # |
| 30 | EXTRA_OEMAKE = "\ |
| 31 | 'RPM_OPT_FLAGS=${CFLAGS}' \ |
| 32 | 'LDFLAGS=${LDFLAGS}' \ |
| 33 | 'BINDIR=${base_sbindir}' \ |
| 34 | 'SBINDIR=${sbindir}' \ |
| 35 | 'MANDIR=${mandir}' \ |
| 36 | 'ALTDIR=${localstatedir}/lib/alternatives' \ |
| 37 | 'ALTDATADIR=${sysconfdir}/alternatives' \ |
| 38 | " |
| 39 | |
| 40 | do_unpack[postfuncs] += "obey_variables" |
| 41 | do_unpack[vardeps] += "obey_variables" |
| 42 | obey_variables () { |
| 43 | sed -i -e 's,/etc,${sysconfdir},; s,/lib/systemd,${base_libdir}/systemd,' ${S}/leveldb.h |
| 44 | sed -i -e 's,/etc/alternatives,${sysconfdir}/alternatives,' \ |
| 45 | -e 's,/var/lib/alternatives,${localstatedir}/lib/alternatives,' \ |
| 46 | -e 's,/usr/share/locale,${datadir}/locale,' ${S}/alternatives.c |
| 47 | } |
| 48 | |
| 49 | do_install() { |
| 50 | oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' \ |
| 51 | 'BINDIR=${sbindir}' install |
| 52 | install -d ${D}${sysconfdir}/chkconfig.d |
| 53 | } |
| 54 | |
| 55 | PACKAGES =+ "${PN}-alternatives ${PN}-alternatives-doc" |
| 56 | SUMMARY_${PN}-alternatives = "Maintain symbolic links determining default commands" |
| 57 | DESCRIPTION_${PN}-alternatives = "alternatives creates, removes, maintains and displays \ |
| 58 | information about the symbolic links comprising the alternatives system." |
| 59 | SUMMARY_${PN}-alternatives-doc = "${SUMMARY_${PN}-alternatives} - Documentation files" |
| 60 | DESCRIPTION_${PN}-alternatives-doc = "${DESCRIPTION_${PN}-alternatives} \ |
| 61 | This package contains documentation." |
| 62 | RPROVIDES_${PN}-alternatives += "update-alternatives" |
| 63 | RCONFLICTS_${PN}-alternatives = "update-alternatives-opkg update-alternatives-dpkg" |
| 64 | FILES_${PN}-alternatives = "${sbindir}/alternatives ${sbindir}/update-alternatives \ |
| 65 | ${sysconfdir}/alternatives ${localstatedir}/lib/alternatives" |
| 66 | FILES_${PN}-alternatives-doc = "${mandir}/man8/alternatives.8 \ |
| 67 | ${mandir}/man8/update-alternatives.8" |