0dd36734031b03502829606f215ac2a4024c257e
[packages.git] / net / ser2net / 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:=ser2net
12 PKG_VERSION:=2.5
13 PKG_RELEASE:=1
14  
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ser2net
17 PKG_MD5SUM:=c11f36ff2e4c523be7b282f2f6d03638
18         
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ser2net
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=Serial port TCP/IP redirector
25   URL:=http://sourceforge.net/projects/ser2net/
26 endef
27
28 define Package/ser2net/description
29         This is ser2net, a program for allowing network connections to serial 
30         ports. See the man page for information about using the program. Note 
31         that ser2net supports RFC 2217 (remote control of serial port parameters), 
32         but you must have a complient client.
33 endef
34
35 define Package/ser2net/conffiles
36 /etc/ser2net.conf
37 endef
38
39 # uses GNU configure
40
41 define Build/Compile    
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46  
47 define Package/ser2net/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/
50         $(INSTALL_DIR) $(1)/etc
51         $(CP) $(PKG_BUILD_DIR)/ser2net.conf $(1)/etc/
52 endef
53
54 $(eval $(call BuildPackage,ser2net))