2013-03-16 10:25:39 +00:00
|
|
|
DESCRIPTION = "OpenBSC a Free Software GSM BaseStationController"
|
2014-06-16 16:16:02 +00:00
|
|
|
DEPENDS = "libdbi libosmocore libosmo-sccp libosmo-abis libosmo-netif openggsn libsmpp34 bcg729 libgsm"
|
2011-11-11 13:26:06 +00:00
|
|
|
HOMEPAGE = "http://openbsc.osmocom.org/"
|
2012-05-30 09:50:06 +00:00
|
|
|
LICENSE = "AGPLv3+"
|
2011-11-11 13:26:06 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
|
|
|
|
|
|
|
RDEPENDS_osmo-nitb = "libdbd-sqlite3"
|
|
|
|
|
|
|
|
SRC_URI = "file://osmo-nitb.init \
|
|
|
|
file://osmo-bsc_mgcp.init \
|
2013-01-29 18:54:07 +00:00
|
|
|
file://osmo-bsc.init \
|
|
|
|
file://osmo-sgsn.init"
|
2014-02-18 16:41:56 +00:00
|
|
|
|
2014-06-16 16:16:02 +00:00
|
|
|
INC_PR = "r20.${META_TELEPHONY_OSMO_INC}"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
|
|
|
|
2014-06-16 16:16:02 +00:00
|
|
|
EXTRA_OECONF += " --enable-nat --enable-osmo-bsc --enable-smpp --enable-mgcp-transcoding --with-g729"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
2014-09-25 18:16:28 +00:00
|
|
|
inherit autotools update-rc.d pkgconfig
|
2011-11-11 13:26:06 +00:00
|
|
|
|
|
|
|
# because "${WORKDIR}/git" is not a git repo, it can't figure out the version
|
|
|
|
do_configure_prepend() {
|
|
|
|
echo "${PV}" > ${S}/.tarball-version
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${sysconfdir}/osmocom
|
|
|
|
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/osmo-bsc.cfg ${D}${sysconfdir}/osmocom/osmo-bsc.cfg
|
|
|
|
install -m 0660 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg
|
2013-01-29 18:54:07 +00:00
|
|
|
install -m 0660 ${S}/doc/examples/osmo-sgsn/osmo-sgsn.cfg ${D}${sysconfdir}/osmocom/osmo-sgsn.cfg
|
2014-02-18 16:41:56 +00:00
|
|
|
|
|
|
|
# Install sysv-init files
|
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
install -d ${D}${sysconfdir}/rc5.d
|
2011-11-11 13:26:06 +00:00
|
|
|
install -m 0775 ${WORKDIR}/osmo-nitb.init ${D}${sysconfdir}/init.d/osmo-nitb
|
|
|
|
install -m 0775 ${WORKDIR}/osmo-bsc_mgcp.init ${D}${sysconfdir}/init.d/osmo-bsc-mgcp
|
|
|
|
install -m 0775 ${WORKDIR}/osmo-bsc.init ${D}${sysconfdir}/init.d/osmo-bsc
|
2013-01-29 18:54:07 +00:00
|
|
|
install -m 0775 ${WORKDIR}/osmo-sgsn.init ${D}${sysconfdir}/init.d/osmo-sgsn
|
2011-11-11 13:26:06 +00:00
|
|
|
|
2014-02-18 16:41:56 +00:00
|
|
|
# Install systemd files and enable on sysinit
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
for i in `ls ${S}/contrib/systemd`; do
|
|
|
|
install -m 0644 ${S}/contrib/systemd/$i ${D}${systemd_unitdir}/system/
|
|
|
|
done
|
|
|
|
|
2011-11-11 13:26:06 +00:00
|
|
|
install -d ${D}/var/lib/osmocom
|
|
|
|
}
|
|
|
|
|
|
|
|
PACKAGES =+ "osmo-bsc osmo-nitb osmo-gbproxy osmo-gbproxy-dbg osmo-sgsn ipaccess-utils osmo-bsc-mgcp osmo-bsc-nat"
|
|
|
|
|
2014-06-09 17:29:13 +00:00
|
|
|
INITSCRIPT_PACKAGES = "osmo-bsc osmo-bsc-mgcp osmo-nitb osmo-sgsn"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
|
|
|
CONFFILES_osmo-bsc = "${sysconfdir}/osmocom/osmo-bsc.cfg"
|
|
|
|
INITSCRIPT_NAME_osmo-bsc = "osmo-bsc"
|
|
|
|
INITSCRIPT_PARAMS_osmo-bsc = "defaults 30 30"
|
|
|
|
FILES_osmo-bsc = " ${bindir}/osmo-bsc \
|
|
|
|
${sysconfdir}/osmocom/osmo-bsc.cfg \
|
2014-02-18 16:41:56 +00:00
|
|
|
${sysconfdir}/init.d/osmo-bsc \
|
|
|
|
${systemd_unitdir}/system/osmo-bsc.service \
|
|
|
|
"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
|
|
|
CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg"
|
|
|
|
INITSCRIPT_NAME_osmo-bsc-mgcp = "osmo-bsc-mgcp"
|
|
|
|
INITSCRIPT_PARAMS_osmo-bsc-mgcp = "defaults 30 30"
|
2012-04-14 11:39:29 +00:00
|
|
|
FILES_osmo-bsc-mgcp = " ${bindir}/osmo-bsc_mgcp \
|
2011-11-11 13:26:06 +00:00
|
|
|
${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \
|
2014-02-18 16:41:56 +00:00
|
|
|
${sysconfdir}/init.d/osmo-bsc-mgcp \
|
|
|
|
${systemd_unitdir}/system/osmo-bsc-mgcp.service \
|
|
|
|
"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
|
|
|
CONFFILES_osmo-nitb = "${sysconfdir}/osmocom/osmo-nitb.cfg"
|
|
|
|
INITSCRIPT_NAME_osmo-nitb = "osmo-nitb"
|
|
|
|
INITSCRIPT_PARAMS_osmo-nitb = "defaults 30 30"
|
|
|
|
FILES_osmo-nitb = " ${bindir}/osmo-nitb \
|
|
|
|
/var/lib/osmocom \
|
|
|
|
${sysconfdir}/init.d/osmo-nitb \
|
2014-02-18 16:41:56 +00:00
|
|
|
${sysconfdir}/osmocom/osmo-nitb.cfg \
|
|
|
|
${systemd_unitdir}/system/osmo-nitb.service \
|
|
|
|
"
|
2011-11-11 13:26:06 +00:00
|
|
|
|
2013-01-29 18:54:07 +00:00
|
|
|
CONFFILES_osmo-sgsn = "${sysconfdir}/osmocom/osmo-sgsn.cfg"
|
|
|
|
INITSCRIPT_NAME_osmo-sgsn = "osmo-sgsn"
|
|
|
|
INITSCRIPT_PARAMS_osmo-sgsn = "defaults 30 30"
|
|
|
|
FILES_osmo-sgsn = " ${bindir}/osmo-sgsn \
|
|
|
|
${sysconfdir}/init.d/osmo-sgsn \
|
2014-03-21 17:32:49 +00:00
|
|
|
${sysconfdir}/osmocom/osmo-sgsn.cfg \
|
|
|
|
${systemd_unitdir}/system/osmo-sgsn.service \
|
|
|
|
"
|
2013-01-29 18:54:07 +00:00
|
|
|
|
2011-11-11 13:26:06 +00:00
|
|
|
FILES_ipaccess-utils = " ${bindir}/ipaccess-find ${bindir}/ipaccess-config ${bindir}/ipaccess-proxy "
|
|
|
|
FILES_osmo-bsc-nat = " ${bindir}/osmo-bsc_nat "
|
|
|
|
FILES_osmo-gbproxy = " ${bindir}/osmo-gbproxy "
|
|
|
|
FILES_osmo-gbproxy-dbg = " ${bindir}/.debug/osmo-gbproxy "
|
|
|
|
|