blob: 235c0871344efd8c3d0eefadd46cb2abc779f7b6 [file] [log] [blame]
Holger Hans Peter Freyther85d5ea42013-03-16 11:25:39 +01001DESCRIPTION = "OpenBSC a Free Software GSM BaseStationController"
Harald Welte29263f12013-03-13 15:54:58 +01002DEPENDS = "libdbi libosmocore libosmo-sccp libosmo-abis openggsn libsmpp34"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08003HOMEPAGE = "http://openbsc.osmocom.org/"
Holger Hans Peter Freytherd24c97d2012-05-30 17:50:06 +08004LICENSE = "AGPLv3+"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08005LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
6
7RDEPENDS_osmo-nitb = "libdbd-sqlite3"
8
9SRC_URI = "file://osmo-nitb.init \
10 file://osmo-bsc_mgcp.init \
Harald Welte4aad6362013-01-29 19:54:07 +010011 file://osmo-bsc.init \
12 file://osmo-sgsn.init"
Harald Welte29263f12013-03-13 15:54:58 +010013INC_PR = "r15.${META_TELEPHONY_OSMO_INC}"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080014
15
Harald Welte29263f12013-03-13 15:54:58 +010016EXTRA_OECONF += " --enable-nat --enable-osmo-bsc --enable-smpp"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080017
18inherit autotools update-rc.d
19
20# because "${WORKDIR}/git" is not a git repo, it can't figure out the version
21do_configure_prepend() {
22 echo "${PV}" > ${S}/.tarball-version
23}
24
25do_install_append() {
26 install -d ${D}${sysconfdir}/osmocom
27 install -d ${D}${sysconfdir}/init.d
28 install -d ${D}${sysconfdir}/rc5.d
29 install -m 0660 ${S}/doc/examples/osmo-nitb/nanobts/openbsc.cfg ${D}${sysconfdir}/osmocom/osmo-nitb.cfg
30 install -m 0660 ${S}/doc/examples/osmo-bsc/osmo-bsc.cfg ${D}${sysconfdir}/osmocom/osmo-bsc.cfg
31 install -m 0660 ${S}/doc/examples/osmo-bsc_mgcp/mgcp.cfg ${D}${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg
Harald Welte4aad6362013-01-29 19:54:07 +010032 install -m 0660 ${S}/doc/examples/osmo-sgsn/osmo-sgsn.cfg ${D}${sysconfdir}/osmocom/osmo-sgsn.cfg
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080033 install -m 0775 ${WORKDIR}/osmo-nitb.init ${D}${sysconfdir}/init.d/osmo-nitb
34 install -m 0775 ${WORKDIR}/osmo-bsc_mgcp.init ${D}${sysconfdir}/init.d/osmo-bsc-mgcp
35 install -m 0775 ${WORKDIR}/osmo-bsc.init ${D}${sysconfdir}/init.d/osmo-bsc
Harald Welte4aad6362013-01-29 19:54:07 +010036 install -m 0775 ${WORKDIR}/osmo-sgsn.init ${D}${sysconfdir}/init.d/osmo-sgsn
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080037
38 install -d ${D}/var/lib/osmocom
39}
40
41PACKAGES =+ "osmo-bsc osmo-nitb osmo-gbproxy osmo-gbproxy-dbg osmo-sgsn ipaccess-utils osmo-bsc-mgcp osmo-bsc-nat"
42
43INITSCRIPT_PACKAGES = "osmo-bsc osmo-bsc-mgcp osmo-nitb"
44
45CONFFILES_osmo-bsc = "${sysconfdir}/osmocom/osmo-bsc.cfg"
46INITSCRIPT_NAME_osmo-bsc = "osmo-bsc"
47INITSCRIPT_PARAMS_osmo-bsc = "defaults 30 30"
48FILES_osmo-bsc = " ${bindir}/osmo-bsc \
49 ${sysconfdir}/osmocom/osmo-bsc.cfg \
50 ${sysconfdir}/init.d/osmo-bsc"
51
52CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg"
53INITSCRIPT_NAME_osmo-bsc-mgcp = "osmo-bsc-mgcp"
54INITSCRIPT_PARAMS_osmo-bsc-mgcp = "defaults 30 30"
Holger Hans Peter Freythere005f8d2012-04-14 19:39:29 +080055FILES_osmo-bsc-mgcp = " ${bindir}/osmo-bsc_mgcp \
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080056 ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \
57 ${sysconfdir}/init.d/osmo-bsc-mgcp"
58
59CONFFILES_osmo-nitb = "${sysconfdir}/osmocom/osmo-nitb.cfg"
60INITSCRIPT_NAME_osmo-nitb = "osmo-nitb"
61INITSCRIPT_PARAMS_osmo-nitb = "defaults 30 30"
62FILES_osmo-nitb = " ${bindir}/osmo-nitb \
63 /var/lib/osmocom \
64 ${sysconfdir}/init.d/osmo-nitb \
65 ${sysconfdir}/osmocom/osmo-nitb.cfg"
66
Harald Welte4aad6362013-01-29 19:54:07 +010067CONFFILES_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
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080074FILES_ipaccess-utils = " ${bindir}/ipaccess-find ${bindir}/ipaccess-config ${bindir}/ipaccess-proxy "
75FILES_osmo-bsc-nat = " ${bindir}/osmo-bsc_nat "
76FILES_osmo-gbproxy = " ${bindir}/osmo-gbproxy "
77FILES_osmo-gbproxy-dbg = " ${bindir}/.debug/osmo-gbproxy "
78