From 4fd38b1c7635719535ed16a2ed7cf6814ded90f8 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 28 Jan 2011 03:23:04 -0300 Subject: updated README and [social] ABS tree --- README | 1 + pkgs/diaspora-git/PKGBUILD | 89 ++ pkgs/diaspora-git/diaspora.bin | 3 + pkgs/diaspora-git/diaspora.install | 29 + pkgs/diaspora-git/diaspora.logrotate | 5 + pkgs/diaspora-git/diaspora.pam | 3 + pkgs/diaspora-git/diaspora.rc | 65 ++ pkgs/gnu-social/PKGBUILD | 75 ++ pkgs/gnu-social/gnu-social.install | 11 + pkgs/haveged/PKGBUILD | 41 + pkgs/ldapscripts/PKGBUILD | 15 + pkgs/lua-cyrussasl/ChangeLog | 6 + pkgs/lua-cyrussasl/PKGBUILD | 41 + pkgs/lua-cyrussasl/lua-cyrussasl.patch | 37 + pkgs/luaevent-prosody/ChangeLog | 30 + pkgs/luaevent-prosody/PKGBUILD | 20 + pkgs/parabola-social/PKGBUILD | 22 + pkgs/perl-any-moose/PKGBUILD | 34 + pkgs/perl-gnupg-interface/PKGBUILD | 25 + pkgs/perl-mouse/PKGBUILD | 33 + pkgs/perl-regexp-common/PKGBUILD | 26 + pkgs/ruby-bundler/PKGBUILD | 24 + pkgs/social/diaspora-git/PKGBUILD | 99 +++ pkgs/social/diaspora-git/diaspora.bin | 3 + pkgs/social/diaspora-git/diaspora.install | 29 + pkgs/social/diaspora-git/diaspora.logrotate | 5 + pkgs/social/diaspora-git/diaspora.pam | 3 + pkgs/social/diaspora-git/diaspora.rc | 65 ++ pkgs/social/monkeysphere/PKGBUILD | 23 + pkgs/social/monkeysphere/monkeysphere.install | 40 + pkgs/statusnet/PKGBUILD | 1131 ++++++++++++++++++++++++- pkgs/statusnet/statusnet.install | 6 +- pkgs/varnish/PKGBUILD | 47 + pkgs/varnish/varnish.conf | 9 + pkgs/varnish/varnish.init | 41 + pkgs/varnish/varnish.install | 4 + pkgs/varnish/varnish.log.runit | 4 + pkgs/varnish/varnish.runit | 28 + 38 files changed, 2150 insertions(+), 22 deletions(-) create mode 100644 pkgs/diaspora-git/PKGBUILD create mode 100644 pkgs/diaspora-git/diaspora.bin create mode 100644 pkgs/diaspora-git/diaspora.install create mode 100644 pkgs/diaspora-git/diaspora.logrotate create mode 100644 pkgs/diaspora-git/diaspora.pam create mode 100644 pkgs/diaspora-git/diaspora.rc create mode 100644 pkgs/gnu-social/PKGBUILD create mode 100644 pkgs/gnu-social/gnu-social.install create mode 100644 pkgs/haveged/PKGBUILD create mode 100644 pkgs/ldapscripts/PKGBUILD create mode 100644 pkgs/lua-cyrussasl/ChangeLog create mode 100644 pkgs/lua-cyrussasl/PKGBUILD create mode 100644 pkgs/lua-cyrussasl/lua-cyrussasl.patch create mode 100644 pkgs/luaevent-prosody/ChangeLog create mode 100644 pkgs/luaevent-prosody/PKGBUILD create mode 100644 pkgs/parabola-social/PKGBUILD create mode 100644 pkgs/perl-any-moose/PKGBUILD create mode 100644 pkgs/perl-gnupg-interface/PKGBUILD create mode 100644 pkgs/perl-mouse/PKGBUILD create mode 100644 pkgs/perl-regexp-common/PKGBUILD create mode 100644 pkgs/ruby-bundler/PKGBUILD create mode 100644 pkgs/social/diaspora-git/PKGBUILD create mode 100644 pkgs/social/diaspora-git/diaspora.bin create mode 100644 pkgs/social/diaspora-git/diaspora.install create mode 100644 pkgs/social/diaspora-git/diaspora.logrotate create mode 100644 pkgs/social/diaspora-git/diaspora.pam create mode 100644 pkgs/social/diaspora-git/diaspora.rc create mode 100644 pkgs/social/monkeysphere/PKGBUILD create mode 100644 pkgs/social/monkeysphere/monkeysphere.install create mode 100644 pkgs/varnish/PKGBUILD create mode 100644 pkgs/varnish/varnish.conf create mode 100755 pkgs/varnish/varnish.init create mode 100644 pkgs/varnish/varnish.install create mode 100755 pkgs/varnish/varnish.log.runit create mode 100755 pkgs/varnish/varnish.runit diff --git a/README b/README index 131942c..f2f09dc 100644 --- a/README +++ b/README @@ -17,6 +17,7 @@ - Generate self-signed certificate or install one (self-signed aren't working with OpenID because of CA lacking) (get one from CACert.org) + (use certtool --generate-self-signed) (http://ur1.ca/23a34 solves this, we should apply it to SimpleID) - Generate crontab for remembering to re-create - Key is located at and linked to /etc/ssl/private/{$hostname,local}.key diff --git a/pkgs/diaspora-git/PKGBUILD b/pkgs/diaspora-git/PKGBUILD new file mode 100644 index 0000000..9435a7e --- /dev/null +++ b/pkgs/diaspora-git/PKGBUILD @@ -0,0 +1,89 @@ +# Maintainer: Hilton Medeiros +# Contributor: Splashy + +# After installing, see the Diaspora wiki page for more information: +# https://wiki.archlinux.org/index.php/Diaspora + +pkgname=diaspora-git +pkgver=20101224 +pkgrel=1 +pkgdesc="A privacy aware, personally controlled, do-it-all, open source social network" +arch=('i686' 'x86_64') +url="http://www.joindiaspora.com/" +license=('AGPL3') +depends=('ruby' 'ruby-bundler' 'mongodb' 'redis' 'imagemagick' 'libxslt') +makedepends=('git') +groups=('social-web') +install=diaspora.install +source=('diaspora.bin' + 'diaspora.rc' + 'diaspora.logrotate' + 'diaspora.pam') +md5sums=('96db508a5a0e2e078521ad71c994eee6' + 'f9477e2421f24e9a3798ff253f3e5765' + '60f6b3972c73cbc6b1c9ab87c88fb655' + '96f82c38f3f540b53f3e5144900acf17') + +_gitroot="git://github.com/diaspora/diaspora.git" +_gitname="diaspora" + +build() { + cd "$srcdir" + + msg "Connecting to the Git server..." + + if [[ -d $_gitname ]] ; then + pushd $_gitname + git pull origin + msg "The local files are updated." + popd + else + git clone $_gitroot + msg "Git clone done." + fi + + msg "Start making..." + + [[ -d $_gitname-build ]] && rm -fr $_gitname-build + git clone $_gitname $_gitname-build + + # Recover gems cache + rm -fr $_gitname-gems + mkdir -p $_gitname-gems + [[ -d cache ]] && mv cache $_gitname-gems + + export GEM_HOME="$srcdir/$_gitname-gems" + + # Patch ruby_core_source to not install the headers in the system + # Remove this if you are behind a proxy and install the ruby-headers package instead + gem install ruby_core_source + sed -i "s@^ dest_dir.*@ dest_dir = \"$srcdir/rubyhdrs/\" + ruby_dir@" \ + $_gitname-gems/gems/ruby_core_source*/lib/ruby_core_source.rb + + pushd $_gitname-build + bundle install + + # We make this now because we do not install the git history + tar czf public/source.tar.gz `git ls-tree -r master | awk '{print $4}'` + + rm -fr .git + popd + + # Keep the gems cache + mv $_gitname-gems/cache "$srcdir" +} + +package() { + cd "$srcdir" + + install -d "$pkgdir/opt" + mv $_gitname-build "$pkgdir/opt/$_gitname" + cp -r $_gitname-gems "$pkgdir/opt/" + find "$pkgdir/opt/$_gitname-gems" \ + -type d -name ".git" -exec rm -fr '{}' \; &>/dev/null || true + + install -Dm755 $_gitname.bin "$pkgdir/usr/bin/$_gitname" + install -Dm755 $_gitname.rc "$pkgdir/etc/rc.d/$_gitname" + install -Dm644 $_gitname.logrotate "$pkgdir/etc/logrotate.d/$_gitname" + install -Dm644 $_gitname.pam "$pkgdir/etc/pam.d/$_gitname" +} diff --git a/pkgs/diaspora-git/diaspora.bin b/pkgs/diaspora-git/diaspora.bin new file mode 100644 index 0000000..96639da --- /dev/null +++ b/pkgs/diaspora-git/diaspora.bin @@ -0,0 +1,3 @@ +cd /opt/diaspora +export GEM_HOME=/opt/diaspora-gems/ +./script/server &>>/var/log/diaspora.log diff --git a/pkgs/diaspora-git/diaspora.install b/pkgs/diaspora-git/diaspora.install new file mode 100644 index 0000000..45cbb9e --- /dev/null +++ b/pkgs/diaspora-git/diaspora.install @@ -0,0 +1,29 @@ + +dusr=diaspora +dhome=/opt/diaspora +dgems=/opt/diaspora-gems +dlog=/var/log/diaspora.log + +post_install() { + getent passwd $dusr &>/dev/null || useradd -r -d $dhome -s /bin/bash $dusr &>/dev/null + chown -R $dusr:$dusr $dhome $dgems &>/dev/null + [[ -f $dlog ]] && chown $dusr:$dusr $dlog +} + +pre_upgrade(){ + etc/rc.d/diaspora stop &>/dev/null + return 0 +} + +post_upgrade(){ + post_install $1 +} + +pre_remove(){ + pre_upgrade $1 +} + +post_remove(){ + getent passwd $dusr &>/dev/null && userdel -f $dusr + return 0 +} diff --git a/pkgs/diaspora-git/diaspora.logrotate b/pkgs/diaspora-git/diaspora.logrotate new file mode 100644 index 0000000..bb5564a --- /dev/null +++ b/pkgs/diaspora-git/diaspora.logrotate @@ -0,0 +1,5 @@ +/var/log/diaspora.log { + notifempty + copytruncate + missingok +} diff --git a/pkgs/diaspora-git/diaspora.pam b/pkgs/diaspora-git/diaspora.pam new file mode 100644 index 0000000..53724d1 --- /dev/null +++ b/pkgs/diaspora-git/diaspora.pam @@ -0,0 +1,3 @@ +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so diff --git a/pkgs/diaspora-git/diaspora.rc b/pkgs/diaspora-git/diaspora.rc new file mode 100644 index 0000000..643856f --- /dev/null +++ b/pkgs/diaspora-git/diaspora.rc @@ -0,0 +1,65 @@ +#!/bin/bash + +daemon_name=diaspora +dusr=diaspora + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pgrep -u $daemon_name` + +case "$1" in + start) + #Check if mongodb and redis are running, start them if not + ck_daemon mongodb && /etc/rc.d/mongodb start + ck_daemon redis && /etc/rc.d/redis start + + if [ ! -e /var/log/$daemon_name.log ]; then + touch /var/log/$daemon_name.log + chown $dusr:$dusr /var/log/$daemon_name.log + fi + + stat_busy "Starting $daemon_name daemon" + [ -z "$PID" ] && /bin/su - $dusr -c "/usr/bin/$daemon_name &" + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + add_daemon $daemon_name + stat_done + fi + ;; + + stop) + stat_busy "Stopping $daemon_name daemon" + kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + while [ ! -z "$(pgrep -u $daemon_name)" ]; do + sleep 1; + done + 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 + +# vim: syntax=sh diff --git a/pkgs/gnu-social/PKGBUILD b/pkgs/gnu-social/PKGBUILD new file mode 100644 index 0000000..8de0ac2 --- /dev/null +++ b/pkgs/gnu-social/PKGBUILD @@ -0,0 +1,75 @@ +# Maintainer: fauno +pkgname='gnu-social-git' +pkgver=20110113 +pkgrel=1 +pkgdesc="GNU social is a project to create a decentralized social network" +arch=('any') +url="http://social.foocorp.net/software/social/" +license=('AGPL') +groups=('social-web') +depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp') +makedepends=('git') +provides=('gnu-social') +conflicts=('gnu-social') +replaces=('gnu-social') +backup=(etc/webapps/gnu-social/config.php) +options=() +install=gnu-social.install +source=(gnu-social.install) +noextract=() + +_gitroot="git://gitorious.org/+socialites/statusnet/gnu-social.git" +_gitname="gnu-social" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" +} + +package() { + _pkgname=$_gitname + cd "$srcdir/$_gitname-build" + + etc_dir="${pkgdir}/etc/webapps/${_pkgname}" + usr_dir="${pkgdir}/usr/share/webapps/${_pkgname}" + + install -d ${usr_dir} + install -d ${etc_dir} + install -d ${pkgdir}/usr/share/doc/${_pkgname}/ + install -d ${pkgdir}/usr/share/licenses/${_pkgname} + + install -m644 ./{config.php,htaccess}.sample \ + ${pkgdir}/usr/share/doc/${_pkgname}/ + + install -m644 ./{README,EVENTS.txt,lighttpd.conf.example} \ + ${pkgdir}/usr/share/doc/${_pkgname}/ + + install -m644 COPYING ${pkgdir}/usr/share/licenses/${_pkgname}/ + + rm -f *.sample README COPYING README EVENTS.txt *.example + + cp -ra * ${usr_dir}/ + chmod a+w ${usr_dir}/{avatar,background,file} + + msg2 "Install bogus config.php" + touch ${etc_dir}/config.php + + msg2 "Making dir and config file writable" + chmod a+w ${etc_dir}/config.php ${usr_dir}/ + ln -s /etc/webapps/$_pkgname/config.php ${usr_dir}/config.php + +} +md5sums=('cd8991b848d4e8230c38bdc51894e76d') diff --git a/pkgs/gnu-social/gnu-social.install b/pkgs/gnu-social/gnu-social.install new file mode 100644 index 0000000..fc90456 --- /dev/null +++ b/pkgs/gnu-social/gnu-social.install @@ -0,0 +1,11 @@ +post_install(){ + cat < +# Contributor: kfgz + +pkgname=haveged +pkgver=0.9 +pkgrel=1 +pkgdesc="A simple entropy daemon." +arch=('i686' 'x86_64') +url="http://www.issihosts.com/haveged/" +license="GPL" +depends=() +source=(${url}/${pkgname}-${pkgver}.tar.gz) +md5sums=('1830eae20c45f6b5d48790a1160392e5') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + export CFLAGS="-march=native -O0 -pipe" + + mv init.d rc.d + + sed -i 's/rc.d\/init.d/rc.d/g' rc.d/haveged + sed -i 's/\/subsys//g' rc.d/haveged + sed -i "15s/success/echo \'success\'/g" rc.d/haveged + sed -i "24s/success/echo \'success\'/g" rc.d/haveged + sed -i "15s/failure/echo \'failure\'/g" rc.d/haveged + sed -i "24s/failure/echo \'failure\'/g" rc.d/haveged + sed -i s/init.d/rc.d/g Makefile.am + sed -i s/init.d/rc.d/g Makefile.in + sed -i s/init.d/rc.d/g haveged.spec + sed -i s/init.d/rc.d/g README + + sed -i 's/usr\/local/usr/g' configure + sed -i 's/usr\/local/usr/g' haveged.spec + sed -i 's/usr\/local/usr/g' INSTALL + sed -i 's/usr\/local/usr/g' rc.d/haveged + sed -i 's/usr\/local/usr/g' README + + ./configure --prefix=/usr + make || return 1 + make DESTDIR=${pkgdir} install +} diff --git a/pkgs/ldapscripts/PKGBUILD b/pkgs/ldapscripts/PKGBUILD new file mode 100644 index 0000000..85febd3 --- /dev/null +++ b/pkgs/ldapscripts/PKGBUILD @@ -0,0 +1,15 @@ +pkgname=ldapscripts +pkgver=1.9.0 +pkgrel=1 +pkgdesc="Shell scripts that allow to manage POSIX accounts (users, groups, machines) in an LDAP directory" +arch=('any') +url="http://contribs.martymac.org/" +license=('GPL') +depends=('sharutils') +source=(http://contribs.martymac.org/ldapscripts/${pkgname}-${pkgver}.tgz) +md5sums=('8f3687798c1f4bf4abf79da5e9831126') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" ETCDIR=/etc/ldapscripts MANDIR=/usr/share/man LIBDIR=/usr/share/ldapscripts PREFIX=/usr install || return 1 +} diff --git a/pkgs/lua-cyrussasl/ChangeLog b/pkgs/lua-cyrussasl/ChangeLog new file mode 100644 index 0000000..040d526 --- /dev/null +++ b/pkgs/lua-cyrussasl/ChangeLog @@ -0,0 +1,6 @@ +2010-02-15 Dwayne Bent + + * PKGBUILD, lua-cyrussasl.patch: + Initial commit + [521419e11ffd] [tip] + diff --git a/pkgs/lua-cyrussasl/PKGBUILD b/pkgs/lua-cyrussasl/PKGBUILD new file mode 100644 index 0000000..17bd091 --- /dev/null +++ b/pkgs/lua-cyrussasl/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Dwayne Bent + +pkgname=lua-cyrussasl-git +pkgver=20100215 +pkgrel=1 +pkgdesc="Lua bindings for Cyrus SASL library." +arch=('i686' 'x86_64') +url="http://github.com/JorjBauer/lua-cyrussasl" +license=('BSD') +depends=('lua>=5.1' 'libsasl') +makedepends=('git') +provides=('lua-cyrussasl') +source=("lua-cyrussasl.patch") +md5sums=('5b5c15e4cba63d05a5bfd1cc3ddcba0f') + +_giturl='git://github.com/JorjBauer/lua-cyrussasl.git' +_gitlocal='lua-cyrussasl' + +build() { + _getsrc || return 1 + + cd $_gitlocal + + mkdir -p "$pkgdir/usr/lib/lua/5.1" || return 1 + mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl" || return 1 + + patch -p1 < "$srcdir/lua-cyrussasl.patch" || return 1 + make DESTDIR=${pkgdir} install || return 1 + + install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE" +} + +_getsrc() { + if [ -d $_gitlocal ]; then + msg "Updating source files..." + pushd $_gitlocal && git pull origin && popd || return 1 + else + msg "Cloning source files..." + git clone --depth 1 $_giturl $_gitlocal || return 1 + fi +} diff --git a/pkgs/lua-cyrussasl/lua-cyrussasl.patch b/pkgs/lua-cyrussasl/lua-cyrussasl.patch new file mode 100644 index 0000000..5309e5a --- /dev/null +++ b/pkgs/lua-cyrussasl/lua-cyrussasl.patch @@ -0,0 +1,37 @@ +diff --git a/Makefile b/Makefile +index 9c696ab..37057da 100644 +--- a/Makefile ++++ b/Makefile +@@ -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 ++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 + + ######################################################### + # +@@ -26,7 +32,7 @@ OBJS=cyrussasl.o luaabstract.o context.o + all: $(TARGET) + + install: $(TARGET) +- cp $(TARGET) $(CPATH) ++ cp $(TARGET) $(DESTDIR)$(CPATH) + + clean: + rm -f *.o *.so *~ diff --git a/pkgs/luaevent-prosody/ChangeLog b/pkgs/luaevent-prosody/ChangeLog new file mode 100644 index 0000000..0d05b0d --- /dev/null +++ b/pkgs/luaevent-prosody/ChangeLog @@ -0,0 +1,30 @@ +2010-02-15 Dwayne Bent + + * PKGBUILD: + Enclose variables in quotes + [70f27f566cb5] [tip] + + * .hgtags: + Added tag v0.1.0-2 for changeset 0de571834d05 + [5937d477ac76] + + * PKGBUILD: + New release version + [0de571834d05] [v0.1.0-2] + + * ChangeLog: + Added ChangeLog + [a7b722f050bc] + + * PKGBUILD: + Change libevent version dependency to conform with upstream + [c8052ed4fb9a] + + * .hgtags: + Added tag v0.1.0-1 for changeset e586baf8de01 + [4beb0261a9d2] + + * PKGBUILD: + Initial commit + [e586baf8de01] [v0.1.0-1] + diff --git a/pkgs/luaevent-prosody/PKGBUILD b/pkgs/luaevent-prosody/PKGBUILD new file mode 100644 index 0000000..2dca1ab --- /dev/null +++ b/pkgs/luaevent-prosody/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Dwayne Bent + +pkgname=luaevent-prosody +pkgver=0.1.1 +pkgrel=1 +pkgdesc="Lua bindings for libevent library (Prosody fork)." +arch=('i686' 'x86_64') +url="http://code.matthewwild.co.uk/luaevent-prosody/" +license=('LGPL2.1') +depends=('libevent>=1.4' 'luasocket' 'lua>=5.1') +provides=('luaevent') +conflicts=('luaevent') +source=("http://matthewwild.co.uk/uploads/$pkgname-$pkgver.tar.gz") +md5sums=('070019926979ebb94b3383b17987502d') + +build() { + cd "$srcdir/$pkgname-$pkgver" + make LUA_LIB="lua" DESTDIR="$pkgdir" install || return 1 +} + diff --git a/pkgs/parabola-social/PKGBUILD b/pkgs/parabola-social/PKGBUILD new file mode 100644 index 0000000..c5e7531 --- /dev/null +++ b/pkgs/parabola-social/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: fauno +pkgname='parabola-social' +pkgver=20101208 +pkgrel=1 +license=('GPL') +arch=('any') +group=('social-devel') +url="http://wiki.parabolagnulinux.org/Category:Parabola_GNU/Social" +pkgdesc="Parabola Social utils" +source=("http://parabolagnulinux.org/repo/SocialSources/${pkgname}-${pkgver}.tar.xz") +md5sums=('bec6087ee09c19848da15950adc3740e') + +build() { + /bin/true +} + +package() { + cd ${srcdir}/ + + install -d ${pkgdir}/usr/bin + install -m755 bin/* ${pkgdir}/usr/bin +} diff --git a/pkgs/perl-any-moose/PKGBUILD b/pkgs/perl-any-moose/PKGBUILD new file mode 100644 index 0000000..bb5b558 --- /dev/null +++ b/pkgs/perl-any-moose/PKGBUILD @@ -0,0 +1,34 @@ +# CPAN Name : Any-Moose +# Contributor: Caleb Cushing +# Generator : CPANPLUS::Dist::Arch 1.00 +# Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-any-moose/PKGBUILD.tt +# File bugs @ http://github.com/xenoterracide/AURpan/issues + +pkgname='perl-any-moose' +pkgver='0.13' +pkgrel='1' +pkgdesc="use Moose or Mouse modules" +arch=('any') +url='http://search.cpan.org/dist/Any-Moose' +license=('PerlArtistic' 'GPL') +depends=('perl' 'perl-mouse>=0.40') + + +options=('!emptydirs') + +source=('http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Any-Moose-0.13.tar.gz') +md5sums=('6d66e3344e50ceb6006c9d900115683b') + +build() { + DIST_DIR="${srcdir}/Any-Moose-0.13" + export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1 + { + cd "$DIST_DIR" && + perl Makefile.PL INSTALLDIRS=vendor && + make && + make test && + make DESTDIR="$pkgdir" install; + } || return 1; + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/pkgs/perl-gnupg-interface/PKGBUILD b/pkgs/perl-gnupg-interface/PKGBUILD new file mode 100644 index 0000000..eacc5ee --- /dev/null +++ b/pkgs/perl-gnupg-interface/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Daenyth +pkgname=perl-gnupg-interface +_modulename=GnuPG-Interface +pkgver=0.42 +pkgrel=1 +pkgdesc="Perl/CPAN module GnuPG::Interface" +arch=(i686 x86_64) +url="http://search.cpan.org/dist/GnuPG-Interface/lib/GnuPG/Interface.pm" +license=('GPL') +depends=('perl>=5.10.0' 'perl-class-methodmaker' 'gnupg') +source=(http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/$_modulename-$pkgver.tar.gz) +md5sums=('c5cc5426c02b93900cb96f4879c9be28') + +build() { + cd "${srcdir}/$_modulename-$pkgver" + + perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="${pkgdir}" install + + find ${pkgdir} -name '.packlist' -delete + find ${pkgdir} -name '*.pod' -delete +} + +# vim:set ts=2 sw=2 et: diff --git a/pkgs/perl-mouse/PKGBUILD b/pkgs/perl-mouse/PKGBUILD new file mode 100644 index 0000000..b41d53f --- /dev/null +++ b/pkgs/perl-mouse/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Justin Davis +# Generator : CPANPLUS::Dist::Arch 1.09 +pkgname='perl-mouse' +pkgver='0.88' +pkgrel='1' +pkgdesc="Moose minus the antlers" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=() +url='http://search.cpan.org/dist/Mouse' +source=('http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Mouse-0.88.tar.gz') +md5sums=('c086309d38bdc54450346439bcef6367') + +build() { + PERL=/usr/bin/perl + DIST_DIR="${srcdir}/Mouse-0.88" + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + { cd "$DIST_DIR" && + $PERL Makefile.PL && + make && + make test && + make install; + } || return 1; + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/pkgs/perl-regexp-common/PKGBUILD b/pkgs/perl-regexp-common/PKGBUILD new file mode 100644 index 0000000..c6dcfb8 --- /dev/null +++ b/pkgs/perl-regexp-common/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Caleb Cushing +# Generator : CPANPLUS::Dist::Arch 0.16 +pkgname='perl-regexp-common' +pkgver='2010010201' +pkgrel='1' +pkgdesc="Provide commonly requested regular expr." +arch=('i686' 'x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +url='http://search.cpan.org/dist/Regexp-Common' +source=('http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/Regexp-Common-2010010201.tar.gz') +md5sums=('e4267a626af781ed62c696f05b2b60f3') + +build() { + _DISTDIR="${srcdir}/Regexp-Common-2010010201" + export PERL_MM_USE_DEFAULT=1 + { cd "$_DISTDIR" && + perl Makefile.PL INSTALLDIRS=vendor && + make && + make test && + make DESTDIR="${pkgdir}/" install; + } || return 1; + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/pkgs/ruby-bundler/PKGBUILD b/pkgs/ruby-bundler/PKGBUILD new file mode 100644 index 0000000..840777a --- /dev/null +++ b/pkgs/ruby-bundler/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: Alexsandr Pavlov +pkgname=ruby-bundler +pkgver=1.0.7 +pkgrel=1 +pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably." +arch=(any) +url="http://gembundler.com/" +license=('MIT') +depends=('ruby') +makedepends=(rubygems) +source=(http://gems.rubyforge.org/gems/bundler-$pkgver.gem) +noextract=(bundler-$pkgver.gem) +md5sums=('6ca4f832d5c5271a1ee41b788c6868c4') + +build() { + cd $srcdir + # _gemdir is defined inside build() because if ruby[gems] is not installed on the system + # makepkg will exit with an error when sourcing the PKGBUILD + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --ignore-dependencies -i "$pkgdir$_gemdir" bundler-$pkgver.gem + + mv -t $pkgdir/usr/ $pkgdir$_gemdir/bin +} diff --git a/pkgs/social/diaspora-git/PKGBUILD b/pkgs/social/diaspora-git/PKGBUILD new file mode 100644 index 0000000..357a25d --- /dev/null +++ b/pkgs/social/diaspora-git/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: fauno +# Maintainer: Hilton Medeiros +# Contributor: Splashy + +# After installing, see the Diaspora wiki page for more information: +# https://wiki.archlinux.org/index.php/Diaspora + +pkgname=diaspora-git +pkgver=20110122 +pkgrel=2 +pkgdesc="A privacy aware, personally controlled, do-it-all, open source social network" +arch=('i686' 'x86_64') +url="http://www.joindiaspora.com/" +license=('AGPL3') +depends=('ruby' 'mysql-ruby' 'redis' 'imagemagick' 'libxslt') +makedepends=('git') +install=diaspora.install +source=('diaspora.bin' + 'diaspora.rc' + 'diaspora.logrotate' + 'diaspora.pam') + +_gitroot="git://github.com/diaspora/diaspora.git" +_gitname="diaspora" + +build() { + cd "$srcdir" + + msg "Connecting to the Git server..." + + if [[ -d $_gitname ]] ; then + pushd $_gitname + git pull origin + msg "The local files are updated." + popd + else + git clone $_gitroot + msg "Git clone done." + fi + + msg "Start making..." + + [[ -d $_gitname-build ]] && rm -fr $_gitname-build + git clone $_gitname $_gitname-build + + # Recover gems cache + rm -fr $_gitname-gems + mkdir -p $_gitname-gems + [[ -d cache ]] && mv cache $_gitname-gems + + # Install *all* gems + export GEM_HOME="$srcdir/$_gitname-gems" + export GEM_PATH="$srcdir/$_gitname-gems" + + gem install bundler + + # Patch ruby_core_source to not install the headers in the system + # Remove this if you are behind a proxy and install the ruby-headers package instead + gem install ruby_core_source + sed -i "s@^ dest_dir.*@ dest_dir = \"$srcdir/rubyhdrs/\" + ruby_dir@" \ + $_gitname-gems/gems/ruby_core_source*/lib/ruby_core_source.rb + + pushd $_gitname-build + bundle install + + # We make this now because we do not install the git history + tar czf public/source.tar.gz `git ls-tree -r master | awk '{print $4}'` + + rm -fr .git + popd + + # Keep the gems cache + mv $_gitname-gems/cache "$srcdir" +} + +package() { + cd "$srcdir" + + usrdir="$pkgdir/usr/share/webapps" + + install -d "$usrdir" + cp -r $_gitname-build "$usrdir/$_gitname" + cp -r $_gitname-gems "$usrdir/" + find "$usrdir/$_gitname-gems" \ + -type d -name ".git" -exec rm -fr '{}' \; &>/dev/null || true + + install -Dm755 $_gitname.bin "$pkgdir/usr/bin/$_gitname" + install -Dm755 $_gitname.rc "$pkgdir/etc/rc.d/$_gitname" + install -Dm644 $_gitname.logrotate "$pkgdir/etc/logrotate.d/$_gitname" + install -Dm644 $_gitname.pam "$pkgdir/etc/pam.d/$_gitname" + + install -dm755 $pkgdir/usr/share/licenses/$_gitname/ + install -Dm644 $_gitname-build/{AUTHORS,COPYRIGHT,GNU-AGPL-3.0} \ + $pkgdir/usr/share/licenses/$_gitname/ +} +md5sums=('7e7402127f9a05bc58aff0adc5057d1c' + '7bffaaee41b515247ba19a19c77dc5bf' + '60f6b3972c73cbc6b1c9ab87c88fb655' + '96f82c38f3f540b53f3e5144900acf17') diff --git a/pkgs/social/diaspora-git/diaspora.bin b/pkgs/social/diaspora-git/diaspora.bin new file mode 100644 index 0000000..d18a400 --- /dev/null +++ b/pkgs/social/diaspora-git/diaspora.bin @@ -0,0 +1,3 @@ +cd /usr/share/webapps/diaspora +export GEM_HOME=/usr/share/webapps/diaspora-gems/ +./script/server &>>/var/log/diaspora.log diff --git a/pkgs/social/diaspora-git/diaspora.install b/pkgs/social/diaspora-git/diaspora.install new file mode 100644 index 0000000..41fa744 --- /dev/null +++ b/pkgs/social/diaspora-git/diaspora.install @@ -0,0 +1,29 @@ + +dusr=diaspora +dhome=/usr/share/webapps/diaspora +dgems=/usr/share/webapps/diaspora-gems +dlog=/var/log/diaspora.log + +post_install() { + getent passwd $dusr || useradd -r -d $dhome -s /bin/bash $dusr + chown -R $dusr:$dusr $dhome $dgems + [[ -f $dlog ]] && chown $dusr:$dusr $dlog +} + +pre_upgrade(){ + etc/rc.d/diaspora stop + return 0 +} + +post_upgrade(){ + post_install $1 +} + +pre_remove(){ + pre_upgrade $1 +} + +post_remove(){ + getent passwd $dusr && userdel -f $dusr + return 0 +} diff --git a/pkgs/social/diaspora-git/diaspora.logrotate b/pkgs/social/diaspora-git/diaspora.logrotate new file mode 100644 index 0000000..bb5564a --- /dev/null +++ b/pkgs/social/diaspora-git/diaspora.logrotate @@ -0,0 +1,5 @@ +/var/log/diaspora.log { + notifempty + copytruncate + missingok +} diff --git a/pkgs/social/diaspora-git/diaspora.pam b/pkgs/social/diaspora-git/diaspora.pam new file mode 100644 index 0000000..53724d1 --- /dev/null +++ b/pkgs/social/diaspora-git/diaspora.pam @@ -0,0 +1,3 @@ +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so diff --git a/pkgs/social/diaspora-git/diaspora.rc b/pkgs/social/diaspora-git/diaspora.rc new file mode 100644 index 0000000..bd79237 --- /dev/null +++ b/pkgs/social/diaspora-git/diaspora.rc @@ -0,0 +1,65 @@ +#!/bin/bash + +daemon_name=diaspora +dusr=diaspora + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pgrep -u $daemon_name` + +case "$1" in + start) + #Check if mysqld and redis are running, start them if not + ck_daemon mysqld && /etc/rc.d/mysqld start + ck_daemon redis && /etc/rc.d/redis start + + if [ ! -e /var/log/$daemon_name.log ]; then + touch /var/log/$daemon_name.log + chown $dusr:$dusr /var/log/$daemon_name.log + fi + + stat_busy "Starting $daemon_name daemon" + [ -z "$PID" ] && /bin/su - $dusr -c "/usr/bin/$daemon_name &" + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + add_daemon $daemon_name + stat_done + fi + ;; + + stop) + stat_busy "Stopping $daemon_name daemon" + kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + while [ ! -z "$(pgrep -u $daemon_name)" ]; do + sleep 1; + done + 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 + +# vim: syntax=sh diff --git a/pkgs/social/monkeysphere/PKGBUILD b/pkgs/social/monkeysphere/PKGBUILD new file mode 100644 index 0000000..33c1bcf --- /dev/null +++ b/pkgs/social/monkeysphere/PKGBUILD @@ -0,0 +1,23 @@ +# Contributor: fauno +# Based on monkeysphere-git from +# Contributor: Olivier Mehani +# $Id: PKGBUILD 264 2010-11-10 00:57:53Z shtrom $ +pkgname=monkeysphere +pkgver=0.35 +pkgrel=1 +pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication" +arch=('i686' 'x86_64') +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 + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + mkdir -p $pkgdir/var/lib/monkeysphere +} +md5sums=() +md5sums=('481ac14c9fdef0ccd1944c593bd4f517') diff --git a/pkgs/social/monkeysphere/monkeysphere.install b/pkgs/social/monkeysphere/monkeysphere.install new file mode 100644 index 0000000..cc31e72 --- /dev/null +++ b/pkgs/social/monkeysphere/monkeysphere.install @@ -0,0 +1,40 @@ +#!/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 + chown monkeysphere:monkeysphere /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() { + /bin/true +} + +# 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/pkgs/statusnet/PKGBUILD b/pkgs/statusnet/PKGBUILD index fd3f53c..b8ef7a2 100644 --- a/pkgs/statusnet/PKGBUILD +++ b/pkgs/statusnet/PKGBUILD @@ -1,47 +1,1140 @@ # Contributor: fauno -pkgname=statusnet -pkgver=0.9.5 -pkgrel=1 +pkgbase='statusnet' +pkgname='statusnet' +true && pkgname=('statusnet-base' 'statusnet-i18n-ru' 'statusnet-i18n-de' 'statusnet-i18n-ja' 'statusnet-i18n-pl' 'statusnet-i18n-br' 'statusnet-i18n-he' 'statusnet-i18n-en_gb' 'statusnet-i18n-ko' 'statusnet-i18n-vi' 'statusnet-i18n-hu' 'statusnet-i18n-nn' 'statusnet-i18n-bg' 'statusnet-i18n-mk' 'statusnet-i18n-ar' 'statusnet-i18n-da' 'statusnet-i18n-fa' 'statusnet-i18n-uk' 'statusnet-i18n-sv' 'statusnet-i18n-nb' 'statusnet-i18n-fr' 'statusnet-i18n-cs' 'statusnet-i18n-pt_br' 'statusnet-i18n-te' 'statusnet-i18n-hsb' 'statusnet-i18n-nl' 'statusnet-i18n-en' 'statusnet-i18n-ia' 'statusnet-i18n-it' 'statusnet-i18n-ka' 'statusnet-i18n-arz' 'statusnet-i18n-tr' 'statusnet-i18n-is' 'statusnet-i18n-ca' 'statusnet-i18n-el' 'statusnet-i18n-eo' 'statusnet-i18n-fi' 'statusnet-i18n-zh_tw' 'statusnet-i18n-gl' 'statusnet-i18n-zh_cn' 'statusnet-i18n-af' 'statusnet-i18n-pt' 'statusnet-i18n-es' 'statusnet-i18n-ga' 'statusnet-plugins-apilogger' 'statusnet-plugins-mapstraction' 'statusnet-plugins-followeveryone' 'statusnet-plugins-modhelper' 'statusnet-plugins-blogspamnet' 'statusnet-plugins-cachelog' 'statusnet-plugins-template' 'statusnet-plugins-mobile' 'statusnet-plugins-tinymce' 'statusnet-plugins-clientsideshorten' 'statusnet-plugins-piwikanalytics' 'statusnet-plugins-firephp' 'statusnet-plugins-comet' 'statusnet-plugins-emailauthentication' 'statusnet-plugins-blankad' 'statusnet-plugins-yammerimport' 'statusnet-plugins-postdebug' 'statusnet-plugins-userlimit' 'statusnet-plugins-enjit' 'statusnet-plugins-sitemap' 'statusnet-plugins-lilurl' 'statusnet-plugins-anonymousfave' 'statusnet-plugins-slicedfavorites' 'statusnet-plugins-gravatar' 'statusnet-plugins-reverseusernameauthentication' 'statusnet-plugins-twitterbridge' 'statusnet-plugins-memcache' 'statusnet-plugins-subscriptionthrottle' 'statusnet-plugins-openid' 'statusnet-plugins-adsense' 'statusnet-plugins-sphinxsearch' 'statusnet-plugins-ostatus' 'statusnet-plugins-sample' 'statusnet-plugins-submirror' 'statusnet-plugins-sharenotice' 'statusnet-plugins-xcache' 'statusnet-plugins-requirevalidatedemail' 'statusnet-plugins-linkback' 'statusnet-plugins-openexternallinktarget' 'statusnet-plugins-wikihashtags' 'statusnet-plugins-wikihowprofile' 'statusnet-plugins-forcegroup' 'statusnet-plugins-tighturl' 'statusnet-plugins-disqus' 'statusnet-plugins-spotify' 'statusnet-plugins-casauthentication' 'statusnet-plugins-apc' 'statusnet-plugins-poweredbystatusnet' 'statusnet-plugins-minify' 'statusnet-plugins-meteor' 'statusnet-plugins-autocomplete' 'statusnet-plugins-diskcache' 'statusnet-plugins-groupfavorited' 'statusnet-plugins-bitlyurl' 'statusnet-plugins-geourl' 'statusnet-plugins-registerthrottle' 'statusnet-plugins-ldapcommon' 'statusnet-plugins-orbited' 'statusnet-plugins-autosandbox' 'statusnet-plugins-rsscloud' 'statusnet-plugins-imap' 'statusnet-plugins-noticetitle' 'statusnet-plugins-mollom' 'statusnet-plugins-googleanalytics' 'statusnet-plugins-ldapauthorization' 'statusnet-plugins-recaptcha' 'statusnet-plugins-facebook' 'statusnet-plugins-realtime' 'statusnet-plugins-ldapauthentication' 'statusnet-plugins-directiondetector' 'statusnet-plugins-tabfocus' 'statusnet-plugins-userflag' 'statusnet-plugins-memcached' 'statusnet-plugins-urlshortener' 'statusnet-plugins-echo' 'statusnet-plugins-mobileprofile' 'statusnet-plugins-blacklist' 'statusnet-plugins-ptiturl' 'statusnet-plugins-openx' 'statusnet-plugins-simpleurl' 'statusnet-plugins-infinitescroll' 'statusnet-plugins-geonames') +pkgver=0.9.6 +pkgrel=2 pkgdesc="StatusNet is a Free and Open Source microblogging platform." arch=('any') url="http://status.net" license=('AGPL') groups=('social-web') depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp') -optdepends=('memcache: for caching database queries' - 'php-xcache: for accelerating PHP code execution') provides=() options=() -source=("http://status.net/${pkgname}-${pkgver}.tar.gz" +source=("http://status.net/${pkgbase}-${pkgver}.tar.gz" statusnet.install) install=statusnet.install build() { - cd "$srcdir/$pkgname-${pkgver}" + /bin/true +} - etc_dir="${pkgdir}/etc/webapps/${pkgname}" - usr_dir="${pkgdir}/usr/share/webapps/${pkgname}" +package_statusnet-base() { + optdepends=('memcache: for caching database queries' + 'php-xcache: for accelerating PHP code execution' + 'php-ldap: for the LDAP plugin' + 'statusnet-plugins-ostatus: for federation') + backup=(etc/webapps/statusnet/config.php) + provides=('statusnet') + replaces=('statusnet') + conflicts=('statusnet') + + cd "$srcdir/$pkgbase-${pkgver}" + + etc_dir="${pkgdir}/etc/webapps/${pkgbase}" + usr_dir="${pkgdir}/usr/share/webapps/${pkgbase}" install -d ${usr_dir} install -d ${etc_dir} - install -d ${pkgdir}/usr/share/doc/${pkgname}/ - install -d ${pkgdir}/usr/share/licenses/${pkgname} + install -d ${pkgdir}/usr/share/doc/${pkgbase}/ + install -d ${pkgdir}/usr/share/licenses/${pkgbase} install -m644 ./{config.php,htaccess}.sample \ - ${pkgdir}/usr/share/doc/${pkgname}/ + ${pkgdir}/usr/share/doc/${pkgbase}/ install -m644 ./{README,EVENTS.txt,lighttpd.conf.example} \ - ${pkgdir}/usr/share/doc/${pkgname}/ + ${pkgdir}/usr/share/doc/${pkgbase}/ - install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ + install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgbase}/ rm -f *.sample README COPYING README EVENTS.txt *.example cp -ra * ${usr_dir}/ - chmod a+w ${usr_dir}/ chmod a+w ${usr_dir}/{avatar,background,file} + + msg2 "Install bogus config.php" + touch ${etc_dir}/config.php + chmod a+w ${etc_dir}/config.php + + ln -s /etc/webapps/statusnet/config.php ${usr_dir}/config.php + + msg2 "Remove locale and plugins in favor of split packages" + rm -rf ${usr_dir}/{locale,plugins} + + install -d ${usr_dir}/plugins + install -d ${usr_dir}/locale } -md5sums=('ca4fc694e15c68cf921a9c2578988770' - '6f3de28ccb1385123bdf0eb66a78a875') -md5sums=('ca4fc694e15c68cf921a9c2578988770' - '24991580625ec177c144ed5acdbe6dbc') + +# Helper for creating i18n packages +statusnet-i18n-helper() { + cd "${srcdir}/${pkgbase}-${pkgver}" + + install -d "${pkgdir}/usr/share/webapps/statusnet/locale/${1}" + cp -ra "./locale/${1}" "${pkgdir}/usr/share/webapps/statusnet/locale/${1}/" +} + +# Helper for creating plugin packages +statusnet-plugins-helper() { + cd "${srcdir}/${pkgbase}-${pkgver}" + + install -d "${pkgdir}/usr/share/webapps/statusnet/plugins/${1}" + cp -ra "./plugins/${1}" "${pkgdir}/usr/share/webapps/statusnet/plugins/${1}/" +} + +# Gets the available plugins and returns package_statusnet-plugins-* functions +# Must be ran from PKGBUILD dir after `makepkg -o` +helper_get_plugins() { + cd ./src/${pkgbase}-${pkgver}/plugins + plugins=($(find . -maxdepth 1 -type d | sed "s/^.*\///")) + + for plugin in ${plugins[@]}; do + plugin_lower=$(echo ${plugin} | tr [A-Z] [a-z]) + + echo " +package_statusnet-plugins-${plugin_lower}() { + pkgdesc='${plugin} plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ${plugin} +}" + done + + # Generates a pkgname line + echo "${plugins[@]}" | tr [A-Z] [a-z] | \ + sed "s/\(^\| \)\([^ ]\+\)/\1'statusnet-plugins-\2'/g" + + cd ../../.. +} + +# Gets the available plugins and returns package_statusnet-i18n-* functions +# Must be ran from PKGBUILD dir after `makepkg -o` +helper_get_locales() { + cd ./src/${pkgbase}-${pkgver}/locale + locales=($(find . -maxdepth 1 -type d | sed "s/^.*\///")) + + for locale in ${locales[@]}; do + locale_lower=$(echo ${locale} | tr [A-Z] [a-z]) + + echo " +package_statusnet-i18n-${locale_lower}() { + pkgdesc='${locale} locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ${locale} +}" + done + + # Generates a pkgname line + echo "${locales[@]}" | tr [A-Z] [a-z] | \ + sed "s/\(^\| \)\([^ ]\+\)/\1'statusnet-i18n-\2'/g" + cd ../../.. +} + +# AUTOGENERATED. Delete from next line before update + +package_statusnet-plugins-apilogger() { + pkgdesc='ApiLogger plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ApiLogger +} + +package_statusnet-plugins-mapstraction() { + pkgdesc='Mapstraction plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Mapstraction +} + +package_statusnet-plugins-followeveryone() { + pkgdesc='FollowEveryone plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper FollowEveryone +} + +package_statusnet-plugins-modhelper() { + pkgdesc='ModHelper plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ModHelper +} + +package_statusnet-plugins-blogspamnet() { + pkgdesc='BlogspamNet plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper BlogspamNet +} + +package_statusnet-plugins-cachelog() { + pkgdesc='CacheLog plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper CacheLog +} + +package_statusnet-plugins-template() { + pkgdesc='Template plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Template +} + +package_statusnet-plugins-mobile() { + pkgdesc='Mobile plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Mobile +} + +package_statusnet-plugins-tinymce() { + pkgdesc='TinyMCE plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper TinyMCE +} + +package_statusnet-plugins-clientsideshorten() { + pkgdesc='ClientSideShorten plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ClientSideShorten +} + +package_statusnet-plugins-piwikanalytics() { + pkgdesc='PiwikAnalytics plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper PiwikAnalytics +} + +package_statusnet-plugins-firephp() { + pkgdesc='FirePHP plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper FirePHP +} + +package_statusnet-plugins-comet() { + pkgdesc='Comet plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Comet +} + +package_statusnet-plugins-emailauthentication() { + pkgdesc='EmailAuthentication plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper EmailAuthentication +} + +package_statusnet-plugins-blankad() { + pkgdesc='BlankAd plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper BlankAd +} + +package_statusnet-plugins-yammerimport() { + pkgdesc='YammerImport plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper YammerImport +} + +package_statusnet-plugins-postdebug() { + pkgdesc='PostDebug plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper PostDebug +} + +package_statusnet-plugins-userlimit() { + pkgdesc='UserLimit plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper UserLimit +} + +package_statusnet-plugins-enjit() { + pkgdesc='Enjit plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Enjit +} + +package_statusnet-plugins-sitemap() { + pkgdesc='Sitemap plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Sitemap +} + +package_statusnet-plugins-lilurl() { + pkgdesc='LilUrl plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper LilUrl +} + +package_statusnet-plugins-anonymousfave() { + pkgdesc='AnonymousFave plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper AnonymousFave +} + +package_statusnet-plugins-slicedfavorites() { + pkgdesc='SlicedFavorites plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper SlicedFavorites +} + +package_statusnet-plugins-gravatar() { + pkgdesc='Gravatar plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Gravatar +} + +package_statusnet-plugins-reverseusernameauthentication() { + pkgdesc='ReverseUsernameAuthentication plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ReverseUsernameAuthentication +} + +package_statusnet-plugins-twitterbridge() { + pkgdesc='TwitterBridge plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper TwitterBridge +} + +package_statusnet-plugins-memcache() { + pkgdesc='Memcache plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Memcache +} + +package_statusnet-plugins-subscriptionthrottle() { + pkgdesc='SubscriptionThrottle plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper SubscriptionThrottle +} + +package_statusnet-plugins-openid() { + pkgdesc='OpenID plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper OpenID +} + +package_statusnet-plugins-adsense() { + pkgdesc='Adsense plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Adsense +} + +package_statusnet-plugins-sphinxsearch() { + pkgdesc='SphinxSearch plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper SphinxSearch +} + +package_statusnet-plugins-ostatus() { + pkgdesc='OStatus plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper OStatus +} + +package_statusnet-plugins-sample() { + pkgdesc='Sample plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Sample +} + +package_statusnet-plugins-submirror() { + pkgdesc='SubMirror plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper SubMirror +} + +package_statusnet-plugins-sharenotice() { + pkgdesc='ShareNotice plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ShareNotice +} + +package_statusnet-plugins-xcache() { + pkgdesc='XCache plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper XCache +} + +package_statusnet-plugins-requirevalidatedemail() { + pkgdesc='RequireValidatedEmail plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper RequireValidatedEmail +} + +package_statusnet-plugins-linkback() { + pkgdesc='Linkback plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Linkback +} + +package_statusnet-plugins-openexternallinktarget() { + pkgdesc='OpenExternalLinkTarget plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper OpenExternalLinkTarget +} + +package_statusnet-plugins-wikihashtags() { + pkgdesc='WikiHashtags plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper WikiHashtags +} + +package_statusnet-plugins-wikihowprofile() { + pkgdesc='WikiHowProfile plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper WikiHowProfile +} + +package_statusnet-plugins-forcegroup() { + pkgdesc='ForceGroup plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper ForceGroup +} + +package_statusnet-plugins-tighturl() { + pkgdesc='TightUrl plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper TightUrl +} + +package_statusnet-plugins-disqus() { + pkgdesc='Disqus plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Disqus +} + +package_statusnet-plugins-spotify() { + pkgdesc='Spotify plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Spotify +} + +package_statusnet-plugins-casauthentication() { + pkgdesc='CasAuthentication plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper CasAuthentication +} + +package_statusnet-plugins-apc() { + pkgdesc='APC plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper APC +} + +package_statusnet-plugins-poweredbystatusnet() { + pkgdesc='PoweredByStatusNet plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper PoweredByStatusNet +} + +package_statusnet-plugins-minify() { + pkgdesc='Minify plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Minify +} + +package_statusnet-plugins-meteor() { + pkgdesc='Meteor plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Meteor +} + +package_statusnet-plugins-autocomplete() { + pkgdesc='Autocomplete plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Autocomplete +} + +package_statusnet-plugins-diskcache() { + pkgdesc='DiskCache plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper DiskCache +} + +package_statusnet-plugins-groupfavorited() { + pkgdesc='GroupFavorited plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper GroupFavorited +} + +package_statusnet-plugins-bitlyurl() { + pkgdesc='BitlyUrl plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper BitlyUrl +} + +package_statusnet-plugins-geourl() { + pkgdesc='GeoURL plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper GeoURL +} + +package_statusnet-plugins-registerthrottle() { + pkgdesc='RegisterThrottle plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper RegisterThrottle +} + +package_statusnet-plugins-ldapcommon() { + pkgdesc='LdapCommon plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper LdapCommon +} + +package_statusnet-plugins-orbited() { + pkgdesc='Orbited plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Orbited +} + +package_statusnet-plugins-autosandbox() { + pkgdesc='AutoSandbox plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper AutoSandbox +} + +package_statusnet-plugins-rsscloud() { + pkgdesc='RSSCloud plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper RSSCloud +} + +package_statusnet-plugins-imap() { + pkgdesc='Imap plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Imap +} + +package_statusnet-plugins-noticetitle() { + pkgdesc='NoticeTitle plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper NoticeTitle +} + +package_statusnet-plugins-mollom() { + pkgdesc='Mollom plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Mollom +} + +package_statusnet-plugins-googleanalytics() { + pkgdesc='GoogleAnalytics plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper GoogleAnalytics +} + +package_statusnet-plugins-ldapauthorization() { + pkgdesc='LdapAuthorization plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper LdapAuthorization +} + +package_statusnet-plugins-recaptcha() { + pkgdesc='Recaptcha plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Recaptcha +} + +package_statusnet-plugins-facebook() { + pkgdesc='Facebook plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Facebook +} + +package_statusnet-plugins-realtime() { + pkgdesc='Realtime plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Realtime +} + +package_statusnet-plugins-ldapauthentication() { + pkgdesc='LdapAuthentication plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper LdapAuthentication +} + +package_statusnet-plugins-directiondetector() { + pkgdesc='DirectionDetector plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper DirectionDetector +} + +package_statusnet-plugins-tabfocus() { + pkgdesc='TabFocus plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper TabFocus +} + +package_statusnet-plugins-userflag() { + pkgdesc='UserFlag plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper UserFlag +} + +package_statusnet-plugins-memcached() { + pkgdesc='Memcached plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Memcached +} + +package_statusnet-plugins-urlshortener() { + pkgdesc='UrlShortener plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper UrlShortener +} + +package_statusnet-plugins-echo() { + pkgdesc='Echo plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Echo +} + +package_statusnet-plugins-mobileprofile() { + pkgdesc='MobileProfile plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper MobileProfile +} + +package_statusnet-plugins-blacklist() { + pkgdesc='Blacklist plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Blacklist +} + +package_statusnet-plugins-ptiturl() { + pkgdesc='PtitUrl plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper PtitUrl +} + +package_statusnet-plugins-openx() { + pkgdesc='OpenX plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper OpenX +} + +package_statusnet-plugins-simpleurl() { + pkgdesc='SimpleUrl plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper SimpleUrl +} + +package_statusnet-plugins-infinitescroll() { + pkgdesc='InfiniteScroll plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper InfiniteScroll +} + +package_statusnet-plugins-geonames() { + pkgdesc='Geonames plugin for StatusNet' + depends=('statusnet') + groups=('statusnet-plugins') + + statusnet-plugins-helper Geonames +} + +package_statusnet-i18n-ru() { + pkgdesc='ru locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ru +} + +package_statusnet-i18n-de() { + pkgdesc='de locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper de +} + +package_statusnet-i18n-ja() { + pkgdesc='ja locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ja +} + +package_statusnet-i18n-pl() { + pkgdesc='pl locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper pl +} + +package_statusnet-i18n-br() { + pkgdesc='br locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper br +} + +package_statusnet-i18n-he() { + pkgdesc='he locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper he +} + +package_statusnet-i18n-en_gb() { + pkgdesc='en_GB locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper en_GB +} + +package_statusnet-i18n-ko() { + pkgdesc='ko locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ko +} + +package_statusnet-i18n-vi() { + pkgdesc='vi locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper vi +} + +package_statusnet-i18n-hu() { + pkgdesc='hu locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper hu +} + +package_statusnet-i18n-nn() { + pkgdesc='nn locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper nn +} + +package_statusnet-i18n-bg() { + pkgdesc='bg locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper bg +} + +package_statusnet-i18n-mk() { + pkgdesc='mk locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper mk +} + +package_statusnet-i18n-ar() { + pkgdesc='ar locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ar +} + +package_statusnet-i18n-da() { + pkgdesc='da locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper da +} + +package_statusnet-i18n-fa() { + pkgdesc='fa locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper fa +} + +package_statusnet-i18n-uk() { + pkgdesc='uk locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper uk +} + +package_statusnet-i18n-sv() { + pkgdesc='sv locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper sv +} + +package_statusnet-i18n-nb() { + pkgdesc='nb locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper nb +} + +package_statusnet-i18n-fr() { + pkgdesc='fr locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper fr +} + +package_statusnet-i18n-cs() { + pkgdesc='cs locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper cs +} + +package_statusnet-i18n-pt_br() { + pkgdesc='pt_BR locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper pt_BR +} + +package_statusnet-i18n-te() { + pkgdesc='te locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper te +} + +package_statusnet-i18n-hsb() { + pkgdesc='hsb locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper hsb +} + +package_statusnet-i18n-nl() { + pkgdesc='nl locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper nl +} + +package_statusnet-i18n-en() { + pkgdesc='en locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper en +} + +package_statusnet-i18n-ia() { + pkgdesc='ia locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ia +} + +package_statusnet-i18n-it() { + pkgdesc='it locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper it +} + +package_statusnet-i18n-ka() { + pkgdesc='ka locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ka +} + +package_statusnet-i18n-arz() { + pkgdesc='arz locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper arz +} + +package_statusnet-i18n-tr() { + pkgdesc='tr locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper tr +} + +package_statusnet-i18n-is() { + pkgdesc='is locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper is +} + +package_statusnet-i18n-ca() { + pkgdesc='ca locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ca +} + +package_statusnet-i18n-el() { + pkgdesc='el locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper el +} + +package_statusnet-i18n-eo() { + pkgdesc='eo locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper eo +} + +package_statusnet-i18n-fi() { + pkgdesc='fi locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper fi +} + +package_statusnet-i18n-zh_tw() { + pkgdesc='zh_TW locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper zh_TW +} + +package_statusnet-i18n-gl() { + pkgdesc='gl locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper gl +} + +package_statusnet-i18n-zh_cn() { + pkgdesc='zh_CN locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper zh_CN +} + +package_statusnet-i18n-af() { + pkgdesc='af locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper af +} + +package_statusnet-i18n-pt() { + pkgdesc='pt locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper pt +} + +package_statusnet-i18n-es() { + pkgdesc='es locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper es +} + +package_statusnet-i18n-ga() { + pkgdesc='ga locale for StatusNet' + depends=('statusnet') + groups=('statusnet-locales') + + statusnet-i18n-helper ga +} + +pkgdesc="StatusNet is a Free and Open Source microblogging platform." +md5sums=('48c379190754f8cc52deb9cb8f4116c6' + '0c91b565ad346a29de67545d425c3f88') diff --git a/pkgs/statusnet/statusnet.install b/pkgs/statusnet/statusnet.install index 4269344..15e0264 100644 --- a/pkgs/statusnet/statusnet.install +++ b/pkgs/statusnet/statusnet.install @@ -2,12 +2,12 @@ post_install(){ cat < +# Contributor: Douglas Soares de Andrade +# Contributor: Roberto Alsina + +pkgname=varnish +pkgver=2.1.3 +pkgrel=1 +pkgdesc="High-performance HTTP accelerator" +arch=('i686' 'x86_64') +url="http://www.varnish-cache.org/" +license=('BSD') +depends=('ncurses' 'pcre') +backup=('etc/varnish.conf') +install=$pkgname.install +options=('!libtool') +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \ + $pkgname.conf \ + $pkgname.init \ + $pkgname.runit \ + $pkgname.log.runit) +md5sums=('357d99a760de173d841ac37bf2052be8' + '2816759b6185d08c98309e33948599c6' + 'c9a4856f6ec6f3cb01ab33e28d77d3a9' + '34681f7ed6fef8deb7b9a0e291f22ddb' + '2ee74b4a9166dc2ad260dc8885bd7fd3') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install + + install -d ${pkgdir}/var/$pkgname/$(hostname) + install -D -m755 ${srcdir}/$pkgname.init ${pkgdir}/etc/rc.d/$pkgname + install -D -m755 ${srcdir}/$pkgname.runit ${pkgdir}/etc/sv/$pkgname/run + install -D -m755 ${srcdir}/$pkgname.log.runit ${pkgdir}/etc/sv/$pkgname/log/run + install -D -m755 ${srcdir}/$pkgname.conf ${pkgdir}/etc/$pkgname.conf + +#license + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pkgs/varnish/varnish.conf b/pkgs/varnish/varnish.conf new file mode 100644 index 0000000..d768261 --- /dev/null +++ b/pkgs/varnish/varnish.conf @@ -0,0 +1,9 @@ +# Options for the varnishd command line +# For example: +# OPTS="-b varnish.projects.linpro.no" +# Read the varnishd man page for info +# +# Use -F if you want to use it with runit +# or daemontools +# +OPTS="-b localhost:80 -u nobody -g nobody -n /var/varnish/$hostname" diff --git a/pkgs/varnish/varnish.init b/pkgs/varnish/varnish.init new file mode 100755 index 0000000..b90ebf5 --- /dev/null +++ b/pkgs/varnish/varnish.init @@ -0,0 +1,41 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +. /etc/varnish.conf + +PID=`pidof %PPID /usr/sbin/varnishd` + +case "$1" in + start) + stat_busy "Starting Varnish Reverse Proxy" + /usr/sbin/varnishd $OPTS + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon varnish + stat_done + fi + ;; + stop) + stat_busy "Stopping Varnish Reverse Proxy" + kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon varnish + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + ;; +esac +exit 0 diff --git a/pkgs/varnish/varnish.install b/pkgs/varnish/varnish.install new file mode 100644 index 0000000..e951df3 --- /dev/null +++ b/pkgs/varnish/varnish.install @@ -0,0 +1,4 @@ +# arg 1: the new package version +post_install () { + echo "==> Edit /etc/varnish.conf to configure." +} diff --git a/pkgs/varnish/varnish.log.runit b/pkgs/varnish/varnish.log.runit new file mode 100755 index 0000000..d5220b7 --- /dev/null +++ b/pkgs/varnish/varnish.log.runit @@ -0,0 +1,4 @@ +#!/bin/sh + +svname=$( cd .. && basename $( pwd ) ) +exec /usr/bin/logger -t $svname -p daemon.info diff --git a/pkgs/varnish/varnish.runit b/pkgs/varnish/varnish.runit new file mode 100755 index 0000000..e9e647f --- /dev/null +++ b/pkgs/varnish/varnish.runit @@ -0,0 +1,28 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +. /etc/varnish.conf + +BIN="/usr/sbin/varnishd" + +PID=`pidof %PPID $BIN` + +killjobs () { + kill $PID >&/dev/null +} + +trap killjobs INT QUIT TERM EXIT KILL HUP + +if [ -z "$PID" ] +then + $BIN $OPTS +else + for P in $PID + do + watchpid $P & + done +fi +wait -- cgit v1.2.3-54-g00ecf