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