[arch-commits] Commit in setserial/trunk (PKGBUILD ioctls.patch)

Giovanni Scafora giovanni at nymeria.archlinux.org
Wed Mar 26 18:09:37 UTC 2014


    Date: Wednesday, March 26, 2014 @ 19:09:36
  Author: giovanni
Revision: 108318

upgpkg: setserial 2.17-5

Fixed FS39575

Added:
  setserial/trunk/ioctls.patch
Modified:
  setserial/trunk/PKGBUILD

--------------+
 PKGBUILD     |   17 +++++++++++++----
 ioctls.patch |   14 ++++++++++++++
 2 files changed, 27 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-26 17:16:58 UTC (rev 108317)
+++ PKGBUILD	2014-03-26 18:09:36 UTC (rev 108318)
@@ -4,7 +4,7 @@
 
 pkgname=setserial
 pkgver=2.17
-pkgrel=4
+pkgrel=5
 pkgdesc="Allows to change various attributes of a serial device"
 arch=('i686' 'x86_64')
 url="http://setserial.sourceforge.net/"
@@ -11,14 +11,22 @@
 license=('GPL')
 depends=('glibc')
 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-        "$pkgname.patch")
+        'setserial.patch'
+        'ioctls.patch')
 md5sums=('c4867d72c41564318e0107745eb7a0f2'
-         '99919d3be7c1550721494070a7ace66a')
+         '99919d3be7c1550721494070a7ace66a'
+         'cafef036654b3145638864026afd2c87')
 
+prepare(){
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  patch -Np1 -i "${srcdir}/setserial.patch"
+  patch -Np1 -i "${srcdir}/ioctls.patch"
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
-  patch -Np1 -i ../$pkgname.patch
   ./configure --prefix=/usr \
               --mandir=/usr/share/man
   make
@@ -26,6 +34,7 @@
 
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  
   install -d ${pkgdir}/usr/{bin,share/man/man8}
   make DESTDIR="${pkgdir}" install
 }

Added: ioctls.patch
===================================================================
--- ioctls.patch	                        (rev 0)
+++ ioctls.patch	2014-03-26 18:09:36 UTC (rev 108318)
@@ -0,0 +1,14 @@
+--- a/setserial.c	2000-01-27 16:40:52.000000000 +0100
++++ b/setserial.c	2014-03-26 18:53:04.720749160 +0100
+@@ -15,10 +15,8 @@
+ #include <termios.h>
+ #include <string.h>
+ #include <errno.h>
+-
+-#ifdef HAVE_ASM_IOCTLS_H
+ #include <asm/ioctls.h>
+-#endif
++
+ #ifdef HAVE_LINUX_HAYESESP_H
+ #include <linux/hayesesp.h>
+ #endif




More information about the arch-commits mailing list