aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-osmocom/osmo-msc/osmo-msc.inc
blob: 829f947dfc228fd2676c3b090663c88a71e365b4 (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
DESCRIPTION = "Osmocom MSC implementation"
HOMEPAGE = "https://osmocom.org/projects/osmomsc"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"

DEPENDS = "libdbi libasn1c osmo-iuh libosmocore libosmo-abis libosmo-sccp libosmo-netif libsmpp34 osmo-mgw"

INC_PR="r1.${META_TELEPHONY_OSMO_INC}"

inherit autotools pkgconfig systemd

EXTRA_OECONF += "--enable-smpp --enable-iu"

RDEPENDS_${PN} = "libdbd-sqlite3"

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

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

	# osmo-bsc already provides these, see issue Osmocom #2522:
	rm -f ${D}${bindir}/.debug/*meas*
	rm -f ${D}${bindir}/*meas*
}

SYSTEMD_SERVICE_${PN} = "${PN}.service"