b33290d7a1072d73fc42f782b0704028c9015f08
[openwrt/svn-archive/archive.git] / net / srelay / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=srelay
11 PKG_VERSION:=0.4.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/socks-relay
16 PKG_MD5SUM:=4a9f3298b38d8588f0ffde31b946a47f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/srelay
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libwrap
24 TITLE:=A socks 4/5 proxy server
25 URL:=http://www.c-wind.com/srelay/
26 endef
27
28 define Package/srelay/conffiles
29 /etc/srelay.conf
30 endef
31
32 CONFIGURE_ARGS += \
33 --disable-thread \
34
35 CONFIGURE_VARS += \
36 CPPFLAGS="-DLINUX" \
37
38 define Package/srelay/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
41 $(INSTALL_DIR) $(1)/etc
42 $(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
45 endef
46
47 $(eval $(call BuildPackage,srelay))