3 include $(TOPDIR
)/rules.mk
8 PKG_UPSTREAM_VERSION
=0.1.0.8-rc
9 PKG_MD5SUM
:=22f5c162e1c09f8693a21826f6a9999f
11 PKG_SOURCE_URL
:=http
://tor.eff.org
/dist/ \
12 http
://ftp.se.linux.org
/crypto
/tor
/ \
13 http
://tor.meulie.net
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_UPSTREAM_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_UPSTREAM_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,TOR
,tor
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 ac_cv_libevent_normal
=yes \
31 ac_cv_openssldir
="$(STAGING_DIR)/usr" \
32 tor_cv_null_is_zero
=yes \
33 tor_cv_unaligned_ok
=yes \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
59 $(PKG_BUILD_DIR
)/.built
:
60 rm -rf
$(PKG_INSTALL_DIR
)
61 mkdir
-p
$(PKG_INSTALL_DIR
)
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
69 install -d
-m0755
$(IDIR_TOR
)/etc
/init.d
70 install -m0755 .
/files
/tor.init
$(IDIR_TOR
)/etc
/init.d
/tor
71 install -d
-m0755
$(IDIR_TOR
)/etc
/tor
72 install -m0644 .
/files
/torrc
$(IDIR_TOR
)/etc
/tor
/torrc
73 install -d
-m0755
$(IDIR_TOR
)/usr
/sbin
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/tor
$(IDIR_TOR
)/usr
/sbin
/
76 $(IPKG_BUILD
) $(IDIR_TOR
) $(PACKAGE_DIR
)