generic-poky/meta-telephony/recipes-osmocom/openggsn/openggsn_git.bb

39 lines
1.2 KiB
BlitzBasic
Raw Normal View History

2011-11-11 13:26:06 +00:00
DESCRITOPN = "OpenGGSN a Free Software GGSN"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
PV = "0.91+gitr${SRCPV}"
PR = "r12"
2011-11-11 13:26:06 +00:00
SRCREV = "9c0ff4fafe4276396125a52c89d36967566fe08c"
SRC_URI = "git://git.osmocom.org/openggsn \
2011-11-11 13:26:06 +00:00
file://openggsn.init \
file://libgtp-queue_depth_32.patch \
2011-11-11 13:26:06 +00:00
"
S = "${WORKDIR}/git"
PACKAGES =+ " libgtp libgtp-dev libgtp-staticdev openggsn-sgsnemu"
2011-11-11 13:26:06 +00:00
RDEPENDS_${PN} += "kernel-module-tun"
inherit autotools update-rc.d
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -d ${D}${systemd_unitdir}/system
2011-11-11 13:26:06 +00:00
install -m 0776 ${WORKDIR}/openggsn.init ${D}${sysconfdir}/init.d/openggsn
install -m 0644 ${S}/contrib/openggsn.service ${D}${systemd_unitdir}/system/
2011-11-11 13:26:06 +00:00
}
INITSCRIPT_PACKAGES = "openggsn"
INITSCRIPT_NAME_openggsn = "openggsn"
INITSCRIPT_PARAMS_openggsn = "defaults 29 29"
RDEPENDS_${PN} += "iptables kernel-module-ipt-masquerade"
FILES_libgtp = "${libdir}/*${SOLIBS}"
FILES_libgtp-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la"
FILES_libgtp-staticdev = "${libdir}/*.a"
2011-11-11 13:26:06 +00:00
FILES_openggsn-sgsnemu = "${bindir}/sgsnemu"
FILES_${PN} += "${systemd_unitdir}/system/*"