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