init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[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
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/srelay
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A socks 4/5 proxy server
29 DESCRIPTION:=A socks 4/5 protocol proxy server
30 URL:=http://www.c-wind.com/srelay/
31 endef
32
33 define Package/srelay/conffiles
34 /etc/srelay.conf
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default,--disable-thread)
39 endef
40
41 define Package/srelay/install
42 install -m0755 -d $(1)/usr/bin
43 install -m0755 -d $(1)/etc/init.d
44 install -m0755 $(PKG_BUILD_DIR)/srelay $(1)/usr/bin/
45 install -m0755 files/srelay.init $(1)/etc/init.d/srelay
46 install -m0644 files/srelay.conf $(1)/etc
47 endef
48
49 $(eval $(call BuildPackage,srelay))