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 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_UPSTREAM_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_UPSTREAM_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,TOR
,tor
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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 \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
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)" \
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
/
74 $(IPKG_BUILD
) $(IDIR_TOR
) $(PACKAGE_DIR
)