[arch-commits] Commit in brltty/repos (12 files)
Stéphane Gaudreault
stephane at nymeria.archlinux.org
Sun Mar 24 21:33:26 UTC 2013
Date: Sunday, March 24, 2013 @ 22:33:26
Author: stephane
Revision: 180613
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
brltty/repos/staging-i686/
brltty/repos/staging-i686/PKGBUILD
(from rev 180612, brltty/trunk/PKGBUILD)
brltty/repos/staging-i686/brltty
(from rev 180612, brltty/trunk/brltty)
brltty/repos/staging-i686/brltty.conf
(from rev 180612, brltty/trunk/brltty.conf)
brltty/repos/staging-i686/brltty.install
(from rev 180612, brltty/trunk/brltty.install)
brltty/repos/staging-i686/brltty.service
(from rev 180612, brltty/trunk/brltty.service)
brltty/repos/staging-x86_64/
brltty/repos/staging-x86_64/PKGBUILD
(from rev 180612, brltty/trunk/PKGBUILD)
brltty/repos/staging-x86_64/brltty
(from rev 180612, brltty/trunk/brltty)
brltty/repos/staging-x86_64/brltty.conf
(from rev 180612, brltty/trunk/brltty.conf)
brltty/repos/staging-x86_64/brltty.install
(from rev 180612, brltty/trunk/brltty.install)
brltty/repos/staging-x86_64/brltty.service
(from rev 180612, brltty/trunk/brltty.service)
-------------------------------+
staging-i686/PKGBUILD | 49 ++++++++++++++++++++++++++++
staging-i686/brltty | 68 ++++++++++++++++++++++++++++++++++++++++
staging-i686/brltty.conf | 2 +
staging-i686/brltty.install | 20 +++++++++++
staging-i686/brltty.service | 12 +++++++
staging-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++
staging-x86_64/brltty | 68 ++++++++++++++++++++++++++++++++++++++++
staging-x86_64/brltty.conf | 2 +
staging-x86_64/brltty.install | 20 +++++++++++
staging-x86_64/brltty.service | 12 +++++++
10 files changed, 302 insertions(+)
Copied: brltty/repos/staging-i686/PKGBUILD (from rev 180612, brltty/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer:
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+
+pkgname=brltty
+pkgver=4.4
+pkgrel=4
+pkgdesc="Braille display driver for Linux/Unix"
+arch=('i686' 'x86_64')
+url="http://mielke.cc/brltty"
+license=('GPL' 'LGPL')
+depends=('libxaw' 'at-spi2-core' 'gpm' 'icu>=51.1' 'tcl' 'atk' 'pyrex')
+makedepends=('bluez')
+optdepends=('bluez: bluetooth support')
+backup=(etc/brltty.conf etc/conf.d/brltty.conf)
+options=('!makeflags' '!emptydirs')
+install=brltty.install
+source=(http://mielke.cc/$pkgname/releases/$pkgname-$pkgver.tar.gz
+ 'brltty'
+ 'brltty.conf'
+ 'brltty.service')
+md5sums=('8ebe96efe679f5f6ccff08928fec5b26'
+ '831ebaf0c56091702929c68805d20c4f'
+ 'a8ab8b3dd059e96e1734bc9cdcf844fc'
+ '7acecd700b9f94d76fe4a6ad56cb0448')
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|/usr/bin/python|/usr/bin/python2|' Tables/latex-access.ctb
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --with-screen-driver=a2 \
+ --enable-gpm \
+ --disable-java-bindings \
+ PYTHON=/usr/bin/python2
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make INSTALL_ROOT="$pkgdir" install
+ install -D -m755 "$srcdir/brltty" "$pkgdir/etc/rc.d/brltty"
+ install -D -m644 "$srcdir/brltty.conf" "$pkgdir/etc/conf.d/brltty.conf"
+ install -D -m644 Documents/brltty.conf "$pkgdir/etc/brltty.conf"
+ install -D -m644 "$srcdir/brltty.service" "$pkgdir/usr/lib/systemd/system/brltty.service"
+}
Copied: brltty/repos/staging-i686/brltty (from rev 180612, brltty/trunk/brltty)
===================================================================
--- staging-i686/brltty (rev 0)
+++ staging-i686/brltty 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+daemon_name=brltty
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/$daemon_name.conf
+
+get_pid() {
+ pidof -o %PPID $daemon_name
+}
+
+case "$1" in
+ start)
+ stat_busy "Starting $daemon_name daemon"
+
+ PID=$(get_pid)
+ if [ -z "$PID" ]; then
+ [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
+ # RUN
+ $daemon_name $brltty_args
+ #
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ echo $(get_pid) > /var/run/$daemon_name.pid
+ add_daemon $daemon_name
+ stat_done
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Stopping $daemon_name daemon"
+ PID=$(get_pid)
+ # KILL
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ #
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ rm -f /var/run/$daemon_name.pid &> /dev/null
+ rm_daemon $daemon_name
+ stat_done
+ fi
+ ;;
+
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+
+ status)
+ stat_busy "Checking $daemon_name status";
+ ck_status $daemon_name
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart|status}"
+esac
+
+exit 0
Copied: brltty/repos/staging-i686/brltty.conf (from rev 180612, brltty/trunk/brltty.conf)
===================================================================
--- staging-i686/brltty.conf (rev 0)
+++ staging-i686/brltty.conf 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,2 @@
+# Specify any arguments to pass to brltty here.
+brltty_args=""
\ No newline at end of file
Copied: brltty/repos/staging-i686/brltty.install (from rev 180612, brltty/trunk/brltty.install)
===================================================================
--- staging-i686/brltty.install (rev 0)
+++ staging-i686/brltty.install 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,20 @@
+post_install () {
+ getent group brlapi &>/dev/null || groupadd -r brlapi
+ if [ ! -e /etc/brlapi.key ]; then
+ mcookie >/etc/brlapi.key
+ chmod 0640 /etc/brlapi.key
+ chgrp brlapi /etc/brlapi.key
+ echo "Please add your user to the brlapi group."
+ fi
+}
+
+post_upgrade () {
+ post_install
+}
+
+post_remove () {
+ getent group brlapi >/dev/null 2>&1 && groupdel brlapi
+ if [ -e /etc/brlapi.key ]; then
+ rm -f /etc/brlapi.key
+ fi
+}
Copied: brltty/repos/staging-i686/brltty.service (from rev 180612, brltty/trunk/brltty.service)
===================================================================
--- staging-i686/brltty.service (rev 0)
+++ staging-i686/brltty.service 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Braille Console Driver
+DefaultDependencies=no
+Before=sysinit.target
+
+[Service]
+ExecStart=/usr/bin/brltty --pid-file=/run/brltty.pid
+Type=forking
+PIDFile=/run/brltty.pid
+
+[Install]
+WantedBy=multi-user.target
Copied: brltty/repos/staging-x86_64/PKGBUILD (from rev 180612, brltty/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer:
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+
+pkgname=brltty
+pkgver=4.4
+pkgrel=4
+pkgdesc="Braille display driver for Linux/Unix"
+arch=('i686' 'x86_64')
+url="http://mielke.cc/brltty"
+license=('GPL' 'LGPL')
+depends=('libxaw' 'at-spi2-core' 'gpm' 'icu>=51.1' 'tcl' 'atk' 'pyrex')
+makedepends=('bluez')
+optdepends=('bluez: bluetooth support')
+backup=(etc/brltty.conf etc/conf.d/brltty.conf)
+options=('!makeflags' '!emptydirs')
+install=brltty.install
+source=(http://mielke.cc/$pkgname/releases/$pkgname-$pkgver.tar.gz
+ 'brltty'
+ 'brltty.conf'
+ 'brltty.service')
+md5sums=('8ebe96efe679f5f6ccff08928fec5b26'
+ '831ebaf0c56091702929c68805d20c4f'
+ 'a8ab8b3dd059e96e1734bc9cdcf844fc'
+ '7acecd700b9f94d76fe4a6ad56cb0448')
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|/usr/bin/python|/usr/bin/python2|' Tables/latex-access.ctb
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --with-screen-driver=a2 \
+ --enable-gpm \
+ --disable-java-bindings \
+ PYTHON=/usr/bin/python2
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make INSTALL_ROOT="$pkgdir" install
+ install -D -m755 "$srcdir/brltty" "$pkgdir/etc/rc.d/brltty"
+ install -D -m644 "$srcdir/brltty.conf" "$pkgdir/etc/conf.d/brltty.conf"
+ install -D -m644 Documents/brltty.conf "$pkgdir/etc/brltty.conf"
+ install -D -m644 "$srcdir/brltty.service" "$pkgdir/usr/lib/systemd/system/brltty.service"
+}
Copied: brltty/repos/staging-x86_64/brltty (from rev 180612, brltty/trunk/brltty)
===================================================================
--- staging-x86_64/brltty (rev 0)
+++ staging-x86_64/brltty 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+daemon_name=brltty
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/$daemon_name.conf
+
+get_pid() {
+ pidof -o %PPID $daemon_name
+}
+
+case "$1" in
+ start)
+ stat_busy "Starting $daemon_name daemon"
+
+ PID=$(get_pid)
+ if [ -z "$PID" ]; then
+ [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
+ # RUN
+ $daemon_name $brltty_args
+ #
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ echo $(get_pid) > /var/run/$daemon_name.pid
+ add_daemon $daemon_name
+ stat_done
+ fi
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Stopping $daemon_name daemon"
+ PID=$(get_pid)
+ # KILL
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ #
+ if [ $? -gt 0 ]; then
+ stat_fail
+ exit 1
+ else
+ rm -f /var/run/$daemon_name.pid &> /dev/null
+ rm_daemon $daemon_name
+ stat_done
+ fi
+ ;;
+
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+
+ status)
+ stat_busy "Checking $daemon_name status";
+ ck_status $daemon_name
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart|status}"
+esac
+
+exit 0
Copied: brltty/repos/staging-x86_64/brltty.conf (from rev 180612, brltty/trunk/brltty.conf)
===================================================================
--- staging-x86_64/brltty.conf (rev 0)
+++ staging-x86_64/brltty.conf 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,2 @@
+# Specify any arguments to pass to brltty here.
+brltty_args=""
\ No newline at end of file
Copied: brltty/repos/staging-x86_64/brltty.install (from rev 180612, brltty/trunk/brltty.install)
===================================================================
--- staging-x86_64/brltty.install (rev 0)
+++ staging-x86_64/brltty.install 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,20 @@
+post_install () {
+ getent group brlapi &>/dev/null || groupadd -r brlapi
+ if [ ! -e /etc/brlapi.key ]; then
+ mcookie >/etc/brlapi.key
+ chmod 0640 /etc/brlapi.key
+ chgrp brlapi /etc/brlapi.key
+ echo "Please add your user to the brlapi group."
+ fi
+}
+
+post_upgrade () {
+ post_install
+}
+
+post_remove () {
+ getent group brlapi >/dev/null 2>&1 && groupdel brlapi
+ if [ -e /etc/brlapi.key ]; then
+ rm -f /etc/brlapi.key
+ fi
+}
Copied: brltty/repos/staging-x86_64/brltty.service (from rev 180612, brltty/trunk/brltty.service)
===================================================================
--- staging-x86_64/brltty.service (rev 0)
+++ staging-x86_64/brltty.service 2013-03-24 21:33:26 UTC (rev 180613)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Braille Console Driver
+DefaultDependencies=no
+Before=sysinit.target
+
+[Service]
+ExecStart=/usr/bin/brltty --pid-file=/run/brltty.pid
+Type=forking
+PIDFile=/run/brltty.pid
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list