From b1fe8a02a0abcf5b5bbe13cf009a9077b8c7d109 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 17:17:31 +0000 Subject: import setserial-2.17-33.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..977047b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/setserial-2.17.tar.gz diff --git a/.setserial.metadata b/.setserial.metadata new file mode 100644 index 0000000..bca19f0 --- /dev/null +++ b/.setserial.metadata @@ -0,0 +1 @@ +68824494a0b5700f7e999564a59358bf34f79eb1 SOURCES/setserial-2.17.tar.gz diff --git a/SOURCES/setserial-2.17-fhs.patch b/SOURCES/setserial-2.17-fhs.patch new file mode 100644 index 0000000..fa4d62b --- /dev/null +++ b/SOURCES/setserial-2.17-fhs.patch @@ -0,0 +1,23 @@ +--- setserial-2.17/Makefile.in.fhs Wed Jun 14 15:42:39 2000 ++++ setserial-2.17/Makefile.in Wed Jun 14 15:44:25 2000 +@@ -3,6 +3,8 @@ + + srcdir = @srcdir@ + VPATH = @srcdir@ ++bindir = @bindir@ ++mandir = @mandir@ + + VERSION = @RELEASE_VERSION@ + INSTALL = @INSTALL@ +@@ -26,9 +28,8 @@ + nroff -man setserial.8 > setserial.cat + + install: setserial setserial.8 +- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin +- $(STRIP) $(DESTDIR)/bin/setserial +- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8 ++ $(INSTALL_PROGRAM) setserial $(DESTDIR)$(bindir) ++ $(INSTALL_DATA) setserial.8 $(DESTDIR)$(mandir)/man8 + + clean: + $(RM) setserial setserial.o setserial.cat *~ diff --git a/SOURCES/setserial-2.17-rc.patch b/SOURCES/setserial-2.17-rc.patch new file mode 100644 index 0000000..4636629 --- /dev/null +++ b/SOURCES/setserial-2.17-rc.patch @@ -0,0 +1,65 @@ +--- setserial-2.17/rc.serial.rc Thu Jan 27 15:47:30 2000 ++++ setserial-2.17/rc.serial Tue Sep 11 17:54:26 2001 +@@ -19,7 +19,7 @@ + # + + RCLOCKFILE=/var/lock/subsys/serial +-DIRS="/lib/modules/`uname -r`/misc /lib/modules /usr/lib/modules ." ++DIRS="/lib/modules/`uname -r`/kernel/drivers/char /lib/modules/`uname -r`/misc /lib/modules /usr/lib/modules ." + PATH=/bin:/sbin:/usr/bin + DRIVER=serial + DRIVER_NAME=serial +@@ -79,10 +79,11 @@ + + if test $action = stop ; then + if test -n ${SETSERIAL} -a "$LOADED" != "no" -a \ +- `head -1 /etc/serial.conf`X = "###AUTOSAVE###X" ; then ++ "$(head -1 /etc/serial.conf 2>/dev/null)" = "###AUTOSAVE###" ; then + echo -n "Saving state of serial devices... " + grep "^#" /etc/serial.conf > /etc/.serial.conf.new +- ${SETSERIAL} -G -g ${ALLDEVS} >> /etc/.serial.conf.new ++ ${SETSERIAL} -G -g ${ALLDEVS} \ ++ 2>/dev/null >> /etc/.serial.conf.new + mv /etc/serial.conf /etc/.serial.conf.old + mv /etc/.serial.conf.new /etc/serial.conf + echo "done." +@@ -108,22 +109,26 @@ + # If not stop, it must be a start.... + # + +-if test -n $MODULE -a "$LOADED" != "yes" ; then ++if test -n "$MODULE" -a "$LOADED" != "yes" ; then ++ MAPFILE=$(mktemp /tmp/$DRIVER.map.XXXXXX) \ ++ || { echo "Couldn't create secure temporary file"; exit 1; } ++ ERRORS=$(mktemp /tmp/$DRIVER.XXXXXX) \ ++ || { echo "Couldn't create secure temporary file"; exit 1; } + if insmod -fm $MODULE $DRIVER_ARG \ +- > /tmp/$DRIVER.map 2> /tmp/$DRIVER.$$; then :; ++ > "${MAPFILE}" 2> "${ERRORS}"; then :; + else + echo "Couldn't load $DRIVER_NAME driver." +- echo "See error logs in /tmp/$DRIVER.$$" ++ echo "See error logs in ${ERRORS}" + exit 1 + fi +- /bin/rm -f /tmp/$DRIVER.$$ ++ /bin/rm -f "${ERRORS}" + fi + +-if test -f /etc/serial.conf ; then +- if test -n ${SETSERIAL} ; then ++if test -f "/etc/serial.conf" ; then ++ if test -n "${SETSERIAL}" ; then + grep -v ^# < /etc/serial.conf | while read device args + do +- ${SETSERIAL} -z $device $args ++ ${SETSERIAL} -z $device $args 2>/dev/null + done + fi + else +@@ -131,4 +136,4 @@ + fi + + touch ${RCLOCKFILE} +-${SETSERIAL} -bg ${ALLDEVS} ++${SETSERIAL} -bg ${ALLDEVS} 2>/dev/null diff --git a/SOURCES/setserial-2.17-readme.patch b/SOURCES/setserial-2.17-readme.patch new file mode 100644 index 0000000..28d4571 --- /dev/null +++ b/SOURCES/setserial-2.17-readme.patch @@ -0,0 +1,11 @@ +--- setserial-2.17/README.readme Tue Sep 11 17:59:52 2001 ++++ setserial-2.17/README Tue Sep 11 18:00:27 2001 +@@ -13,6 +13,6 @@ + + The simplest way to configure the serial ports is to copy the provided + rc.serial file to the appropriate /etc/rc.d directory. For example, +-to install rc.serial on a RedHat system, copy rc.serial to +-/etc/rc.d/init.d/serial, and then run the command "chkconfig -add serial". ++to install rc.serial on a Fedora system, copy rc.serial to ++/etc/rc.d/init.d/serial, and then run the command "chkconfig --add serial". + diff --git a/SOURCES/setserial-2.17-spelling.patch b/SOURCES/setserial-2.17-spelling.patch new file mode 100644 index 0000000..a857cd0 --- /dev/null +++ b/SOURCES/setserial-2.17-spelling.patch @@ -0,0 +1,11 @@ +--- setserial-2.17/setserial.c.spelling 2003-01-10 17:21:24.000000000 +0000 ++++ setserial-2.17/setserial.c 2003-01-10 17:21:39.000000000 +0000 +@@ -707,7 +707,7 @@ + fprintf(stderr, "\t spd_warp\tuse 460kb instead of 38.4kb\n"); + fprintf(stderr, "\t spd_cust\tuse the custom divisor to set the speed at 38.4kb\n"); + fprintf(stderr, "\t\t\t\t(baud rate = baud_base / custom_divisor)\n"); +- 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"); + fprintf(stderr, "\n"); + fprintf(stderr, "Use a leading '0x' for hex numbers.\n"); + fprintf(stderr, "CAUTION: Using an invalid port can lock up your machine!\n"); diff --git a/SOURCES/setserial-hayesesp.patch b/SOURCES/setserial-hayesesp.patch new file mode 100644 index 0000000..c669d88 --- /dev/null +++ b/SOURCES/setserial-hayesesp.patch @@ -0,0 +1,30 @@ +diff -up setserial-2.17/setserial.c.hayesesp setserial-2.17/setserial.c +--- setserial-2.17/setserial.c.hayesesp 2010-02-15 12:20:59.104048442 +0000 ++++ setserial-2.17/setserial.c 2010-02-15 12:21:42.368924088 +0000 +@@ -356,7 +356,7 @@ void set_multiport(char *device, int fd, + } + #endif + +-#ifdef TIOCGHAYESESP ++#if defined(TIOCGHAYESESP) && defined(HAVE_LINUX_HAYESESP_H) + void print_hayesesp(int fd) + { + struct hayes_esp_config esp; +@@ -453,7 +453,7 @@ void get_serial(char *device) + print_flags(&serinfo, "\tFlags: ", ""); + printf("\n\n"); + +-#ifdef TIOCGHAYESESP ++#if defined(TIOCGHAYESESP) && defined(HAVE_LINUX_HAYESESP_H) + print_hayesesp(fd); + #endif + } else if (verbosity==0) { +@@ -593,7 +593,7 @@ void set_serial(char *device, char ** ar + } + set_multiport(device, fd, &arg); + break; +-#ifdef TIOCGHAYESESP ++#if defined(TIOCGHAYESESP) && defined(HAVE_LINUX_HAYESESP_H) + case CMD_RX_TRIG: + case CMD_TX_TRIG: + case CMD_FLOW_OFF: diff --git a/SPECS/setserial.spec b/SPECS/setserial.spec new file mode 100644 index 0000000..23c7530 --- /dev/null +++ b/SPECS/setserial.spec @@ -0,0 +1,208 @@ +%define _bindir /bin + +Summary: A utility for configuring serial ports +Name: setserial +Version: 2.17 +Release: 33%{?dist} +Source: http://sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: setserial-2.17-fhs.patch +Patch1: setserial-2.17-rc.patch +Patch2: setserial-2.17-readme.patch +Patch3: setserial-2.17-spelling.patch +Patch4: setserial-hayesesp.patch +License: GPL+ +Group: Applications/System +URL: http://setserial.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +ExcludeArch: s390 s390x + +BuildRequires: groff + +%description +Setserial is a basic system utility for displaying or setting serial +port information. Setserial can reveal and allow you to alter the I/O +port and IRQ that a particular serial device is using, and more. + +%prep +%setup -q +# Use FHS directory layout. +%patch0 -p1 -b .fhs + +# Fixed initscript. +%patch1 -p1 -b .rc + +# Corrected readme file. +%patch2 -p1 -b .readme + +# Fixed spelling in help output. +%patch3 -p1 -b .spelling + +# Don't require hayesesp.h (bug #564947). +%patch4 -p1 -b .hayesesp +rm -f config.cache + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf ${RPM_BUILD_ROOT} +mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} +mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8 +make install DESTDIR=${RPM_BUILD_ROOT} + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root,-) +%doc README rc.serial +%{_bindir}/setserial +%{_mandir}/man*/* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 2.17-33 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 2.17-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Sep 21 2012 Tim Waugh 2.17-31 +- Fixed source URL. + +* Sat Jul 21 2012 Fedora Release Engineering - 2.17-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 2.17-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 2.17-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Mar 3 2010 Tim Waugh 2.17-26 +- Added comments for all patches. + +* Mon Feb 15 2010 Tim Waugh 2.17-25 +- Don't require hayesesp.h (bug #564947). + +* Sun Jul 26 2009 Fedora Release Engineering - 2.17-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 2.17-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 11 2008 Tim Waugh 2.17-22 +- Rebuild for GCC 4.3. + +* Wed Aug 29 2007 Tim Waugh 2.17-21 +- More specific license tag. + +* Wed Feb 7 2007 Tim Waugh 2.17-20 +- Fixed mandir in fhs patch (bug #226411). +- Don't run strip (bug #226411). +- Fixed readme patch to talk about Fedora not Red Hat Linux (bug #226411). +- Fixed build root tag (bug #226411). +- Use SMP make flags (bug #226411). +- Avoid %%makeinstall (bug #226411). +- Fixed summary (bug #226411). + +* Wed Jul 12 2006 Jesse Keating - 2.17-19.2.2 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 2.17-19.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 2.17-19.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Mar 2 2005 Tim Waugh 2.17-19 +- Rebuild for new GCC. + +* Wed Feb 9 2005 Tim Waugh 2.17-18 +- Rebuilt. + +* Mon Oct 11 2004 Tim Waugh 2.17-17 +- Spec file tidying by Robert Scheck (bug #135182). + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Nov 27 2003 Tim Waugh 2.17-14 +- Build requires groff (bug #111088). + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Fri Jan 10 2003 Tim Waugh 2.17-11 +- Fix spelling mistake (bug #80896). + +* Wed Nov 20 2002 Tim Powers 2.17-10 +- rebuild in current collinst + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Mon Apr 22 2002 Tim Waugh 2.17-7 +- Don't strip binaries explicitly (bug #62566). + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Tue Sep 11 2001 Tim Waugh 2.17-5 +- Fix init script (bug #52862). +- Avoid temporary file vulnerability in init script. +- Update README: it's --add, not -add. + +* Tue Jun 19 2001 Florian La Roche 2.17-4 +- add ExcludeArch: s390 s390x + +* Wed May 30 2001 Tim Waugh 2.17-3 +- Sync description with specspo. + +* Wed Jul 12 2000 Prospector 2.17-2 +- automatic rebuild + +* Wed Jun 14 2000 Jeff Johnson +- update to 2.17. +- FHS packaging. + +* Mon Feb 7 2000 Jeff Johnson +- compress man pages. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 2) + +* Thu Feb 11 1999 Michael Maher +- fixed bug #363 + +* Thu Dec 17 1998 Michael Maher +- built package for 6.0 + +* Sat Jun 20 1998 Jeff Johnson +- upgraded to 2.1.14 + +* Thu May 07 1998 Prospector System +- translations modified for de, fr, tr + +* Thu Oct 23 1997 Donnie Barnes +- pulled into distribution +- used setserial-2.12_CTI.tgz instead of setserial-2.12.tar.gz (former is + all that sunsite has) - not sure what the difference is. + +* Thu Sep 25 1997 Christian 'Dr. Disk' Hechelmann +- added %%attr's +- added sanity check for RPM_BUILD_ROOT +- setserial is now installed into /bin, where util-linux puts it and all + startup scripts expect it.