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