enable telnet client by default
[openwrt.git] / openwrt / package / tor / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=tor
6 PKG_VERSION:=0.1.0.8rc
7 PKG_RELEASE:=1
8 PKG_UPSTREAM_VERSION=0.1.0.8-rc
9 PKG_MD5SUM:=22f5c162e1c09f8693a21826f6a9999f
10
11 PKG_SOURCE_URL:=http://tor.eff.org/dist/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,TOR,tor,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
28 ac_cv_libevent_normal=yes \
29 ac_cv_openssldir="$(STAGING_DIR)/usr" \
30 tor_cv_null_is_zero=yes \
31 tor_cv_unaligned_ok=yes \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/sbin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --enable-shared \
53 --disable-static \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 CFLAGS="$(TARGET_CFLAGS) -Wall" \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_TOR):
67 install -d -m0755 $(IDIR_TOR)/etc/init.d
68 install -m0755 ./files/tor.init $(IDIR_TOR)/etc/init.d/tor
69 install -d -m0755 $(IDIR_TOR)/etc/tor
70 install -m0644 ./files/torrc $(IDIR_TOR)/etc/tor/torrc
71 install -d -m0755 $(IDIR_TOR)/usr/sbin
72 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/tor $(IDIR_TOR)/usr/sbin/
73 $(RSTRIP) $(IDIR_TOR)
74 $(IPKG_BUILD) $(IDIR_TOR) $(PACKAGE_DIR)
75
This page took 0.039672 seconds and 5 git commands to generate.