blob: f1ce1ea2c1332dd3c9a4bbb8ca82ec659970b959 [file] [log] [blame]
Neels Hofmeyr1804aa82017-03-29 16:45:51 +02001DESCRIPTION = "OsmoHNBGW, libosmo-ranap"
Daniel Willmann708c4592017-05-08 15:51:26 +02002DEPENDS = "libosmocore libosmo-abis libosmo-netif libosmo-sccp libasn1c"
Neels Hofmeyr1804aa82017-03-29 16:45:51 +02003HOMEPAGE = "http://osmocom.org/projects/cellular-infrastructure"
4LICENSE = "AGPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
6
Daniel Willmann631c3392017-08-01 03:39:09 +02007SRC_URI = "file://osmo-hnbgw.init \
8 file://osmo-hnbgw.service"
Neels Hofmeyr1804aa82017-03-29 16:45:51 +02009
10INC_PR = "r1.${META_TELEPHONY_OSMO_INC}"
11
12#EXTRA_OECONF += " "
13
14inherit autotools update-rc.d pkgconfig
15
16# because "${WORKDIR}/git" is not a git repo, it can't figure out the version
17do_configure_prepend() {
18 echo "${PV}" > ${S}/.tarball-version
19}
20
21do_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 Willmann631c3392017-08-01 03:39:09 +020036 install -m 0644 ${WORKDIR}/osmo-hnbgw.service ${D}${systemd_unitdir}/system/
37
Neels Hofmeyr1804aa82017-03-29 16:45:51 +020038 install -d ${D}/var/lib/osmocom
39}
40
41PACKAGES =+ "osmo-hnbgw libosmo-ranap"
42
43INITSCRIPT_PACKAGES = "osmo-hnbgw"
44
45# Do not start any of the services by default
46SYSTEMD_AUTO_ENABLE = "disable"
47
48CONFFILES_osmo-hnbgw = "${sysconfdir}/osmocom/osmo-hnbgw.cfg"
49INITSCRIPT_NAME_osmo-hnbgw = "osmo-hnbgw"
50INITSCRIPT_PARAMS_osmo-hnbgw = "defaults 30 30"
51FILES_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# ?????
59FILES_libosmo-ranap = " ${libdir}/libosmo-ranap "