Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / vtun / vtun_2.6.oe
1 DESCRIPTION = "Virtual Tunnels over TCP/IP networks with traffic shaping, compression and encryption."
2 HOMEPAGE = "http://vtun.sourceforge.net/"
3 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
4 SECTION = "console/network"
5 PRIORITY = "optional"
6 LICENSE = "GPL"
7 DEPENDS = "zlib lzo"
8
9 SRC_URI = "${SOURCEFORGE_MIRROR}/vtun/vtun-${PV}.tar.gz \
10         file://init \
11         file://makefile.in-ldflags.patch;patch=1;pnum=0"
12
13 S = "${WORKDIR}/vtun"
14
15 inherit autotools
16
17 do_configure() {
18         export BLOWFISH_HDR_DIR=${STAGING_INCDIR}/openssl
19         oe_runconf --with-lzo-headers=${STAGING_INCDIR} --with-ssl-headers=${STAGING_INCDIR}/openssl
20 }
21
22 do_install() {
23         oe_runmake INSTALL_OWNER="" DESTDIR=${D} install
24         install -d ${D}${sysconfdir}/init.d/
25         install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/vtund
26         install ${S}/scripts/vtund-start.conf ${D}${sysconfdir}
27 }
28
29 CONFFILES_${PN}_nylon = "${sysconfdir}/vtund-start.conf"