blob: 53b53c7c7adbb5aeb7a55b6a3160e6aa63e2636e [file] [log] [blame]
Neels Hofmeyr1804aa82017-03-29 16:45:51 +02001DESCRIPTION = "OsmoMSC, OsmoSGSN, OsmoMGCP"
2DEPENDS = "libdbi libosmocore libosmo-sccp libosmo-abis libosmo-netif openggsn libsmpp34 bcg729 libgsm libpcap c-ares libasn1c osmo-iuh"
3HOMEPAGE = "http://osmocom.org/projects/osmomsc"
4LICENSE = "AGPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
6
7RDEPENDS_osmo-msc = "libdbd-sqlite3"
8
9SRC_URI = "file://osmo-msc.init \
10 file://osmo-bsc_mgcp.init \
Daniel Willmannae2ac042017-08-01 03:54:52 +020011 file://osmo-sgsn.init \
12 file://osmo-msc.service \
13 file://osmo-sgsn.service \
14 file://osmo-bsc-mgcp.service"
Neels Hofmeyr1804aa82017-03-29 16:45:51 +020015
Daniel Willmann67d36212017-08-01 03:39:11 +020016INC_PR = "r2.${META_TELEPHONY_OSMO_INC}"
Neels Hofmeyr1804aa82017-03-29 16:45:51 +020017
18
19EXTRA_OECONF += " --enable-iu --enable-smpp --enable-mgcp-transcoding --with-g729"
20
21inherit autotools update-rc.d pkgconfig
22
23# because "${WORKDIR}/git" is not a git repo, it can't figure out the version
24do_configure_prepend() {
25 echo "${PV}" > ${S}/.tarball-version
26}
27
28do_install_append() {
29 install -d ${D}${sysconfdir}/osmocom
30 install -m 0660 ${S}/doc/examples/osmo-msc/osmo-msc.cfg ${D}${sysconfdir}/osmocom/osmo-msc.cfg
31 install -m 0660 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg
32 install -m 0660 ${S}/doc/examples/osmo-sgsn/osmo-sgsn.cfg ${D}${sysconfdir}/osmocom/osmo-sgsn.cfg
33
34 # Install sysv-init files
35 install -d ${D}${sysconfdir}/init.d
36 install -d ${D}${sysconfdir}/rc5.d
37 install -m 0775 ${WORKDIR}/osmo-msc.init ${D}${sysconfdir}/init.d/osmo-msc
38 install -m 0775 ${WORKDIR}/osmo-bsc_mgcp.init ${D}${sysconfdir}/init.d/osmo-bsc-mgcp
39 install -m 0775 ${WORKDIR}/osmo-sgsn.init ${D}${sysconfdir}/init.d/osmo-sgsn
40
41 # Install systemd files and enable on sysinit
42 install -d ${D}${systemd_unitdir}/system
Daniel Willmann67d36212017-08-01 03:39:11 +020043 install -m 0644 ${WORKDIR}/osmo-msc.service ${D}${systemd_unitdir}/system/
44 install -m 0644 ${WORKDIR}/osmo-sgsn.service ${D}${systemd_unitdir}/system/
45 install -m 0644 ${WORKDIR}/osmo-bsc-mgcp.service ${D}${systemd_unitdir}/system/
Neels Hofmeyr1804aa82017-03-29 16:45:51 +020046
47 install -d ${D}/var/lib/osmocom
48}
49
50PACKAGES =+ "osmo-msc osmo-sgsn osmo-bsc-mgcp ipaccess-utils"
51
52INITSCRIPT_PACKAGES = "osmo-msc osmo-sgsn osmo-bsc-mgcp"
53
54# Do not start any of the services by default
55SYSTEMD_AUTO_ENABLE = "disable"
56
57CONFFILES_osmo-msc = "${sysconfdir}/osmocom/osmo-msc.cfg"
58INITSCRIPT_NAME_osmo-msc = "osmo-msc"
59INITSCRIPT_PARAMS_osmo-msc = "defaults 30 30"
60FILES_osmo-msc = " ${bindir}/osmo-msc \
61 /var/lib/osmocom \
62 ${sysconfdir}/init.d/osmo-msc \
63 ${sysconfdir}/osmocom/osmo-msc.cfg \
64 ${systemd_unitdir}/system/osmo-msc.service \
65 "
66
67CONFFILES_osmo-sgsn = "${sysconfdir}/osmocom/osmo-sgsn.cfg"
68INITSCRIPT_NAME_osmo-sgsn = "osmo-sgsn"
69INITSCRIPT_PARAMS_osmo-sgsn = "defaults 30 30"
70FILES_osmo-sgsn = " ${bindir}/osmo-sgsn \
71 ${sysconfdir}/init.d/osmo-sgsn \
72 ${sysconfdir}/osmocom/osmo-sgsn.cfg \
73 ${systemd_unitdir}/system/osmo-sgsn.service \
74 "
75
76CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg"
77INITSCRIPT_NAME_osmo-bsc-mgcp = "osmo-bsc-mgcp"
78INITSCRIPT_PARAMS_osmo-bsc-mgcp = "defaults 30 30"
79FILES_osmo-bsc-mgcp = " ${bindir}/osmo-bsc_mgcp \
80 ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \
81 ${sysconfdir}/init.d/osmo-bsc-mgcp \
82 ${systemd_unitdir}/system/osmo-bsc-mgcp.service \
83 "
84
85FILES_ipaccess-utils = " ${bindir}/ipaccess-find ${bindir}/ipaccess-config ${bindir}/ipaccess-proxy "