From 53939c2b159d972c48fc2f3652408632c71be77b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Sep 2013 02:12:10 -0700 Subject: Mon Sep 2 02:09:45 PDT 2013 --- community/java-rxtx/PKGBUILD | 57 +++++++++++++++++++++++++++++ community/java-rxtx/rxtx-2.2-fhs_lock.patch | 13 +++++++ community/java-rxtx/rxtx-2.2-lock.patch | 12 ++++++ community/java-rxtx/rxtx.install | 3 ++ community/java-rxtx/ttyACM_port.patch | 28 ++++++++++++++ community/java-rxtx/utsrelease.patch | 36 ++++++++++++++++++ community/lxpolkit/PKGBUILD | 28 ++++++++++++++ community/nbd/PKGBUILD | 8 ++-- community/openbox/PKGBUILD | 10 ++--- community/unbound/PKGBUILD | 7 ++-- 10 files changed, 189 insertions(+), 13 deletions(-) create mode 100644 community/java-rxtx/PKGBUILD create mode 100644 community/java-rxtx/rxtx-2.2-fhs_lock.patch create mode 100644 community/java-rxtx/rxtx-2.2-lock.patch create mode 100644 community/java-rxtx/rxtx.install create mode 100644 community/java-rxtx/ttyACM_port.patch create mode 100644 community/java-rxtx/utsrelease.patch create mode 100644 community/lxpolkit/PKGBUILD (limited to 'community') diff --git a/community/java-rxtx/PKGBUILD b/community/java-rxtx/PKGBUILD new file mode 100644 index 000000000..7a7abe7d9 --- /dev/null +++ b/community/java-rxtx/PKGBUILD @@ -0,0 +1,57 @@ +# $Id: PKGBUILD 96583 2013-09-01 22:03:57Z bgyorgy $ +# Maintainer: Balló György +# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua + +pkgname=java-rxtx +_pkgname=rxtx +pkgver=2.2pre2 +pkgrel=1 +pkgdesc="Java library for serial IO" +arch=('i686' 'x86_64') +url="http://rxtx.qbang.org/" +license=('LGPL') +depends=('glibc' 'java-runtime') +makedepends=('java-environment') +options=('!libtool') +provides=("$_pkgname-$pkgver") +replaces=("$_pkgname") +install=$_pkgname.install +source=(http://rxtx.qbang.org/pub/$_pkgname/$_pkgname-$pkgver.zip + utsrelease.patch + rxtx-2.2-lock.patch + rxtx-2.2-fhs_lock.patch + ttyACM_port.patch) +md5sums=('7eedb18e3f33a427e2b0e9be8ce3f94c' + '2f21ec5eb108f871815242698b6150f1' + '1f7c43d582bfe9daea22d7f7057436da' + 'f4d22d263f45cd1d4db6242dd0ac78ae' + '903a3fe0067d0682dd5f64483c741df6') + +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + + # Fix build + patch -Np1 -i "$srcdir/utsrelease.patch" + + # Fix lockdir patch + patch -Np1 -i "$srcdir/rxtx-2.2-lock.patch" + + # Fix buffer overflow + patch -Np1 -i "$srcdir/rxtx-2.2-fhs_lock.patch" + + # Enable more ports + patch -Np1 -i "$srcdir/ttyACM_port.patch" +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static + make -j1 +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + mkdir -p "$pkgdir"/usr/{lib,share/java/rxtx} + make JHOME="$pkgdir/usr/share/java/rxtx" RXTX_PATH="$pkgdir/usr/lib" install +} diff --git a/community/java-rxtx/rxtx-2.2-fhs_lock.patch b/community/java-rxtx/rxtx-2.2-fhs_lock.patch new file mode 100644 index 000000000..5ec0685c2 --- /dev/null +++ b/community/java-rxtx/rxtx-2.2-fhs_lock.patch @@ -0,0 +1,13 @@ +--- ./src/SerialImp.c.orig 2011-03-17 14:42:48.946047373 -0500 ++++ ./src/SerialImp.c 2011-03-17 14:46:01.244904859 -0500 +@@ -5291,8 +5291,8 @@ + * + */ + int fd,j; +- char lockinfo[12], message[80]; +- char file[80], *p; ++ char lockinfo[12], message[200]; ++ char file[200], *p; + + j = strlen( filename ); + p = ( char * ) filename + j; diff --git a/community/java-rxtx/rxtx-2.2-lock.patch b/community/java-rxtx/rxtx-2.2-lock.patch new file mode 100644 index 000000000..c418fc4ad --- /dev/null +++ b/community/java-rxtx/rxtx-2.2-lock.patch @@ -0,0 +1,12 @@ +diff -up ./src/SerialImp.h.lock ./src/SerialImp.h +--- ./src/SerialImp.h.lock 2010-11-09 15:59:54.891179571 +0100 ++++ ./src/SerialImp.h 2010-11-09 16:01:12.257819409 +0100 +@@ -158,7 +158,7 @@ struct event_info_struct + # endif /* CMSPAR */ + # + # define DEVICEDIR "/dev/" +-# define LOCKDIR "/var/lock" ++# define LOCKDIR "/var/lock/lockdev" + # define LOCKFILEPREFIX "LCK.." + # define FHS + #endif /* __linux__ */ diff --git a/community/java-rxtx/rxtx.install b/community/java-rxtx/rxtx.install new file mode 100644 index 000000000..e0ddf215d --- /dev/null +++ b/community/java-rxtx/rxtx.install @@ -0,0 +1,3 @@ +post_install() { +echo "Users need to be in 'lock' and 'uucp' groups to connect to devices" +} diff --git a/community/java-rxtx/ttyACM_port.patch b/community/java-rxtx/ttyACM_port.patch new file mode 100644 index 000000000..da133c935 --- /dev/null +++ b/community/java-rxtx/ttyACM_port.patch @@ -0,0 +1,28 @@ +Description: Allows for the enumeration of many additional ports, including ttyACM for Arduino Unos +Author: Scott Howard + +Index: rxtx/src/gnu/io/RXTXCommDriver.java +=================================================================== +--- rxtx.orig/src/gnu/io/RXTXCommDriver.java 2010-10-04 23:14:47.236148507 -0400 ++++ rxtx/src/gnu/io/RXTXCommDriver.java 2010-10-04 23:18:56.976108303 -0400 +@@ -574,20 +574,7 @@ + if(osName.equals("Linux")) + { + String[] Temp = { +- "ttyS", // linux Serial Ports + "ttySA", // for the IPAQs +- "ttyUSB", // for USB frobs +- "rfcomm", // bluetooth serial device +- "ttyircomm", // linux IrCommdevices (IrDA serial emu) +- }; +- CandidatePortPrefixes=Temp; +- } +- else if(osName.equals("Linux-all-ports")) +- { +- /* if you want to enumerate all ports ~5000 +- possible, then replace the above with this +- */ +- String[] Temp = { + "comx", // linux COMMX synchronous serial card + "holter", // custom card for heart monitoring + "modem", // linux symbolic link to modem. diff --git a/community/java-rxtx/utsrelease.patch b/community/java-rxtx/utsrelease.patch new file mode 100644 index 000000000..8e6babdd2 --- /dev/null +++ b/community/java-rxtx/utsrelease.patch @@ -0,0 +1,36 @@ +diff -Naur rxtx-2.2pre2.orig/src/I2CImp.c rxtx-2.2pre2/src/I2CImp.c +--- rxtx-2.2pre2.orig/src/I2CImp.c 2007-04-26 07:26:05.000000000 +0200 ++++ rxtx-2.2pre2/src/I2CImp.c 2013-08-10 13:28:54.690313710 +0200 +@@ -125,7 +125,7 @@ + sigaction( SIGIO, NULL, &handler ); + if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); + #endif /* !__FreeBSD__ */ +-#if defined(__linux__) ++#if defined(DEBUG) && defined(__linux__) && defined(UTS_RELEASE) + /* Lets let people who upgraded kernels know they may have problems */ + if (uname (&name) == -1) + { +diff -Naur rxtx-2.2pre2.orig/src/RawImp.c rxtx-2.2pre2/src/RawImp.c +--- rxtx-2.2pre2.orig/src/RawImp.c 2007-11-18 23:32:42.000000000 +0100 ++++ rxtx-2.2pre2/src/RawImp.c 2013-08-10 13:28:54.703647364 +0200 +@@ -270,7 +270,7 @@ + sigaction( SIGIO, NULL, &handler ); + if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); + #endif /* !__FreeBSD__ */ +-#if defined(__linux__) ++#if defined(DEBUG) && defined(__linux__) && defined(UTS_RELEASE) + /* Lets let people who upgraded kernels know they may have problems */ + if (uname (&name) == -1) + { +diff -Naur rxtx-2.2pre2.orig/src/RS485Imp.c rxtx-2.2pre2/src/RS485Imp.c +--- rxtx-2.2pre2.orig/src/RS485Imp.c 2007-04-26 07:26:05.000000000 +0200 ++++ rxtx-2.2pre2/src/RS485Imp.c 2013-08-10 13:28:54.706980778 +0200 +@@ -125,7 +125,7 @@ + sigaction( SIGIO, NULL, &handler ); + if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); + #endif /* !__FreeBSD__ */ +-#if defined(__linux__) ++#if defined(DEBUG) && defined(__linux__) && defined(UTS_RELEASE) + /* Lets let people who upgraded kernels know they may have problems */ + if (uname (&name) == -1) + { diff --git a/community/lxpolkit/PKGBUILD b/community/lxpolkit/PKGBUILD new file mode 100644 index 000000000..2455ab0be --- /dev/null +++ b/community/lxpolkit/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 96579 2013-09-01 20:36:18Z bgyorgy $ +# Maintainer: Balló György + +pkgname=lxpolkit +pkgver=0.1.0 +pkgrel=2 +pkgdesc="Simple policykit authentication agent for LXDE" +arch=('i686' 'x86_64') +url="http://blog.lxde.org/?p=674" +license=('GPL') +groups=('lxde') +depends=('gtk2' 'polkit') +makedepends=('intltool') +source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz) +md5sums=('2597b00035fe1d695219e0f9bfa8c26f') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/$pkgname + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/community/nbd/PKGBUILD b/community/nbd/PKGBUILD index bc073921d..0709dcf76 100644 --- a/community/nbd/PKGBUILD +++ b/community/nbd/PKGBUILD @@ -1,12 +1,12 @@ -# $Id: PKGBUILD 90984 2013-05-16 23:49:59Z svenstaro $ +# $Id: PKGBUILD 96567 2013-09-01 12:07:41Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Contributor: Christian Hesse # Contributor: Ionut Biru # Contributor: Gerhard Brauer pkgname=nbd -pkgver=3.3 -pkgrel=3 +pkgver=3.4 +pkgrel=1 pkgdesc="tools for network block devices, allowing you to use remote block devices over TCP/IP" arch=('i686' 'x86_64') url="http://nbd.sourceforge.net" @@ -16,7 +16,7 @@ source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 backup=('etc/nbd-server/config') depends=('glib2') install=nbd.install -md5sums=('cde8fe6e870b8a7459f12e5dcf572d86' +md5sums=('40ce12dfe408288b4eab36103b48fec0' '2d05d426b8c2708d5f8a0d028fcbae05' '5d1acc143018117174f79eff15afa038') diff --git a/community/openbox/PKGBUILD b/community/openbox/PKGBUILD index 507542426..7ef6a9fc1 100644 --- a/community/openbox/PKGBUILD +++ b/community/openbox/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 96487 2013-08-30 15:52:24Z bpiotrowski $ +# $Id: PKGBUILD 96565 2013-09-01 07:12:43Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski # Contributor: Brad Fanella # Contributor: Andrea Scarpino @@ -6,16 +6,14 @@ pkgname=openbox pkgver=3.5.2 -pkgrel=2 +pkgrel=3 pkgdesc='Highly configurable and lightweight X11 window manager' arch=('i686' 'x86_64') url='http://openbox.org' license=('GPL') depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr' - 'libxcursor' 'pango' 'imlib2') -makedepends=('librsvg') -optdepends=('python2: for the xdg-autostart script' - 'librsvg: for SVG icons support') + 'libxcursor' 'pango' 'imlib2' 'librsvg') +optdepends=('python2: for the xdg-autostart script') groups=('lxde') options=('!libtool') backup=('etc/xdg/openbox/menu.xml' 'etc/xdg/openbox/rc.xml' diff --git a/community/unbound/PKGBUILD b/community/unbound/PKGBUILD index ca9efec0f..1b80c4511 100644 --- a/community/unbound/PKGBUILD +++ b/community/unbound/PKGBUILD @@ -1,18 +1,18 @@ -# $Id: PKGBUILD 91247 2013-05-20 14:50:41Z bisson $ +# $Id: PKGBUILD 96581 2013-09-01 20:52:28Z bisson $ # Maintainer: Gaetan Bisson # Contributor: Hisato Tatekura # Contributor: Massimiliano Torromeo pkgname=unbound pkgver=1.4.20 -pkgrel=2 +pkgrel=3 pkgdesc='Validating, recursive, and caching DNS resolver' url='http://unbound.net/' license=('custom:BSD') arch=('i686' 'x86_64') -depends=('openssl' 'ldns') makedepends=('expat') optdepends=('expat: unbound-anchor') +depends=('openssl' 'ldns' 'libevent') backup=('etc/unbound/unbound.conf') source=("http://unbound.net/downloads/${pkgname}-${pkgver}.tar.gz" 'service' @@ -33,6 +33,7 @@ build() { --sbindir=/usr/bin \ --disable-static \ --disable-rpath \ + --with-libevent \ --with-conf-file=/etc/unbound/unbound.conf \ --with-pidfile=/run/unbound.pid make -- cgit v1.2.3-54-g00ecf