source: freewrt/package/vtun/Makefile@ b917538

freewrt_1_0 freewrt_2_0
Last change on this file since b917538 was b917538, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • sync with changes in trunk
  • lzo2 instead of lzo
  • fix tinc/vtun build
  • security update for openssh/openssl
  • update for iproute2,openvpn,openntpd, iptables and ipp, openswan
  • disable ipv6 in busybox, autoselect this feature for all ipv6 related packages
  • add better startup scripts for openssh and openntpd

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@800 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= vtun
10PKG_VERSION:= 2.6
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 309534fd03c5d13a19c43916f61f4bbf
13
14PKG_SOURCE_URL:= @SF/vtun
15
16WRKSRC= ${WRKDIR}/$(PKG_NAME)
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD) ; rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LIBS="-L$(STAGING_DIR)/usr/lib" \
28 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
29 LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \
30 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 --enable-largefile \
50 --disable-nls \
51 )
52 touch $@
53
54$(WRKBUILD)/.built:
55 $(MAKE) -C $(WRKBUILD) \
56 vtund
57 touch $@
58
59$(IPKG_VTUN):
60 install -m0755 -d $(IDIR_VTUN)/etc
61 install -m0600 $(WRKBUILD)/vtund.conf $(IDIR_VTUN)/etc/
62 install -m0755 -d $(IDIR_VTUN)/usr/sbin
63 install -m0755 $(WRKBUILD)/vtund $(IDIR_VTUN)/usr/sbin/
64 $(RSTRIP) $(IDIR_VTUN)
65 $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.