| 1 | # $Id: Makefile 1410 2005-07-11 20:26:57Z nbd $
|
|---|
| 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 |
|
|---|
| 13 | WRKSRC:=${WRKDIR}/$(PKG_NAME)
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD) ; rm -rf config.{cache,status} ; \
|
|---|
| 21 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 22 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 23 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 24 | LIBS="-L$(STAGING_DIR)/usr/lib" \
|
|---|
| 25 | BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
|---|
| 26 | LZO_HDR_DIR="$(STAGING_DIR)/usr/include" \
|
|---|
| 27 | SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
|---|
| 28 | ./configure \
|
|---|
| 29 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 30 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 31 | --build=$(GNU_HOST_NAME) \
|
|---|
| 32 | --program-prefix="" \
|
|---|
| 33 | --program-suffix="" \
|
|---|
| 34 | --prefix=/usr \
|
|---|
| 35 | --exec-prefix=/usr \
|
|---|
| 36 | --bindir=/usr/bin \
|
|---|
| 37 | --datadir=/usr/share \
|
|---|
| 38 | --includedir=/usr/include \
|
|---|
| 39 | --infodir=/usr/share/info \
|
|---|
| 40 | --libdir=/usr/lib \
|
|---|
| 41 | --libexecdir=/usr/lib \
|
|---|
| 42 | --localstatedir=/var \
|
|---|
| 43 | --mandir=/usr/share/man \
|
|---|
| 44 | --sbindir=/usr/sbin \
|
|---|
| 45 | --sysconfdir=/etc \
|
|---|
| 46 | --enable-largefile \
|
|---|
| 47 | --disable-nls \
|
|---|
| 48 | )
|
|---|
| 49 | touch $@
|
|---|
| 50 |
|
|---|
| 51 | $(WRKBUILD)/.built:
|
|---|
| 52 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 53 | vtund
|
|---|
| 54 | touch $@
|
|---|
| 55 |
|
|---|
| 56 | $(IPKG_VTUN):
|
|---|
| 57 | install -m0755 -d $(IDIR_VTUN)/etc
|
|---|
| 58 | install -m0600 $(WRKBUILD)/vtund.conf $(IDIR_VTUN)/etc/
|
|---|
| 59 | install -m0755 -d $(IDIR_VTUN)/usr/sbin
|
|---|
| 60 | install -m0755 $(WRKBUILD)/vtund $(IDIR_VTUN)/usr/sbin/
|
|---|
| 61 | $(RSTRIP) $(IDIR_VTUN)
|
|---|
| 62 | $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
|
|---|