summaryrefslogtreecommitdiff
path: root/social/spectrum
diff options
context:
space:
mode:
Diffstat (limited to 'social/spectrum')
-rw-r--r--social/spectrum/PKGBUILD68
-rw-r--r--social/spectrum/logrotate.spectrum10
-rw-r--r--social/spectrum/spectrum.install47
3 files changed, 0 insertions, 125 deletions
diff --git a/social/spectrum/PKGBUILD b/social/spectrum/PKGBUILD
deleted file mode 100644
index c377b6e63..000000000
--- a/social/spectrum/PKGBUILD
+++ /dev/null
@@ -1,68 +0,0 @@
-# Maintainer (Arch): Sonny Piers <sonny.piers@gmail.com>
-# Contributor (Arch): Tim Besard <tim.besard@gmail.com>
-
-pkgname=spectrum
-pkgver=1.4.8
-pkgrel=1
-pkgdesc="XMPP libpurple transport/gateway."
-arch=('i686' 'x86_64' 'mips64el')
-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
deleted file mode 100644
index ae52ff156..000000000
--- a/social/spectrum/logrotate.spectrum
+++ /dev/null
@@ -1,10 +0,0 @@
-/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
deleted file mode 100644
index 738fc5bbe..000000000
--- a/social/spectrum/spectrum.install
+++ /dev/null
@@ -1,47 +0,0 @@
-# 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
-}