blob: 4ab6077459f1a7a53aef8452e20f2866aaf5a4a5 [file] [log] [blame]
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08001DESCRITOPN = "OpenGGSN a Free Software GGSN"
2LICENSE = "GPLv2+"
3LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
4PV = "0.91+gitr${SRCPV}"
Holger Hans Peter Freytherba3023e2011-11-11 21:29:47 +08005PR = "r10"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08006
7SRCREV = "fe5040967513616731d8151b22d26bdf74d65111"
8SRC_URI = "git://ggsn.git.sourceforge.net/gitroot/ggsn/ggsn \
9 file://openggsn.init \
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080010 "
11S = "${WORKDIR}/git"
12
13PACKAGES =+ " libgtp libgtp-dev openggsn-sgsnemu"
14RDEPENDS_${PN} += "kernel-module-tun"
15
16inherit autotools update-rc.d
17
18do_install_append() {
19 install -d ${D}${sysconfdir}/init.d
20 install -m 0776 ${WORKDIR}/openggsn.init ${D}${sysconfdir}/init.d/openggsn
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080021}
22
23INITSCRIPT_PACKAGES = "openggsn"
24
25CONFFILES_openggsn = "${sysconfdir}/ggsn.conf"
26INITSCRIPT_NAME_openggsn = "openggsn"
27INITSCRIPT_PARAMS_openggsn = "defaults 29 29"
28RDEPENDS_${PN} += "iptables kernel-module-ipt-masquerade"
29
30FILES_libgtp = "${libdir}/*${SOLIBS}"
31FILES_libgtp-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la ${libdir}/*.a"
32
33FILES_openggsn-sgsnemu = "${bindir}/sgsnemu"