• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/vtun/vtun.mk
Peter KorsgaardPeter Korsgaard committed ac1d92c425408 Dec 2008
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
#############################################################
2
#
3
# vtun
4
#
5
# NOTE: Uses start-stop-daemon in init script, so be sure
6
# to enable that within busybox
7
#
8
#############################################################
9
VTUN_VERSION:=2.6
10
VTUN_SOURCE:=vtun-$(VTUN_VERSION).tar.gz
11
VTUN_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/vtun/
12
VTUN_DIR:=$(BUILD_DIR)/vtun-$(VTUN_VERSION)
13
VTUN_CAT:=$(ZCAT)
14
VTUN_BINARY:=vtund
15
VTUN_TARGET_BINARY:=usr/sbin/vtund
16
​
17
$(DL_DIR)/$(VTUN_SOURCE):
18
     $(WGET) -P $(DL_DIR) $(VTUN_SITE)/$(VTUN_SOURCE)
19
​
20
vtun-source: $(DL_DIR)/$(VTUN_SOURCE)
21
​
22
$(VTUN_DIR)/.unpacked: $(DL_DIR)/$(VTUN_SOURCE)
23
    $(VTUN_CAT) $(DL_DIR)/$(VTUN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24
    mv $(BUILD_DIR)/vtun $(VTUN_DIR)
25
    toolchain/patch-kernel.sh $(VTUN_DIR) package/vtun/ vtun\*.patch
26
    touch $(VTUN_DIR)/.unpacked
27
​
28
$(VTUN_DIR)/.configured: $(VTUN_DIR)/.unpacked
29
    (cd $(VTUN_DIR); rm -rf config.cache; \
30
        $(TARGET_CONFIGURE_OPTS) \
31
        $(TARGET_CONFIGURE_ARGS) \
32
        ./configure \
33
        --target=$(GNU_TARGET_NAME) \
34
        --host=$(GNU_TARGET_NAME) \
35
        --build=$(GNU_HOST_NAME) \
36
        --prefix=/usr \
37
        --exec-prefix=/usr \
38
        --bindir=/usr/bin \
39
        --sbindir=/usr/sbin \
40
        --libdir=/lib \
41
        --libexecdir=/usr/lib \
42
        --sysconfdir=/etc \
43
        --datadir=/usr/share \
44
        --localstatedir=/var \
45
        --mandir=/usr/man \
46
        --infodir=/usr/info \
47
        --with-ssl-headers=$(STAGING_DIR)/usr/include/openssl \
48
        --with-lzo-headers=$(STAGING_DIR)/usr/include \
49
        --with-lzo-lib=$(STAGING_DIR)/usr/lib \
50
    )
51
    touch $(VTUN_DIR)/.configured
52
​
53
$(VTUN_DIR)/$(VTUN_BINARY): $(VTUN_DIR)/.configured
54
    $(MAKE) -C $(VTUN_DIR)
55
​
56
$(TARGET_DIR)/$(VTUN_TARGET_BINARY): $(VTUN_DIR)/$(VTUN_BINARY)
57
    $(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) install
58
    rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
59
        $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
60
​
61
vtun: uclibc zlib lzo openssl $(TARGET_DIR)/$(VTUN_TARGET_BINARY)
62
​
63
vtun-clean:
64
    $(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) uninstall
65
    -$(MAKE) -C $(VTUN_DIR) clean
66
​
67
vtun-dirclean:
68
    rm -rf $(VTUN_DIR)
69
​
70
#############################################################
71
#
72
# Toplevel Makefile options
73
#
74
#############################################################
75
ifeq ($(BR2_PACKAGE_VTUN),y)
76
TARGETS+=vtun
77
endif
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.