Add missing symbol type
[openwrt.git] / openwrt / package / vtun / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := vtun
6 PKG_VERSION := 2.6
7 PKG_RELEASE := 1
8 PKG_MD5SUM := 309534fd03c5d13a19c43916f61f4bbf
9
10 PKG_SOURCE_URL := @SF/vtun
11 PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
13 PKG_CAT := zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR) ; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS) \
23 -I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --datadir=/usr/share \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --localstatedir=/var \
38 --sysconfdir=/etc \
39 --with-kernel=$(LINUX_DIR) \
40 --with-zlib=$(STAGING_DIR)/usr/ \
41 --with-lzo-headers=$(STAGING_DIR)/usr/include \
42 --with-lzo-libs=$(STAGING_DIR)/usr/lib \
43 $(DISABLE_NLS) )
44 touch $(PKG_BUILD_DIR)/.configured
45
46 $(PKG_BUILD_DIR)/.built:
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 CC=$(TARGET_CC) \
49 CFLAGS="$(TARGET_CFLAGS) \
50 -I$(STAGING_DIR)/usr/include" \
51 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lssl -lz -llzo -lcrypto" \
52 vtund
53 touch $@
54
55 $(IPKG_VTUN):
56 mkdir -p $(IDIR_VTUN)/usr/sbin
57 cp $(PKG_BUILD_DIR)/vtund $(IDIR_VTUN)/usr/sbin/
58 $(STRIP) $(IDIR_VTUN)/usr/sbin/*
59 mkdir -p $(IDIR_VTUN)/etc
60 cp $(PKG_BUILD_DIR)/vtund.conf $(IDIR_VTUN)/etc
61 $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
This page took 0.04137 seconds and 5 git commands to generate.