aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-osmocom/osmo-iuh/osmo-iuh.inc
blob: 273741254cc01dbe4d0069695c6a7e22122c1f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
DESCRIPTION = "Osmocom Iuh and HNB-GW implementation"
HOMEPAGE = "https://osmocom.org/projects/osmohnbgw"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"

DEPENDS = "libosmocore libosmo-netif libosmo-sccp libasn1c"

INC_PR="r2.${META_TELEPHONY_OSMO_INC}"

inherit autotools pkgconfig systemd

do_install_append() {
	install -d ${D}${systemd_system_unitdir}/
	install -d ${D}${sysconfdir}/osmocom/

	install -m 0644 ${S}/doc/examples/osmo-hnbgw.cfg ${D}${sysconfdir}/osmocom/
	install -m 0644 ${S}/contrib/systemd/osmo-hnbgw.service ${D}${systemd_system_unitdir}/
}

PACKAGES =+ "libosmo-ranap libosmo-ranap-dev osmo-hnbgw"
SYSTEMD_PACKAGES = "osmo-hnbgw"
SYSTEMD_SERVICE_osmo-hnbgw = "osmo-hnbgw.service"

FILES_libosmo-ranap = " \
		${libdir}/libosmo-ranap${SOLIBS} \
		"

FILES_libosmo-ranap-dev = " \
		${includedir}/osmocom/ranap \
		${libdir}/pkgconfig/libosmo-ranap.pc \
		${libdir}/libosmo-ranap${SOLIBSDEV} \
		"

FILES_osmo-hnbgw = " \
		${bindir}/osmo-hnbgw \
		${sysconfdir}/osmocom/osmo-hnbgw.cfg \
		"
CONFFILES_osmo-hnbgw = "${sysconfdir}/osmocom/osmo-hnbgw.cfg"

ALLOW_EMPTY_${PN} = "1"