summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/libowfat/PKGBUILD30
-rw-r--r--pcr/libowfat/libowfat.install39
-rw-r--r--pcr/libpurple-minimal/PKGBUILD46
-rw-r--r--pcr/lua-cyrussasl/PKGBUILD33
-rw-r--r--pcr/lua-cyrussasl/lua-cyrussasl.patch35
-rw-r--r--pcr/lua-ldap/PKGBUILD28
-rw-r--r--pcr/lua-ldap/lualdap-1.1.0-lua51.patch25
-rw-r--r--pcr/miniupnpd/PKGBUILD49
-rw-r--r--pcr/miniupnpd/miniupnpd.init51
-rw-r--r--pcr/miniupnpd/miniupnpd.systemd12
-rw-r--r--pcr/monkeysphere/PKGBUILD22
-rw-r--r--pcr/monkeysphere/monkeysphere.install43
-rw-r--r--pcr/netatalk/PKGBUILD43
-rw-r--r--pcr/netatalk/netatalk.changelog101
-rw-r--r--pcr/netatalk/netatalk.install20
-rw-r--r--pcr/olsrd/PKGBUILD31
-rwxr-xr-xpcr/olsrd/olsrd.install21
-rwxr-xr-xpcr/olsrd/rc.d.olsrd36
-rw-r--r--pcr/openswan/PKGBUILD46
-rw-r--r--pcr/openswan/compile.patch11
-rwxr-xr-xpcr/openswan/openswan.rc.d43
-rw-r--r--pcr/poco/PKGBUILD44
-rw-r--r--pcr/ruby-headers/PKGBUILD31
-rw-r--r--pcr/seeks/PKGBUILD65
-rw-r--r--pcr/seeks/conf.patch20
-rw-r--r--pcr/seeks/docbook2man.patch24
-rw-r--r--pcr/seeks/img_websearch.patch13
-rw-r--r--pcr/seeks/install18
-rw-r--r--pcr/seeks/logfile.patch29
-rwxr-xr-xpcr/seeks/seeks68
-rw-r--r--pcr/seeks/seeks.conf.d11
-rw-r--r--pcr/seeks/seeks.install12
-rw-r--r--pcr/seeks/seeks.logrotate6
-rw-r--r--pcr/seeks/seeks.rc.d57
-rw-r--r--pcr/seeks/seeksdaemon41
-rw-r--r--pcr/sipwitch/PKGBUILD32
-rw-r--r--pcr/sobby/PKGBUILD24
-rw-r--r--pcr/spectrum/PKGBUILD81
-rw-r--r--pcr/spectrum/gcc47.patch97
-rw-r--r--pcr/spectrum/logrotate.spectrum10
-rw-r--r--pcr/spectrum/spectrum.install45
-rw-r--r--pcr/spectrum/spectrum.tmpfiles1
-rw-r--r--pcr/spectrum/spectrum@.service14
-rw-r--r--pcr/squirm/PKGBUILD32
-rw-r--r--pcr/strongswan/PKGBUILD45
-rw-r--r--pcr/strongswan/strongswan.rc43
-rw-r--r--pcr/tokyotyrant/PKGBUILD33
-rw-r--r--pcr/tokyotyrant/tokyotyrant.conf21
-rw-r--r--pcr/tokyotyrant/tokyotyrant.rc41
49 files changed, 1723 insertions, 0 deletions
diff --git a/pcr/libowfat/PKGBUILD b/pcr/libowfat/PKGBUILD
new file mode 100644
index 000000000..e2602046d
--- /dev/null
+++ b/pcr/libowfat/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributors:
+# Alexander Ulrich <a.ulrich@student.uni-tuebingen.de>
+# Mildred <silkensedai@online.fr>
+# henning mueller <henning@orgizm.net>
+
+pkgname=libowfat
+pkgver=0.29
+pkgrel=2
+pkgdesc='GPL reimplementation of libdjb'
+arch=(i686 x86_64 mips64el)
+url=http://www.fefe.de/libowfat/
+depends=()
+license=(GPL)
+install=libowfat.install
+source=(http://dl.fefe.de/$pkgname-$pkgver.tar.bz2)
+md5sums=(6bbee9a86506419657d87123b7a6f2c1)
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make prefix=$pkgdir/usr/ LIBDIR=$pkgdir/usr/lib MAN3DIR=$pkgdir/usr/share/man/man3 install
+
+ cd $pkgdir/usr/share/man/man3
+ mv buffer.3 buffer-libowfat.3
+}
+md5sums=('1187c6acf11429e7adb9ebe180f644bb')
diff --git a/pcr/libowfat/libowfat.install b/pcr/libowfat/libowfat.install
new file mode 100644
index 000000000..a08aef10c
--- /dev/null
+++ b/pcr/libowfat/libowfat.install
@@ -0,0 +1,39 @@
+# This is a default template for a post-install scriptlet. You can
+# remove any functions you don't need (and this header).
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ echo "The manpage buffer(3) was moved to buffer-libowfat(3) because
+ it conflicts with package openssl"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+op=$1
+shift
+$op $*
diff --git a/pcr/libpurple-minimal/PKGBUILD b/pcr/libpurple-minimal/PKGBUILD
new file mode 100644
index 000000000..5526879d1
--- /dev/null
+++ b/pcr/libpurple-minimal/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Magicking <syllaur@gmail.com>
+# Contributors: wzff BluePeppers n0nsense
+pkgname=libpurple-minimal
+pkgver=2.10.0
+pkgrel=3
+pkgdesc="minimal build of the pidgin IM library (no gstreamer, perl and X11 dependencies)"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://developer.pidgin.im/wiki/WhatIsLibpurple"
+license=('GPL')
+depends=('glib2' 'gnutls' 'libxml2' 'libidn' 'nss' 'avahi')
+makedepends=('make' 'intltool')
+conflicts=('libpurple')
+provides=("libpurple=${pkgver}")
+source="http://downloads.sourceforge.net/pidgin/pidgin-${pkgver}.tar.gz"
+md5sums=('b92f83f6f075d9cd814d3ccff9fd6cac')
+
+build(){
+ cd $srcdir/pidgin-${pkgver}
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-perl \
+ --disable-gtkui \
+ --disable-consoleui \
+ --disable-sm \
+ --disable-gestures \
+ --disable-screensaver \
+ --disable-startup-notification \
+ --disable-schemas-install \
+ --disable-tcl \
+ --disable-tk \
+ --disable-nls \
+ --without-x \
+ --disable-vv \
+ --disable-gstreamer \
+ --disable-meanwhile \
+ --disable-dbus \
+ --disable-doxygen \
+ --with-system-ssl-certs=/etc/ssl/certs
+ make -C libpurple
+}
+
+package() {
+ cd $srcdir/pidgin-${pkgver}
+ make -C libpurple DESTDIR=$pkgdir install
+}
+
diff --git a/pcr/lua-cyrussasl/PKGBUILD b/pcr/lua-cyrussasl/PKGBUILD
new file mode 100644
index 000000000..bc2fa8a32
--- /dev/null
+++ b/pcr/lua-cyrussasl/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Dwayne Bent <dbb.1@liqd.org>
+
+pkgname=lua-cyrussasl
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Lua bindings for Cyrus SASL library."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://github.com/JorjBauer/lua-cyrussasl"
+license=('BSD')
+makedepends=('lua51' 'libsasl')
+source=(
+ "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver"
+ "lua-cyrussasl.patch"
+)
+md5sums=('40c94c06441e1e47640d81b125742969'
+ '838d383edc30f059ddae44cd564e0b82')
+
+build() {
+ cd $srcdir/*-lua-cyrussasl-*
+ patch -Np1 -i ${srcdir}/lua-cyrussasl.patch
+ make
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/lua/5.1"
+ mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl"
+
+ cd $srcdir/*-lua-cyrussasl-*
+
+ make DESTDIR=${pkgdir} install
+ install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE"
+}
+
diff --git a/pcr/lua-cyrussasl/lua-cyrussasl.patch b/pcr/lua-cyrussasl/lua-cyrussasl.patch
new file mode 100644
index 000000000..e119ccb3b
--- /dev/null
+++ b/pcr/lua-cyrussasl/lua-cyrussasl.patch
@@ -0,0 +1,35 @@
+--- lua-cyrussasl.orig/Makefile 2010-07-06 12:01:15.000000000 -0500
++++ lua-cyrussasl/Makefile 2013-02-17 17:07:33.896240233 -0500
+@@ -4,12 +4,18 @@
+ #LUAPATH=/usr/share/lua/5.1
+ #CPATH=/usr/lib/lua/5.1
+
++# Linux (Arch Linux)
++CFLAGS=-g -O2 -fpic -I/usr/include/lua5.1
++LDFLAGS=-O -shared -fpic -lsasl2
++LUAPATH=/usr/share/lua/5.1
++CPATH=/usr/lib/lua/5.1
++
+ # MacOS
+-CFLAGS=-g -Wall -O2
+-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
+-MACOSX_VERSION=10.5
+-LUAPATH=/usr/local/share/lua/5.1
+-CPATH=/usr/local/lib/lua/5.1
++#CFLAGS=-g -Wall -O2
++#LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
++#MACOSX_VERSION=10.5
++#LUAPATH=/usr/local/share/lua/5.1
++#CPATH=/usr/local/lib/lua/5.1
+
+ #########################################################
+ #
+@@ -28,7 +34,7 @@
+ all: $(TARGET)
+
+ install: $(TARGET)
+- cp $(TARGET) $(CPATH)
++ cp $(TARGET) $(DESTDIR)$(CPATH)
+
+ clean:
+ rm -f *.o *.so *~
diff --git a/pcr/lua-ldap/PKGBUILD b/pcr/lua-ldap/PKGBUILD
new file mode 100644
index 000000000..5443f20ab
--- /dev/null
+++ b/pcr/lua-ldap/PKGBUILD
@@ -0,0 +1,28 @@
+pkgname=lua-ldap
+_pkgname=lualdap
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="Simple interface from Lua to an LDAP client"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.keplerproject.org/lualdap"
+license=('BSD')
+makedepends=('lua51' 'libldap')
+source=(http://files.luaforge.net/releases/$_pkgname/$_pkgname/LuaLDAP$pkgver/$_pkgname-$pkgver.tar.gz
+ lualdap-1.1.0-lua51.patch)
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+ patch -Np1 -i ${srcdir}/lualdap-1.1.0-lua51.patch
+ make LUA_INC=/usr/include/lua5.1
+
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+ make LUA_LIBDIR=${pkgdir}/usr/lib/lua/5.1 \
+ LUA_VERSION_NUM=510 \
+ install
+}
+
+md5sums=('5e104520c3f1333f38817a9fa1e76681'
+ 'a7583456b721584ef222d97e49823a81')
diff --git a/pcr/lua-ldap/lualdap-1.1.0-lua51.patch b/pcr/lua-ldap/lualdap-1.1.0-lua51.patch
new file mode 100644
index 000000000..07059ae08
--- /dev/null
+++ b/pcr/lua-ldap/lualdap-1.1.0-lua51.patch
@@ -0,0 +1,25 @@
+--- lualdap-1.1.0.orig/config 2006-07-23 20:42:06.000000000 -0500
++++ lualdap-1.1.0/config 2013-02-17 16:00:45.947143554 -0500
+@@ -1,10 +1,10 @@
+ # Installation directories
+ # System's libraries directory (where binary libraries are installed)
+-LUA_LIBDIR= /usr/local/lib/lua/5.0
++LUA_LIBDIR= /usr/lib/lua/5.1
+ # Lua includes directory
+-LUA_INC= /usr/local/include
++LUA_INC= /usr/include
+ # OpenLDAP includes directory
+-OPENLDAP_INC= /usr/local/include
++OPENLDAP_INC= /usr/include
+ # OpenLDAP library (an optional directory can be specified with -L<dir>)
+ OPENLDAP_LIB= -lldap
+
+@@ -13,7 +13,7 @@
+ #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+
+ # Lua version number (first and second digits of target version)
+-LUA_VERSION_NUM= 500
++LUA_VERSION_NUM= 510
+ LIBNAME= $T.so.$V
+ COMPAT_DIR= ../compat/src
+
diff --git a/pcr/miniupnpd/PKGBUILD b/pcr/miniupnpd/PKGBUILD
new file mode 100644
index 000000000..30108d4d5
--- /dev/null
+++ b/pcr/miniupnpd/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: None
+pkgname=miniupnpd
+pkgver=1.7.20121005
+pkgrel=4
+pkgdesc="Lightweight UPnP IGD daemon"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://miniupnp.free.fr"
+license=('BSD')
+backup=(etc/miniupnpd/miniupnpd.conf)
+depends=('libnfnetlink')
+source=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz" miniupnpd.init miniupnpd.systemd)
+sha1sums=('4579c4711a8455bf455f3757ac9ce0dc40088901'
+ 'c84031d7af122c5bede8609bcfa80bc31f2a5e61'
+ '9cf48feb98dadee8a566b2dc7811a95020ad3895')
+
+_ipt_arch_ver=$(pacman -Ss iptables | awk '/\/iptables/ { print $2 }')
+depends+=("iptables=$_ipt_arch_ver")
+
+build() {
+ ipt_upstream_ver=iptables-${_ipt_arch_ver%%-*}
+ if [ ! -d $ipt_upstream_ver ]; then
+ curl -O "http://www.iptables.org/projects/iptables/files/${ipt_upstream_ver}.tar.bz2"
+ bsdtar -jxvf $ipt_upstream_ver.tar.bz2
+ fi
+
+ cd "$srcdir/$ipt_upstream_ver"
+ ./configure --enable-static
+ make
+
+ cd "$srcdir/$pkgname-$pkgver"
+ make -f Makefile.linux config.h
+ IPTABLESPATH="$srcdir/$ipt_upstream_ver" make -f Makefile.linux
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p "$pkgdir/usr/share/man/man8"
+ make PREFIX="$pkgdir/" -f Makefile.linux install
+ rm -r "${pkgdir}/etc/init.d"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm755 "${srcdir}/miniupnpd.init" "${pkgdir}/etc/rc.d/miniupnpd"
+ install -Dm644 "${srcdir}/miniupnpd.systemd" "${pkgdir}/usr/lib/systemd/system/miniupnpd.service"
+ sed -i 's:/sbin/iptables:/usr/sbin/iptables:
+ s:eth0:"`cat /etc/miniupnpd/miniupnpd.conf | '"awk -F= '/^ext_ifname/ { print \$2 }'"'`":' "${pkgdir}"/etc/miniupnpd/*.sh
+ sed -i -e "s/^uuid=[-0-9a-f]*/uuid=00000000-0000-0000-0000-000000000000/
+ s/make genuuid/uuidgen/" "${pkgdir}/etc/miniupnpd/miniupnpd.conf"
+}
+
diff --git a/pcr/miniupnpd/miniupnpd.init b/pcr/miniupnpd/miniupnpd.init
new file mode 100644
index 000000000..e09ac3ade
--- /dev/null
+++ b/pcr/miniupnpd/miniupnpd.init
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+MINIUPNPD=/usr/sbin/miniupnpd
+ARGS='-f /etc/miniupnpd/miniupnpd.conf'
+PIDFILE='/var/run/miniupnpd.pid'
+IPTABLES_CREATE=/etc/miniupnpd/iptables_init.sh
+IPTABLES_REMOVE=/etc/miniupnpd/iptables_removeall.sh
+
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Starting MiniUPNPd"
+
+ if ! pidof -o %PPID $MINIUPNPD &> /dev/null; then
+ rm -f "$PIDFILE"
+ fi
+
+ $IPTABLES_CREATE > /dev/null 2>&1
+
+ PID="$(cat "$PIDFILE" 2> /dev/null)"
+
+ if [ -z "$PID" ] && $MINIUPNPD $ARGS; then
+ add_daemon miniupnpd
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping MiniUPNPd"
+ PID="$(cat "$PIDFILE" 2> /dev/null)"
+ if [ -n "$PID" ] && kill "$PID" &> /dev/null; then
+ rm -f "$PIDFILE"
+ rm_daemon miniupnpd
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ restart)
+ "$0" stop
+ sleep 1
+ "$0" start
+ ;;
+ *)
+ echo "Usage: /etc/rc.d/miniupnpd {start|stop|restart}"
+ exit 2
+ ;;
+esac
+exit 0
diff --git a/pcr/miniupnpd/miniupnpd.systemd b/pcr/miniupnpd/miniupnpd.systemd
new file mode 100644
index 000000000..4c5aa77cc
--- /dev/null
+++ b/pcr/miniupnpd/miniupnpd.systemd
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lightweight UPnP IGD daemon
+
+[Service]
+ExecStartPre=/etc/miniupnpd/iptables_init.sh
+ExecStart=/usr/sbin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf -d
+ExecStopPost=/etc/miniupnpd/iptables_removeall.sh
+PIDFile=/var/run/miniupnpd.pid
+StandardOutput=null
+
+[Install]
+WantedBy=network.target
diff --git a/pcr/monkeysphere/PKGBUILD b/pcr/monkeysphere/PKGBUILD
new file mode 100644
index 000000000..d274631eb
--- /dev/null
+++ b/pcr/monkeysphere/PKGBUILD
@@ -0,0 +1,22 @@
+# Contributor: fauno <fauno@kiwwwi.com.ar>
+# Based on monkeysphere-git from
+# Contributor: Olivier Mehani <shtrom-arch@ssji.net>
+# $Id: PKGBUILD 264 2010-11-10 00:57:53Z shtrom $
+pkgname=monkeysphere
+pkgver=0.35
+pkgrel=4
+pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
+arch=('any')
+url="http://web.monkeysphere.info/"
+license=('GPL3')
+depends=('gnupg' 'lockfile-progs' 'perl-crypt-openssl-rsa' 'perl-digest-sha1')
+source=(http://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz)
+install=monkeysphere.install
+md5sums=('481ac14c9fdef0ccd1944c593bd4f517')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+ mkdir -p $pkgdir/var/lib/monkeysphere
+}
diff --git a/pcr/monkeysphere/monkeysphere.install b/pcr/monkeysphere/monkeysphere.install
new file mode 100644
index 000000000..2013f9f41
--- /dev/null
+++ b/pcr/monkeysphere/monkeysphere.install
@@ -0,0 +1,43 @@
+#!/bin/sh
+# $Id: monkeysphere.install 264 2010-11-10 00:57:53Z shtrom $
+# vim:set ts=2 sw=2 et:
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ echo ">>> Creating monkeysphere user and group and setting permissions..."
+ getent group monkeysphere >/dev/null || usr/sbin/groupadd monkeysphere
+ getent passwd monkeysphere >/dev/null || usr/sbin/useradd -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere
+
+# Should be root:root for sshd to work
+ chown root:root /var/lib/monkeysphere
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+# Should be root:root for sshd to work
+ chown root:root /var/lib/monkeysphere
+}
+
+# arg 1: the old package version
+pre_remove() {
+ usr/sbin/userdel monkeysphere &>/dev/null
+ (getent group monkeysphere >/dev/null && usr/sbin/groupdel monkeysphere &>/dev/null) || /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
diff --git a/pcr/netatalk/PKGBUILD b/pcr/netatalk/PKGBUILD
new file mode 100644
index 000000000..e3d5b265e
--- /dev/null
+++ b/pcr/netatalk/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: SJ_UnderWater
+# Based on netatalk package :
+# Maintainer: Dominik Dingel <mail at wodar dot de>
+# Contributor: William Udovich <nerdzrule7 at earthlink dot net>
+# Contributor: Farhan Yousaf <farhany at xaviya dot com>
+
+pkgname=netatalk
+pkgver=3.0.2
+pkgrel=1
+pkgdesc='A kernel-level implementation of AFP services'
+arch=('i686' 'x86_64' 'mips64el')
+url='http://netatalk.sourceforge.net'
+license=('GPL')
+depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent')
+replaces=('netatalk-git' 'netatalk2')
+backup=('etc/afp.conf'
+ 'etc/extmap.conf')
+options=('!libtool')
+install=$pkgname.install
+changelog=$pkgname.changelog
+source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
+md5sums=('b5f1c2c4b3a5e64f5bca219415aa1c75')
+
+build() {
+ cd $pkgname-$pkgver
+ msg2 'Fixing...'
+ sed -i -e 's:AC_CONFIG_SUBDIRS:#AC_CONFIG_SUBDIRS:' -e 's/x"linux/x"generic/' macros/netatalk.m4
+ sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}
+ sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' {configure.ac,libevent/configure.in}
+ cp /usr/share/automake*/missing .
+ autoreconf -i >/dev/null
+ msg2 'Configuring...'
+ CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --with-init-style=systemd \
+ --with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-libevent=no
+ sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile
+ msg2 'Making...'
+ make >/dev/null
+}
+package() {
+ cd $pkgname-$pkgver
+ msg2 'Building...'
+ make DESTDIR="$pkgdir" install >/dev/null
+}
diff --git a/pcr/netatalk/netatalk.changelog b/pcr/netatalk/netatalk.changelog
new file mode 100644
index 000000000..b1ada018b
--- /dev/null
+++ b/pcr/netatalk/netatalk.changelog
@@ -0,0 +1,101 @@
+2012-10-08 SJ_UnderWater
+
+ * 3.0.1-3 :
+ moved systemd from /etc
+ better rc.d install test
+
+2012-10-05 SJ_UnderWater
+
+ * 3.0.1-2 :
+ removed rc.d references
+
+2012-10-04 SJ_UnderWater
+
+ * 3.0.1-1 :
+ new version
+ moved to systemd
+ moved state to /var/db
+
+2012-07-14 SJ_UnderWater
+
+ * 3.0-3 :
+ moved localstate dir
+ to /etc for historical
+ reasons
+
+2012-07-12 SJ_UnderWater
+
+ * 3.0-2 :
+ disable bundled libevent
+
+2012-07-11 SJ_UnderWater
+
+ * 3.0-1 :
+ updated to new release
+ DDP moved to new pkg
+
+2012-06-12 SJ_UnderWater
+
+ * 2.2.3-4 :
+ added kill timing
+
+2012-06-04 SJ_UnderWater
+
+ * 2.2.3-3 :
+ removed conflicting files
+
+2012-06-02 SJ_UnderWater
+
+ * 2.2.3-2 :
+ Missing UAM links
+
+2012-05-29 SJ_UnderWater
+
+ * 2.2.3-1 :
+ updated package version
+ allowing headers and m4
+
+2012-05-01 SJ_UnderWater
+
+ * 2.2.2-6 :
+ moved to .rc files
+ refactored PKGBUILD
+ install rc.d files
+
+2012-04-25 SJ_UnderWater
+
+ * 2.2.2-5 :
+ init rebuild
+ fix dep check
+ fix get_pid
+ function relocation
+
+2012-04-21 SJ_UnderWater
+
+ * 2.2.2-4 :
+ moved to package()
+ added backup
+ split backup
+ moved depends
+
+2012-04-08 SJ_UnderWater
+
+ * 2.2.2-3 :
+ fixed extra dependencies
+ FHS compliance
+ NAMCAP checking
+ moved cups to optdepends
+
+2012-04-07 SJ_UnderWater
+
+ * 2.2.2-2 :
+ added Install
+ changed "conflicts" with "replace"
+ cleaned up PKGBUILD
+
+ * 2.2.2-1 :
+ added ChangeLog.
+ moved to split package format
+ bidirectional dependency-checking
+ moved to release package format
+ PKGBUILD compliance
diff --git a/pcr/netatalk/netatalk.install b/pcr/netatalk/netatalk.install
new file mode 100644
index 000000000..629586531
--- /dev/null
+++ b/pcr/netatalk/netatalk.install
@@ -0,0 +1,20 @@
+post_install() {
+ post_upgrade
+}
+post_upgrade() {
+ if [ -f /etc/rc.conf ] && [ "`grep -E '(cnid|atalkd|afpd)' /etc/rc.conf`" ];then
+ echo '>>> Detected old netatalk daemon entries in';
+ echo '>>> /etc/rc.conf, please replace these with';
+ echo '>>> "netatalk" before restarting!';
+ else echo '>>> Add "netatalk" to your DAEMONS list';fi
+ echo '>>>';
+ if [ -f /etc/avahi/services/adisk.service ] ||
+ [ -f /etc/avahi/services/afpd.service ];then
+ echo '>>> Detected old netatalk service files in';
+ echo '>>> /etc/avahi/services, please delete these';
+ echo '>>> before restarting!';fi
+ if [ -f /opt/netatalk/afp_signature.conf ] ||
+ [ -f /opt/netatalk/afp_voluuid.conf ]; then
+ echo '>>> Found *.conf in /opt/netatalk, please';
+ echo '>>> migrate these to /etc/netatalk before restarting';fi
+}
diff --git a/pcr/olsrd/PKGBUILD b/pcr/olsrd/PKGBUILD
new file mode 100644
index 000000000..668e39cea
--- /dev/null
+++ b/pcr/olsrd/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: William Rea <sillywilly@gmail.com>
+# Maintainer: Claudio Pisa <clauz@ninux.org>
+pkgname=olsrd
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="OLSR routing daemon (RFC 3626)"
+arch=(i686 x86_64 ppc mips64el)
+url="http://www.olsr.org"
+license=('BSD')
+depends=('glibc')
+makedepends=('bison')
+backup=etc/olsrd.conf
+install=olsrd.install
+source=(http://www.olsr.org/releases/0.6/${pkgname}-${pkgver}.tar.bz2 rc.d.olsrd)
+md5sums=('a75fc9b6252df5b5f49f13418fafeff1' 'bc3e393e0179ffff0a6d6c9d6a5c4b60')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ CFLAGS+=" -fPIC " \
+ make OS=linux build_all
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install_all
+
+ install -D -m755 $srcdir/rc.d.olsrd $pkgdir/etc/rc.d/olsrd
+ install -D -m644 license.txt $pkgdir/usr/share/licenses/olsrd/LICENSE
+}
+
diff --git a/pcr/olsrd/olsrd.install b/pcr/olsrd/olsrd.install
new file mode 100755
index 000000000..f49372538
--- /dev/null
+++ b/pcr/olsrd/olsrd.install
@@ -0,0 +1,21 @@
+post_install() {
+echo "--------------------------------------------------------------------"
+echo " Remember to edit /etc/olsrd.conf to match your network settings."
+echo "--------------------------------------------------------------------"
+/bin/true
+}
+
+post_upgrade() {
+/bin/true
+}
+
+pre_remove() {
+/etc/rc.d/olsrd stop
+/bin/true
+}
+
+op=$1
+shift
+
+$op "$@"
+
diff --git a/pcr/olsrd/rc.d.olsrd b/pcr/olsrd/rc.d.olsrd
new file mode 100755
index 000000000..d257e22ef
--- /dev/null
+++ b/pcr/olsrd/rc.d.olsrd
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/olsrd`
+case "$1" in
+ start)
+ stat_busy "Starting OLSR Daemon"
+ [ -z "$PID" ] && /usr/sbin/olsrd -d 0 &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon olsrd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping OLSR Daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon olsrd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
+
diff --git a/pcr/openswan/PKGBUILD b/pcr/openswan/PKGBUILD
new file mode 100644
index 000000000..bae970025
--- /dev/null
+++ b/pcr/openswan/PKGBUILD
@@ -0,0 +1,46 @@
+# Contributor: Jan Fader <jan.fader@web.de>
+pkgname=openswan
+pkgver=2.6.36
+pkgrel=2
+pkgdesc="Open Source implementation of IPsec for the Linux operating system"
+url="http://www.openswan.org"
+license=('GPL' 'custom')
+arch=('i686' 'x86_64' 'mips64el')
+depends=('iproute' 'gmp' 'perl')
+backup=(etc/ipsec.conf \
+ etc/ipsec.d/policies/{block,clear,clear-or-private,private,private-or-clear})
+source=(http://www.openswan.org/download/openswan-$pkgver.tar.gz
+ openswan.rc.d
+ compile.patch)
+
+build() {
+ # Create /etc/rc.d for init script, and license directory
+ mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan}
+
+ cd $srcdir/openswan-$pkgver
+ patch -p1 -i $srcdir/compile.patch
+
+ # Change install paths to Arch defaults
+ sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|' Makefile.inc
+
+ make USE_XAUTH=true USE_OBJDIR=true programs
+}
+
+package(){
+ cd $srcdir/openswan-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # Change permissions in /var
+ chmod 755 $pkgdir/var/run/pluto
+
+ # Copy License
+ cp LICENSE $pkgdir/usr/share/licenses/openswan
+
+ # Install init script
+ install -Dm755 ../openswan.rc.d $pkgdir/etc/rc.d/openswan
+ # fix manpages
+ mv $pkgdir/usr/man $pkgdir/usr/share/
+}
+md5sums=('b3a1733493520bb18729633b62ef8247'
+ '543d84162761b9cc9ec319e938c4dd2a'
+ '5540437bb334873da646e21ac9caa963')
diff --git a/pcr/openswan/compile.patch b/pcr/openswan/compile.patch
new file mode 100644
index 000000000..8ddff67f2
--- /dev/null
+++ b/pcr/openswan/compile.patch
@@ -0,0 +1,11 @@
+--- openswan-2.6.23/Makefile 2009-09-09 02:42:54.000000000 +0200
++++ Makefile 2009-12-30 10:13:53.000000000 +0100
+@@ -12,6 +12,8 @@
+ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ # for more details.
+ #
++CFLAGS=-fno-strict-aliasing
++CXXFLAGS=-fno-strict-aliasing
+
+
+ OPENSWANSRCDIR?=$(shell pwd)
diff --git a/pcr/openswan/openswan.rc.d b/pcr/openswan/openswan.rc.d
new file mode 100755
index 000000000..30bd0d56e
--- /dev/null
+++ b/pcr/openswan/openswan.rc.d
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Starting Openswan IPsec"
+ /etc/rc.d/ipsec --start
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ add_daemon openswan
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Openswan IPsec"
+ /etc/rc.d/ipsec --stop
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ rm_daemon openswan
+ fi
+ ;;
+ restart)
+ stat_busy "Restarting Openswan IPsec"
+ /etc/rc.d/ipsec --restart
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ add_daemon openswan
+ fi
+ ;;
+ status)
+ /etc/rc.d/ipsec --status
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart|status}"
+esac
+
diff --git a/pcr/poco/PKGBUILD b/pcr/poco/PKGBUILD
new file mode 100644
index 000000000..dad4788d1
--- /dev/null
+++ b/pcr/poco/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Rodrigo Grumiche Silva <grumiche at integrityit dot com dot br>
+# Contributor: nozog
+# Contributor: davidhjelm
+# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
+# Contributor: Nathan Owe < ndowens04 at gmail dot com>
+
+pkgname=poco
+pkgver=1.4.2p1
+pkgrel=2
+pkgdesc="C++ class libraries for network-centric, portable applications,
+complete edition"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.pocoproject.org/"
+license=('custom:boost')
+depends=('unixodbc' 'libmysqlclient' 'openssl')
+makedepends=('gcc' 'make' 'unixodbc' 'libmysqlclient' 'openssl' 'chrpath')
+options=()
+source=(http://downloads.sourceforge.net/poco/$pkgname-$pkgver-all.tar.bz2)
+
+build() {
+ cd $srcdir/$pkgname-$pkgver-all
+ ./configure --prefix=/usr --no-samples --no-tests
+ make
+}
+
+
+package() {
+ cd $srcdir/$pkgname-$pkgver-all
+
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+ #removing rpath information from binaries
+ chrpath -d $pkgdir/usr/bin/cpspc
+ chrpath -d $pkgdir/usr/bin/cpspcd
+ chrpath -d $pkgdir/usr/bin/f2cpspd
+ chrpath -d $pkgdir/usr/bin/f2cpsp
+
+ #removing debugging libraries
+ rm $pkgdir/usr/lib/libPoco*d.so*
+}
+
+md5sums=('752e5f5545377be24ee7c7b6b479fbbe')
diff --git a/pcr/ruby-headers/PKGBUILD b/pcr/ruby-headers/PKGBUILD
new file mode 100644
index 000000000..855c7ff38
--- /dev/null
+++ b/pcr/ruby-headers/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: fauno <fauno@kiwwwi.com.ar>
+# Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>
+
+pkgname=ruby-headers
+_pkgname=ruby
+pkgver=1.9.3_p385
+_pkgver=1.9.3-p385
+pkgrel=1
+pkgdesc="A package of all Ruby headers needed by some gems like ruby-debug."
+arch=('any')
+url="http://www.ruby-lang.org/en/"
+license=('GPL2' 'custom:Ruby')
+depends=("ruby=$pkgver")
+source=("http://ftp.ruby-lang.org/pub/ruby/1.9/$_pkgname-$_pkgver.tar.bz2")
+
+build() {
+ /bin/true
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$_pkgver"
+
+ # Just to make sure, since currently we have /usr/include/ruby-1.9.1 for ruby 1.9.2
+ _hdrdir=`ruby -e "require 'rbconfig'; puts Config::CONFIG['rubyhdrdir']"`
+
+ install -d "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
+ install -m644 *.{h,inc} "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+md5sums=('5ec9aff670f4912b0f6f0e11e855ef6c')
diff --git a/pcr/seeks/PKGBUILD b/pcr/seeks/PKGBUILD
new file mode 100644
index 000000000..32abb13f8
--- /dev/null
+++ b/pcr/seeks/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Kete < kete at ninthfloor dot org >
+
+pkgname=seeks
+pkgver=0.4.1
+pkgrel=6
+pkgdesc="A social decentralized internet overlay for collaborative searches"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.seeks-project.info/site/"
+license=('AGPL3' 'LGPL' 'BSD')
+backup=('etc/logrotate.d/seeks'
+ 'etc/conf.d/seeks'
+ 'etc/seeks/config')
+depends=('curl' 'libevent>=2.0' 'libxml2' 'opencv' 'protobuf' 'icu' 'tokyotyrant')
+makedepends=('pkg-config' 'docbook-xml' 'docbook2x')
+source=("http://downloads.sourceforge.net/project/${pkgname}/hippy/${pkgname}-${pkgver}.tar.gz"
+'seeks.conf.d'
+ 'seeks.rc.d'
+ 'img_websearch.patch'
+ 'conf.patch'
+ 'seeks.logrotate')
+install=seeks.install
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # replace <cxflann.h> by <cv.h>
+ patch -p1 -i "$srcdir/img_websearch.patch"
+
+ # linking issue with --as-needed linker flag, Cli not building with RC2
+ LDFLAGS="-Wl,--no-as-needed" \
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-httpserv-plugin \
+ --enable-extended-host-patterns
+ #--disable-cli \
+
+ sed -i s/,--as-needed,/,/ config.status
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check-local
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # Patch config file to make seeks log in /var/log instead of ./ (needed for rc.d)
+ patch -p1 -i "$srcdir/conf.patch"
+ make DESTDIR="$pkgdir/" install
+
+ install -D -m644 Licenses "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 ../seeks.conf.d "${pkgdir}/etc/conf.d/seeks"
+ install -D -m755 ../seeks.rc.d "${pkgdir}/etc/rc.d/seeks"
+ install -D -m600 ../seeks.logrotate "${pkgdir}/etc/logrotate.d/seeks"
+ install -d -m755 "${pkgdir}/var/log/seeks"
+ install -d -m755 "${pkgdir}/var/lib/seeks"
+}
+
+# vim:set ts=2 sw=2 et:
+md5sums=('2545192be5fa2e70d850f7395d039a0f'
+ 'ed29089d43873600726d570e63a5043d'
+ '72a00a931363edd2ed11c0072bfd5b10'
+ '2554e9f9f733d83203d0926e599e66db'
+ '71a99dafa726539b9de9055468e2f56c'
+ '5fbdf9c327999605b0f124132f27a27d')
diff --git a/pcr/seeks/conf.patch b/pcr/seeks/conf.patch
new file mode 100644
index 000000000..93e12c311
--- /dev/null
+++ b/pcr/seeks/conf.patch
@@ -0,0 +1,20 @@
+--- a/src/config 2011-11-13 15:21:14.000000000 +0100
++++ b/src/config 2011-11-13 15:46:15.856186336 +0100
+@@ -148,7 +148,7 @@
+ #
+ # No trailing "/", please.
+ #
+-confdir .
++confdir /etc/seeks
+ #
+ #
+ # 2.2. templdir
+@@ -193,7 +193,7 @@
+ #
+ # No trailing "/", please.
+ #
+-logdir .
++logdir /var/log/seeks
+ #
+ #
+ # 2.4. logfile
diff --git a/pcr/seeks/docbook2man.patch b/pcr/seeks/docbook2man.patch
new file mode 100644
index 000000000..c5de2e063
--- /dev/null
+++ b/pcr/seeks/docbook2man.patch
@@ -0,0 +1,24 @@
+--- seeks/configure 2011-07-30 15:16:27.000000000 +0200
++++ seeks/configure.patch 2011-07-30 16:04:34.000000000 +0200
+@@ -16726,10 +16726,10 @@ PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
+
+
+ #==========================================================================
+-# Finding docbook2x-man
++# Finding docbook2man
+ #==========================================================================
+-# Extract the first word of "docbook2x-man", so it can be a program name with args.
+-set dummy docbook2x-man; ac_word=$2
++# Extract the first word of "docbook2man", so it can be a program name with args.
++set dummy docbook2man; ac_word=$2
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+ $as_echo_n "checking for $ac_word... " >&6; }
+ if ${ac_cv_prog_docbook+:} false; then :
+--- seeks/doc/Makefile.am 2011-07-30 16:51:14.000000000 +0200
++++ seeks/doc/Makefile.am.patch 2011-07-30 16:55:58.000000000 +0200
+@@ -8,4 +8,4 @@ endif
+
+ EXTRA_DIST=seeks.1.docbook
+ seeks.1:
+- docbook2x-man ${srcdir}/seeks.1.docbook
++ docbook2man ${srcdir}/seeks.1.docbook
diff --git a/pcr/seeks/img_websearch.patch b/pcr/seeks/img_websearch.patch
new file mode 100644
index 000000000..94362e2fc
--- /dev/null
+++ b/pcr/seeks/img_websearch.patch
@@ -0,0 +1,13 @@
+diff --git a/src/plugins/img_websearch/ocvsurf.cpp b/src/plugins/img_websearch/ocvsurf.cpp
+index 5caa9dd..c3cccb4 100644
+--- a/src/plugins/img_websearch/ocvsurf.cpp
++++ b/src/plugins/img_websearch/ocvsurf.cpp
+@@ -29,7 +29,7 @@
+ #include "miscutil.h"
+ #include "errlog.h"
+
+-#include <cxflann.h>
++#include <cv.h>
+
+ #include <iostream>
+ #include <fstream>
diff --git a/pcr/seeks/install b/pcr/seeks/install
new file mode 100644
index 000000000..35f383a3c
--- /dev/null
+++ b/pcr/seeks/install
@@ -0,0 +1,18 @@
+post_install() {
+ getent group seeks >/dev/null || groupadd -r seeks
+ getent passwd seeks >/dev/null || useradd -r -c "Seeks daemon" -g seeks -M -d /var/run/seeks -s /bin/false seeks
+ passwd -l seeks &>/dev/null
+ touch var/log/seeks.log
+ chown seeks:log var/log/seeks.log
+ mkdir -p var/lib/seeks
+ touch var/lib/seeks/seeks.db
+ chown -R seeks:seeks var/lib/seeks
+}
+
+pre_remove() {
+ getent passwd seeks &>/dev/null && userdel seeks >/dev/null
+ getent group seeks &>/dev/null && groupdel seeks >/dev/null
+ return 0
+}
+
+
diff --git a/pcr/seeks/logfile.patch b/pcr/seeks/logfile.patch
new file mode 100644
index 000000000..9f4ab9b02
--- /dev/null
+++ b/pcr/seeks/logfile.patch
@@ -0,0 +1,29 @@
+--- config 2011-10-21 10:42:20.000000000 +0200
++++ config.patch 2011-11-17 18:48:48.914516206 +0100
+@@ -193,7 +193,7 @@
+ #
+ # No trailing "/", please.
+ #
+-logdir .
++logdir /var/log/
+ #
+ #
+ # 2.4. logfile
+@@ -239,7 +239,7 @@
+ # Any log files must be writable by whatever user Seeks is
+ # being run as.
+ #
+-logfile logfile
++logfile seeks.log
+ #
+ #
+ # 2.5. plugindir
+@@ -377,7 +377,7 @@
+ # Unset. This means the db is located in $HOME/.seeks/seeks_user.db
+ # as default location.
+ #
+-# user-db-file /path/to/file.db
++user-db-file /var/lib/seeks/seeks.db
+ #
+ # 2.10. user-db-address
+ # =====================
diff --git a/pcr/seeks/seeks b/pcr/seeks/seeks
new file mode 100755
index 000000000..01f34a432
--- /dev/null
+++ b/pcr/seeks/seeks
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+daemon_name="seeks"
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/$daemon_name
+
+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 $SEEKS_ARGS 2> /dev/null
+ #
+ 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
diff --git a/pcr/seeks/seeks.conf.d b/pcr/seeks/seeks.conf.d
new file mode 100644
index 000000000..c28382aca
--- /dev/null
+++ b/pcr/seeks/seeks.conf.d
@@ -0,0 +1,11 @@
+#
+# Arguments to be passed to the Seeks daemon
+#
+
+# User
+SEEKS_USER="seeks"
+# Config file (default if empty)
+SEEKS_CONFIG=""
+# Args
+SEEKS_ARGS=""
+
diff --git a/pcr/seeks/seeks.install b/pcr/seeks/seeks.install
new file mode 100644
index 000000000..bf9849e78
--- /dev/null
+++ b/pcr/seeks/seeks.install
@@ -0,0 +1,12 @@
+post_install() {
+ getent group seeks >/dev/null || groupadd -r seeks
+ getent passwd seeks >/dev/null || useradd -r -c "Seeks daemon" -g seeks -M -d /var/lib/seeks -s /bin/false seeks
+ passwd -l seeks &>/dev/null
+ chown seeks:seeks var/log/seeks var/lib/seeks
+}
+
+pre_remove() {
+ getent passwd seeks &>/dev/null && userdel seeks >/dev/null
+ getent group seeks &>/dev/null && groupdel seeks >/dev/null
+ return 0
+}
diff --git a/pcr/seeks/seeks.logrotate b/pcr/seeks/seeks.logrotate
new file mode 100644
index 000000000..98b411884
--- /dev/null
+++ b/pcr/seeks/seeks.logrotate
@@ -0,0 +1,6 @@
+/var/log/seeks/logfile {
+ missingok
+ notifempty
+ size 30k
+ create
+}
diff --git a/pcr/seeks/seeks.rc.d b/pcr/seeks/seeks.rc.d
new file mode 100644
index 000000000..67de9251a
--- /dev/null
+++ b/pcr/seeks/seeks.rc.d
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/seeks
+
+PIDFILE="/var/run/seeks.pid"
+
+if [[ -f $PIDFILE ]]; then
+ read -r PID < "$PIDFILE"
+
+ # prevent stale pidfiles from hanging around
+ if [[ ! -d /proc/$PID ]]; then
+ echo 'pid not found. deleteing stale pidfile'
+ unset PID
+ rm -f "$PIDFILE"
+ fi
+fi
+
+case "$1" in
+ start)
+ stat_busy "Starting Seeks"
+ if [[ $PID ]]; then
+ stat_fail
+ exit 1
+ fi
+ if /usr/bin/seeks --daemon --pidfile "$PIDFILE" --user $SEEKS_USER $SEEKS_ARGS $SEEKS_CONFIG 2>&1 > /dev/null; then
+ add_daemon seeks
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Seeks"
+ if [[ ! $PID ]]; then
+ stat_fail
+ exit 1
+ fi
+ if { kill $PID && rm -f "$PIDFILE"; } &>/dev/null; then
+ rm_daemon seeks
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+
diff --git a/pcr/seeks/seeksdaemon b/pcr/seeks/seeksdaemon
new file mode 100644
index 000000000..551197d28
--- /dev/null
+++ b/pcr/seeks/seeksdaemon
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/seeks
+
+PID=`pidof -o %PPID /usr/bin/seeks`
+
+case "$1" in
+ start)
+ stat_busy "Starting seeks daemon"
+ [ -z "$PID" ] && /usr/bin/seeks $SEEKS_ARGS
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon seeks
+ stat_done
+ fi
+ ;;
+
+ stop)
+ stat_busy "Stopping seeks daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon seeks
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+
+esac
+exit 0
+
diff --git a/pcr/sipwitch/PKGBUILD b/pcr/sipwitch/PKGBUILD
new file mode 100644
index 000000000..22852780c
--- /dev/null
+++ b/pcr/sipwitch/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Dan Serban
+# Contributors: David Zaragoza, Andrea Scarpino
+# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy>
+
+pkgname=sipwitch
+pkgver=1.2.4
+pkgrel=2
+pkgdesc="A call and registration server for the SIP protocol"
+arch=(i686 x86_64 mips64el)
+url=http://www.gnutelephony.org/index.php/GNU_SIP_Witch
+license=(GPL)
+depends=(libexosip2 ucommon)
+makedepends=(lynx)
+options=('!libtool')
+source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('6119cecb062ba4d0af18b427b01c41e2')
+
+build()
+{
+ cd "${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package()
+{
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ mkdir -p "${pkgdir}"/etc/rc.d
+ touch "${pkgdir}"/etc/rc.d/"${pkgname}"
+}
+
diff --git a/pcr/sobby/PKGBUILD b/pcr/sobby/PKGBUILD
new file mode 100644
index 000000000..892d88cee
--- /dev/null
+++ b/pcr/sobby/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Thomas Jost <schnouki@schnouki.net>
+pkgname=sobby
+pkgver=0.4.8
+pkgrel=2
+pkgdesc="Standalone obby server"
+url="http://gobby.0x539.de/trac/"
+license="GPL"
+depends=('obby=0.4.8' 'libxml++')
+makedepends=('pkgconfig' 'net6>=1.3.12')
+arch=('i686' 'x86_64' 'mips64el')
+source=(http://releases.0x539.de/sobby/sobby-$pkgver.tar.gz{,.sig})
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+}
+md5sums=('1f7cf8c09cdeddbf2152843b28f73ce1'
+ '96822427ab95289ebb1520e6353c5d3c')
diff --git a/pcr/spectrum/PKGBUILD b/pcr/spectrum/PKGBUILD
new file mode 100644
index 000000000..250840fb7
--- /dev/null
+++ b/pcr/spectrum/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Clément Démoulins <clement@archivel.fr>
+# Contributor: Sonny Piers <sonny.piers@gmail.com>
+# Contributor: Tim Besard <tim.besard@gmail.com>
+# Contributor: miniature <miniature@archlinux.us>
+
+pkgname=spectrum
+pkgver=1.4.8
+pkgrel=4
+pkgdesc="XMPP libpurple transport/gateway."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://spectrum.im"
+license=('GPL')
+depends=('gloox' 'libpurple-minimal' 'poco' 'python2' libev)
+replaces=('spectrum-git')
+makedepends=('cmake' 'gettext')
+optdepends=('mysql: MySQL database backend support'
+ 'postgresql-libs: PostgreSQL database backend support'
+ 'sqlite3: SQLite database backend support'
+ 'libevent: support for libevent'
+ 'imagemagick: support for avatars synchronization with legacy networks'
+
+ # Protocols plugins
+ 'mbpurple-svn: microblogging services support like Twitter or identi.ca/StatusNet'
+ 'msn-pecan: a different implementation of the MSN protocol for libpurple'
+ 'pidgin-facebookchat: Facebook support, with more features than Facebook XMPP server'
+ 'pidgin-sipe: SIPE protocol support'
+)
+backup=('etc/conf.d/spectrum')
+install='spectrum.install'
+
+source=('https://github.com/downloads/hanzz/libtransport/spectrum-1.4.8.tar.gz'
+ 'logrotate.spectrum'
+ 'gcc47.patch'
+ 'spectrum@.service'
+ 'spectrum.tmpfiles')
+md5sums=('edd88e1e70f86fe9aa4b43d787529a47'
+ '4f9cbfe3878fe5f4137d1bb5acc9e850'
+ '7a3de7e91d581b6c9119965ac34b9510'
+ '8abfd4926fec074847c4d28465af22bb'
+ '21dc715b3b2fb90c5349a12966277bc6')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ msg "Starting make..."
+
+ sed -i -e 's/${PYTHON_EXECUTABLE}/python2/g' CMakeLists.txt
+ patch -p1 < ../gcc47.patch
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
+ make
+
+ cd spectrumctl
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Various needed folders -- correct permissions are set in spectrum.install
+ install -d "${pkgdir}/etc/spectrum"
+ install -d "${pkgdir}/var/log/spectrum"
+ install -d "${pkgdir}/var/lib/spectrum"
+
+ # Install binaries and Python control script
+ make DESTDIR="${pkgdir}" install
+
+ cd spectrumctl
+ python2 setup.py install --root="${pkgdir}"
+
+ # Install initscript and logrotate config
+ install -Dm755 "${srcdir}/${pkgname}-${pkgver}/initscripts/archlinux/spectrum-rc.d" "${pkgdir}/etc/rc.d/spectrum"
+ install -Dm644 "${srcdir}/${pkgname}-${pkgver}/initscripts/archlinux/spectrum-conf.d" "${pkgdir}/etc/conf.d/spectrum"
+ install -Dm644 "${srcdir}/logrotate.spectrum" "${pkgdir}/etc/logrotate.d/spectrum"
+
+ # Install systemd related files
+ install -Dm644 "${srcdir}/spectrum@.service" "${pkgdir}/usr/lib/systemd/system/spectrum@.service"
+ install -Dm644 "${srcdir}/spectrum.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/spectrum.conf"
+
+ # Patch to use python2
+ sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "${pkgdir}/usr/bin/spectrumctl"
+}
diff --git a/pcr/spectrum/gcc47.patch b/pcr/spectrum/gcc47.patch
new file mode 100644
index 000000000..82cc58677
--- /dev/null
+++ b/pcr/spectrum/gcc47.patch
@@ -0,0 +1,97 @@
+diff -rupN spectrum-1.4.8/src/configinterface.cpp spectrum-1.4.8_gcc47/src/configinterface.cpp
+--- spectrum-1.4.8/src/configinterface.cpp 2011-06-11 15:17:44.000000000 +0200
++++ spectrum-1.4.8_gcc47/src/configinterface.cpp 2012-04-14 18:27:14.000000000 +0200
+@@ -18,6 +18,7 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ */
+
++#include <unistd.h>
+ #include "configinterface.h"
+ #include "sys/un.h"
+ #include "sys/socket.h"
+diff -rupN spectrum-1.4.8/src/spectrum_util.cpp spectrum-1.4.8_gcc47/src/spectrum_util.cpp
+--- spectrum-1.4.8/src/spectrum_util.cpp 2011-06-11 15:17:44.000000000 +0200
++++ spectrum-1.4.8_gcc47/src/spectrum_util.cpp 2012-04-14 18:26:33.000000000 +0200
+@@ -28,6 +28,7 @@
+ #include "protocols/abstractprotocol.h"
+ #include "transport.h"
+ #include <sys/param.h>
++#include <unistd.h>
+ #ifdef BSD
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+diff -rupN spectrum-1.4.8/src/utf8/checked.h spectrum-1.4.8_gcc47/src/utf8/checked.h
+--- spectrum-1.4.8/src/utf8/checked.h 2010-10-08 09:15:22.000000000 +0200
++++ spectrum-1.4.8_gcc47/src/utf8/checked.h 2012-04-14 18:26:31.000000000 +0200
+@@ -65,6 +65,35 @@ namespace utf8
+
+ /// The library API - functions intended to be called by the users
+
++ template <typename octet_iterator>
++ octet_iterator append(uint32_t cp, octet_iterator result)
++ {
++ if (!internal::is_code_point_valid(cp))
++ throw invalid_code_point(cp);
++
++ if (cp < 0x80) // one octet
++ *(result++) = static_cast<uint8_t>(cp);
++ else if (cp < 0x800) { // two octets
++ *(result++) = static_cast<uint8_t>((cp >> 6) | 0xc0);
++ *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
++ }
++ else if (cp < 0x10000) { // three octets
++ *(result++) = static_cast<uint8_t>((cp >> 12) | 0xe0);
++ *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
++ *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
++ }
++ else if (cp <= internal::CODE_POINT_MAX) { // four octets
++ *(result++) = static_cast<uint8_t>((cp >> 18) | 0xf0);
++ *(result++) = static_cast<uint8_t>(((cp >> 12)& 0x3f) | 0x80);
++ *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
++ *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
++ }
++ else
++ throw invalid_code_point(cp);
++
++ return result;
++ }
++
+ template <typename octet_iterator, typename output_iterator>
+ output_iterator replace_invalid(octet_iterator start, octet_iterator end, output_iterator out, uint32_t replacement)
+ {
+@@ -104,35 +133,6 @@ namespace utf8
+ }
+
+ template <typename octet_iterator>
+- octet_iterator append(uint32_t cp, octet_iterator result)
+- {
+- if (!internal::is_code_point_valid(cp))
+- throw invalid_code_point(cp);
+-
+- if (cp < 0x80) // one octet
+- *(result++) = static_cast<uint8_t>(cp);
+- else if (cp < 0x800) { // two octets
+- *(result++) = static_cast<uint8_t>((cp >> 6) | 0xc0);
+- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
+- }
+- else if (cp < 0x10000) { // three octets
+- *(result++) = static_cast<uint8_t>((cp >> 12) | 0xe0);
+- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
+- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
+- }
+- else if (cp <= internal::CODE_POINT_MAX) { // four octets
+- *(result++) = static_cast<uint8_t>((cp >> 18) | 0xf0);
+- *(result++) = static_cast<uint8_t>(((cp >> 12)& 0x3f) | 0x80);
+- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
+- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
+- }
+- else
+- throw invalid_code_point(cp);
+-
+- return result;
+- }
+-
+- template <typename octet_iterator>
+ uint32_t next(octet_iterator& it, octet_iterator end)
+ {
+ uint32_t cp = 0;
diff --git a/pcr/spectrum/logrotate.spectrum b/pcr/spectrum/logrotate.spectrum
new file mode 100644
index 000000000..ae52ff156
--- /dev/null
+++ b/pcr/spectrum/logrotate.spectrum
@@ -0,0 +1,10 @@
+/var/log/spectrum/*.log {
+ notifempty
+ missingok
+ sharedscripts
+ postrotate
+ for P in /var/run/spectrum/*.pid; do
+ /bin/kill -HUP `cat "$P" 2>/dev/null` 2>/dev/null || true
+ done
+ endscript
+}
diff --git a/pcr/spectrum/spectrum.install b/pcr/spectrum/spectrum.install
new file mode 100644
index 000000000..d3e0449fc
--- /dev/null
+++ b/pcr/spectrum/spectrum.install
@@ -0,0 +1,45 @@
+# arg 1: the new package version
+post_install() {
+ if [ -z "`grep '^spectrum:' /etc/group`" ]; then
+ groupadd -g 417 spectrum
+ fi
+ if [ -z "`grep '^spectrum:' /etc/passwd`" ]; then
+ useradd -u 417 -d /etc/spectrum -g spectrum -s /bin/false spectrum
+ fi
+
+ chown spectrum:spectrum var/lib/spectrum
+ chown spectrum:spectrum var/log/spectrum
+
+cat << EOF
+
+==> Documentation: http://spectrum.im/
+
+==> You must now customize the configuration file located in /etc/spectrum/. Copy and reconfigure for each seperate protocol.
+
+EOF
+
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+post_remove() {
+ userdel spectrum
+
+ paths=(/etc/spectrum /var/lib/spectrum /var/log/spectrum)
+
+ first=true
+ for path in ${paths[@]}; do
+ if [ -d $path ]; then
+ if $first; then
+ first=false
+ echo "==> Leftover Paths:"
+ fi
+ echo "==> $path"
+ fi
+ done
+}
diff --git a/pcr/spectrum/spectrum.tmpfiles b/pcr/spectrum/spectrum.tmpfiles
new file mode 100644
index 000000000..cabe97bc5
--- /dev/null
+++ b/pcr/spectrum/spectrum.tmpfiles
@@ -0,0 +1 @@
+d /run/spectrum 0750 spectrum spectrum -
diff --git a/pcr/spectrum/spectrum@.service b/pcr/spectrum/spectrum@.service
new file mode 100644
index 000000000..8e1338543
--- /dev/null
+++ b/pcr/spectrum/spectrum@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Spectrum XMPP transport for %i
+After=network.service prosody.service ejabberd.service
+
+[Service]
+Type=forking
+PIDFile=/run/spectrum/%i.pid
+ExecStart=/usr/bin/spectrumctl --su=spectrum -c /etc/spectrum/%i.cfg start
+ExecStop=/usr/binspectrumctl --su=spectrum -c /etc/spectrum/%i.cfg stop
+ExecReload=/usr/binspectrumctl --su=spectrum -c /etc/spectrum/%i.cfg reload
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/pcr/squirm/PKGBUILD b/pcr/squirm/PKGBUILD
new file mode 100644
index 000000000..a1249c39d
--- /dev/null
+++ b/pcr/squirm/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Spider.007 <archPackage@spider007.net>
+# Contributor: Spider.007 <archPackage@spider007.net>
+pkgname=squirm
+pkgver=1.26
+pkgrel=2
+pkgdesc="Fast & configurable proxy redirector"
+url="http://squirm.foote.com.au/"
+source=("$url/$pkgname-$pkgver.tgz")
+md5sums=('54ac1d208620ec1e4419f97315d38848')
+license=('GPL2')
+arch=('i686' 'x86_64' 'mips64el')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make PREFIX=/usr
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+# make install uses a weird prefix
+ install -d $pkgdir/etc/squirm $pkgdir/var/log/squirm
+ install -Dm755 squirm $pkgdir/usr/bin/squirm
+ install -m644 squirm.conf.dist $pkgdir/etc/squirm/squirm.conf
+ install -m644 squirm.patterns.dist $pkgdir/etc/squirm/squirm.patterns
+
+# use absolute path files
+ sed -e "s,logs,/var/log/squirm,g" \
+ -e "s,pattern ,& /etc/squirm/,g" \
+ -i $pkgdir/etc/squirm/squirm.conf
+}
diff --git a/pcr/strongswan/PKGBUILD b/pcr/strongswan/PKGBUILD
new file mode 100644
index 000000000..ed603e5c2
--- /dev/null
+++ b/pcr/strongswan/PKGBUILD
@@ -0,0 +1,45 @@
+# Contributor: nikicat <develniks at gmail dot com>
+# Contributor: danilo <gezuru at gmail dot com>
+# Contributor: Jason Begley <jayray at digitalgoat dot com>
+# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
+# Contributor: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
+# Contributor: 458italia <svenskaparadox [at] gmail dot com>
+# Maintainer: dkorzhevin <dkorzhevin at gmail dot com>
+
+pkgname=strongswan
+pkgver=5.0.1
+pkgrel=2
+pkgdesc="open source IPsec implementation"
+url='http://www.strongswan.org'
+license=("GPL")
+arch=('i686' 'x86_64' 'mips64el')
+depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite3')
+conflicts=('openswan')
+options=(!libtool)
+backup=(etc/ipsec.conf etc/strongswan.conf)
+source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2 strongswan.rc::https://gist.github.com/raw/3106703/96d2ce9683f1e33ef14c679880ddc298e9673508/strongswan.rc)
+md5sums=('58fdeb49f133139a58f4d8adafc69a16'
+ 'cf815adef48a1ffee34517380c731277')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver} || return 1
+
+ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-ipsecdir=/usr/lib/strongswan \
+ --enable-sqlite \
+ --enable-openssl --enable-curl \
+ --enable-sql --enable-attr-sql \
+ --enable-farp --enable-dhcp \
+ --enable-eap-sim --enable-eap-sim-file --enable-eap-simaka-pseudonym \
+ --enable-eap-simaka-reauth --enable-eap-identity --enable-eap-md5 \
+ --enable-eap-gtc --enable-eap-aka --enable-eap-aka-3gpp2 \
+ --enable-eap-mschapv2 --enable-eap-radius --enable-xauth-eap \
+ --enable-ha \
+ --disable-mysql --disable-ldap || return 1
+
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+
+ install -d ${pkgdir}/etc/rc.d || return 1
+ ln -s /usr/sbin/ipsec ${pkgdir}/etc/rc.d/ipsec || return 1
+ install -Dm755 ${srcdir}/strongswan.rc ${pkgdir}/etc/rc.d/strongswan || return 1
+}
diff --git a/pcr/strongswan/strongswan.rc b/pcr/strongswan/strongswan.rc
new file mode 100644
index 000000000..58c99c092
--- /dev/null
+++ b/pcr/strongswan/strongswan.rc
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Starting strongSwan IPsec"
+ /usr/sbin/ipsec start
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ add_daemon strongswan
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping strongSwan IPsec"
+ /usr/sbin/ipsec stop
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ rm_daemon strongswan
+ fi
+ ;;
+ restart)
+ stat_busy "Restarting strongSwan IPsec"
+ /usr/sbin/ipsec restart
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ stat_done
+ add_daemon strongswan
+ fi
+ ;;
+ status)
+ /usr/sbin/ipsec status
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart|status}"
+esac
+
diff --git a/pcr/tokyotyrant/PKGBUILD b/pcr/tokyotyrant/PKGBUILD
new file mode 100644
index 000000000..ea5c94e30
--- /dev/null
+++ b/pcr/tokyotyrant/PKGBUILD
@@ -0,0 +1,33 @@
+# # Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Paul Sadauskas <psadauskas@gmail.com>
+
+pkgname=tokyotyrant
+pkgver=1.1.41
+pkgrel=3
+pkgdesc="Network interface to TokyoCabinet"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.fallabs.com"
+license=('LGPL')
+makedepends=('gcc>=3.1' 'make' 'pkgconfig')
+depends=('zlib' 'bzip2' 'tokyocabinet>=1.4.27')
+source=("http://fallabs.com/$pkgname/$pkgname-$pkgver.tar.gz"
+ "tokyotyrant.rc"
+ "tokyotyrant.conf")
+
+md5sums=('a47e58897bd1cbbac173d5a66cc32ae3'
+ '3ed9229c9cfb8e1b3055b814d5038799'
+ '2558846ece69d1f265ee1ba5728c39cd')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="$pkgdir" install
+ install -m 644 -D ${srcdir}/tokyotyrant.conf $pkgdir/etc/conf.d/ttserver
+ install -m 755 -D ${srcdir}/tokyotyrant.rc $pkgdir/etc/rc.d/ttserver
+}
+
diff --git a/pcr/tokyotyrant/tokyotyrant.conf b/pcr/tokyotyrant/tokyotyrant.conf
new file mode 100644
index 000000000..77c299a81
--- /dev/null
+++ b/pcr/tokyotyrant/tokyotyrant.conf
@@ -0,0 +1,21 @@
+# /etc/conf.d/ttserver: config file for /etc/init.d/ttserver
+
+# TCP port TokyoTyrant server should listen on
+TYRANT_PORT="1978"
+
+# Location of the TokyoTyrant server database
+# Also put addional options here, eg, #bnum
+# See 'ttserver' man page
+TYRANT_DB="/var/lib/tokyotyrant/tokyotyrant.tch"
+
+# Location of the TokyoTyrant server log file
+TYRANT_LOG_FILE="/var/log/ttserver.log"
+
+# Location of the TokyoTyrant server PID file
+TYRANT_PID_FILE="/var/run/ttserver.pid"
+
+# Pass extra options to TokyoTyrant server
+# Example: TYRANT_EXTRA_OPTS="-ld" - enables logging of debug messages
+# See the 'ttserver' man page for more
+TYRANT_EXTRA_OPTS=""
+
diff --git a/pcr/tokyotyrant/tokyotyrant.rc b/pcr/tokyotyrant/tokyotyrant.rc
new file mode 100644
index 000000000..eaecb0af0
--- /dev/null
+++ b/pcr/tokyotyrant/tokyotyrant.rc
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+# source config
+[ -f /etc/conf.d/ttserver ] && . /etc/conf.d/ttserver
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Starting TokyoTyrant Server"
+ /usr/bin/ttserver ${TYRANT_EXTRA_OPTS} -dmn -pid ${TYRANT_PID_FILE} -log ${TYRANT_LOG_FILE} -port ${TYRANT_PORT} ${TYRANT_DB}
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon ttserver
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping TokyoTyrant Server"
+ if [ -f $TYRANT_PID_FILE ]; then
+ pid=`cat "$TYRANT_PID_FILE"`
+ kill -TERM "$pid"
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon ttserver
+ stat_done
+ fi
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0