From db83c17ba25c263db80a7999254a255b14ef0e37 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sun, 23 Oct 2011 04:57:38 -0300 Subject: social/{asterisk,dropbear,openswan,poco,sipwitch,spectrum,ucommon} --- social/asterisk/PKGBUILD | 41 +++++++++++++++++ social/asterisk/asterisk | 38 ++++++++++++++++ social/asterisk/asterisk.install | 38 ++++++++++++++++ social/asterisk/asterisk.logrotated | 10 +++++ social/dropbear/PKGBUILD | 46 +++++++++++++++++++ social/dropbear/dropbear-conf.d | 15 +++++++ social/dropbear/dropbear-rc.d | 88 +++++++++++++++++++++++++++++++++++++ social/openswan/PKGBUILD | 46 +++++++++++++++++++ social/openswan/compile.patch | 11 +++++ social/openswan/openswan.rc.d | 43 ++++++++++++++++++ social/poco/PKGBUILD | 44 +++++++++++++++++++ social/sipwitch/PKGBUILD | 31 +++++++++++++ social/spectrum/PKGBUILD | 68 ++++++++++++++++++++++++++++ social/spectrum/logrotate.spectrum | 10 +++++ social/spectrum/spectrum.install | 47 ++++++++++++++++++++ social/ucommon/PKGBUILD | 28 ++++++++++++ 16 files changed, 604 insertions(+) create mode 100644 social/asterisk/PKGBUILD create mode 100644 social/asterisk/asterisk create mode 100644 social/asterisk/asterisk.install create mode 100644 social/asterisk/asterisk.logrotated create mode 100644 social/dropbear/PKGBUILD create mode 100644 social/dropbear/dropbear-conf.d create mode 100644 social/dropbear/dropbear-rc.d create mode 100644 social/openswan/PKGBUILD create mode 100644 social/openswan/compile.patch create mode 100755 social/openswan/openswan.rc.d create mode 100644 social/poco/PKGBUILD create mode 100644 social/sipwitch/PKGBUILD create mode 100644 social/spectrum/PKGBUILD create mode 100644 social/spectrum/logrotate.spectrum create mode 100644 social/spectrum/spectrum.install create mode 100644 social/ucommon/PKGBUILD diff --git a/social/asterisk/PKGBUILD b/social/asterisk/PKGBUILD new file mode 100644 index 000000000..7318e71dc --- /dev/null +++ b/social/asterisk/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: Alessio Biancalana + +pkgname=asterisk +pkgver=1.8.7.0 +pkgrel=1 +pkgdesc="A complete PBX solution" +arch=('i686' 'x86_64') +url="http://www.asterisk.org" +license=('GPL') +depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl') +makedepends=('postgresql' 'unixodbc' 'sqlite3') +optdepends=('libpri' 'libss7' 'openr2') +backup=(etc/asterisk/asterisk.conf) +source=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$pkgver.tar.gz \ + asterisk \ + asterisk.logrotated) +install=$pkgname.install +md5sums=('5c6616a53fa3f300420ea17fd23abae9' + '59146273738605f1e011d8e7bed3561a' + '486e07a0a1405ea25ec5b1736034653e') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make +} + +package(){ + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} samples + + (cd ${pkgdir}/etc/asterisk +# for i in `ls`; do [ $i = "asterisk.conf" ] || mv $i $i.default; done +ls -I asterisk.conf | xargs -I '{}' mv '{}' '{}.default') +# cp ${srcdir}/modules.conf modules.conf + sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $startdir/pkg/etc/asterisk/asterisk.conf + + install -D -m 755 ${srcdir}/asterisk ${pkgdir}/etc/rc.d/asterisk + install -D -m 644 ${srcdir}/asterisk.logrotated ${pkgdir}/etc/logrotate.d/asterisk + } diff --git a/social/asterisk/asterisk b/social/asterisk/asterisk new file mode 100644 index 000000000..f823caefc --- /dev/null +++ b/social/asterisk/asterisk @@ -0,0 +1,38 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/asterisk` +case "$1" in + start) + stat_busy "Starting Asterisk" + [ -z "$PID" ] && cd /var/lib/asterisk && /usr/sbin/asterisk -G asterisk -U asterisk + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon asterisk + stat_done + fi + ;; + stop) + stat_busy "Stopping Asterisk" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /var/run/asterisk/asterisk.pid &>/dev/null + rm_daemon asterisk + stat_done + fi + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/social/asterisk/asterisk.install b/social/asterisk/asterisk.install new file mode 100644 index 000000000..1a3b998b7 --- /dev/null +++ b/social/asterisk/asterisk.install @@ -0,0 +1,38 @@ +post_install() { + echo -n "adding asterisk system group... " + groupadd -g 5060 asterisk && echo "done." + echo -n "adding asterisk system user... " + useradd -c "Asterisk daemon" -u 5060 -d /var/lib/asterisk -g asterisk -s /bin/false asterisk \ + && echo "done." + passwd -l asterisk &>/dev/null + chown -R asterisk:asterisk /var/run/asterisk + chown -R asterisk:asterisk /var/log/asterisk + chown -R asterisk:asterisk /var/spool/asterisk + chown -R asterisk:asterisk /var/lib/asterisk + +cat << EOF +>>> +>>> To get Music on Hold working do pacman -S mpg123 +>>> To get the postgresql, unixodbc or sqlite2 modules working +>>> download the respective package and modify modules.conf to reflect +>>> your changes. +>>> +EOF + +} + +post_upgrade() { + if grep asterisk /etc/passwd &>/dev/null; then + /bin/true + else + post_install $1 + fi +} + +post_remove() { + echo -n -e "\nremoving asterisk system user... " + userdel asterisk && echo "done." +} +op=$1 +shift +$op $* diff --git a/social/asterisk/asterisk.logrotated b/social/asterisk/asterisk.logrotated new file mode 100644 index 000000000..f03d0acd3 --- /dev/null +++ b/social/asterisk/asterisk.logrotated @@ -0,0 +1,10 @@ +/var/log/asterisk/*_log /var/log/asterisk/messages { + create 640 asterisk asterisk + compress + missingok + notifempty + postrotate + /usr/sbin/asterisk -rx "logger reload" 1>/dev/null || true + endscript +} + diff --git a/social/dropbear/PKGBUILD b/social/dropbear/PKGBUILD new file mode 100644 index 000000000..2df24cb15 --- /dev/null +++ b/social/dropbear/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Jaroslav Lichtblau +# Contributor: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`> +# Contributor: Jeremy Cowgar + +pkgname=dropbear +pkgver=0.53.1 +pkgrel=1 +pkgdesc="Lightweight replacement for sshd" +arch=('i686' 'x86_64') +url="http://matt.ucc.asn.au/dropbear/dropbear.html" +license=('custom:BSD' 'custom:PD') +depends=('zlib') +source=(http://matt.ucc.asn.au/$pkgname/releases/$pkgname-$pkgver.tar.bz2 \ + $pkgname-conf.d \ + $pkgname-rc.d) +sha256sums=('e24d3cbecd3bc850b2b336b8eb50c845a285ceef8e22544938a582e163d36393' + 'eaec8cecae4476a660351ba9079c91b7c379146a22df881bd24b81af8f50d74c' + '29ab5438d15bfa727620fc04ec52ff55d676577b903c9261ce00bb291ae171a8') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + sed -i 's:usr/libexec/sftp:usr/lib/ssh/sftp:' options.h + + ./configure --prefix=/usr + LIBS="-lcrypt" make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make prefix=${pkgdir}/usr install + +#man pages + install -D -m644 dbclient.1 ${pkgdir}/usr/share/man/man1/dbclient.1 + install -D -m644 $pkgname.8 ${pkgdir}/usr/share/man/man8/$pkgname.8 + install -D -m644 dropbearkey.8 ${pkgdir}/usr/share/man/man8/dropbearkey.8 + +#configuration files + install -d ${pkgdir}/etc/$pkgname + install -D -m644 ${srcdir}/$pkgname-conf.d ${pkgdir}/etc/conf.d/$pkgname + install -D -m755 ${srcdir}/$pkgname-rc.d ${pkgdir}/etc/rc.d/$pkgname + +#license file + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE +} diff --git a/social/dropbear/dropbear-conf.d b/social/dropbear/dropbear-conf.d new file mode 100644 index 000000000..6f3b8f0c5 --- /dev/null +++ b/social/dropbear/dropbear-conf.d @@ -0,0 +1,15 @@ +# the TCP port that Dropbear listens on +DROPBEAR_PORT="127.0.0.1:22" # Default to local-only. + +# any additional arguments for Dropbear +DROPBEAR_EXTRA_ARGS="-w" # Default to no-root logins. + +# specify an optional banner file containing a message to be +# sent to clients before they connect, such as "/etc/issue.net" +DROPBEAR_BANNER="" + +# RSA hostkey file (default: /etc/dropbear/dropbear_rsa_host_key) +#DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" + +# DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key) +DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" diff --git a/social/dropbear/dropbear-rc.d b/social/dropbear/dropbear-rc.d new file mode 100644 index 000000000..011880b3b --- /dev/null +++ b/social/dropbear/dropbear-rc.d @@ -0,0 +1,88 @@ +#!/bin/bash +daemon_name=dropbear + +. /etc/rc.conf +. /etc/rc.d/functions + +. /etc/conf.d/$daemon_name + +for port in $DROPBEAR_PORT; do + daemon_args="$daemon_args -p $port" +done + +[ ! -z $DROPBEAR_BANNER ] && daemon_args="$daemon_args -b $DROPBEAR_BANNER" +[ ! -z $DROPBEAR_DSSKEY ] && daemon_args="$daemon_args -d $DROPBEAR_DSSKEY" +[ ! -z $DROPBEAR_RSAKEY ] && daemon_args="$daemon_args -r $DROPBEAR_RSAKEY" +[ ! -z $DROPBEAR_EXTRA_ARGS ] && daemon_args="$daemon_args $DROPBEAR_EXTRA_ARGS" +[ -z $DROPBEAR_PIDFILE ] && DROPBEAR_PIDFILE="/var/run/$daemon_name.pid" +daemon_args="$daemon_args -P $DROPBEAR_PIDFILE" + +get_pid() { + PID='' + if [ -r $DROPBEAR_PIDFILE -a -f $DROPBEAR_PIDFILE -a -w $DROPBEAR_PIDFILE ]; then + if kill -0 "`< $DROPBEAR_PIDFILE`" &>/dev/null; then # kill -0 == "exit code indicates if a signal may be sent" + PID="`< $DROPBEAR_PIDFILE`" + else # may not send signals to dropbear, because it's probably not running => remove pidfile + rm -f $DROPBEAR_PIDFILE + fi + fi +} + +case "$1" in + start) + stat_busy "Starting $daemon_name" + get_pid + if [ -z "$PID" ]; then + printhl "Checking for hostkeys" + if [ ! -z $DROPBEAR_DSSKEY ]; then + [ ! -f $DROPBEAR_DSSKEY ] && dropbearkey -t dss -f $DROPBEAR_DSSKEY + fi; + if [ ! -z $DROPBEAR_RSAKEY ]; then + [ ! -f $DROPBEAR_RSAKEY ] && dropbearkey -t rsa -f $DROPBEAR_RSAKEY + fi; + + $daemon_name $daemon_args # Make it Go Joe! + if [ $? -gt 0 ]; then + stat_die + else + add_daemon $daemon_name + stat_done + fi + else + stat_die + fi + ;; + + stop) + stat_busy "Stopping $daemon_name" + + get_pid + [ ! -z "$PID" ] && kill $PID &> /dev/null # Be dead (please), I say! + if [ $? -gt 0 ]; then + stat_die + else + rm_daemon $daemon_name + stat_done + fi + ;; + + restart) + $0 stop + sleep 3 + $0 start + ;; + + fingerprint) + stat_busy "Fingerprinting $daemon_name hostkeys" + if [ ! -z $DROPBEAR_DSSKEY ]; then + printhl "DSS/DSA Key $(dropbearkey -y -f $DROPBEAR_DSSKEY | grep Fingerprint)" + fi; + if [ ! -z $DROPBEAR_RSAKEY ]; then + printhl "RSA Key $(dropbearkey -y -f $DROPBEAR_RSAKEY | grep Fingerprint)" + fi; + ;; + + *) + echo "usage: $0 {start|stop|restart|fingerprint}" +esac +exit 0 diff --git a/social/openswan/PKGBUILD b/social/openswan/PKGBUILD new file mode 100644 index 000000000..b60ca8401 --- /dev/null +++ b/social/openswan/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Jan Fader +pkgname=openswan +pkgver=2.6.36 +pkgrel=1 +pkgdesc="Open Source implementation of IPsec for the Linux operating system" +url="http://www.openswan.org" +license=('GPL' 'custom') +arch=('i686' 'x86_64') +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/social/openswan/compile.patch b/social/openswan/compile.patch new file mode 100644 index 000000000..8ddff67f2 --- /dev/null +++ b/social/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/social/openswan/openswan.rc.d b/social/openswan/openswan.rc.d new file mode 100755 index 000000000..30bd0d56e --- /dev/null +++ b/social/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/social/poco/PKGBUILD b/social/poco/PKGBUILD new file mode 100644 index 000000000..be15eea8a --- /dev/null +++ b/social/poco/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Rodrigo Grumiche Silva +# Contributor: nozog +# Contributor: davidhjelm +# Contributor: Ray Kohler +# Contributor: Nathan Owe < ndowens04 at gmail dot com> + +pkgname=poco +pkgver=1.4.2p1 +pkgrel=1 +pkgdesc="C++ class libraries for network-centric, portable applications, +complete edition" +arch=('i686' 'x86_64') +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/social/sipwitch/PKGBUILD b/social/sipwitch/PKGBUILD new file mode 100644 index 000000000..98191c8d5 --- /dev/null +++ b/social/sipwitch/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Dan Serban +# Contributor: Andrea Scarpino +# Contributor: David Zaragoza + +pkgname=sipwitch +pkgver=1.1.2 +pkgrel=1 +pkgdesc="A call and registration server for the SIP protocol" +arch=(i686 x86_64) +url=http://www.gnutelephony.org/index.php/GNU_SIP_Witch +license=(GPL) +depends=(libexosip2 ucommon) +makedepends=(pkg-config) +options=('!libtool') +source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz") + +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}" +} +md5sums=('08a235ddc0f75238c3670e857a30ae0b') diff --git a/social/spectrum/PKGBUILD b/social/spectrum/PKGBUILD new file mode 100644 index 000000000..95040efb6 --- /dev/null +++ b/social/spectrum/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Sonny Piers +# Contributor: Tim Besard + +pkgname=spectrum +pkgver=1.4.8 +pkgrel=1 +pkgdesc="XMPP libpurple transport/gateway." +arch=('i686' 'x86_64') +url="http://spectrum.im" +license=('GPL') +depends=('gloox' 'libpurple-minimal' 'poco' 'python2' 'libev') +makedepends=('cmake' 'gettext' 'pkg-config') +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') +source=('http://spectrum.im/attachments/download/43/spectrum-1.4.8.tar.gz' + 'logrotate.spectrum') +md5sums=('edd88e1e70f86fe9aa4b43d787529a47' + '4f9cbfe3878fe5f4137d1bb5acc9e850') + +install='spectrum.install' + + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + msg "Starting make..." + + 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/run/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" + + # Patch to use python2 + sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "${pkgdir}/usr/bin/spectrumctl" +} diff --git a/social/spectrum/logrotate.spectrum b/social/spectrum/logrotate.spectrum new file mode 100644 index 000000000..ae52ff156 --- /dev/null +++ b/social/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/social/spectrum/spectrum.install b/social/spectrum/spectrum.install new file mode 100644 index 000000000..738fc5bbe --- /dev/null +++ b/social/spectrum/spectrum.install @@ -0,0 +1,47 @@ +# 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 + chown spectrum:spectrum var/run/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 + /var/run/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/social/ucommon/PKGBUILD b/social/ucommon/PKGBUILD new file mode 100644 index 000000000..240fcc3db --- /dev/null +++ b/social/ucommon/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Dan Serban +# Contributor: Andrea Scarpino +# Contributor: David Zaragoza + +pkgname=ucommon +pkgver=5.0.6 +pkgrel=1 +pkgdesc="A light-weight C++ library to facilitate using C++ design patterns" +arch=(i686 x86_64) +url="http://www.gnutelephony.org/index.php/GNU_uCommon_C%2B%2B" +license=(GPL) +depends=(openssl) +options=('!libtool') +source=("http://ftp.gnu.org/gnu/commoncpp/${pkgname}-${pkgver}.tar.gz") + +build() +{ + cd "${pkgname}-${pkgver}" + ./configure --prefix=/usr + make +} + +package() +{ + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} +md5sums=('86958df511e66bb6ea099b6ca3c3b582') -- cgit v1.2.3-54-g00ecf