summaryrefslogtreecommitdiff
path: root/sys-apps/setserial
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/setserial
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/setserial')
-rw-r--r--sys-apps/setserial/Manifest13
-rw-r--r--sys-apps/setserial/files/serial-2.17-r422
-rw-r--r--sys-apps/setserial/files/setserial-2.17-build.patch11
-rw-r--r--sys-apps/setserial/files/setserial-2.17-darwin.patch33
-rw-r--r--sys-apps/setserial/files/setserial-2.17-hayes-esp.patch15
-rw-r--r--sys-apps/setserial/files/setserial-2.17-headers.patch12
-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/metadata.xml11
-rw-r--r--sys-apps/setserial/setserial-2.17-r4.ebuild45
-rw-r--r--sys-apps/setserial/setserial-2.17-r5.ebuild44
11 files changed, 249 insertions, 0 deletions
diff --git a/sys-apps/setserial/Manifest b/sys-apps/setserial/Manifest
new file mode 100644
index 000000000000..98c7c8133139
--- /dev/null
+++ b/sys-apps/setserial/Manifest
@@ -0,0 +1,13 @@
+AUX serial-2.17-r4 504 SHA256 70136c1057e58b345b16d6a0436b4c09fd1ce54e1b5069f70b5fb35507fed061 SHA512 91e8be9fafdefc5dbdde832c3d0c85c5b99203fba65f1e934b390efc4c19ca74ec5fd5656f389152fa2b46e7d74d7cce33728a01d6b3413bc398f33a7dc19378 WHIRLPOOL 74727c6a80fa4e3a527310bfd0efdcae62a74135952ca4306fa4433cea579b6d918eca86ed8ea9d8cb885e8fd6cc7f215792c11f441ac958ba8dc4d2941a8d82
+AUX setserial-2.17-build.patch 322 SHA256 9d85006b3560c0def69eff8574d81e8d92a41adb4967bc51d2863c49ab90fc2d SHA512 558843dc66398c6050e9fe4b26b18ece2c100a3bab746b6bcc538c92639bd3a8bb05f132e37a1d9601c030da2ce16c8736696ed013d8a663ab353c8cbcbd5ced WHIRLPOOL fe651f90235f33aea382deb583699bc21a61ae749c2f991efd7535e84b29f996c4881f03e4d3cc83a48c86ebcdfd99b4186ba62118f0c48549721df41b647f46
+AUX setserial-2.17-darwin.patch 755 SHA256 ada24169fe75a3457a2a173e3b3caf1a36f631a846c065f0515cac4a8cd88654 SHA512 de95f5c0c7a5b371b97919091c60450bdeb8ebf543882def97537d558b540dc830699abe5d6b6bf341f74bd172273504eb7ede538b652cd1da7702c4d39f1bd2 WHIRLPOOL 14cbe2e232430aefc0e78e0c2911bce3d71c64a970922d7b1deb8c2ea1e758871818e5e7fd4bc535a781314f6792eadf129eeceee4a8035c24995ba6a18caad6
+AUX setserial-2.17-hayes-esp.patch 278 SHA256 b5de7517a40a827fb60083a1956f2e104a3916008f38279ad632217d87b69735 SHA512 f7e272d3acae953823550dc84c0fdc1e5cb33c7417fb44fedd5b13a211926ac51cb82eeaa19005f0d1a6b41edf365452016dfa5768891a7bc5028d910e8bbd47 WHIRLPOOL 6603d237f2408343734b2956d12e2182fbca3b54e66c25a7a20ab8f886df9ca43da2d6268515c1e5999b8c4fcd50eb72d5500ce04a94d808e66427c2765428d8
+AUX setserial-2.17-headers.patch 236 SHA256 14a6a052e4fd37cdd2b7fbd094494022dcbb311a76a0872ac9cc1560829d0460 SHA512 1c849d17fe67fedda59d8cd11015339131ce09dd280e1a5df67726009bbe974693bdd006c5f16dc1f76f37d48e84b4997dbe65446059ac54aad7551cb3972009 WHIRLPOOL 5a4ae48c57581eb106dc35c71d044f2da6fb55e0959d8704a9d421efc83f1aa7290b5e00cb4e00bd3b08493101f9eb7815ae4f2b6c487ac62d09d01f1dcecb80
+AUX setserial-2.17-manpage-updates.patch 1015 SHA256 f6e8e1f997bc6ff41599cbeda6b838de6b2a7a0628d5f53ea6d48441809adc4d SHA512 6041894014b3d139a8c2d59460003310c17aee407dab2fa3713f98ea2c29fd347906f68f3d988f052cbee45de43fa00afadc4359b562bfd34fd4931b48505cf8 WHIRLPOOL 77d9a136850d2d2da51fbe064babf743c33a3c090bce81c379fc9174c1975e2a030726c593f699c80166497072b2d07c51d1d1d41762cccdbff4c72fb7a66e39
+AUX setserial-2.17-spelling.patch 257 SHA256 d3eebac588db8a2d7b429fa8e9c238d7e182e937040f4b1669f61534de87ee58 SHA512 7511c46d4676cdd34d8abb0c124ca514d9d970078ea1cd03396b7e9699ec3fc2c0ff3ff04f01a50dd3fe28244ce75078566f8fe21aca89d063b939f1c2cb354c WHIRLPOOL 53778d0f969991957fbb8b59ff59e815f1d0e65056645bb0240670388e197269b3e92140f1a5ca2c54de5a573f79c07eab482a21d94af271a5bf9c901488ef29
+DIST setserial-2.17.tar.gz 52437 SHA256 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a SHA512 27b4918d303302dfdbca2f8c4fe500685068cfbf3de70b4907bac5a9cdb2e643656c1d821e714c08723abcfbaf99129866002117450bef731a0a09cd38138645 WHIRLPOOL a27a04c111acc8e51874116d6e4f62701f4df5d30ba0e1fdadb6e94644710ec3228a8a419cc5d905d837eb63498d62ee4c08454773dab8eb859a50c6602bd276
+EBUILD setserial-2.17-r4.ebuild 1075 SHA256 7306f597afe085d2d73a01bee964aad0f9550bac4b05f7ea01967ce3b67d633f SHA512 358e3802389eab9aa24edd99ca22cfa7c1e16dcd7ffeb8251d56c70a1b36993eb31c067edd9d669b5b8ce74c5786e53e5de6da76592a32c721a181d825123b14 WHIRLPOOL 67505aff0bbfd0862219577c16c8d9fde8e3ebdf5cd516c67dafae37df5373a9569127fc99b485524f937a07030bcb6c5af3edc61c10da9dde7300a67bcc64c3
+EBUILD setserial-2.17-r5.ebuild 959 SHA256 8d7b016c69b15ab7f21a35237b2837a76ab579ed0c2c94fc243ede65f08aa187 SHA512 ffc2adf7fb6bc9245c0d2ea7ef3ac7213cec84009103a01ecdf10347aaa6d828d520e1c73b167d5f6095a89fb13277ebf97c084251ee45d8c3fcc2a83d5ef5fa WHIRLPOOL 3147fdf70eb8047f6c657215170d0d79e20c66e1a32f17e880e53799e8919ffda8c49ea2acf684abad6ea75ecc1b0a42595c611ac5a2b1df9366cc79b554b4c6
+MISC ChangeLog 3755 SHA256 f9e778062de1594ebd5706117bcc98b7ad4352eb90d5009f62dedfc355ba2b96 SHA512 e18d7487ba76392256cb6b1f58da3739b262373944e4937da9ce098d810a45c975bf98c1e6c5e0bf8f0724d3b0ef4a66e8a030f68bb971bb08d5700467dd85fa WHIRLPOOL f751356bccde1c94e4341fa6e1c6351597bf03da8daf0a216308cfb4842de670d66f71d5f463fe4146b62c2c57727def9c3925ffe5436516a49828e138375b90
+MISC ChangeLog-2015 3444 SHA256 030333153cfbede2a1cdd3054d725ac277906eba1295c02b4cfa79fc4ba3dc36 SHA512 07983254500ac282372e8b9a1709a5318e1f53215e0a35f5d99401c53d87c8bffbd681dd7cdfc639bf51415f451cb796a6b4395386b519b86782c0089eb0a48a WHIRLPOOL ae91973b3646cc5e7aec0593e4e4807d72009b8af7fd090650e14c470fcd26abc5e4c2affa47501d4e660581fee5308b454942e7efcb8fc3af96b35569465d80
+MISC metadata.xml 329 SHA256 ac883ada79e856674e152f7fcf0a650b21f3f8199ab1c5d94525a7c22c061d30 SHA512 7eb699d04a9f2d0c39997818037f6ba309499afd0b1635d3b2c28389331f19753928d78e69e4cad0b98de11335c350f092153357360bbc8b00d941400d1e2981 WHIRLPOOL e18b09b5a890936e51c19cbe93acaa1b10bc7aedeeb557649781145dbaa995fc5bd0533cdcfdd22700860d28b24374b3b307f0ab8b71662ac3ed8cf321be0e42
diff --git a/sys-apps/setserial/files/serial-2.17-r4 b/sys-apps/setserial/files/serial-2.17-r4
new file mode 100644
index 000000000000..fca37d67a480
--- /dev/null
+++ b/sys-apps/setserial/files/serial-2.17-r4
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7e7ea25c8a06
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-build.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/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-darwin.patch b/sys-apps/setserial/files/setserial-2.17-darwin.patch
new file mode 100644
index 000000000000..681f793383cd
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-darwin.patch
@@ -0,0 +1,33 @@
+https://541536.bugs.gentoo.org/attachment.cgi?id=397618
+https://bugs.gentoo.org/show_bug.cgi?id=541536
+
+diff --git a/setserial.c b/setserial.c
+index 3474402..3ce8009 100644
+--- a/setserial.c
++++ b/setserial.c
+@@ -31,6 +31,25 @@
+
+ #include "version.h"
+
++#ifdef __APPLE__
++// see http://www.insanelymac.com/forum/topic/155999-compiling-setserial-on-mac-os-x/
++#ifndef TIOCGSERIAL
++#define TIOCGSERIAL 0x541E
++#endif
++#ifndef TIOCSERCONFIG
++#define TIOCSERCONFIG 0x5453
++#endif
++#ifndef TIOCSSERIAL
++#define TIOCSSERIAL 0x541F
++#endif
++#ifndef TIOCSERGWILD
++#define TIOCSERGWILD 0x5454
++#endif
++#ifndef TIOCSERSWILD
++#define TIOCSERSWILD 0x5455
++#endif
++#endif
++
+ static char version_str[] = "setserial version " SETSERIAL_VERSION ", "
+ SETSERIAL_DATE;
+
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 <linux/hayesesp.h>
++#else
++#undef TIOCGHAYESESP
+ #endif
+ #include <linux/serial.h>
+
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..f8aed4c4862c
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-headers.patch
@@ -0,0 +1,12 @@
+--- a/setserial.c
++++ b/setserial.c
+@@ -15,6 +15,9 @@
+ #include <termios.h>
+ #include <string.h>
+ #include <errno.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <sys/ioctl.h>
+
+ #ifdef HAVE_ASM_IOCTLS_H
+ #include <asm/ioctls.h>
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..3e6b7f016197
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-manpage-updates.patch
@@ -0,0 +1,36 @@
+--- a/setserial.8.in
++++ b/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..5275d4fa44c4
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-spelling.patch
@@ -0,0 +1,7 @@
+Ripped from Fedora.
+
+--- a/setserial.c
++++ b/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..8b2e572c528e
--- /dev/null
+++ b/sys-apps/setserial/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+<upstream>
+ <remote-id type="sourceforge">setserial</remote-id>
+</upstream>
+</pkgmetadata>
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..ef2843bfe222
--- /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
+
+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
+ epatch "${FILESDIR}"/${P}-darwin.patch #541536
+}
+
+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/*
+}
diff --git a/sys-apps/setserial/setserial-2.17-r5.ebuild b/sys-apps/setserial/setserial-2.17-r5.ebuild
new file mode 100644
index 000000000000..2eaa330900e5
--- /dev/null
+++ b/sys-apps/setserial/setserial-2.17-r5.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-spelling.patch
+ "${FILESDIR}"/${P}-manpage-updates.patch
+ "${FILESDIR}"/${P}-headers.patch
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-hayes-esp.patch
+ "${FILESDIR}"/${P}-darwin.patch
+)
+
+src_compile() {
+ tc-export CC
+ emake "${PN}"
+}
+
+src_install() {
+ doman "${PN}.8"
+ into /
+ dobin "${PN}"
+
+ insinto /etc
+ doins serial.conf
+ newinitd "${FILESDIR}"/serial-2.17-r4 serial
+
+ einstalldocs
+ docinto txt
+ dodoc Documentation/*
+}