summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-21 15:53:03 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-21 15:53:03 +0000
commit5beb48bda1cdc43be442acd503effd07514b710f (patch)
tree30d4a864219bd30e3719ad4f3b9c0e0a3e77f323 /sys-apps/setserial
parentinstall symlink for standard getty.1 to agetty.8 #81946 (diff)
downloadhistorical-5beb48bda1cdc43be442acd503effd07514b710f.tar.gz
historical-5beb48bda1cdc43be442acd503effd07514b710f.tar.bz2
historical-5beb48bda1cdc43be442acd503effd07514b710f.zip
Move the init.d script out of baselayout and touchup the manpage #81946.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sys-apps/setserial')
-rw-r--r--sys-apps/setserial/ChangeLog12
-rw-r--r--sys-apps/setserial/Manifest19
-rw-r--r--sys-apps/setserial/files/digest-setserial-2.17-r3 (renamed from sys-apps/setserial/files/digest-setserial-2.17-r2)0
-rwxr-xr-xsys-apps/setserial/files/serial49
-rw-r--r--sys-apps/setserial/files/setserial-2.17-manpage-updates.patch36
-rw-r--r--sys-apps/setserial/files/setserial-2.17-spelling.patch7
-rw-r--r--sys-apps/setserial/setserial-2.17-r3.ebuild (renamed from sys-apps/setserial/setserial-2.17-r2.ebuild)19
7 files changed, 122 insertions, 20 deletions
diff --git a/sys-apps/setserial/ChangeLog b/sys-apps/setserial/ChangeLog
index e02b592d3c90..416d8b05efaa 100644
--- a/sys-apps/setserial/ChangeLog
+++ b/sys-apps/setserial/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/setserial
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.9 2004/07/01 21:39:10 eradicator Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.10 2005/02/21 15:53:03 vapier Exp $
+
+*setserial-2.17-r3 (21 Feb 2005)
+
+ 21 Feb 2005; Mike Frysinger <vapier@gentoo.org> +files/serial,
+ +files/setserial-2.17-manpage-updates.patch,
+ +files/setserial-2.17-spelling.patch, -setserial-2.17-r2.ebuild,
+ +setserial-2.17-r3.ebuild:
+ Move the init.d script out of baselayout and touchup the manpage #81946.
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
setserial-2.17-r2.ebuild:
diff --git a/sys-apps/setserial/Manifest b/sys-apps/setserial/Manifest
index ff713ae55507..939d4d52df10 100644
--- a/sys-apps/setserial/Manifest
+++ b/sys-apps/setserial/Manifest
@@ -1,14 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 917b7e0530336509a96c2000f22c1d75 ChangeLog 1187
+MD5 e23d74c2192a3308ac0c8cc916c67293 ChangeLog 1502
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 279435915a0914305c6099672f5923a4 setserial-2.17-r2.ebuild 811
-MD5 752580a351299fe15119ebcdaa13b3ea files/digest-setserial-2.17-r2 65
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBmPzOHTu7gpaalycRAqo/AKD3JooV1Gsqh5YMaXvld4rpopgGTgCg1Nnf
-TAU1n3/gVmLfDrnIh4PlOps=
-=CGTn
------END PGP SIGNATURE-----
+MD5 f5906cab88b80916b9681b8ba7b399d5 setserial-2.17-r3.ebuild 967
+MD5 0682f2f5228b0463da3d2405a301c132 files/setserial-2.17-spelling.patch 283
+MD5 33e5a769e532d070876a18ece512dd2f files/setserial-2.17-manpage-updates.patch 1041
+MD5 4a3c53fc994998ba959e123b697d6d97 files/serial 1041
+MD5 752580a351299fe15119ebcdaa13b3ea files/digest-setserial-2.17-r3 65
diff --git a/sys-apps/setserial/files/digest-setserial-2.17-r2 b/sys-apps/setserial/files/digest-setserial-2.17-r3
index 5e0ac4b25833..5e0ac4b25833 100644
--- a/sys-apps/setserial/files/digest-setserial-2.17-r2
+++ b/sys-apps/setserial/files/digest-setserial-2.17-r3
diff --git a/sys-apps/setserial/files/serial b/sys-apps/setserial/files/serial
new file mode 100755
index 000000000000..d1b35dbf1c18
--- /dev/null
+++ b/sys-apps/setserial/files/serial
@@ -0,0 +1,49 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial,v 1.1 2005/02/21 15:53:03 vapier Exp $
+
+depend() {
+ need localmount
+}
+
+moduleinserted() {
+ local res=$(grep 'serial' /proc/modules | cut -f1 -d" ")
+ [[ ${res} == "serial" ]] && return 1
+}
+
+setports() {
+ #if serial module exists, and it's not inserted, insert it permanently
+ if [[ -f /lib/modules/$(uname -r)/misc/serial.o ]] ; then
+ moduleinserted
+ if [[ $? -eq 0 ]] ; then
+ /sbin/insmod serial 1>&2
+ fi
+ fi
+
+ if [[ -e /etc/serial.conf ]] ; then
+ grep -v "^#\|^ \|^$" /etc/serial.conf | while read device args
+ do
+ ebegin "Setting $device to $args"
+ ${SETSERIAL} -b $device $args 1>&2
+ if [[ $? -gt 0 ]] ; then
+ eend 1 "Error setting serial port $device $args"
+ no_errs=0
+ else
+ eend 0
+ done="${done} /dev/$1"
+ fi
+ done
+ fi
+}
+
+start() {
+ SETSERIAL="/bin/setserial"
+ no_errs=1
+ done=""
+ setports
+ return
+}
+
+
+# vim:ts=4
diff --git a/sys-apps/setserial/files/setserial-2.17-manpage-updates.patch b/sys-apps/setserial/files/setserial-2.17-manpage-updates.patch
new file mode 100644
index 000000000000..02f4a454a3d5
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-manpage-updates.patch
@@ -0,0 +1,36 @@
+--- setserial-2.17/setserial.8.in
++++ setserial-2.17/setserial.8.in
+@@ -34,7 +34,7 @@
+ program should be used. Typically it is called from an
+-.I rc.serial
++.I serial
+ script, which is usually run out of
+-.IR /etc/rc.local .
++.IR /etc/init.d/ .
+
+ The
+ .I device
+@@ -78,7 +78,7 @@
+ .B \-b
+ When reporting the configuration of a serial device, print a summary
+ of the device's configuration, which might be suitable for printing
+-during the bootup process, during the /etc/rc script.
++during the bootup process, in the /etc/init.d/serial script.
+ .TP
+ .B \-G
+ Print out the configuration information of the serial port in a form which
+@@ -504,12 +504,9 @@
+ CAUTION: Configuring a serial port to use an incorrect I/O port
+ can lock up your machine.
+ .SH FILES
+-.BR /etc/rc.local
+-.BR /etc/rc.serial
++.BR /etc/serial.conf
+ .SH "SEE ALSO"
+-.BR tty (4),
+-.BR ttys (4),
+-kernel/chr_drv/serial.c
++.BR tty (4)
+ .SH AUTHOR
+ The original version of setserial was written by Rick Sladkey
+ (jrs@world.std.com), and was modified by Michael K. Johnson
diff --git a/sys-apps/setserial/files/setserial-2.17-spelling.patch b/sys-apps/setserial/files/setserial-2.17-spelling.patch
new file mode 100644
index 000000000000..49ac5f41e72b
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-spelling.patch
@@ -0,0 +1,7 @@
+Ripped from Fedora.
+
+--- setserial-2.17/setserial.c
++++ setserial-2.17/setserial.c
+@@ -710,1 +710,1 @@
+- fprintf(stderr, "\t spd_normal\tuse 38.4kb when a buad rate of 38.4kb is selected\n");
++ fprintf(stderr, "\t spd_normal\tuse 38.4kb when a baud rate of 38.4kb is selected\n");
diff --git a/sys-apps/setserial/setserial-2.17-r2.ebuild b/sys-apps/setserial/setserial-2.17-r3.ebuild
index 88f122815dde..f022ade20bc7 100644
--- a/sys-apps/setserial/setserial-2.17-r2.ebuild
+++ b/sys-apps/setserial/setserial-2.17-r3.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r2.ebuild,v 1.26 2004/11/15 18:59:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r3.ebuild,v 1.1 2005/02/21 15:53:03 vapier Exp $
+
+inherit eutils
DESCRIPTION="Configure your serial ports with it"
HOMEPAGE="http://setserial.sourceforge.net/"
@@ -12,7 +14,12 @@ SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE=""
-DEPEND="virtual/libc"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-spelling.patch
+ epatch "${FILESDIR}"/${P}-manpage-updates.patch
+}
src_compile() {
econf || die
@@ -24,9 +31,11 @@ src_install() {
into /
dobin setserial || die
+ insinto /etc
+ doins serial.conf
+ doinitd "${FILESDIR}"/serial
+
dodoc README
docinto txt
dodoc Documentation/*
- insinto /etc
- doins serial.conf
}