switch to permissive branch, due not all applications handle the "deny-all"-rule...
[openwrt/svn-archive/archive.git] / utils / setserial / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=setserial
11 PKG_VERSION:=2.17
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/setserial
16 PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/setserial
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=Serial port configuration utility
26 URL:=http://setserial.sourceforge.net/
27 SUBMENU:=terminal
28 endef
29
30 define Package/setserial/description
31 setserial is a program designed to set and/or report the
32 configuration information associated with a serial port. This
33 information includes what I/O port and IRQ a particular
34 serial port is using, and whether or not the break key should
35 be interpreted as the Secure Attention Key, and so on.
36 endef
37
38 # uses GNU configure
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 setserial
43 endef
44
45 define Package/setserial/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/serial.init $(1)/etc/init.d/setserial
50 endef
51
52 $(eval $(call BuildPackage,setserial))