summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-extended/corosync/corosync_3.0.3.bb18
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
6SECTION = "base" 6SECTION = "base"
7 7
8inherit autotools pkgconfig systemd useradd 8inherit autotools pkgconfig systemd
9 9
10SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ 10SRC_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
19DEPENDS = "groff-native nss libqb kronosnet" 19DEPENDS = "groff-native nss libqb kronosnet"
20 20
21SYSTEMD_SERVICE:${PN} = "corosync.service corosync-notifyd.service \ 21SYSTEMD_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"
25SYSTEMD_AUTO_ENABLE = "disable" 22SYSTEMD_AUTO_ENABLE = "disable"
26 23
27INITSCRIPT_NAME = "corosync-daemon" 24INITSCRIPT_NAME = "corosync-daemon"
@@ -43,7 +40,7 @@ EXTRA_OEMAKE = "tmpfilesdir_DATA="
43#} 40#}
44 41
45do_install:append() { 42do_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
69FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug" 61FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug"
70FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt" 62FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt"
71
72USERADD_PACKAGES = "${PN}"
73GROUPADD_PARAM:${PN} = "--system coroqnetd"
74USERADD_PARAM:${PN} = "--system -d / -M -s /bin/nologin -c 'User for corosync-qnetd' -g coroqnetd coroqnetd"