c7e0013ff27c878ed398522e40e9314f517086e4
[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 DESCRIPTION:=\
30 This is ser2net, a program for allowing network connections to serial \\\
31 ports. See the man page for information about using the program. Note \\\
32 that ser2net supports RFC 2217 (remote control of serial port parameters), \\\
33 but you must have a complient client.
34 URL:=http://sourceforge.net/projects/ser2net/
35 endef
36
37 define Package/ser2net/conffiles
38 /etc/ser2net.conf
39 endef
40
41 # uses GNU configure
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/ser2net/install
50 install -d -m0755 $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/
52 install -d -m0755 $(1)/etc
53 $(CP) $(PKG_BUILD_DIR)/ser2net.conf $(1)/etc/
54 endef
55
56 $(eval $(call BuildPackage,ser2net))