2008-06-15 18:19:53 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-07-24 15:33:48 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=setserial
|
|
|
|
PKG_VERSION:=2.17
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/setserial
|
|
|
|
PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/setserial
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Serial port configuration utility
|
|
|
|
URL:=http://setserial.sourceforge.net/
|
2010-06-21 21:55:06 +00:00
|
|
|
SUBMENU:=Terminal
|
2006-07-24 15:33:48 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/setserial/description
|
|
|
|
setserial is a program designed to set and/or report the
|
|
|
|
configuration information associated with a serial port. This
|
|
|
|
information includes what I/O port and IRQ a particular
|
|
|
|
serial port is using, and whether or not the break key should
|
|
|
|
be interpreted as the Secure Attention Key, and so on.
|
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
# uses GNU configure
|
2006-07-24 15:33:48 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2008-06-15 18:19:53 +00:00
|
|
|
setserial
|
2006-07-24 15:33:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/setserial/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/serial.init $(1)/etc/init.d/setserial
|
2006-07-24 15:33:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,setserial))
|