From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sys-apps/setserial/Manifest | 1 + sys-apps/setserial/files/serial-2.17-r4 | 23 +++++++++++ .../setserial/files/setserial-2.17-build.patch | 11 ++++++ .../setserial/files/setserial-2.17-hayes-esp.patch | 15 ++++++++ .../setserial/files/setserial-2.17-headers.patch | 12 ++++++ .../files/setserial-2.17-manpage-updates.patch | 36 +++++++++++++++++ .../setserial/files/setserial-2.17-spelling.patch | 7 ++++ sys-apps/setserial/metadata.xml | 5 +++ sys-apps/setserial/setserial-2.17-r4.ebuild | 45 ++++++++++++++++++++++ 9 files changed, 155 insertions(+) create mode 100644 sys-apps/setserial/Manifest create mode 100755 sys-apps/setserial/files/serial-2.17-r4 create mode 100644 sys-apps/setserial/files/setserial-2.17-build.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-hayes-esp.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-headers.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-manpage-updates.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-spelling.patch create mode 100644 sys-apps/setserial/metadata.xml create mode 100644 sys-apps/setserial/setserial-2.17-r4.ebuild (limited to 'sys-apps/setserial') diff --git a/sys-apps/setserial/Manifest b/sys-apps/setserial/Manifest new file mode 100644 index 000000000000..2f1b8f00d3af --- /dev/null +++ b/sys-apps/setserial/Manifest @@ -0,0 +1 @@ +DIST setserial-2.17.tar.gz 52437 RMD160 91b87e203f9469dc9c5586652a5231a10cf53cc8 SHA1 68824494a0b5700f7e999564a59358bf34f79eb1 SHA256 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a 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..974cf9382852 --- /dev/null +++ b/sys-apps/setserial/files/serial-2.17-r4 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() { + [ ! -e /etc/serial.conf ] && return 0 + + 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 +} diff --git a/sys-apps/setserial/files/setserial-2.17-build.patch b/sys-apps/setserial/files/setserial-2.17-build.patch new file mode 100644 index 000000000000..d3f3d69cead6 --- /dev/null +++ b/sys-apps/setserial/files/setserial-2.17-build.patch @@ -0,0 +1,11 @@ +--- Makefile.in ++++ Makefile.in +@@ -20,7 +20,7 @@ + all: setserial setserial.cat + + setserial: setserial.c +- $(CC) $(CFLAGS) $(DEFS) $(INCS) setserial.c -o setserial ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial + + setserial.cat: setserial.8 + nroff -man setserial.8 > setserial.cat diff --git a/sys-apps/setserial/files/setserial-2.17-hayes-esp.patch b/sys-apps/setserial/files/setserial-2.17-hayes-esp.patch new file mode 100644 index 000000000000..72783553c214 --- /dev/null +++ b/sys-apps/setserial/files/setserial-2.17-hayes-esp.patch @@ -0,0 +1,15 @@ +recent versions of linux have dropped the hayes esp driver + +http://bugs.gentoo.org/309883 + +--- a/setserial.c ++++ b/setserial.c +@@ -21,6 +21,8 @@ + #endif + #ifdef HAVE_LINUX_HAYESESP_H + #include ++#else ++#undef TIOCGHAYESESP + #endif + #include + diff --git a/sys-apps/setserial/files/setserial-2.17-headers.patch b/sys-apps/setserial/files/setserial-2.17-headers.patch new file mode 100644 index 000000000000..a6d5f38e3e60 --- /dev/null +++ b/sys-apps/setserial/files/setserial-2.17-headers.patch @@ -0,0 +1,12 @@ +--- setserial.c ++++ setserial.c +@@ -15,6 +15,9 @@ + #include + #include + #include ++#include ++#include ++#include + + #ifdef HAVE_ASM_IOCTLS_H + #include 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/metadata.xml b/sys-apps/setserial/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/setserial/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + 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..e15f4fb1483f --- /dev/null +++ b/sys-apps/setserial/setserial-2.17-r4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +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 + epatch "${FILESDIR}"/${P}-hayes-esp.patch #309883 +} + +src_compile() { + tc-export CC + 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/* +} -- cgit v1.2.3-65-gdbad