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