2d3d18bb4ca010c8aaa5cf5a9f517cbae83daf74
[packages.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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/setserial
25   SECTION:=utils
26   CATEGORY:=Utilities
27   TITLE:=Serial port configuration utility
28   DESCRIPTION:=\
29         setserial  is a program designed to set and/or report the \\\
30         configuration information associated with a serial port. This \\\
31         information  includes what I/O port and IRQ a particular \\\
32         serial port is using, and whether or not the break key should \\\
33         be interpreted as the Secure Attention Key, and so on.
34   URL:=http://setserial.sourceforge.net/
35 endef
36
37 # uses GNU configure
38
39 define Build/Compile
40         $(MAKE) -C $(PKG_BUILD_DIR) \
41                 all
42 endef
43
44 define Package/setserial/install
45         install -d -m0755 $(1)/usr/sbin
46         install -m0755 $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
47         install -d -m0755 $(1)/etc/init.d
48         install -m0755 ./files/serial.init $(1)/etc/init.d/setserial
49 endef
50
51 $(eval $(call BuildPackage,setserial))