Harald Welte | ccd25da | 2016-06-23 08:51:51 +0200 | [diff] [blame] | 1 | require ${PN}.inc |
| 2 | |
| 3 | S = "${WORKDIR}/git" |
Pau Espin Pedrol | d978990 | 2017-09-25 17:22:56 +0200 | [diff] [blame] | 4 | SRCREV = "54fa75b85c91bb4bb79960942f63968f6423f6a5" |
Harald Welte | ccd25da | 2016-06-23 08:51:51 +0200 | [diff] [blame] | 5 | SRC_URI = "git://git.osmocom.org/libosmo-sccp.git;protocol=git" |
Harald Welte | 5baaf5e | 2017-08-17 00:53:51 +0200 | [diff] [blame] | 6 | PV = "0.7.0+gitr${SRCPV}" |
Pau Espin Pedrol | d7e9e0e | 2017-09-27 12:17:43 +0200 | [diff] [blame] | 7 | PR = "${INC_PR}.1" |
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 | " |