add srelay package, i have seen a description in our wiki
[openwrt.git] / openwrt / package / srelay / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=srelay
6 PKG_VERSION:=0.4.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4a9f3298b38d8588f0ffde31b946a47f
9
10 PKG_SOURCE_URL:=@SF/socks-relay
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,SRELAY,srelay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 --disable-thread \
44 $(DISABLE_NLS) \
45 $(DISABLE_LARGEFILE) \
46 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 rm -rf $(PKG_INSTALL_DIR)
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CC=$(TARGET_CC) \
54 all
55 cp $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR)
56 touch $@
57
58 $(IPKG_SRELAY):
59 install -m0755 -d $(IDIR_SRELAY)/usr/bin
60 install -m0755 -d $(IDIR_SRELAY)/etc/init.d
61 cp $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/
62 cp files/S60srelay $(IDIR_SRELAY)/etc/init.d
63 chmod 755 $(IDIR_SRELAY)/etc/init.d/S60srelay
64 $(RSTRIP) $(IDIR_SRELAY)
65 $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR)
This page took 0.050586 seconds and 5 git commands to generate.