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