3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=13631507b8eeee5d6e8fd245dc3eef4f
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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,TOR
,tor
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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 \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
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)" \
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
/
75 $(IPKG_BUILD
) $(IDIR_TOR
) $(PACKAGE_DIR
)
This page took 0.037474 seconds and 5 git commands to generate.