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