nico d1cac1e535 use Build/Configure/Default macro, Makefile cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-28 22:43:08 +00:00

52 lines
1.3 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
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
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/setserial
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Serial port configuration utility
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.
URL:=http://setserial.sourceforge.net/
endef
# uses GNU configure
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
all
endef
define Package/setserial/install
install -d -m0755 $(1)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/serial.init $(1)/etc/init.d/setserial
endef
$(eval $(call BuildPackage,setserial))