summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-01-15 08:42:34 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-01-15 08:42:34 +0000
commit2f82e74edb12fb9122574e036413803f9c50caad (patch)
tree15450190a57ac35ef2ecf81406166045afc6af99 /sys-apps
parentAdd pkgconfig dep, bug #205757; use latest automake (diff)
downloadgentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.tar.gz
gentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.tar.bz2
gentoo-2-2f82e74edb12fb9122574e036413803f9c50caad.zip
Implement stty keyword per bug #103423.
(Portage version: 2.1.4)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/setserial/ChangeLog10
-rw-r--r--sys-apps/setserial/files/digest-setserial-2.17-r43
-rwxr-xr-xsys-apps/setserial/files/serial-2.17-r435
-rw-r--r--sys-apps/setserial/setserial-2.17-r4.ebuild43
4 files changed, 89 insertions, 2 deletions
diff --git a/sys-apps/setserial/ChangeLog b/sys-apps/setserial/ChangeLog
index 8393d19f7bdb..8a86401e9450 100644
--- a/sys-apps/setserial/ChangeLog
+++ b/sys-apps/setserial/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/setserial
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.14 2007/06/13 07:51:51 vapier Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.15 2008/01/15 08:42:34 robbat2 Exp $
+
+*setserial-2.17-r4 (15 Jan 2008)
+
+ 15 Jan 2008; Robin H. Johnson <robbat2@gentoo.org> +files/serial-2.17-r4,
+ +setserial-2.17-r4.ebuild:
+ Implement stty keyword per bug #103423.
13 Jun 2007; Mike Frysinger <vapier@gentoo.org> files/serial:
Cleanup init.d script and throw out a lot of old stuff.
diff --git a/sys-apps/setserial/files/digest-setserial-2.17-r4 b/sys-apps/setserial/files/digest-setserial-2.17-r4
new file mode 100644
index 000000000000..065ea13c3be6
--- /dev/null
+++ b/sys-apps/setserial/files/digest-setserial-2.17-r4
@@ -0,0 +1,3 @@
+MD5 c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz 52437
+RMD160 91b87e203f9469dc9c5586652a5231a10cf53cc8 setserial-2.17.tar.gz 52437
+SHA256 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a setserial-2.17.tar.gz 52437
diff --git a/sys-apps/setserial/files/serial-2.17-r4 b/sys-apps/setserial/files/serial-2.17-r4
new file mode 100755
index 000000000000..faa29d15bf62
--- /dev/null
+++ b/sys-apps/setserial/files/serial-2.17-r4
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial-2.17-r4,v 1.1 2008/01/15 08:42:34 robbat2 Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ [ ! -e /etc/serial.conf ] && return 0
+
+ # load the module if need be
+ if [ -e /proc/modules ] ; then
+ modprobe -q serial
+ fi
+
+ grep -v "^#\|^ \|^$|^stty" /etc/serial.conf | while read device args
+ do
+ ebegin "Setting ${device} to $args"
+ setserial -b ${device} ${args}
+ eend $?
+ done
+ grep "^stty" /etc/serial.conf | while read x device args
+ do
+ ebegin "Setting (stty) ${device} to $args"
+ stty -F ${device} ${args}
+ eend $?
+ done
+
+ return 0
+}
+
+
+# vim:ts=4
diff --git a/sys-apps/setserial/setserial-2.17-r4.ebuild b/sys-apps/setserial/setserial-2.17-r4.ebuild
new file mode 100644
index 000000000000..9a58edbd70ec
--- /dev/null
+++ b/sys-apps/setserial/setserial-2.17-r4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r4.ebuild,v 1.1 2008/01/15 08:42:34 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="Configure your serial ports with it"
+HOMEPAGE="http://setserial.sourceforge.net/"
+SRC_URI="ftp://tsx-11.mit.edu/pub/linux/sources/sbin/${P}.tar.gz
+ ftp://ftp.sunsite.org.uk/Mirrors/tsx-11.mit.edu/pub/linux/sources/sbin/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-spelling.patch
+ epatch "${FILESDIR}"/${P}-manpage-updates.patch
+ epatch "${FILESDIR}"/${P}-headers.patch
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ econf || die
+ emake setserial || die
+}
+
+src_install() {
+ doman setserial.8
+ into /
+ dobin setserial || die
+
+ insinto /etc
+ doins serial.conf
+ newinitd "${FILESDIR}"/serial-2.17-r4 serial
+
+ dodoc README
+ docinto txt
+ dodoc Documentation/*
+}