Harald Welte | ccd25da | 2016-06-23 08:51:51 +0200 | [diff] [blame] | 1 | require ${PN}.inc |
| 2 | |
| 3 | S = "${WORKDIR}/git" |
Pau Espin Pedrol | 6c88ab8 | 2018-03-27 17:23:20 +0200 | [diff] [blame^] | 4 | SRCREV = "58fcc5344ea0e914c7f9be69c309998d243142bd" |
Harald Welte | ccd25da | 2016-06-23 08:51:51 +0200 | [diff] [blame] | 5 | SRC_URI = "git://git.osmocom.org/libosmo-sccp.git;protocol=git" |
Pau Espin Pedrol | 0979bed | 2017-11-01 14:36:55 +0100 | [diff] [blame] | 6 | PV = "0.8.1+gitr${SRCPV}" |
| 7 | PR = "${INC_PR}.0" |
Holger Hans Peter Freyther | 26452d2 | 2017-06-02 18:33:02 +0800 | [diff] [blame] | 8 | |
Holger Hans Peter Freyther | d20285c | 2017-06-02 18:33:02 +0800 | [diff] [blame] | 9 | # we require the tests to link to the static libosmo-sigtran library to |
| 10 | # access symbols not starting with osmo_* |
| 11 | EXTRA_OECONF_remove = "--disable-static" |
| 12 | |
Pau Espin Pedrol | d7e9e0e | 2017-09-27 12:17:43 +0200 | [diff] [blame] | 13 | PACKAGES =+ "osmo-stp" |
| 14 | SYSTEMD_PACKAGES = "osmo-stp" |
| 15 | SYSTEMD_SERVICE_osmo-stp = "osmo-stp.service" |
| 16 | |
Harald Welte | ccd25da | 2016-06-23 08:51:51 +0200 | [diff] [blame] | 17 | # because "${WORKDIR}/git" is not a git repo, it can't figure out the version |
| 18 | do_configure_prepend() { |
| 19 | echo "${PV}" > ${S}/.tarball-version |
| 20 | } |
Pau Espin Pedrol | d7e9e0e | 2017-09-27 12:17:43 +0200 | [diff] [blame] | 21 | |
| 22 | do_install_append() { |
| 23 | install -d ${D}${systemd_system_unitdir}/ |
| 24 | install -d ${D}${sysconfdir}/osmocom/ |
| 25 | |
| 26 | install -m 0644 ${S}/doc/examples/osmo-stp.cfg ${D}${sysconfdir}/osmocom/ |
| 27 | install -m 0644 ${S}/contrib/systemd/osmo-stp.service ${D}${systemd_system_unitdir}/ |
| 28 | } |
| 29 | |
| 30 | FILES_osmo-stp = " \ |
| 31 | ${bindir}/osmo-stp \ |
| 32 | ${sysconfdir}/osmocom/osmo-stp.cfg \ |
| 33 | " |
Pau Espin Pedrol | 71ac7c0 | 2017-12-04 18:37:22 +0100 | [diff] [blame] | 34 | CONFFILES_osmo-stp = "${sysconfdir}/osmocom/osmo-stp.cfg" |