diff options
-rw-r--r-- | meta-networking/recipes-extended/corosync/corosync_3.0.3.bb | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb index 909296197c..016441be5c 100644 --- a/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb +++ b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb | |||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://corosync.github.io/corosync/" | |||
5 | 5 | ||
6 | SECTION = "base" | 6 | SECTION = "base" |
7 | 7 | ||
8 | inherit autotools pkgconfig systemd useradd | 8 | inherit autotools pkgconfig systemd |
9 | 9 | ||
10 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ | 10 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ |
11 | file://corosync.conf \ | 11 | file://corosync.conf \ |
@@ -18,10 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" | |||
18 | 18 | ||
19 | DEPENDS = "groff-native nss libqb kronosnet" | 19 | DEPENDS = "groff-native nss libqb kronosnet" |
20 | 20 | ||
21 | SYSTEMD_SERVICE:${PN} = "corosync.service corosync-notifyd.service \ | 21 | SYSTEMD_SERVICE:${PN} = "corosync.service corosync-notifyd.service" |
22 | ${@bb.utils.contains('PACKAGECONFIG', 'qdevice', 'corosync-qdevice.service', '', d)} \ | ||
23 | ${@bb.utils.contains('PACKAGECONFIG', 'qnetd', 'corosync-qnetd.service', '', d)} \ | ||
24 | " | ||
25 | SYSTEMD_AUTO_ENABLE = "disable" | 22 | SYSTEMD_AUTO_ENABLE = "disable" |
26 | 23 | ||
27 | INITSCRIPT_NAME = "corosync-daemon" | 24 | INITSCRIPT_NAME = "corosync-daemon" |
@@ -43,7 +40,7 @@ EXTRA_OEMAKE = "tmpfilesdir_DATA=" | |||
43 | #} | 40 | #} |
44 | 41 | ||
45 | do_install:append() { | 42 | do_install:append() { |
46 | install -D -m 0644 ${WORKDIR}/corosync.conf ${D}/${sysconfdir}/corosync/corosync.conf.example | 43 | install -D -m 0644 ${WORKDIR}/corosync.conf ${D}${sysconfdir}/corosync/corosync.conf.example |
47 | install -d ${D}${sysconfdir}/sysconfig/ | 44 | install -d ${D}${sysconfdir}/sysconfig/ |
48 | install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync | 45 | install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync |
49 | install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd | 46 | install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd |
@@ -53,11 +50,6 @@ do_install:append() { | |||
53 | install -d ${D}${sysconfdir}/default/volatiles | 50 | install -d ${D}${sysconfdir}/default/volatiles |
54 | echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync | 51 | echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync |
55 | 52 | ||
56 | if [ ${@bb.utils.filter('PACKAGECONFIG', 'qnetd', d)} ]; then | ||
57 | chown -R coroqnetd:coroqnetd ${D}${sysconfdir}/${BPN}/qnetd | ||
58 | echo "d coroqnetd coroqnetd 0770 /var/run/corosync-qnetd none" >> ${D}${sysconfdir}/default/volatiles/05_corosync | ||
59 | fi | ||
60 | |||
61 | if [ ${@bb.utils.filter('DISTRO_FEATURES','systemd',d)} ]; then | 53 | if [ ${@bb.utils.filter('DISTRO_FEATURES','systemd',d)} ]; then |
62 | install -d ${D}${sysconfdir}/tmpfiles.d | 54 | install -d ${D}${sysconfdir}/tmpfiles.d |
63 | echo "d ${localstatedir}/log/cluster - - - -" > ${D}${sysconfdir}/tmpfiles.d/corosync.conf | 55 | echo "d ${localstatedir}/log/cluster - - - -" > ${D}${sysconfdir}/tmpfiles.d/corosync.conf |
@@ -68,7 +60,3 @@ RDEPENDS:${PN} += "bash ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sys | |||
68 | 60 | ||
69 | FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug" | 61 | FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug" |
70 | FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt" | 62 | FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt" |
71 | |||
72 | USERADD_PACKAGES = "${PN}" | ||
73 | GROUPADD_PARAM:${PN} = "--system coroqnetd" | ||
74 | USERADD_PARAM:${PN} = "--system -d / -M -s /bin/nologin -c 'User for corosync-qnetd' -g coroqnetd coroqnetd" | ||