Fix/clean several hundred package makefiles
[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 PKG_MD5SUM:=4a9f3298b38d8588f0ffde31b946a47f
15
16 PKG_SOURCE_URL:=@SF/socks-relay
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 PKG_INIT_LEVEL:=60
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/srelay
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=A socks 4/5 proxy server
30 DESCRIPTION:=A socks 4/5 protocol proxy server
31 URL:=http://www.c-wind.com/srelay/
32 endef
33
34 define Package/srelay/conffiles
35 /etc/srelay.conf
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default,--disable-thread)
40 endef
41
42 define Package/srelay/install
43 install -m0755 -d $(1)/usr/bin
44 install -m0755 -d $(1)/etc/init.d
45 $(CP) $(PKG_BUILD_DIR)/srelay $(1)/usr/bin/
46 $(CP) files/srelay.init $(1)/etc/init.d/S$(PKG_INIT_LEVEL)srelay
47 $(CP) files/srelay.conf $(1)/etc
48 chmod 755 $(1)/etc/init.d/S$(PKG_INIT_LEVEL)srelay
49 endef
50
51 $(eval $(call BuildPackage,srelay))