openbsc: Package osmo-bsc-mgcp
Change-Id: I622e2752c878753d1b4b4ccc943fa430b055ffee
diff --git a/recipes-osmocom/openbsc/openbsc.inc b/recipes-osmocom/openbsc/openbsc.inc
index ca9a6c6..ec130db 100644
--- a/recipes-osmocom/openbsc/openbsc.inc
+++ b/recipes-osmocom/openbsc/openbsc.inc
@@ -10,7 +10,7 @@
file://osmo-bsc-sccplite.init \
"
-INC_PR = "r2.${META_TELEPHONY_OSMO_INC}"
+INC_PR = "r3.${META_TELEPHONY_OSMO_INC}"
EXTRA_OECONF += "--enable-nat --enable-osmo-bsc --enable-smpp --enable-mgcp-transcoding --with-g729"
@@ -21,6 +21,7 @@
install -m 0660 ${S}/doc/examples/osmo-nitb/nanobts/openbsc.cfg ${D}${sysconfdir}/osmocom/osmo-nitb.cfg
install -m 0660 ${S}/doc/examples/osmo-bsc-sccplite/osmo-bsc-sccplite.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-sccplite.cfg
install -m 0644 ${S}/doc/examples/osmo-bsc_nat/osmo-bsc_nat.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-nat.cfg
+ install -m 0644 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg
# Install sysv-init files
install -d ${D}${sysconfdir}/init.d
@@ -33,13 +34,14 @@
install -m 0644 ${S}/contrib/systemd/osmo-nitb.service ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/contrib/systemd/osmo-bsc-sccplite.service ${D}${systemd_system_unitdir}/
install -m 0644 ${S}/contrib/systemd/osmo-bsc-nat.service ${D}${systemd_system_unitdir}/
+ install -m 0644 ${S}/contrib/systemd/osmo-bsc-mgcp.service ${D}${systemd_system_unitdir}/
install -d ${D}/var/lib/osmocom
}
-PACKAGES =+ "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb"
-SYSTEMD_PACKAGES = "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb"
+PACKAGES =+ "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb osmo-bsc-mgcp"
+SYSTEMD_PACKAGES = "osmo-bsc-nat osmo-bsc-sccplite osmo-nitb osmo-bsc-mgcp"
INITSCRIPT_PACKAGES = "osmo-bsc-sccplite osmo-nitb"
CONFFILES_osmo-bsc-sccplite = "${sysconfdir}/osmocom/osmo-bsc-sccplite.cfg"
@@ -70,3 +72,11 @@
${sysconfdir}/osmocom/osmo-bsc_nat.cfg \
${systemd_system_unitdir}/osmo-bsc-nat.service \
"
+
+CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg"
+SYSTEMD_SERVICE_osmo-bsc-mgcp = "osmo-bsc-mgcp.service"
+FILES_osmo-bsc-mgcp = " \
+ ${bindir}/osmo-bsc_mgcp \
+ ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \
+ ${systemd_system_unitdir}/osmo-bsc-mgcp.service \
+ "