2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/setserial
18 PKG_MD5SUM
:=c4867d72c41564318e0107745eb7a0f2
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/setserial
28 TITLE
:=Serial port configuration utility
29 DESCRIPTION
:=Serial port configuration utility.
\\\
30 setserial is a program designed to set and
/or report the
\\\
31 configuration information associated with a serial port. This
\\\
32 information includes what I
/O port and IRQ a particular
\\\
33 serial port is using
, and whether or not the break key should
\\\
34 be interpreted
as the Secure Attention Key
, and so on.
35 URL
:=http
://setserial.sourceforge.net
/
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
40 $(TARGET_CONFIGURE_OPTS
) \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
50 --datadir=/usr
/share \
51 --includedir=/usr
/include \
52 --infodir=/usr
/share
/info \
54 --libexecdir
=/usr
/lib \
55 --localstatedir
=/var \
56 --mandir=/usr
/share
/man \
59 $(DISABLE_LARGEFILE
) \
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 define Package
/setserial
/install
70 install -d
-m0755
$(1)/etc
/init.d
71 install -m0755 .
/files
/serial.init
$(1)/etc
/init.d
/setserial
72 ln
-sf setserial
$(1)/etc
/init.d
/S
$(PKG_INIT_PRIO
)setserial
73 install -d
-m0755
$(1)/usr
/sbin
74 install -m0755
$(PKG_BUILD_DIR
)/setserial
$(1)/usr
/sbin
/
77 $(eval
$(call BuildPackage
,setserial
))