Holger Hans Peter Freyther | 85d5ea4 | 2013-03-16 11:25:39 +0100 | [diff] [blame] | 1 | DESCRIPTION = "OpenBSC a Free Software GSM BaseStationController" |
Harald Welte | 29263f1 | 2013-03-13 15:54:58 +0100 | [diff] [blame] | 2 | DEPENDS = "libdbi libosmocore libosmo-sccp libosmo-abis openggsn libsmpp34" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 3 | HOMEPAGE = "http://openbsc.osmocom.org/" |
Holger Hans Peter Freyther | d24c97d | 2012-05-30 17:50:06 +0800 | [diff] [blame] | 4 | LICENSE = "AGPLv3+" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 6 | |
| 7 | RDEPENDS_osmo-nitb = "libdbd-sqlite3" |
| 8 | |
| 9 | SRC_URI = "file://osmo-nitb.init \ |
| 10 | file://osmo-bsc_mgcp.init \ |
Harald Welte | 4aad636 | 2013-01-29 19:54:07 +0100 | [diff] [blame] | 11 | file://osmo-bsc.init \ |
| 12 | file://osmo-sgsn.init" |
Harald Welte | 29263f1 | 2013-03-13 15:54:58 +0100 | [diff] [blame] | 13 | INC_PR = "r15.${META_TELEPHONY_OSMO_INC}" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 14 | |
| 15 | |
Harald Welte | 29263f1 | 2013-03-13 15:54:58 +0100 | [diff] [blame] | 16 | EXTRA_OECONF += " --enable-nat --enable-osmo-bsc --enable-smpp" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 17 | |
| 18 | inherit autotools update-rc.d |
| 19 | |
| 20 | # because "${WORKDIR}/git" is not a git repo, it can't figure out the version |
| 21 | do_configure_prepend() { |
| 22 | echo "${PV}" > ${S}/.tarball-version |
| 23 | } |
| 24 | |
| 25 | do_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 Welte | 4aad636 | 2013-01-29 19:54:07 +0100 | [diff] [blame] | 32 | install -m 0660 ${S}/doc/examples/osmo-sgsn/osmo-sgsn.cfg ${D}${sysconfdir}/osmocom/osmo-sgsn.cfg |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 33 | 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 Welte | 4aad636 | 2013-01-29 19:54:07 +0100 | [diff] [blame] | 36 | install -m 0775 ${WORKDIR}/osmo-sgsn.init ${D}${sysconfdir}/init.d/osmo-sgsn |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 37 | |
| 38 | install -d ${D}/var/lib/osmocom |
| 39 | } |
| 40 | |
| 41 | PACKAGES =+ "osmo-bsc osmo-nitb osmo-gbproxy osmo-gbproxy-dbg osmo-sgsn ipaccess-utils osmo-bsc-mgcp osmo-bsc-nat" |
| 42 | |
| 43 | INITSCRIPT_PACKAGES = "osmo-bsc osmo-bsc-mgcp osmo-nitb" |
| 44 | |
| 45 | CONFFILES_osmo-bsc = "${sysconfdir}/osmocom/osmo-bsc.cfg" |
| 46 | INITSCRIPT_NAME_osmo-bsc = "osmo-bsc" |
| 47 | INITSCRIPT_PARAMS_osmo-bsc = "defaults 30 30" |
| 48 | FILES_osmo-bsc = " ${bindir}/osmo-bsc \ |
| 49 | ${sysconfdir}/osmocom/osmo-bsc.cfg \ |
| 50 | ${sysconfdir}/init.d/osmo-bsc" |
| 51 | |
| 52 | CONFFILES_osmo-bsc-mgcp = "${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg" |
| 53 | INITSCRIPT_NAME_osmo-bsc-mgcp = "osmo-bsc-mgcp" |
| 54 | INITSCRIPT_PARAMS_osmo-bsc-mgcp = "defaults 30 30" |
Holger Hans Peter Freyther | e005f8d | 2012-04-14 19:39:29 +0800 | [diff] [blame] | 55 | FILES_osmo-bsc-mgcp = " ${bindir}/osmo-bsc_mgcp \ |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 56 | ${sysconfdir}/osmocom/osmo-bsc-mgcp.cfg \ |
| 57 | ${sysconfdir}/init.d/osmo-bsc-mgcp" |
| 58 | |
| 59 | CONFFILES_osmo-nitb = "${sysconfdir}/osmocom/osmo-nitb.cfg" |
| 60 | INITSCRIPT_NAME_osmo-nitb = "osmo-nitb" |
| 61 | INITSCRIPT_PARAMS_osmo-nitb = "defaults 30 30" |
| 62 | FILES_osmo-nitb = " ${bindir}/osmo-nitb \ |
| 63 | /var/lib/osmocom \ |
| 64 | ${sysconfdir}/init.d/osmo-nitb \ |
| 65 | ${sysconfdir}/osmocom/osmo-nitb.cfg" |
| 66 | |
Harald Welte | 4aad636 | 2013-01-29 19:54:07 +0100 | [diff] [blame] | 67 | CONFFILES_osmo-sgsn = "${sysconfdir}/osmocom/osmo-sgsn.cfg" |
| 68 | INITSCRIPT_NAME_osmo-sgsn = "osmo-sgsn" |
| 69 | INITSCRIPT_PARAMS_osmo-sgsn = "defaults 30 30" |
| 70 | FILES_osmo-sgsn = " ${bindir}/osmo-sgsn \ |
| 71 | ${sysconfdir}/init.d/osmo-sgsn \ |
| 72 | ${sysconfdir}/osmocom/osmo-sgsn.cfg" |
| 73 | |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 74 | FILES_ipaccess-utils = " ${bindir}/ipaccess-find ${bindir}/ipaccess-config ${bindir}/ipaccess-proxy " |
| 75 | FILES_osmo-bsc-nat = " ${bindir}/osmo-bsc_nat " |
| 76 | FILES_osmo-gbproxy = " ${bindir}/osmo-gbproxy " |
| 77 | FILES_osmo-gbproxy-dbg = " ${bindir}/.debug/osmo-gbproxy " |
| 78 | |