Pau Espin Pedrol | 254389b | 2017-09-26 14:30:16 +0200 | [diff] [blame] | 1 | DESCRIPTION = "Osmocom SGSN implementation" |
| 2 | HOMEPAGE = "https://osmocom.org/projects/osmosgsn" |
| 3 | LICENSE = "AGPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 5 | |
Pau Espin Pedrol | 46ab83e | 2017-10-18 12:00:03 +0200 | [diff] [blame] | 6 | DEPENDS = "c-ares libpcap libosmocore libosmo-netif libosmo-sccp osmo-ggsn" |
Pau Espin Pedrol | 254389b | 2017-09-26 14:30:16 +0200 | [diff] [blame] | 7 | |
Pau Espin Pedrol | 46ab83e | 2017-10-18 12:00:03 +0200 | [diff] [blame] | 8 | INC_PR="r2.${META_TELEPHONY_OSMO_INC}" |
Pau Espin Pedrol | 254389b | 2017-09-26 14:30:16 +0200 | [diff] [blame] | 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
Pau Espin Pedrol | 46ab83e | 2017-10-18 12:00:03 +0200 | [diff] [blame] | 12 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'iu', d)}" |
| 13 | PACKAGECONFIG[iu] = "--enable-iu,--disable-iu,libasn1c osmo-iuh," |
Pau Espin Pedrol | 254389b | 2017-09-26 14:30:16 +0200 | [diff] [blame] | 14 | |
| 15 | do_install_append() { |
| 16 | install -d ${D}${systemd_system_unitdir}/ |
| 17 | install -d ${D}${sysconfdir}/osmocom/ |
| 18 | |
| 19 | install -m 0644 ${S}/doc/examples/osmo-sgsn/osmo-sgsn.cfg ${D}${sysconfdir}/osmocom/ |
| 20 | install -m 0644 ${S}/doc/examples/osmo-gbproxy/osmo-gbproxy.cfg ${D}${sysconfdir}/osmocom/ |
| 21 | |
| 22 | install -m 0644 ${S}/contrib/systemd/osmo-sgsn.service ${D}${systemd_system_unitdir}/ |
| 23 | install -m 0644 ${S}/contrib/systemd/osmo-gbproxy.service ${D}${systemd_system_unitdir}/ |
| 24 | } |
| 25 | |
| 26 | PACKAGES =+ "osmo-gbproxy-doc osmo-gtphub-doc osmo-gbproxy osmo-gtphub" |
| 27 | SYSTEMD_PACKAGES = "osmo-sgsn osmo-gbproxy" |
| 28 | SYSTEMD_SERVICE_osmo-sgsn = "osmo-sgsn.service" |
| 29 | SYSTEMD_SERVICE_osmo-gbproxy = "osmo-gbproxy.service" |
| 30 | |
| 31 | FILES_osmo-gbproxy = " \ |
| 32 | ${bindir}/osmo-gbproxy \ |
| 33 | ${sysconfdir}/osmocom/osmo-gbproxy.cfg \ |
| 34 | " |
| 35 | |
| 36 | FILES_osmo-gtphub = " \ |
| 37 | ${bindir}/osmo-gtphub \ |
| 38 | ${sysconfdir}/osmocom/osmo-gtphub.cfg \ |
| 39 | " |
| 40 | |
| 41 | FILES_osmo-gbproxy-doc = " ${docdir}/osmo-sgsn/examples/osmo-gbproxy " |
| 42 | FILES_osmo-gtphub-doc = " ${docdir}/osmo-sgsn/examples/osmo-gtphub " |