Neels Hofmeyr | 1804aa8 | 2017-03-29 16:45:51 +0200 | [diff] [blame] | 1 | DESCRIPTION = "OsmoHNBGW, libosmo-ranap" |
Daniel Willmann | 708c459 | 2017-05-08 15:51:26 +0200 | [diff] [blame] | 2 | DEPENDS = "libosmocore libosmo-abis libosmo-netif libosmo-sccp libasn1c" |
Neels Hofmeyr | 1804aa8 | 2017-03-29 16:45:51 +0200 | [diff] [blame] | 3 | HOMEPAGE = "http://osmocom.org/projects/cellular-infrastructure" |
| 4 | LICENSE = "AGPLv3+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 6 | |
Daniel Willmann | 631c339 | 2017-08-01 03:39:09 +0200 | [diff] [blame^] | 7 | SRC_URI = "file://osmo-hnbgw.init \ |
| 8 | file://osmo-hnbgw.service" |
Neels Hofmeyr | 1804aa8 | 2017-03-29 16:45:51 +0200 | [diff] [blame] | 9 | |
| 10 | INC_PR = "r1.${META_TELEPHONY_OSMO_INC}" |
| 11 | |
| 12 | #EXTRA_OECONF += " " |
| 13 | |
| 14 | inherit autotools update-rc.d pkgconfig |
| 15 | |
| 16 | # because "${WORKDIR}/git" is not a git repo, it can't figure out the version |
| 17 | do_configure_prepend() { |
| 18 | echo "${PV}" > ${S}/.tarball-version |
| 19 | } |
| 20 | |
| 21 | do_install_append() { |
| 22 | install -d ${D}${sysconfdir}/osmocom |
| 23 | install -m 0660 ${S}/doc/examples/osmo-hnbgw.cfg ${D}${sysconfdir}/osmocom/osmo-hnbgw.cfg |
| 24 | |
| 25 | # Install sysv-init files |
| 26 | install -d ${D}${sysconfdir}/init.d |
| 27 | install -d ${D}${sysconfdir}/rc5.d |
| 28 | install -m 0775 ${WORKDIR}/osmo-hnbgw.init ${D}${sysconfdir}/init.d/osmo-hnbgw |
| 29 | |
| 30 | # Install systemd files and enable on sysinit |
| 31 | install -d ${D}${systemd_unitdir}/system |
| 32 | for i in `ls ${S}/contrib/systemd`; do |
| 33 | install -m 0644 ${S}/contrib/systemd/$i ${D}${systemd_unitdir}/system/ |
| 34 | done |
| 35 | |
Daniel Willmann | 631c339 | 2017-08-01 03:39:09 +0200 | [diff] [blame^] | 36 | install -m 0644 ${WORKDIR}/osmo-hnbgw.service ${D}${systemd_unitdir}/system/ |
| 37 | |
Neels Hofmeyr | 1804aa8 | 2017-03-29 16:45:51 +0200 | [diff] [blame] | 38 | install -d ${D}/var/lib/osmocom |
| 39 | } |
| 40 | |
| 41 | PACKAGES =+ "osmo-hnbgw libosmo-ranap" |
| 42 | |
| 43 | INITSCRIPT_PACKAGES = "osmo-hnbgw" |
| 44 | |
| 45 | # Do not start any of the services by default |
| 46 | SYSTEMD_AUTO_ENABLE = "disable" |
| 47 | |
| 48 | CONFFILES_osmo-hnbgw = "${sysconfdir}/osmocom/osmo-hnbgw.cfg" |
| 49 | INITSCRIPT_NAME_osmo-hnbgw = "osmo-hnbgw" |
| 50 | INITSCRIPT_PARAMS_osmo-hnbgw = "defaults 30 30" |
| 51 | FILES_osmo-hnbgw = " ${bindir}/osmo-hnbgw \ |
| 52 | /var/lib/osmocom \ |
| 53 | ${sysconfdir}/init.d/osmo-hnbgw \ |
| 54 | ${sysconfdir}/osmocom/osmo-hnbgw.cfg \ |
| 55 | ${systemd_unitdir}/system/osmo-hnbgw.service \ |
| 56 | " |
| 57 | |
| 58 | # ????? |
| 59 | FILES_libosmo-ranap = " ${libdir}/libosmo-ranap " |