From b7c6c9c7844914d1d0617a24b9e3a84d691d1f64 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Jul 2012 00:02:03 +0000 Subject: Sat Jul 7 00:02:03 UTC 2012 --- testing/bitlbee/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++ testing/bitlbee/bitlbee.install | 15 ++++++++++ testing/bitlbee/bitlbee.tmpfiles | 1 + testing/bitlbee/rc.d | 49 +++++++++++++++++++++++++++++++ testing/bitlbee/sbindir.patch | 14 +++++++++ testing/bitlbee/xinetd | 12 ++++++++ testing/dialog/PKGBUILD | 27 +++++++++++++++++ 7 files changed, 181 insertions(+) create mode 100644 testing/bitlbee/PKGBUILD create mode 100644 testing/bitlbee/bitlbee.install create mode 100644 testing/bitlbee/bitlbee.tmpfiles create mode 100644 testing/bitlbee/rc.d create mode 100644 testing/bitlbee/sbindir.patch create mode 100644 testing/bitlbee/xinetd create mode 100644 testing/dialog/PKGBUILD (limited to 'testing') diff --git a/testing/bitlbee/PKGBUILD b/testing/bitlbee/PKGBUILD new file mode 100644 index 000000000..ecf6dd549 --- /dev/null +++ b/testing/bitlbee/PKGBUILD @@ -0,0 +1,63 @@ +# $Id: PKGBUILD 163025 2012-07-05 23:25:55Z dreisner $ + +# Contributor: FUBAR +# Contributor: simo +# Contributor: Jeff 'codemac' Mickey +# Contributor: Daniel J Griffiths +# Contributor: Gaetan Bisson +# Maintainer: Dave Reisner + +pkgname=bitlbee +pkgver=3.0.5 +pkgrel=4 +pkgdesc='Brings instant messaging (XMPP, MSN, Yahoo!, AIM, ICQ, Twitter) to IRC' +url='http://www.bitlbee.org/' +license=('GPL') +arch=('i686' 'x86_64') +depends=('openssl' 'glib2') +makedepends=('asciidoc' 'libotr') +optdepends=('skype4py: to use skyped' + 'libotr: for OTR encryption support' + 'xinetd: to run bitlbee through xinetd') +source=("http://get.bitlbee.org/src/${pkgname}-${pkgver}.tar.gz" + 'sbindir.patch' + 'xinetd' + 'rc.d' + 'bitlbee.tmpfiles') +sha1sums=('74afdff87be49ce060771a6ae10d7643cd57b9b6' + '9b774e6d85471a4e43e25b8b941cd0e1032a7a6c' + '5e0af27ba9cc4fe455e3381c75fc49a9326e2f17' + '02423c500ac64f673ba26a3395c7c7036c17343e' + '3695ed2fe22436c4d0fc3ead829f7d1f89bc491c') +backup=('etc/bitlbee/bitlbee.conf' + 'etc/bitlbee/motd.txt' + 'etc/xinetd.d/bitlbee') +install=bitlbee.install + +build() { + cd "$pkgname-$pkgver" + + patch -p1 -i ../sbindir.patch + + ./configure \ + --prefix=/usr \ + --etcdir=/etc/bitlbee \ + --pidfile=/run/bitlbee/bitlbee.pid \ + --ipcsocket=/run/bitlbee/bitlbee.sock \ + --systemdsystemunitdir=/usr/lib/systemd/system \ + --ssl=openssl \ + --strip=0 \ + --otr=plugin \ + --skype=plugin + + make +} + +package() { + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install{,-etc,-dev} + + install -o65 -g65 -dm770 "$pkgdir/var/lib/bitlbee" + install -Dm644 "$srcdir/xinetd" "$pkgdir/etc/xinetd.d/bitlbee" + install -Dm755 "$srcdir/rc.d" "$pkgdir/etc/rc.d/bitlbee" + install -Dm644 "$srcdir/bitlbee.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/bitlbee.conf" +} diff --git a/testing/bitlbee/bitlbee.install b/testing/bitlbee/bitlbee.install new file mode 100644 index 000000000..aa5a81a70 --- /dev/null +++ b/testing/bitlbee/bitlbee.install @@ -0,0 +1,15 @@ +post_install() { + getent group bitlbee &>/dev/null || groupadd -r -g 65 bitlbee >/dev/null + getent passwd bitlbee &>/dev/null || useradd -r -u 65 -g bitlbee -d /var/lib/bitlbee -s /bin/false -c bitlbee bitlbee >/dev/null + systemd-tmpfiles --create bitlbee.conf +} + +post_upgrade() { + post_install +} + +post_remove() { + getent passwd bitlbee &>/dev/null && userdel bitlbee >/dev/null + getent group bitlbee &>/dev/null && groupdel bitlbee >/dev/null + true +} diff --git a/testing/bitlbee/bitlbee.tmpfiles b/testing/bitlbee/bitlbee.tmpfiles new file mode 100644 index 000000000..da72a0a79 --- /dev/null +++ b/testing/bitlbee/bitlbee.tmpfiles @@ -0,0 +1 @@ +d /run/bitlbee 0755 bitlbee bitlbee - - diff --git a/testing/bitlbee/rc.d b/testing/bitlbee/rc.d new file mode 100644 index 000000000..ade85221a --- /dev/null +++ b/testing/bitlbee/rc.d @@ -0,0 +1,49 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +pidfile=/run/bitlbee/bitlbee.pid +if [[ -r $pidfile ]]; then + read -r PID < "$pidfile" + if [[ ! -d /proc/$PID ]]; then + # stale pidfile + unset PID + rm -f "$pidfile" + fi +fi + +case $1 in + start) + stat_busy "Starting bitlbee daemon" + if [[ $PID ]] || ! su -s /bin/sh -c '/usr/sbin/bitlbee -F' bitlbee; then + stat_fail + exit 1 + else + add_daemon bitlbee + stat_done + fi + ;; + stop) + stat_busy "Stopping bitlbee daemon" + if [[ -z $PID ]] || ! kill $PID &>/dev/null; then + stat_fail + exit 1 + else + rm -f "$pidfile" + rm_daemon bitlbee + stat_done + fi + ;; + restart) + $0 stop + sleep 3 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +# vim: set ft=sh et ts=2 sw=2: diff --git a/testing/bitlbee/sbindir.patch b/testing/bitlbee/sbindir.patch new file mode 100644 index 000000000..7640508f7 --- /dev/null +++ b/testing/bitlbee/sbindir.patch @@ -0,0 +1,14 @@ +diff -aur old/Makefile new/Makefile +--- old/Makefile 2012-02-18 21:55:09.000000000 +1100 ++++ new/Makefile 2012-02-20 18:28:08.716130584 +1100 +@@ -135,8 +135,8 @@ + + systemd: + ifdef SYSTEMDSYSTEMUNITDIR +- sed 's|@sbindir@|$(BINDIR)|' init/bitlbee.service.in > init/bitlbee.service +- sed 's|@sbindir@|$(BINDIR)|' init/bitlbee@.service.in > init/bitlbee@.service ++ sed 's|@sbindir@|$(SBINDIR)|' init/bitlbee.service.in > init/bitlbee.service ++ sed 's|@sbindir@|$(SBINDIR)|' init/bitlbee@.service.in > init/bitlbee@.service + endif + + install-systemd: diff --git a/testing/bitlbee/xinetd b/testing/bitlbee/xinetd new file mode 100644 index 000000000..d671a8cfc --- /dev/null +++ b/testing/bitlbee/xinetd @@ -0,0 +1,12 @@ +service bitlbee +{ + type = UNLISTED + socket_type = stream + protocol = tcp + wait = no + user = bitlbee + group = bitlbee + server = /usr/sbin/bitlbee + port = 6667 + disable = yes +} diff --git a/testing/dialog/PKGBUILD b/testing/dialog/PKGBUILD new file mode 100644 index 000000000..e23467ea3 --- /dev/null +++ b/testing/dialog/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 163021 2012-07-05 20:52:01Z stephane $ +# Maintainer: Stéphane Gaudreault +# Contributor: Allan McRae +# Contributor: Andreas Radke + +pkgname=dialog +pkgver=1.1_20120703 +pkgrel=1 +pkgdesc="A tool to display dialog boxes from shell scripts" +arch=('i686' 'x86_64') +url="http://invisible-island.net/dialog/" +license=('LGPL2.1') +depends=('ncurses') +source=(ftp://invisible-island.net/${pkgname}/${pkgname}-${pkgver/_/-}.tgz) +sha1sums=('f9949cef2c95d9bd8f2b9d6793dc640bcaa7ff40') + +build() { + cd "${srcdir}/$pkgname-${pkgver/_/-}" + ./configure --prefix=/usr --mandir=/usr/share/man \ + --with-ncursesw --enable-nls + make +} + +package() { + cd "${srcdir}/$pkgname-${pkgver/_/-}" + make DESTDIR="${pkgdir}" install install-lib +} -- cgit v1.2.3-54-g00ecf