Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | # Copyright (C) 2016 Joe MacDonald <joe_macdonald@mentor.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | SUMMARY = "iSNS daemon and utility programs" |
| 5 | DESCRIPTION = "This is a partial implementation of RFC4171, the Internet \ |
| 6 | Storage Name Service (iSNS). The distribution includes the iSNS server, \ |
| 7 | supporting persisten storage of registrations, isnsadm, a command line \ |
| 8 | utility for managing nodes, and isnsdd, a corresponding discovery daemon." |
| 9 | HOMEPAGE = "http://github.com/gonzoleeman/open-isns/" |
| 10 | LICENSE = "GPLv2+ & LGPLv2+" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=321bf41f280cf805086dd5a720b37785" |
| 12 | SECTION = "net" |
| 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | DEPENDS = "openssl" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | SRC_URI = "git://github.com/open-iscsi/open-isns \ |
| 17 | file://0001-util.h-endian.h-is-available-on-musl-on-linux.patch \ |
| 18 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | |
| 20 | SRCREV ?= "09954404e948e41eb0fce8e28836018b4ce3d20d" |
| 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 24 | inherit systemd autotools-brokensep update-rc.d |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | |
| 26 | EXTRA_OECONF = " --prefix=${prefix} --enable-shared" |
| 27 | EXTRA_OEMAKE += "SYSTEMDDIR=${D}${systemd_unitdir}/system" |
| 28 | |
| 29 | do_install_append () { |
| 30 | oe_runmake INCDIR=${D}${includedir}/libisns/ install_hdrs |
| 31 | oe_runmake LIBDIR=${D}${libdir} install_lib |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | |
| 33 | install -D -m 755 ${S}/etc/openisns.init ${D}${sysconfdir}/init.d/openisns |
| 34 | sed -i 's|daemon isnsd|start-stop-daemon --start --quiet --oknodo --exec ${sbindir}/isnsd --|' \ |
| 35 | ${D}${sysconfdir}/init.d/openisns |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | FILES_${PN} += "${libdir} ${systemd_unitdir}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 39 | |
| 40 | INITSCRIPT_NAME = "openisns" |