vtun: install without -o -g
[vuplus_openembedded] / vtun / vtun_2.6.oe
1 DESCRIPTION = "Virtual Tunnels over TCP/IP networks with traffic shaping, compression and encryption."
2 SECTION = "console/network"
3 PRIORITY = "optional"
4 LICENSE = "GPL"
5 DEPENDS = "zlib lzo"
6
7 SRC_URI = "${SOURCEFORGE_MIRROR}/vtun/vtun-${PV}.tar.gz \
8         file://init \
9         file://makefile.in-ldflags.patch;patch=1;pnum=0"
10
11 S = "${WORKDIR}/vtun"
12
13 inherit autotools
14
15 do_configure() {
16         export BLOWFISH_HDR_DIR=${STAGING_INCDIR}/openssl
17         oe_runconf --with-lzo-headers=${STAGING_INCDIR} --with-ssl-headers=${STAGING_INCDIR}/openssl
18 }
19
20 do_install() {
21         oe_runmake INSTALL_OWNER="" DESTDIR=${D} install
22         install -d ${D}${sysconfdir}/init.d/
23         install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/vtund
24         install ${S}/scripts/vtund-start.conf ${D}${sysconfdir}
25 }