summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/vblade/vblade_24.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-12 08:53:51 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-13 22:32:07 -0700
commit7c505534496d77769779f0c184c4bf96d72038ea (patch)
treeda7f29fd2538a498690c630220b7f114337b3809 /meta-networking/recipes-daemons/vblade/vblade_24.bb
parent108e6063c83d605541aeaf960ffed83bdbf23931 (diff)
downloadmeta-openembedded-7c505534496d77769779f0c184c4bf96d72038ea.tar.gz
vblade: Upgrade to version 24
Switch to github for src_uri Add a patch to fix build with -fno-common Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/vblade/vblade_24.bb')
-rw-r--r--meta-networking/recipes-daemons/vblade/vblade_24.bb56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/vblade/vblade_24.bb b/meta-networking/recipes-daemons/vblade/vblade_24.bb
new file mode 100644
index 0000000000..09ba8cfd93
--- /dev/null
+++ b/meta-networking/recipes-daemons/vblade/vblade_24.bb
@@ -0,0 +1,56 @@
1SUMMARY = "Virtual EtherDrive blade AoE target"
2SECTION = "admin"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6
7UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/aoetools/files/vblade/"
8
9SRCREV = "a7f48bda5bf1646f6450601049bf4b74053adbb3"
10SRC_URI = "git://github.com/OpenAoE/vblade \
11 file://cross.patch \
12 file://makefile-add-ldflags.patch \
13 file://gcc-10.patch \
14 file://${BPN}.conf \
15 file://${BPN}.init \
16 file://${BPN}.service \
17 file://volatiles.99_vblade \
18 "
19
20S = "${WORKDIR}/git"
21
22UPSTREAM_CHECK_URI = "https://github.com/OpenAoE/vblade/archive/"
23
24inherit autotools-brokensep update-rc.d systemd
25
26do_install() {
27 install -D -m 0755 ${S}/vblade ${D}/${sbindir}/vblade
28 install -D -m 0755 ${S}/vbladed ${D}/${sbindir}/vbladed
29 install -D -m 0644 ${S}/vblade.8 ${D}/${mandir}/man8/vblade.8
30
31 install -D -m 0644 ${WORKDIR}/${BPN}.conf ${D}/${sysconfdir}/${BPN}.conf
32 install -D -m 0755 ${WORKDIR}/${BPN}.init ${D}/${sysconfdir}/init.d/${BPN}
33
34 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
35 install -d ${D}/${sysconfdir}/default/volatiles
36 install -m 0755 ${WORKDIR}/volatiles.99_vblade ${D}/${sysconfdir}/default/volatiles/99_vblade
37 fi
38
39 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
40 install -d ${D}/${bindir}
41 install -m 0755 ${WORKDIR}/${BPN}.init ${D}/${bindir}/
42 install -d ${D}${sysconfdir}/tmpfiles.d
43 echo "d /var/run/${BPN} 0755 root root -" > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
44
45 install -d ${D}${systemd_system_unitdir}
46 install -m 0644 ${WORKDIR}/vblade.service ${D}${systemd_system_unitdir}
47 sed -e 's,@BINDIR@,${bindir},g' -i ${D}${systemd_system_unitdir}/*.service
48 fi
49
50}
51
52INITSCRIPT_NAME = "vblade"
53INITSCRIPT_PARAMS = "start 30 . stop 70 0 1 2 3 4 5 6 ."
54
55SYSTEMD_SERVICE_${PN} = "vblade.service"
56SYSTEMD_AUTO_ENABLE = "disable"