diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/chkconfig | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/chkconfig')
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb | 43 | ||||
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb | 63 |
2 files changed, 106 insertions, 0 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb b/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb new file mode 100644 index 0000000000..7fd34aa05f --- /dev/null +++ b/meta/recipes-extended/chkconfig/chkconfig-alternatives-native_1.3.59.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | require recipes-extended/chkconfig/chkconfig_1.3.58.bb | ||
2 | |||
3 | SUMMARY = "${SUMMARY_chkconfig-alternatives}" | ||
4 | DESCRIPTION = "${DESCRIPTION_chkconfig-alternatives}" | ||
5 | DEPENDS = "" | ||
6 | PROVIDES += "virtual/update-alternatives-native" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
8 | |||
9 | # The sysroot branch is 1.3.59 + some git commits from master + --sysroot | ||
10 | # support for alternatives. | ||
11 | SRC_URI = "git://github.com/kergoth/chkconfig;branch=sysroot" | ||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | SRCREV = "cd437ecbd8986c894442f8fce1e0061e20f04dee" | ||
15 | PV = "1.3.59+${SRCPV}" | ||
16 | |||
17 | inherit native | ||
18 | |||
19 | # We want our native recipes to build using the target paths rather than paths | ||
20 | # into the sysroot, as we may use them to construct the rootfs. As such, we | ||
21 | # only adjust the paths to match the metadata for the target, not native. | ||
22 | obey_variables () { | ||
23 | sed -i 's,ALTERNATIVES_ROOT,OPKG_OFFLINE_ROOT,' alternatives.c | ||
24 | } | ||
25 | |||
26 | do_compile () { | ||
27 | oe_runmake alternatives | ||
28 | } | ||
29 | |||
30 | do_install () { | ||
31 | install -d ${D}${sysconfdir}/alternatives \ | ||
32 | ${D}${localstatedir}/lib/alternatives | ||
33 | |||
34 | install -D -m 0755 alternatives ${D}${bindir}/alternatives | ||
35 | install -D -m 0644 alternatives.8 ${D}${mandir}/man8/alternatives.8 | ||
36 | |||
37 | ln -s alternatives ${D}${bindir}/update-alternatives | ||
38 | ln -s alternatives.8 ${D}${mandir}/man8/update-alternatives.8 | ||
39 | } | ||
40 | |||
41 | do_install_append_linuxstdbase() { | ||
42 | rm -rf ${D}${libdir}/lsb | ||
43 | } | ||
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" | ||