| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=tinc
|
|---|
| 6 | PKG_VERSION:=1.0.4
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=63887373dd763f8d90cecc5a3616c363
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
|
|---|
| 11 | http://ftp.yi.se/pub/tinc/ \
|
|---|
| 12 | http://www.mirrors.wiretapped.net/security/network-security/tinc/
|
|---|
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | include $(TOPDIR)/package/rules.mk
|
|---|
| 17 |
|
|---|
| 18 | $(eval $(call PKG_template,TINC,tinc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 22 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 23 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 24 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 25 | LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|---|
| 26 | ./configure \
|
|---|
| 27 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 29 | --build=$(GNU_HOST_NAME) \
|
|---|
| 30 | --program-prefix="" \
|
|---|
| 31 | --program-suffix="" \
|
|---|
| 32 | --prefix=/usr \
|
|---|
| 33 | --exec-prefix=/usr \
|
|---|
| 34 | --bindir=/usr/bin \
|
|---|
| 35 | --datadir=/usr/share \
|
|---|
| 36 | --includedir=/usr/include \
|
|---|
| 37 | --infodir=/usr/share/info \
|
|---|
| 38 | --libdir=/usr/lib \
|
|---|
| 39 | --libexecdir=/usr/lib \
|
|---|
| 40 | --localstatedir=/var \
|
|---|
| 41 | --mandir=/usr/share/man \
|
|---|
| 42 | --sbindir=/usr/sbin \
|
|---|
| 43 | --sysconfdir=/etc \
|
|---|
| 44 | --disable-nls \
|
|---|
| 45 | --enable-largefile \
|
|---|
| 46 | --with-kernel=$(LINUX_DIR) \
|
|---|
| 47 | --with-zlib=$(STAGING_DIR)/usr/ \
|
|---|
| 48 | );
|
|---|
| 49 | touch $@
|
|---|
| 50 |
|
|---|
| 51 | $(WRKBUILD)/.built:
|
|---|
| 52 | rm -rf $(WRKINST)
|
|---|
| 53 | mkdir -p $(WRKINST)
|
|---|
| 54 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 55 | CC=$(TARGET_CC) \
|
|---|
| 56 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 57 | DESTDIR="$(WRKINST)" \
|
|---|
| 58 | all install
|
|---|
| 59 | touch $@
|
|---|
| 60 |
|
|---|
| 61 | $(IPKG_TINC):
|
|---|
| 62 | install -m0755 -d $(IDIR_TINC)/usr/sbin
|
|---|
| 63 | $(CP) $(WRKINST)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
|
|---|
| 64 | $(RSTRIP) $(IDIR_TINC)
|
|---|
| 65 | $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR)
|
|---|
| 66 |
|
|---|