ceca8351e40a18bc6b5256340c4038d46d720693
[openwrt/svn-archive/archive.git] / utils / setserial / 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:=setserial
12 PKG_VERSION:=2.17
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/setserial
17 PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/setserial
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Serial port configuration utility
27 URL:=http://setserial.sourceforge.net/
28 SUBMENU:=terminal
29 endef
30
31 define Package/setserial/description
32 setserial is a program designed to set and/or report the
33 configuration information associated with a serial port. This
34 information includes what I/O port and IRQ a particular
35 serial port is using, and whether or not the break key should
36 be interpreted as the Secure Attention Key, and so on.
37 endef
38
39 # uses GNU configure
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 all
44 endef
45
46 define Package/setserial/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/serial.init $(1)/etc/init.d/setserial
51 endef
52
53 $(eval $(call BuildPackage,setserial))