aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-osmocom/osmo-ggsn/osmo-ggsn_git.bb
blob: 969c4bf19164cac8330fbc2320fa02c4e76cfcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DESCRIPTION = "Osmocom GGSN implementation"
HOMEPAGE = "https://osmocom.org/projects/openggsn"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
PV = "1.1.0+gitr${SRCPV}"
PR = "r0"

SRCREV = "4f0343233b83337afa1e1dfb4bcf9d076ecd4be2"
SRC_URI = "git://git.osmocom.org/osmo-ggsn                   \
           file://osmo-ggsn.init                             \
	   file://libgtp-queue_depth_32.patch		    \
          "
S = "${WORKDIR}/git"

DEPENDS = "libosmocore"

PACKAGES =+ " libgtp libgtp-dev libgtp-staticdev osmo-sgsnemu"
RDEPENDS_${PN} += "iptables kernel-module-ipt-masquerade kernel-module-tun"

inherit autotools update-rc.d pkgconfig systemd

do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${systemd_system_unitdir}/
	install -d ${D}/${sysconfdir}/osmocom/

	install -m 0776 ${WORKDIR}/osmo-ggsn.init ${D}${sysconfdir}/init.d/osmo-ggsn
	install -m 0644 ${S}/contrib/osmo-ggsn.service ${D}${systemd_system_unitdir}/
	install -m 0644 ${S}/doc/examples/osmo-ggsn.cfg ${D}${sysconfdir}/osmocom/
}

SYSTEMD_SERVICE_osmo-ggsn = "osmo-ggsn.service"

INITSCRIPT_PACKAGES = "osmo-ggsn"
INITSCRIPT_NAME_osmo-ggsn = "osmo-ggsn"
INITSCRIPT_PARAMS_osmo-ggsn = "defaults 29 29"

CONFFILES_osmo-ggsn = "${sysconfdir}/osmocom/osmo-ggsn.cfg"

FILES_libgtp = "${libdir}/*${SOLIBS}"
FILES_libgtp-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la"
FILES_libgtp-staticdev = "${libdir}/*.a"

FILES_osmo-sgsnemu = "${bindir}/sgsnemu"