diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /social | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'social')
99 files changed, 3397 insertions, 0 deletions
diff --git a/social/ahcpd/PKGBUILD b/social/ahcpd/PKGBUILD new file mode 100644 index 000000000..a2f1e336f --- /dev/null +++ b/social/ahcpd/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Yann Lopez <arch at lonewulf dot net> +pkgname=ahcpd +pkgver=0.53 +pkgrel=1 +pkgdesc="Ad-Hoc Configuration Protocol" +arch=(i686 x86_64 mips64el) +url="http://www.pps.jussieu.fr/~jch/software/ahcp/" +license=('custom') +depends=('sh') +source=(http://www.pps.jussieu.fr/~jch/software/files/$pkgname-$pkgver.tar.gz) + +build() { + cd "$srcdir/$pkgname-$pkgver" + + sed -i 's/\$(PREFIX)\/man/$(PREFIX)\/share\/man/g' Makefile + make PREFIX="/usr" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make install TARGET=${pkgdir} PREFIX=/usr + + install -d $pkgdir/usr/share/licenses/ahcpd + install -m 644 LICENCE $pkgdir/usr/share/licenses/ahcpd/ +} +md5sums=('a1a610bf20965aa522cd766bf3d5829a') diff --git a/social/aiccu/PKGBUILD b/social/aiccu/PKGBUILD new file mode 100644 index 000000000..5fc4cb086 --- /dev/null +++ b/social/aiccu/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=aiccu +pkgver=20070115 +pkgrel=7 +pkgdesc="SixXS Automatic IPv6 Connectivity Client Utility - AICCU" +arch=('i686' 'x86_64') +url="http://www.sixxs.net/tools/aiccu/" +license=('BSD') +depends=('gnutls' 'iproute2') +makedepends=('glibc' 'libgpg-error' 'libtasn1' 'libgcrypt' 'zlib') +backup=(etc/aiccu.conf) +source=(http://www.sixxs.net/archive/sixxs/aiccu/unix/${pkgname}_${pkgver}.tar.gz + aiccu.rc.d) +md5sums=('c9bcc83644ed788e22a7c3f3d4021350' + '9eb63ae132d4835a822ea925c6440b04') + +build() { + cd "$srcdir/$pkgname" + + sed -i 's|Installing Debian-style init.d||' Makefile + + LDFLAGS="" make + make DESTDIR="$pkgdir" install +} + +package() { + cd "$srcdir/$pkgname" + + install -D -m600 doc/aiccu.conf "$pkgdir/etc/aiccu.conf" + install -D -m755 "$srcdir/aiccu.rc.d" "$pkgdir/etc/rc.d/aiccu" + install -D -m444 doc/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + rm -fr "$pkgdir/etc/init.d" +} diff --git a/social/aiccu/aiccu.rc.d b/social/aiccu/aiccu.rc.d new file mode 100644 index 000000000..b0ca08fce --- /dev/null +++ b/social/aiccu/aiccu.rc.d @@ -0,0 +1,60 @@ +#!/bin/bash + +daemon_name=aiccu + +. /etc/rc.conf +. /etc/rc.d/functions + +get_pid() { + pidof $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 start > /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` + # RUN + $daemon_name stop + # + 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 + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/social/anubis/PKGBUILD b/social/anubis/PKGBUILD new file mode 100644 index 000000000..8835d2275 --- /dev/null +++ b/social/anubis/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor: Nathan Owe <ndowens04 at gmail> +pkgname=anubis +pkgver=4.1.1 +pkgrel=2 +pkgdesc="An SMTP message submission daemon. " +arch=('i686') +url="http://www.gnu.org/software/anubis/" +license=('GPL3') +depends=('guile' 'gpgme' 'gnutls' 'gsasl' 'pam' 'pcre' 'tcp_wrappers') +source=(ftp://ftp.gnu.org/gnu/anubis/$pkgname-$pkgver.tar.gz) +md5sums=('28df4daee11bc74a9e4b19b425d8a196') + +build() { + cd $srcdir/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --with-pam \ + --with-pcre \ + --with-tcp-wrappers \ + --with-socks-proxy + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir/ install +} + +# vim:set ts=2 sw=2 et: diff --git a/social/babeld/PKGBUILD b/social/babeld/PKGBUILD new file mode 100644 index 000000000..5aa25f07f --- /dev/null +++ b/social/babeld/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer (AUR): Yann Lopez <arch at lonewulf dot net> +# Maintainer (Parabola): fauno <fauno@parabola.nu> +pkgname=babeld +pkgver=1.3.4 +pkgrel=1 +pkgdesc="Loop-free distance-vector routing protocol" +arch=(i686 x86_64 mips64el) +url="http://www.pps.jussieu.fr/~jch/software/babel/" +license=('custom') +depends=(glibc) +source=(http://www.pps.jussieu.fr/~jch/software/files/$pkgname-$pkgver.tar.gz{,.asc}) +install=babeld.install +md5sums=('37be1cbcc23cd00ee47efc9157c58795' + 'e2dfae49b497ba70c0c1014feae80f3a') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + sed -e "s,/man/,/share&,g" -i Makefile + + make PREFIX=/usr CFLAGS="$CFLAGS" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make PREFIX=/usr TARGET=$pkgdir install + + gzip -f $pkgdir/usr/share/man/man8/$pkgname.8 + + install -Dm 644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE +} diff --git a/social/babeld/babeld.install b/social/babeld/babeld.install new file mode 100644 index 000000000..686153617 --- /dev/null +++ b/social/babeld/babeld.install @@ -0,0 +1,18 @@ +compatibility_warning() { + echo "PLEASE NOTE:" + echo " " + echo "-------------------------------------------------------------" + echo " This version uses the IANA-allocated UDP port and multicast" + echo " group and is therefore incompatible with older versions." + echo "-------------------------------------------------------------" +} + +post_upgrade() { + major=$(echo $2 | cut -d '.' -f1) + minor=$(echo $2 | cut -d '.' -f2) + if [ $major -lt 1 ]; then + compatibility_warning + elif [ $major -eq 1 -a $minor -lt 1 ]; then + compatibility_warning + fi +} diff --git a/social/batctl/PKGBUILD b/social/batctl/PKGBUILD new file mode 100644 index 000000000..b64c46ef0 --- /dev/null +++ b/social/batctl/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Nathan Owe <ndowens.aur at gmail dot com> +# Maintainer: Thomas Weißschuh <thomas_weissschuh@lavabit.com> +pkgname=batctl +pkgver=2012.3.0 +pkgrel=1 +pkgdesc="B.A.T.M.A.N. advanced control and management tool" +arch=('i686' 'x86_64') +url="http://www.open-mesh.net/" +license=('GPL') +depends=('glibc') +source=("http://downloads.open-mesh.net/batman/releases/batman-adv-${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc}) + +build(){ + cd ${srcdir}/${pkgname}-${pkgver} + make +} +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} PREFIX=/usr install + +} + +# vim:set ts=2 sw=2 et: +md5sums=('fe9e6a3994539037b48afc5e3d31628c' + 'fdc6433ebc7fe59ce9eaec56dd843eb9') diff --git a/social/bip/PKGBUILD b/social/bip/PKGBUILD new file mode 100644 index 000000000..fcb0ddcfe --- /dev/null +++ b/social/bip/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + +pkgname=bip +pkgver=0.8.8 +pkgrel=1 +pkgdesc="Multiuser IRC proxy that supports replaying of logged irc conversations" +arch=('i686' 'x86_64') +url="http://bip.milkypond.org/" +license=('GPL') +depends=('openssl' 'perl') +makedepends=('bison' 'flex') +backup=('etc/bip.conf') +source=(https://projects.duckcorp.org/attachments/download/39/$pkgname-$pkgver.tar.gz) +sha256sums=('7ca3fb96f5ee6b76eb398d7ea45344ea24855344ced11632241a33353bba05d7') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install + + install -D -m755 ${srcdir}/$pkgname-$pkgver/scripts/bipgenconfig \ + ${pkgdir}/usr/bin/bipgenconfig + install -D -m644 ${srcdir}/$pkgname-$pkgver/samples/$pkgname.conf \ + ${pkgdir}/usr/share/$pkgname/$pkgname.conf.sample + install -D -m644 ${srcdir}/$pkgname-$pkgver/samples/$pkgname.vim \ + ${pkgdir}/usr/share/vim/syntax/$pkgname.vim +} diff --git a/social/bitcoin-daemon/PKGBUILD b/social/bitcoin-daemon/PKGBUILD new file mode 100644 index 000000000..ddc5ac0ab --- /dev/null +++ b/social/bitcoin-daemon/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Contributor: Artefact2 <artefact2@gmail.com> +# Contributor: shahid <helllamer@gmail.com> +# Based on bitcoin by +# Maintainer : shahid <helllamer@gmail.com> + +pkgname=bitcoin-daemon +_pkgname=bitcoin +pkgver=0.5.2 +pkgrel=1 +pkgdesc="Bitcoin is a peer-to-peer network based digital currency (daemon with JSON-RPC interface)." +arch=('i686' 'x86_64') +url="http://www.bitcoin.org/" +depends=('expat' 'boost-libs>=1.46' 'miniupnpc>=1.6' 'openssl') +makedepends=('boost' 'gcc' 'make') +conflicts=('bitcoin') +license=('MIT') +install="bitcoin-daemon.install" +source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}-linux.tar.gz" + bitcoin-daemon.install + rc.bitcoind) + +s1=$srcdir/${_pkgname}-${pkgver}-linux +src=$s1/src/src +makefile_unix=makefile.unix +md5sums=('6d40f645ddc042de26d64e83656f38e0' + '0375ba4d6c3425eee350dc8b7575403d' + '7faa439885f3adbba5847ae75aac5484') + +build() { + cd $src + + msg "Patching $makefile_unix..." + sed -i $makefile_unix \ + -e 's/\(-DNOPCH\)/\1 -DBOOST_FILESYSTEM_VERSION=2/' \ + -e 's/-Bstatic/--as-needed ${LDFLAGS}/g' \ + -e 's/\(USE_UPNP:=\)0/\11/' \ + -e 's/$(DEBUGFLAGS)//g' \ + -e 's/CXXFLAGS/CPPFLAGS/g' \ + -e 's/-O[0-3]/${CXXFLAGS}/g' + + # make bitcoind + make $MAKEFLAGS -f $makefile_unix bitcoind +} + +package() { + # get compiled binaries + mkdir -p ${pkgdir}/{var/lib/${pkgname},usr/{share/licenses/${pkgname},bin},etc/rc.d} + + install -D -m755 ${src}/bitcoind ${pkgdir}/usr/bin/ + + install -D -m755 ${srcdir}/rc.bitcoind ${pkgdir}/etc/rc.d/ + + install -D -m 644 ${s1}/COPYING \ + ${pkgdir}/usr/share/licenses/${pkgname}/ +} diff --git a/social/bitcoin-daemon/bitcoin-daemon.install b/social/bitcoin-daemon/bitcoin-daemon.install new file mode 100644 index 000000000..5b2ffec92 --- /dev/null +++ b/social/bitcoin-daemon/bitcoin-daemon.install @@ -0,0 +1,20 @@ +post_install() { + echo "==> Creating the bitcoin user…" + groupadd -g 8333 bitcoin + useradd -d /var/lib/bitcoin-daemon -g 8333 -u 8333 -s /bin/false -N bitcoin + + pw="$RANDOM$RANDOM$RANDOM" + echo "==> Setting the default RPC password to $pw" + echo "rpcpassword=$pw" >> /var/lib/bitcoin-daemon/bitcoin.conf + + chown 8333:8333 /var/lib/bitcoin-daemon/bitcoin.conf + chmod 400 /var/lib/bitcoin-daemon/bitcoin.conf + echo "==> You can add bitcoind to your DAEMONS array in rc.conf." +} + +post_remove() { + echo "==> Deleting the bitcoin user…" + groupdel bitcoin + userdel bitcoin + echo "==> Your configuration file and wallet is still in /opt/bitcoin-daemon." +} diff --git a/social/bitcoin-daemon/makefile.parabola b/social/bitcoin-daemon/makefile.parabola new file mode 100644 index 000000000..984750982 --- /dev/null +++ b/social/bitcoin-daemon/makefile.parabola @@ -0,0 +1,86 @@ +# Copyright (c) 2009-2010 Satoshi Nakamoto +# Rewritten for Archlinux by shahid +# Distributed under the MIT/X11 software license, see the accompanying +# file license.txt or http://www.opensource.org/licenses/mit-license.php. + +CXX=g++ + +INCLUDEPATHS= \ + -I"/usr/include" \ + +LIBPATHS= \ + -L"/usr/lib" \ + -L"/usr/local/lib" + +DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL + +USE_UPNP:=1 + +# --as-needed lazy linking set as default behavior of ld because i guess, there are useless libs here +# Of couse, this may be overriden by LDFLAGS in makepkg.conf +LIBS= \ + -Wl,--as-needed \ + ${LDFLAGS} \ + -l boost_system \ + -l boost_filesystem \ + -l boost_program_options \ + -l boost_thread \ + -l db_cxx \ + +ifdef USE_UPNP + LIBS += -l miniupnpc + DEFS += -DUSE_UPNP=$(USE_UPNP) +endif + +LIBS+= \ + -l gthread-2.0 \ + -l z \ + -l dl \ + -l ssl \ + -l crypto + +#DEBUGFLAGS=-g -D__WXDEBUG__ +CCFLAGS=${CXXFLAGS} -DBOOST_FILESYSTEM_DEPRECATED -Wno-invalid-offsetof -Wformat $(WXDEFS) $(INCLUDEPATHS) $(DEFS) +HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \ + script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h + +OBJS= \ + obj/util.o \ + obj/script.o \ + obj/db.o \ + obj/net.o \ + obj/irc.o \ + obj/main.o \ + obj/rpc.o \ + obj/init.o \ + cryptopp/obj/sha.o \ + cryptopp/obj/cpu.o + + +all: bitcoin + + +headers.h.gch: headers.h $(HEADERS) + $(CXX) -c $(CCFLAGS) -DGUI -o $@ $< + +obj/%.o: %.cpp $(HEADERS) headers.h.gch + $(CXX) -c $(CCFLAGS) -DGUI -o $@ $< + +# -DCRYPTOPP_DISABLE_SSE2 +cryptopp/obj/%.o: cryptopp/%.cpp + $(CXX) -c $(CCFLAGS) -O3 -o $@ $< + +bitcoin: $(OBJS) obj/ui.o obj/uibase.o + $(CXX) $(CCFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) $(WXLIBS) + +obj/nogui/%.o: %.cpp $(HEADERS) + $(CXX) -c $(CCFLAGS) -o $@ $< + +bitcoind: $(OBJS:obj/%=obj/nogui/%) + $(CXX) $(CCFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) + +clean: + -rm -f obj/*.o + -rm -f obj/nogui/*.o + -rm -f cryptopp/obj/*.o + -rm -f headers.h.gch diff --git a/social/bitcoin-daemon/rc.bitcoind b/social/bitcoin-daemon/rc.bitcoind new file mode 100644 index 000000000..be09251d1 --- /dev/null +++ b/social/bitcoin-daemon/rc.bitcoind @@ -0,0 +1,35 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting bitcoind" + su -s /bin/bash -c "nohup bitcoind -gen=0 -datadir=/var/lib/bitcoin-daemon &" bitcoin > /dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon bitcoind + stat_done + fi + ;; + stop) + stat_busy "Stopping bitcoind" + su -s /bin/bash -c "bitcoind -datadir=/var/lib/bitcoin-daemon stop" bitcoin &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon bitcoind + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/social/bitcoin/PKGBUILD b/social/bitcoin/PKGBUILD new file mode 100644 index 000000000..64810db4b --- /dev/null +++ b/social/bitcoin/PKGBUILD @@ -0,0 +1,62 @@ +## Maintainer : shahid <helllamer@gmail.com> +## Long PKGBUILD description, todo, wiki: +## * https://bitbucket.org/helllamer/archlinux-pkgbuild/wiki/pkgbuild/bitcoin + +## Wanna take part on development my PKGBUILDs? Feel welcome on my repo: +## * https://bitbucket.org/helllamer/archlinux-pkgbuild/ + +name=bitcoin +pkgname=$name +pkgver=0.5.2 +pkgrel=1 +pkgdesc="Bitcoin is a peer-to-peer network based digital currency." +arch=('i686' 'x86_64') +url="http://www.bitcoin.org/" +depends=('qt>=4.6' 'libpng>=1.4' 'expat' 'gcc-libs' 'boost-libs>=1.46' 'miniupnpc>=1.6' 'openssl') +makedepends=('boost' 'gcc' 'make' 'automoc4') +conflicts=('bitcoin-bin' 'bitcoin-git' 'bitcoin-daemon') +license=('MIT') +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-linux.tar.gz" + "${pkgname}.desktop") +md5sums=('6d40f645ddc042de26d64e83656f38e0' + '77139ce8a40f46bd7d7ad0a743672113') +s1=$srcdir/${pkgname}-${pkgver}-linux +src_qt=$s1/src +src_d=$s1/src/src/ +makefile_unix=makefile.unix + +build() { + cd $src_d + + msg "Patching $makefile_unix..." + sed -i $makefile_unix \ + -e 's/\(-DNOPCH\)/\1 -DBOOST_FILESYSTEM_VERSION=2/' \ + -e 's/-Bstatic/--as-needed ${LDFLAGS}/g' \ + -e 's/\(USE_UPNP:=\)0/\11/' \ + -e 's/$(DEBUGFLAGS)//g' \ + -e 's/CXXFLAGS/CPPFLAGS/g' \ + -e 's/-O[0-3]/${CXXFLAGS}/g' + + # make bitcoind + make $MAKEFLAGS -f $makefile_unix bitcoind + + # and make qt gui + cd $src_qt + qmake + make $MAKEFLAGS +} + + +package() { + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/usr/share/pixmaps + mkdir -p $pkgdir/usr/share/applications + + # get compiled binaries + install -D -m755 $src_qt/bitcoin-qt $pkgdir/usr/bin/ + install -D -m755 $src_d/bitcoind $pkgdir/usr/bin/ + + # add icon and .desktop file to pkg + install -D -m644 $src_qt/src/qt/res/icons/bitcoin.png $pkgdir/usr/share/pixmaps/ + install -D -m644 $srcdir/$name.desktop $pkgdir/usr/share/applications/ +} diff --git a/social/bitcoin/bitcoin.desktop b/social/bitcoin/bitcoin.desktop new file mode 100644 index 000000000..f27429060 --- /dev/null +++ b/social/bitcoin/bitcoin.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Bitcoin +GenericName=P2P network based digital currency +Comment=P2P network based digital currency +Exec=bitcoin-qt +Icon=/usr/share/pixmaps/bitcoin.png +StartupNotify=true +Terminal=false +Type=Application +Categories=Office;Finance;P2P diff --git a/social/diaspora-git/PKGBUILD b/social/diaspora-git/PKGBUILD new file mode 100644 index 000000000..3c241473b --- /dev/null +++ b/social/diaspora-git/PKGBUILD @@ -0,0 +1,172 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com> +# Contributor: Jonne Haß <me@mrzyx.de> +# Contributor: Splashy <splash at open-web dot fr> + +# After installing, see the Diaspora wiki page for more information: +# https://wiki.archlinux.org/index.php/Diaspora + +pkgbase=diaspora-git +pkgname=('diaspora-mysql-git' 'diaspora-postgresql-git') +pkgver=20120105 +pkgrel=2 +pkgdesc="A privacy aware, personally controlled, do-it-all, open source social network" +arch=('i686' 'x86_64') +url="https://diasporafoundation.org/" +license=('AGPL3') +depends=('ruby' 'redis' 'imagemagick' 'libxslt' 'net-tools') +makedepends=('git' 'libmysqlclient' 'postgresql-libs') +provides=('diaspora') +install=diaspora.install +source=('diaspora.bin' + 'diaspora.rc' + 'diaspora.logrotate' + 'diaspora.pam' + 'diaspora.bashrc') +md5sums=('547b0015c83da22bd739dc85fd79f9b9' + 'b7a893271d9ba778f74569eff4190c06' + '60f6b3972c73cbc6b1c9ab87c88fb655' + '96f82c38f3f540b53f3e5144900acf17' + '53867bfd389dd267eefcefb053fecc5b') + +_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 + cd ${srcdir}/${_gitname}-build + + # Symlink configs + ln -s /etc/webapps/$_gitname/application.yml config/application.yml + ln -s /etc/webapps/$_gitname/database.yml config/database.yml + ln -s /etc/webapps/$_gitname/script_server.yml config/script_server.yml + ln -s /etc/webapps/$_gitname/oauth_keys.yml config/oauth_keys.yml + + # Set version header + sed "s|git_cmd = \`git log -1 --pretty=\"format:%H %ci\"\`|git_cmd = \"$(git log -1 --pretty="format:%H %ci")\"|" \ + -i config/initializers/version_header.rb + + # Preconfigure config/script_server.yml.example + sed 's|rails_env: "development"|rails_env: "production"|' \ + -i config/script_server.yml.example + + # Preconfigure right ca_file + sed "s|ca_file: '/etc/pki/tls/certs/ca-bundle.crt' # CentOS|ca_file: '/etc/ssl/certs/ca-certificates.crt' # Arch|" \ + -i config/application.yml.example + + # We make this now because we do not install the git history + # Comply with AGPLv3 + tar czf public/source.tar.gz `git ls-tree -r master | awk '{print $4}'` + + # Remove git repo + rm -fr .git + + # Create gem cache + mkdir -p ${srcdir}/gem-cache +} + +# Helper +_package() { + cd "${srcdir}" + + usrdir="${pkgdir}/usr/share/webapps" + + install -d "${usrdir}" + cp -a ${_gitname}-build "${usrdir}/${_gitname}" + + 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 -Dm644 $_gitname.bashrc "$usrdir/$_gitname/.bashrc" + +# Set the DB in the environment + sed -i "s/-DB-/$DB/g" "$usrdir/$_gitname/.bashrc" + sed -i "s/-DB-/$_db_rc/g" "$pkgdir/etc/rc.d/$_gitname" + + install -Dm644 $_gitname-build/config/application.yml.example "$pkgdir/etc/webapps/$_gitname/application.yml" + install -Dm644 $_gitname-build/config/database.yml.example "$pkgdir/etc/webapps/$_gitname/database.yml" + install -Dm644 $_gitname-build/config/script_server.yml.example "$pkgdir/etc/webapps/$_gitname/script_server.yml" + install -Dm644 $_gitname-build/config/oauth_keys.yml.example "$pkgdir/etc/webapps/$_gitname/oauth_keys.yml" + + # Include all gems + cd "${usrdir}/${_gitname}" + mkdir -p ${usrdir}/${_gitname}/vendor/ruby/1.9.1/ + ln -s ${srcdir}/gem-cache ${usrdir}/${_gitname}/vendor/cache + ln -s ${srcdir}/gem-cache ${usrdir}/${_gitname}/vendor/ruby/1.9.1/cache + + export GEM_HOME="${PWD}/vendor" + export GEM_PATH="${PWD}/vendor" + export PATH="${GEM_PATH}/bin:${PATH}" + +# TODO extract mysql2 version from Gemfile + case $DB in + mysql) + gem install mysql2 -v "0.2.17" -- --with-mysql-config=/usr/bin/mysql_config + + ;; + posgres) + gem install pg -- --with-pg-config=/usr/bin/pg_config + + # Preconfigure right subsection in database.yml.example + sed -e "s/<<: \*mysql/#<<: \*mysql/" \ + -e "s/#<<: \*postgres/<<: \*postgres/" \ + -i $_gitname-build/config/database.yml.example + + # Preconfigure right db in script_server.yml + sed "s/db: \"mysql\"/db: \"postgres\"/" \ + -i $_gitname-build/config/script_server.yml.example + + esac + + gem install bundler + bundle install --path ${GEM_PATH} --without development test heroku + + install -d $pkgdir/usr/share/licenses/$_gitname/ + install -Dm644 ${srcdir}/$_gitname-build/{AUTHORS,COPYRIGHT,GNU-AGPL-3.0} \ + $pkgdir/usr/share/licenses/$_gitname/ + + msg "Removing gem cache" + rm -vr ${usrdir}/${_gitname}/vendor/{,ruby/1.9.1/}cache +} + +package_diaspora-mysql-git() { + pkgdesc="A privacy aware, personally controlled, do-it-all, open source social network (MySQL version)" + provides=('diaspora-mysql' 'diaspora') + depends=('ruby' 'redis' 'imagemagick' 'libxslt' 'net-tools' 'mysql' 'libmysqlclient') + options=(!strip) + + export DB="mysql" + export _db_rc="mysqld" + + _package +} + +package_diaspora-postgresql-git() { + pkgdesc="A privacy aware, personally controlled, do-it-all, open source social network (PostgreSQL version)" + provides=('diaspora-postgresql' 'diaspora') + depends=('ruby' 'redis' 'imagemagick' 'libxslt' 'net-tools' 'postgresql') + options=(!strip) + + export DB="postgres" + export _db_rc="postgresql" + + _package +} diff --git a/social/diaspora-git/diaspora.bashrc b/social/diaspora-git/diaspora.bashrc new file mode 100644 index 000000000..b694ca0b0 --- /dev/null +++ b/social/diaspora-git/diaspora.bashrc @@ -0,0 +1,6 @@ +export GEM_HOME="${HOME}/.gems" +export GEM_PATH="${HOME}/.gems" +export PATH="${GEM_PATH}/bin:${PATH}" +export RAILS_ENV="production" +export DB="-DB-" + diff --git a/social/diaspora-git/diaspora.bin b/social/diaspora-git/diaspora.bin new file mode 100644 index 000000000..dfd0d026f --- /dev/null +++ b/social/diaspora-git/diaspora.bin @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$(whoami)" == "diaspora" ]; then + cd /usr/share/webapps/diaspora + source ./.bashrc + ./script/server &>>/var/log/diaspora.log +else + echo 'Please run this as the "diaspora" user!' +fi diff --git a/social/diaspora-git/diaspora.install b/social/diaspora-git/diaspora.install new file mode 100644 index 000000000..7833be058 --- /dev/null +++ b/social/diaspora-git/diaspora.install @@ -0,0 +1,28 @@ + +dusr=diaspora +dhome=/usr/share/webapps/diaspora +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 &>/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/social/diaspora-git/diaspora.logrotate b/social/diaspora-git/diaspora.logrotate new file mode 100644 index 000000000..bb5564a79 --- /dev/null +++ b/social/diaspora-git/diaspora.logrotate @@ -0,0 +1,5 @@ +/var/log/diaspora.log { + notifempty + copytruncate + missingok +} diff --git a/social/diaspora-git/diaspora.pam b/social/diaspora-git/diaspora.pam new file mode 100644 index 000000000..53724d1f8 --- /dev/null +++ b/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/social/diaspora-git/diaspora.rc b/social/diaspora-git/diaspora.rc new file mode 100644 index 000000000..8464f3947 --- /dev/null +++ b/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 db and redis are running, start them if not + ck_daemon -DB- && /etc/rc.d/-DB- 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/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 <dragonlord@aur.archlinux.org> +# Contributor: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`> +# Contributor: Jeremy Cowgar <jeremy@cowgar.com> + +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/ffingerd/PKGBUILD b/social/ffingerd/PKGBUILD new file mode 100644 index 000000000..4e312232b --- /dev/null +++ b/social/ffingerd/PKGBUILD @@ -0,0 +1,27 @@ +pkgname=ffingerd +pkgver=1.28 +pkgrel=2 +pkgdesc="Secure finger daemon" +arch=('i686' 'x86_64') +url="http://www.fefe.de/ffingerd/" +license=('GPL2') +depends=('glibc' 'xinetd') +backup=('etc/xinetd.d/finger') +source=(http://www.fefe.de/$pkgname/$pkgname-$pkgver.tar.bz2 finger.xinetd) +md5sums=('fe207448745da07b4e393d8b8694658b' '2ca1a6b3f442a5c0c81fa03d265a203e') + +build() { + cd $srcdir/$pkgname-$pkgver + install -d $pkgdir/usr/sbin $pkgdir/usr/share/man/man8 + ./configure --prefix=/usr + + make +} + +package(){ + cd $srcdir/$pkgname-$pkgver + + make SBINDIR=$pkgdir/usr/sbin MANDIR=$pkgdir/usr/share/man install + + install -D -m644 $srcdir/finger.xinetd $pkgdir/etc/xinetd.d/ffinger +} diff --git a/social/ffingerd/finger.xinetd b/social/ffingerd/finger.xinetd new file mode 100644 index 000000000..36cd303b4 --- /dev/null +++ b/social/ffingerd/finger.xinetd @@ -0,0 +1,8 @@ +service finger +{ + socket_type = stream + wait = no + user = nobody + server = /usr/sbin/ffingerd + disable = yes +} diff --git a/social/haveged/PKGBUILD b/social/haveged/PKGBUILD new file mode 100644 index 000000000..b5f2e680a --- /dev/null +++ b/social/haveged/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: kfgz <kfgz at interia dot pl> +# Contributor: pootzko <pootzko at gmail dot com> + +pkgname=haveged +pkgver=1.1 +pkgrel=1 +pkgdesc="A simple entropy daemon." +arch=('i686' 'x86_64') +url="http://www.issihosts.com/haveged" +license="GPL" +source=(${url}/${pkgname}-${pkgver}.tar.gz + haveged) +md5sums=('f7752f0355a0e89d8f196658db5f6884' + '264b725be5271288b40f363d7cfc6b68') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + rm -rf ${pkgdir}/etc/init.d + cd ${srcdir} + install -D -m755 haveged ${pkgdir}/etc/rc.d/haveged +} diff --git a/social/haveged/haveged b/social/haveged/haveged new file mode 100644 index 000000000..c0e13b40d --- /dev/null +++ b/social/haveged/haveged @@ -0,0 +1,44 @@ +#!/bin/bash +## +# chkconfig: 2345 75 25 +# description: havege entropy daemon +# +# source function library +. /etc/rc.conf +. /etc/rc.d/functions + +RETVAL=0 +prog="haveged" + +case "$1" in +start) + stat_busy $"Starting $prog" + /usr/sbin/$prog -w 1024 -v 1 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon $prog + stat_done + fi + ;; + +stop) + stat_busy $"Stopping $prog" + kill `cat /var/run/$prog.pid` + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon $prog + stat_done + rm -f /var/lock/$prog + fi + ;; + +restart) + $0 stop + $0 start + ;; + +*) + echo "usage: $prog [start|stop|restart]" +esac diff --git a/social/inadyn-opendns/PKGBUILD b/social/inadyn-opendns/PKGBUILD new file mode 100644 index 000000000..75e8dc1ae --- /dev/null +++ b/social/inadyn-opendns/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor: Bug <Bug2000@gmail.com> +# Maintainer: Bug <Bug2000@gmail.com> +pkgname=inadyn-opendns +pkgver=1.99 +pkgrel=3 +pkgdesc="Simple dynamic DNS client with SSL support" +arch=('i686') +url="http://www.opendns.com/account/dynamic_dns/downloads" +license=('GPL') +makedepends=('unzip') +depends=('curl') +conflicts=('inadyn') +provides=('inadyn') +backup=('etc/inadyn.conf') +install=('inadyn-opendns.install') +source=("http://www.opendns.com/support/ddns_files/inadyn.source.v$pkgver.zip" + 'inadyn.rc-script') +md5sums=('0f2cf9c3ea3482c03e1c42f8480f1c55' + '73c61f9939546c28119242a1e12ffcff') + +build() { + cd "$srcdir/inadyn.source.v$pkgver" + + make || return 1 + + install -Dm755 bin/linux/inadyn $pkgdir/usr/sbin/inadyn + install -Dm644 man/inadyn.8 $pkgdir/usr/share/man/man8/inadyn.8 + install -Dm644 man/inadyn.conf.5 $pkgdir/usr/share/man/man5/inadyn.conf.5 + install -Dm644 readme.html $pkgdir/usr/share/doc/inadyn/readme.html + install -Dm755 $srcdir/inadyn.rc-script $pkgdir/etc/rc.d/inadyn + install -Dm644 inadyn.conf $pkgdir/etc/inadyn.conf +} diff --git a/social/inadyn-opendns/inadyn-opendns.install b/social/inadyn-opendns/inadyn-opendns.install new file mode 100644 index 000000000..e1a842430 --- /dev/null +++ b/social/inadyn-opendns/inadyn-opendns.install @@ -0,0 +1,17 @@ +post_install() { +/bin/true +echo Please remember to change the /etc/inadyn.conf file for your settings. +} + +post_upgrade() { +/bin/true +} + +pre_remove() { +/bin/true +} + +op=$1 +shift + +$op "$@"
\ No newline at end of file diff --git a/social/inadyn-opendns/inadyn.rc-script b/social/inadyn-opendns/inadyn.rc-script new file mode 100644 index 000000000..2ee29d59e --- /dev/null +++ b/social/inadyn-opendns/inadyn.rc-script @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/inadyn` +case "$1" in + start) + stat_busy "Starting INADYN Daemon" + [ -z "$PID" ] && /usr/sbin/inadyn --background --input_file /etc/inadyn.conf >>/var/log/inadyn 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + PID=`pidof -o %PPID /usr/sbin/inadyn` + echo $PID >/var/run/inadyn.pid + add_daemon inadyn + stat_done + fi + ;; + stop) + stat_busy "Stopping INADYN Daemon" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon inadyn + stat_done + fi + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 + diff --git a/social/inspircd/PKGBUILD b/social/inspircd/PKGBUILD new file mode 100644 index 000000000..6165f7c31 --- /dev/null +++ b/social/inspircd/PKGBUILD @@ -0,0 +1,62 @@ +pkgname=inspircd +pkgver=2.0.5 +pkgrel=2 +pkgdesc='A lightweight IRC daemon' +arch=('x86_64' 'i686') +url='http://www.inspircd.org/' +license=('GPL2') +depends=('perl' 'gnutls' 'openssl' 'libgcrypt') +makedepends=('pkg-config' 'mysql' 'postgresql' 'sqlite3' 'libldap' 'geoip' 'tre') +optdepends=('mysql: m_mysql' + 'pcre: m_regex_pcre' + 'postgresql: m_pgsql' + 'sqlite3: m_sqlite3' + 'libldap: m_ldapoper and m_ldapauth' + 'geoip: m_geoip' + 'tre: m_regex_tre') +install=inspircd.install +backup=('etc/inspircd/inspircd.conf') + +source=(http://www.inspircd.org/downloads/InspIRCd-$pkgver.tar.bz2 inspircd.rcd gnutls.patch) +md5sums=('60dec04bdc8f8c473f3c7bd774a1f153' + 'f4f32d944401b1602ab6716476892afd' + '6312154e759e5d71b85c7dca71b7a4fd') + +build() { + cd "${srcdir}/inspircd" + patch -Np1 -i "${srcdir}/gnutls.patch" + + ./configure \ + --enable-extras=m_geoip.cpp \ + --enable-extras=m_ldapauth.cpp \ + --enable-extras=m_ldapoper.cpp \ + --enable-extras=m_mysql.cpp \ + --enable-extras=m_pgsql.cpp \ + --enable-extras=m_regex_pcre.cpp \ + --enable-extras=m_regex_posix.cpp \ + --enable-extras=m_regex_tre.cpp \ + --enable-extras=m_sqlite3.cpp + + ./configure \ + --prefix=/usr/lib/inspircd \ + --binary-dir=/usr/sbin \ + --module-dir=/usr/lib/inspircd/modules \ + --config-dir=/etc/inspircd \ + --enable-gnutls \ + --enable-openssl \ + --enable-epoll + + make +} + +package() { + install -Dm755 "${srcdir}"/inspircd.rcd "${pkgdir}"/etc/rc.d/inspircd + install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd" + install -o141 -g141 -dm750 "${pkgdir}/var/run/inspircd" + + cd "${srcdir}/inspircd" + make DESTDIR="$pkgdir" INSTUID=141 install + + rm -rf "${pkgdir}"/usr/lib/inspircd/logs + rm -rf "${pkgdir}"/usr/lib/inspircd/data +} diff --git a/social/inspircd/gnutls.patch b/social/inspircd/gnutls.patch new file mode 100644 index 000000000..3975c418c --- /dev/null +++ b/social/inspircd/gnutls.patch @@ -0,0 +1,12 @@ +ff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp +index b8c4815..d58caa8 100644 +--- a/src/modules/extra/m_ssl_gnutls.cpp ++++ b/src/modules/extra/m_ssl_gnutls.cpp +@@ -20,7 +20,7 @@ + + /* $ModDesc: Provides SSL support for clients */ + /* $CompileFlags: pkgconfincludes("gnutls","/gnutls/gnutls.h","") */ +-/* $LinkerFlags: rpath("pkg-config --libs gnutls") pkgconflibs("gnutls","/libgnutls.so","-lgnutls") */ ++/* $LinkerFlags: rpath("pkg-config --libs gnutls") pkgconflibs("gnutls","/libgnutls.so","-lgnutls") -lgcrypt */ + + enum issl_status { ISSL_NONE, ISSL_HANDSHAKING_READ, ISSL_HANDSHAKING_WRITE, ISSL_HANDSHAKEN, ISSL_CLOSING, ISSL_CLOSED }; diff --git a/social/inspircd/inspircd.install b/social/inspircd/inspircd.install new file mode 100644 index 000000000..ec97113f5 --- /dev/null +++ b/social/inspircd/inspircd.install @@ -0,0 +1,15 @@ +post_install() { + getent group inspircd &>/dev/null || groupadd -r -g 141 inspircd >/dev/null + getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false -c inspircd inspircd >/dev/null + + echo '==> You will need to create a config file for inspircd' + echo '==> cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf' + echo '==> You will need to change the pidfile. To do this you can insert the following into your config.' + echo '==> <pid file="/var/run/inspircd/inspircd.pid">' + echo '==> Remember to use absolute paths in your config directory and not relative paths like you would do with a user-based inspircd install.' +} + +post_remove() { + getent passwd inspircd &>/dev/null && userdel inspircd >/dev/null + getent group inspircd &>/dev/null && groupdel inspircd >/dev/null +} diff --git a/social/inspircd/inspircd.rcd b/social/inspircd/inspircd.rcd new file mode 100644 index 000000000..a041b9be4 --- /dev/null +++ b/social/inspircd/inspircd.rcd @@ -0,0 +1,50 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +get_pid() { + pidof /usr/sbin/inspircd +} + +case "$1" in + start) + stat_busy "Starting inspircd" + PID=$(get_pid) + if [ -z "$PID" ]; then + su -s /bin/sh -c '/usr/sbin/inspircd --logfile /var/log/inspircd/startup.log --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + add_daemon inspircd + stat_done + fi + else + stat_fail + exit 1 + fi + ;; + + stop) + stat_busy "Stopping inspircd" + PID=$(get_pid) + [ ! -z "$PID" ] && kill $PID + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + rm_daemon inspircd + stat_done + fi + ;; + + restart) + $0 stop + $0 start + ;; + + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/social/liblockfile/PKGBUILD b/social/liblockfile/PKGBUILD new file mode 100644 index 000000000..e3428763c --- /dev/null +++ b/social/liblockfile/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de> + +pkgname=liblockfile +pkgver=1.08_4 +pkgrel=1 +pkgdesc="a library with NFS-safe locking functions" +arch=('i686' 'x86_64') +license=('GPL') +url="http://packages.debian.org/unstable/libs/liblockfile1" +depends=('glibc') +makedepends=() +source=(http://ftp.debian.org/debian/pool/main/libl/$pkgname/${pkgname}_1.08.orig.tar.gz + http://ftp.debian.org/debian/pool/main/libl/$pkgname/${pkgname}_${pkgver/_/-}.debian.tar.bz2) + +build() { + cd $startdir/src/$pkgname-1.08 + + for p in `cat ../debian/patches/series` ; do + patch -p1 < ../debian/patches/$p + done + + ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + make || return 1 + + mkdir -p $startdir/pkg/usr/{lib,bin,include,share/man/man1,share/man/man3} + make install prefix=$startdir/pkg/usr mandir=$startdir/pkg/usr/share/man || return 1 +} + +md5sums=('c24e2dfb4a2aab0263fe5ac1564d305e' + '50c0c049d2838704f5720f5fd9eaddac') diff --git a/social/libowfat/PKGBUILD b/social/libowfat/PKGBUILD new file mode 100644 index 000000000..4962068fb --- /dev/null +++ b/social/libowfat/PKGBUILD @@ -0,0 +1,29 @@ +# Contributors: +# Alexander Ulrich <a.ulrich@student.uni-tuebingen.de> +# Mildred <silkensedai@online.fr> +# henning mueller <henning@orgizm.net> + +pkgname=libowfat +pkgver=0.29 +pkgrel=1 +pkgdesc='GPL reimplementation of libdjb' +arch=(i686 x86_64) +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 +} diff --git a/social/libowfat/libowfat.install b/social/libowfat/libowfat.install new file mode 100644 index 000000000..a08aef10c --- /dev/null +++ b/social/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/social/libpurple-minimal/PKGBUILD b/social/libpurple-minimal/PKGBUILD new file mode 100644 index 000000000..b0adfd46d --- /dev/null +++ b/social/libpurple-minimal/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Magicking <syllaur@gmail.com> +# Contributors: wzff BluePeppers n0nsense +pkgname=libpurple-minimal +pkgver=2.10.0 +pkgrel=2 +pkgdesc="minimal build of the pidgin IM library (no gstreamer, perl and X11 dependencies)" +arch=('i686' 'x86_64') +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/social/lockfile-progs/PKGBUILD b/social/lockfile-progs/PKGBUILD new file mode 100644 index 000000000..57d833952 --- /dev/null +++ b/social/lockfile-progs/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de> + +pkgname=lockfile-progs +pkgver=0.1.15 +pkgrel=1 +pkgdesc="programs for locking and unlocking files and mailboxes" +arch=('i686' 'x86_64') +license=('GPL') +url="http://packages.debian.org/unstable/misc/lockfile-progs" +depends=('glibc') +makedepends=('liblockfile') +source=(http://ftp.debian.org/debian/pool/main/l/lockfile-progs/${pkgname}_${pkgver}.tar.gz) + +build() { + cd $startdir/src/sid + + make || return 1 + + mkdir -p $startdir/pkg/usr/bin + install -s bin/* $startdir/pkg/usr/bin + + mkdir -p $startdir/pkg/usr/share/man/man1 + install man/*.1 $startdir/pkg/usr/share/man/man1 +} + +md5sums=('abfcda83a1868073673f4d78066b8f8a') diff --git a/social/lua-cyrussasl/PKGBUILD b/social/lua-cyrussasl/PKGBUILD new file mode 100644 index 000000000..d37eacc1c --- /dev/null +++ b/social/lua-cyrussasl/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Dwayne Bent <dbb.1@liqd.org> + +pkgname=lua-cyrussasl +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Lua bindings for Cyrus SASL library." +arch=('i686' 'x86_64' 'mips64el') +url="http://github.com/JorjBauer/lua-cyrussasl" +license=('BSD') +depends=('lua>=5.1' 'libsasl') +source=( + "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver" + "lua-cyrussasl.patch" +) +md5sums=('40c94c06441e1e47640d81b125742969' + '5b5c15e4cba63d05a5bfd1cc3ddcba0f') + +build() { + cd $srcdir/*-lua-cyrussasl-* + + patch -p1 < "$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/social/lua-cyrussasl/lua-cyrussasl.patch b/social/lua-cyrussasl/lua-cyrussasl.patch new file mode 100644 index 000000000..5309e5af1 --- /dev/null +++ b/social/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/social/lua-ldap/PKGBUILD b/social/lua-ldap/PKGBUILD new file mode 100644 index 000000000..a2ca1c830 --- /dev/null +++ b/social/lua-ldap/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=lua-ldap +_pkgname=lualdap +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Simple interface from Lua to an LDAP client" +arch=('i686' 'x86_64' 'mips64el') +url="http://www.keplerproject.org/lualdap" +license=('BSD') +depends=('lua' 'libldap') +source=(http://files.luaforge.net/releases/$_pkgname/$_pkgname/LuaLDAP$pkgver/$_pkgname-$pkgver.tar.gz) + +build() { + cd $srcdir/$_pkgname-$pkgver + + make CFLAGS="$CFLAGS" \ + LUA_LIBDIR=/usr/lib/lua/5.1 \ + LUA_VERSION_NUM=510 \ + LUA_INC=/usr/include + +} + +package() { + cd $srcdir/$_pkgname-$pkgver + make LUA_LIBDIR=${pkgdir}/usr/lib/lua/5.1 \ + LUA_VERSION_NUM=510 \ + install +} + +md5sums=('5e104520c3f1333f38817a9fa1e76681') diff --git a/social/miniupnpd/PKGBUILD b/social/miniupnpd/PKGBUILD new file mode 100644 index 000000000..b0d67c09e --- /dev/null +++ b/social/miniupnpd/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=miniupnpd +pkgver=1.7.20120824 +pkgrel=2 +pkgdesc="Lightweight UPnP IGD daemon" +arch=('i686' 'x86_64' 'mips64el') +url="http://miniupnp.free.fr" +license=('BSD') +backup=(etc/miniupnpd/miniupnpd.conf) +depends=('libnfnetlink') + +eval $(wget "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/iptables" -O - | awk -F= ' + $1 == "pkgver" { pkgver=$2 } + $1 == "source" { sub(/\${pkgname}/, "iptables"); sub(/\${pkgver}/, pkgver); print $0 "); " } + $1 == "sha1sums" { print $0 ");" } + END { print "_iptables=iptables-" pkgver }') + +source+=("http://miniupnp.free.fr/files/$pkgname-$pkgver.tar.gz" miniupnpd.init miniupnpd.systemd) +sha1sums+=('7abca8ecbcd8596392175eb312941083ed5faf21' + 'c84031d7af122c5bede8609bcfa80bc31f2a5e61' + 'bc0ae02a88eceef4f172b07f6f67d5fd54cc6ae0') + +build() { + cd "$srcdir/$_iptables" + ./configure --enable-static + make + + cd "$srcdir/$pkgname-$pkgver" + make -f Makefile.linux config.h + IPTABLESPATH="$srcdir/$_iptables" 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" +} + diff --git a/social/miniupnpd/miniupnpd.init b/social/miniupnpd/miniupnpd.init new file mode 100644 index 000000000..e09ac3ade --- /dev/null +++ b/social/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/social/miniupnpd/miniupnpd.systemd b/social/miniupnpd/miniupnpd.systemd new file mode 100644 index 000000000..0449e8a69 --- /dev/null +++ b/social/miniupnpd/miniupnpd.systemd @@ -0,0 +1,8 @@ +[Unit] +Description=Lightweight UPnP IGD daemon + +[Service] +ExecStart=/usr/sbin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf -d + +[Install] +WantedBy=network.target diff --git a/social/monkeysphere/PKGBUILD b/social/monkeysphere/PKGBUILD new file mode 100644 index 000000000..3c5c590b8 --- /dev/null +++ b/social/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=3 +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/social/monkeysphere/monkeysphere.install b/social/monkeysphere/monkeysphere.install new file mode 100644 index 000000000..2013f9f41 --- /dev/null +++ b/social/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/social/netatalk/PKGBUILD b/social/netatalk/PKGBUILD new file mode 100644 index 000000000..816174590 --- /dev/null +++ b/social/netatalk/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: SJ_UnderWater +# Maintainer (Parabola): fauno@parabola.nu +# 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.1 +pkgrel=3 +pkgdesc='Open Source AFP fileserver' +arch=('i686' 'x86_64') +url='http://netatalk.sourceforge.net' +license=('GPL') +depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent') +backup=('etc/afp.conf') +options=('!libtool') +install=$pkgname.install +changelog=$pkgname.changelog +source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) +md5sums=('b4f5c932b2ca99f5292bd6b6d69b3ebc') + +build() { + cd $pkgname-$pkgver + +# TODO what does this fix? + msg2 'Fixing...' + sed -i 's/x"linux/x"generic/' macros/netatalk.m4 + sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in} + + autoreconf + + CFLAGS="-Wno-unused-result" \ + ./configure --prefix=/usr \ + --disable-static \ + --localstatedir=/var/state \ + --sysconfdir=/etc \ + --with-init-style=systemd \ + --with-cracklib \ + --with-cnid-cdb-backend \ + --enable-pgp-uam \ + --without-libevent-header \ + --without-libevent-lib + + sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile + make +} +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir" install +} diff --git a/social/netatalk/netatalk.changelog b/social/netatalk/netatalk.changelog new file mode 100644 index 000000000..b1ada018b --- /dev/null +++ b/social/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/social/netatalk/netatalk.install b/social/netatalk/netatalk.install new file mode 100644 index 000000000..629586531 --- /dev/null +++ b/social/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/social/nitroshare/PKGBUILD b/social/nitroshare/PKGBUILD new file mode 100644 index 000000000..7896a356e --- /dev/null +++ b/social/nitroshare/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Sid Karunaratne <sid at karunaratne dot net> +# Contributor: Nathan Osman <https://launchpad.net/~george-edison55> + +pkgname=nitroshare +pkgver=0.2 +pkgrel=2 +pkgdesc="Makes sending a file to another machine on the local network as easy as dragging-and-dropping" +arch=('i686' 'x86_64') +url="https://launchpad.net/nitroshare" +license=('GPL3') +depends=('qt' 'qjson' 'qxmlrpc') +makedepends=() +options=() +source=(https://launchpad.net/${pkgname}/${pkgver}/${pkgver}/+download/${pkgname}_${pkgver}.tar.gz nitroshare.install) +md5sums=('00f670fadf385ee2a920b67a4120295d' + '0e8cd7761d04a45d22d28ac7b98fa234') + +build () { + cd "${srcdir}/${pkgname}" + sed -i "s_target.path = /opt/extras.ubuntu.com/nitroshare_target.path = ${pkgdir}/usr/bin_g" nitroshare.pro + sed -i "s_Exec=/opt/extras.ubuntu.com/nitroshare/nitroshare_Exec=/usr/bin/${pkgname}_g" resource/other/extras-${pkgname}.desktop + qmake + make +} + +package (){ + cd "${srcdir}/${pkgname}" + make install + mkdir -p ${pkgdir}/usr/share/applications + install -Dm644 resource/other/extras-${pkgname}.desktop ${pkgdir}/usr/share/applications/ + install -Dm644 resource/images/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/social/nitroshare/nitroshare.install b/social/nitroshare/nitroshare.install new file mode 100644 index 000000000..d6519a6e8 --- /dev/null +++ b/social/nitroshare/nitroshare.install @@ -0,0 +1,4 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor + update-desktop-database -q +} diff --git a/social/olsrd/PKGBUILD b/social/olsrd/PKGBUILD new file mode 100644 index 000000000..dea029844 --- /dev/null +++ b/social/olsrd/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: William Rea <sillywilly@gmail.com> +# Maintainer: Claudio Pisa <clauz@ninux.org> +pkgname=olsrd +pkgver="0.6.1" +pkgrel=1 +pkgdesc="OLSR routing daemon (RFC 3626)" +arch=(i686 x86_64 ppc) +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 + + 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/social/olsrd/olsrd.install b/social/olsrd/olsrd.install new file mode 100644 index 000000000..f49372538 --- /dev/null +++ b/social/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/social/olsrd/rc.d.olsrd b/social/olsrd/rc.d.olsrd new file mode 100644 index 000000000..d257e22ef --- /dev/null +++ b/social/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/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 <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=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/python-relatorio/PKGBUILD b/social/python-relatorio/PKGBUILD new file mode 100644 index 000000000..6255eeee5 --- /dev/null +++ b/social/python-relatorio/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: Florian Walch <florian.walch@gmx.at> +# Maintainer: Thomas Bahn <Thomas-Bahn@gmx.net> +pkgname=python-relatorio +pkgver=0.5.6 +pkgrel=1 +pkgdesc="A templating library able to output odt and pdf files" +arch=('i686' 'x86_64') +url="http://relatorio.openhex.org" +license=('GPL') +depends=('python-genshi>=0.5' 'python-lxml>=1.3.6') +makedepends=('python2-distribute') +source=("http://pypi.python.org/packages/source/r/relatorio/relatorio-$pkgver.tar.gz") + +build() { + cd $srcdir/relatorio-$pkgver + chmod 644 relatorio.egg-info/* + python2 setup.py install --root=$pkgdir +} + + +md5sums=('944fb60fadaff451ab6ee8818de516ad') diff --git a/social/python2-polib/PKGBUILD b/social/python2-polib/PKGBUILD new file mode 100644 index 000000000..fc346ec97 --- /dev/null +++ b/social/python2-polib/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Esteban V. Carnevale <evcarnevale@gmail.com> + +pkgname=python2-polib +_pkgname='polib' +pkgver=0.7.0 +pkgrel=1 +pkgdesc='A library to manipulate gettext files' +url='http://polib.readthedocs.org/en/latest/index.html' +arch=('any') +license=('MIT') +depends=('python2') + +source=("https://bitbucket.org/izi/polib/downloads/polib-${pkgver}.tar.gz") +md5sums=('958f8f81ade7d2484edc25b3989fe247') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py build +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/social/qxmlrpc/01_build_targets.patch b/social/qxmlrpc/01_build_targets.patch new file mode 100644 index 000000000..bee6d5167 --- /dev/null +++ b/social/qxmlrpc/01_build_targets.patch @@ -0,0 +1,9 @@ +Index: qxmlrpc-0.0.svn6/qxmlrpc.pro +=================================================================== +--- qxmlrpc-0.0.svn6.orig/qxmlrpc.pro 2010-06-04 14:39:33.000000000 +0400 ++++ qxmlrpc-0.0.svn6/qxmlrpc.pro 2010-06-04 14:39:44.000000000 +0400 +@@ -1,3 +1,3 @@ + TEMPLATE = subdirs +-SUBDIRS = xmlrpc test/unit examples/client examples/server ++SUBDIRS = xmlrpc + CONFIG += ordered diff --git a/social/qxmlrpc/02_staticlib_removed.patch b/social/qxmlrpc/02_staticlib_removed.patch new file mode 100644 index 000000000..58f1d68d1 --- /dev/null +++ b/social/qxmlrpc/02_staticlib_removed.patch @@ -0,0 +1,12 @@ +Index: qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro +=================================================================== +--- qxmlrpc-0.0.svn6.orig/xmlrpc/xmlrpc.pro 2010-06-04 18:18:24.000000000 +0400 ++++ qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro 2010-06-04 18:23:23.000000000 +0400 +@@ -4,7 +4,6 @@ + win32:TARGET = ../qxmlrpc + + CONFIG += warn_on +-CONFIG += staticlib + CONFIG += debug_and_release + CONFIG += precompile_header + diff --git a/social/qxmlrpc/03_client.h_include_fix.patch b/social/qxmlrpc/03_client.h_include_fix.patch new file mode 100644 index 000000000..6f174cb95 --- /dev/null +++ b/social/qxmlrpc/03_client.h_include_fix.patch @@ -0,0 +1,13 @@ +Index: qxmlrpc-0.0.svn6/xmlrpc/client.h +=================================================================== +--- qxmlrpc-0.0.svn6.orig/xmlrpc/client.h 2010-06-04 18:18:24.000000000 +0400 ++++ qxmlrpc-0.0.svn6/xmlrpc/client.h 2010-06-04 18:20:21.000000000 +0400 +@@ -7,7 +7,7 @@ + #include <qobject.h> + #include <QHttp> + +-#include "xmlrpc/variant.h" ++#include "variant.h" + class QAuthenticator; + + namespace xmlrpc { diff --git a/social/qxmlrpc/04_do_not_link_gui.patch b/social/qxmlrpc/04_do_not_link_gui.patch new file mode 100644 index 000000000..c086d4990 --- /dev/null +++ b/social/qxmlrpc/04_do_not_link_gui.patch @@ -0,0 +1,24 @@ +Index: qxmlrpc-0.0.svn6/xmlrpc/stable.h +=================================================================== +--- qxmlrpc-0.0.svn6.orig/xmlrpc/stable.h 2010-06-04 18:23:58.000000000 +0400 ++++ qxmlrpc-0.0.svn6/xmlrpc/stable.h 2010-06-04 18:24:20.000000000 +0400 +@@ -2,7 +2,6 @@ + #ifndef STABLE_H + #define STABLE_H + #if defined(__cplusplus) and not defined(__OBJC__) +- #include <QtGui> + #include <QtXml> + #include <QtCore> + #include <QtNetwork> +Index: qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro +=================================================================== +--- qxmlrpc-0.0.svn6.orig/xmlrpc/xmlrpc.pro 2010-06-04 18:23:54.000000000 +0400 ++++ qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro 2010-06-04 18:24:12.000000000 +0400 +@@ -10,6 +10,7 @@ + DEPENDPATH += . + INCLUDEPATH += . .. + ++QT -= gui + QT += xml + QT += network + diff --git a/social/qxmlrpc/PKGBUILD b/social/qxmlrpc/PKGBUILD new file mode 100644 index 000000000..2e23c0a47 --- /dev/null +++ b/social/qxmlrpc/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Sid Karunaratne <sid at karunaratne dot net> +pkgname=qxmlrpc +pkgver=6 +pkgrel=1 +pkgdesc="a full Qt4 based implementation of XML-RPC protocol" +arch=('i686' 'x86_64') +url="https://code.google.com/p/qxmlrpc" +license=('LGPL') +depends=('qt') +makedepends=('subversion') +source=("https://repo.parabolagnulinux.org/other/$pkgname-$pkgver-$pkgrel-any.src.tar.xz"{,.sig} + "01_build_targets.patch" + "02_staticlib_removed.patch" + "03_client.h_include_fix.patch" + "04_do_not_link_gui.patch") +md5sums=("87a89cc118e816265989a87a2b3c9321" + "7f10b0f33b6d0a67136838740b4b7c72" + "7d997d9fc0f8ec08e7b0c640480eb941" + "ee1a3d2a284c93f41d3c76c163ee734d" + "c5cacf7e13b93abb3e8e223118c5abbb" + "8ff188be390bcd1966b354d7159fd0e6") + +build () { + cd "${srcdir}/${pkgname}" + msg "Starting build..." + + patch -p1 < ../01_build_targets.patch + patch -p1 < ../02_staticlib_removed.patch + patch -p1 < ../03_client.h_include_fix.patch + patch -p1 < ../04_do_not_link_gui.patch + + qmake + make +} + +package() { + install -Dm 755 "$srcdir/$pkgname/libqxmlrpc.so" "$pkgdir/usr/lib/libqxmlrpc.so" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/client.h" "$pkgdir/usr/include/qxmlrpc/client.h" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/request.h" "$pkgdir/usr/include/qxmlrpc/request.h" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/response.h" "$pkgdir/usr/include/qxmlrpc/response.h" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/server.h" "$pkgdir/usr/include/qxmlrpc/server.h" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/serverintrospection.h" "$pkgdir/usr/include/qxmlrpc/serverintrospection.h" + install -Dm 755 "$srcdir/$pkgname/xmlrpc/variant.h" "$pkgdir/usr/include/qxmlrpc/variant.h" +} diff --git a/social/qxmlrpc/SRCBUILD b/social/qxmlrpc/SRCBUILD new file mode 100644 index 000000000..b5fe17ebf --- /dev/null +++ b/social/qxmlrpc/SRCBUILD @@ -0,0 +1,30 @@ +pkgname=qxmlrpc +pkgver=6 +pkgrel=1 +pkgdesc="a full Qt4 based implementation of XML-RPC protocol" +arch=('any') +url="https://code.google.com/p/qxmlrpc" +license=('LGPL') +makedepends=('subversion') +_svntrunk="http://qxmlrpc.googlecode.com/svn/trunk/" +_svnmod="qxmlrpc" + +build() { + msg "Connecting to SVN server...." + + if [[ -d "$_svnmod/.svn" ]]; then + (cd "$_svnmod" && svn up -r "$pkgver") + else + svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod" + fi + + msg "SVN checkout done or server timeout" +} + +package() { + export PKGEXT=.src.tar.xz + export PKGDEST=${SRCDEST} + + mv ${srcdir}/${_svnmod} ${pkgdir}/ + +} diff --git a/social/ruby-headers/PKGBUILD b/social/ruby-headers/PKGBUILD new file mode 100644 index 000000000..d68e97781 --- /dev/null +++ b/social/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_p392 +_pkgver=1.9.3-p392 +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() { + : +} + +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=('a810d64e2255179d2f334eb61fb8519c') diff --git a/social/seeks/PKGBUILD b/social/seeks/PKGBUILD new file mode 100644 index 000000000..f686a2fc9 --- /dev/null +++ b/social/seeks/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Kete < kete at ninthfloor dot org > + +pkgname=seeks +pkgver=0.4.1 +pkgrel=5 +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/social/seeks/conf.patch b/social/seeks/conf.patch new file mode 100644 index 000000000..93e12c311 --- /dev/null +++ b/social/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/social/seeks/docbook2man.patch b/social/seeks/docbook2man.patch new file mode 100644 index 000000000..c5de2e063 --- /dev/null +++ b/social/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/social/seeks/img_websearch.patch b/social/seeks/img_websearch.patch new file mode 100644 index 000000000..94362e2fc --- /dev/null +++ b/social/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/social/seeks/install b/social/seeks/install new file mode 100644 index 000000000..35f383a3c --- /dev/null +++ b/social/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/social/seeks/logfile.patch b/social/seeks/logfile.patch new file mode 100644 index 000000000..9f4ab9b02 --- /dev/null +++ b/social/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/social/seeks/seeks b/social/seeks/seeks new file mode 100755 index 000000000..01f34a432 --- /dev/null +++ b/social/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/social/seeks/seeks.conf.d b/social/seeks/seeks.conf.d new file mode 100644 index 000000000..c28382aca --- /dev/null +++ b/social/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/social/seeks/seeks.install b/social/seeks/seeks.install new file mode 100644 index 000000000..bf9849e78 --- /dev/null +++ b/social/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/social/seeks/seeks.logrotate b/social/seeks/seeks.logrotate new file mode 100644 index 000000000..98b411884 --- /dev/null +++ b/social/seeks/seeks.logrotate @@ -0,0 +1,6 @@ +/var/log/seeks/logfile { + missingok + notifempty + size 30k + create +} diff --git a/social/seeks/seeks.rc.d b/social/seeks/seeks.rc.d new file mode 100644 index 000000000..67de9251a --- /dev/null +++ b/social/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/social/seeks/seeksdaemon b/social/seeks/seeksdaemon new file mode 100644 index 000000000..551197d28 --- /dev/null +++ b/social/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/social/sipwitch/PKGBUILD b/social/sipwitch/PKGBUILD new file mode 100644 index 000000000..769757df4 --- /dev/null +++ b/social/sipwitch/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Dan Serban +# Contributors: David Zaragoza, Andrea Scarpino +# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> + +pkgname=sipwitch +pkgver=1.2.4 +pkgrel=1 +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/social/sobby/PKGBUILD b/social/sobby/PKGBUILD new file mode 100644 index 000000000..50f847db9 --- /dev/null +++ b/social/sobby/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Thomas Jost <schnouki@schnouki.net> +pkgname=sobby +pkgver=0.4.8 +pkgrel=1 +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' 'mips6el') +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/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 <sonny.piers@gmail.com> +# Contributor: Tim Besard <tim.besard@gmail.com> + +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/squirm/PKGBUILD b/social/squirm/PKGBUILD new file mode 100644 index 000000000..da3a6d372 --- /dev/null +++ b/social/squirm/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Spider.007 <archPackage@spider007.net> +# Contributor: Spider.007 <archPackage@spider007.net> +pkgname=squirm +pkgver=1.26 +pkgrel=1 +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/social/statusnet/PKGBUILD b/social/statusnet/PKGBUILD new file mode 100644 index 000000000..998751df5 --- /dev/null +++ b/social/statusnet/PKGBUILD @@ -0,0 +1,131 @@ +# Contributor: fauno <fauno@kiwwwi.com.ar> +pkgbase=statusnet +pkgname=statusnet-base +pkgver=0.9.9 + +# find available plugins and locales +srcfile=${SRCDEST}/${pkgbase}-${pkgver}.tar.gz +if [ -e ${srcfile} ]; then +plugins=($(bsdtar -tf ${srcfile} \ + ${pkgbase}-${pkgver}/plugins | \ + cut -d'/' -f3 | sort -u)) +locales=($(bsdtar -tf ${srcfile} \ + ${pkgbase}-${pkgver}/locale | \ + cut -d'/' -f3 | sort -u)) +fi + +# looping avoids having "statusnet-plugin-" package +pkgname=(${pkgname} + $(for plugin in ${plugins[@]}; do + echo ${plugin} | tr [A-Z] [a-z] | \ + sed "s/^/statusnet-plugin-/" + done) + $(for locale in ${locales[@]}; do + echo ${locale} | tr [A-Z] [a-z] | \ + sed "s/^/statusnet-i18n-/" + done)) +pkgrel=1 +arch=('any') +pkgdesc="StatusNet is a Free and Open Source microblogging platform." +url="http://status.net" +license=('AGPL') +depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp') +source=("http://status.net/${pkgbase}-${pkgver}.tar.gz" + statusnet.install) +install=statusnet.install +md5sums=('766c9d42825fc99d8ad6c554a959568b' + 'c638cb36b7da7eb67a67e031f59e6068') +options=(!strip !zipman emptydirs) + +build() { + /bin/true +} + +package_statusnet-base() { + provides=('statusnet') + optdepends=('memcache: for caching database queries' + 'php-xcache: for accelerating PHP code execution' + 'php-apc: for accelerating PHP code execution' + 'php-ldap: for the LDAP plugin' + 'statusnet-plugin-ostatus: for federation') + + 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/${pkgbase}/ + install -d ${pkgdir}/usr/share/licenses/${pkgbase} + + install -m644 ./{config.php,htaccess}.sample \ + ${pkgdir}/usr/share/doc/${pkgbase}/ + + install -m644 ./{README,EVENTS.txt,lighttpd.conf.example} \ + ${pkgdir}/usr/share/doc/${pkgbase}/ + + 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}/{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 + + install -d ${pkgdir}/srv/http + ln -s /usr/share/webapps/${pkgbase} ${pkgdir}/srv/http/ +} + +# 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-plugin-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}/" +} + + +for plugin in ${plugins[@]}; do + plugin_lower=$(echo ${plugin} | tr [A-Z] [a-z]) + + eval " +package_statusnet-plugin-${plugin_lower}() { + pkgdesc='${plugin} plugin for StatusNet' + depends=('statusnet-base') + groups=('statusnet-plugins') + + statusnet-plugin-helper ${plugin} +}" +done + +for locale in ${locales[@]}; do + locale_lower=$(echo ${locale} | tr [A-Z] [a-z]) + + eval " +package_statusnet-i18n-${locale_lower}() { + pkgdesc='${locale} locale for StatusNet' + depends=('statusnet-base') + groups=('statusnet-locales') + + statusnet-i18n-helper ${locale} +}" +done diff --git a/social/statusnet/statusnet.install b/social/statusnet/statusnet.install new file mode 100644 index 000000000..5ec72e7c2 --- /dev/null +++ b/social/statusnet/statusnet.install @@ -0,0 +1,11 @@ +post_install(){ + cat <<EOM +StatusNet is now installed on your system. + +Start MySQL and your prefered webserver and visit +http://yoursite.tld/statusnet/install.php + +Write permissions of /usr/share/webapps/statusnet has been granted to ensure the +installation process can write the config file. +EOM +} diff --git a/social/strongswan/PKGBUILD b/social/strongswan/PKGBUILD new file mode 100644 index 000000000..8c5e42885 --- /dev/null +++ b/social/strongswan/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: Jason Begley <jayray at digitalgoat dot com> +# Contributor: Ray Kohler <ataraxia937 at gmail dot com> +# Maintainer: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com> +# Maintainer: Dhruv Desai <svenskaparadox [at] gmail dot com> + +pkgname=strongswan +pkgver=4.5.3 +pkgrel=1 +pkgdesc="open source IPsec implementation" +url='http://www.strongswan.org' +license=("GPL") +arch=('i686' 'x86_64') +depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite3' 'networkmanager') +conflicts=('openswan') +options=(!libtool) +backup=(etc/ipsec.conf etc/strongswan.conf) +source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2 + strongswan.rc) +md5sums=('ee7c50a90c91307b111e8085f2479890' + '667ea2367cbe07c57721696e6b7e39df') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ + --with-ipsecdir=/usr/lib/strongswan \ + --enable-sqlite --enable-smartcard --enable-cisco-quirks \ + --enable-openssl --enable-nm --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-ha \ + --disable-mysql --disable-ldap \ + --disable-static --enable-shared + + make +} + +package(){ + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + install -d ${pkgdir}/etc/rc.d + ln -s /usr/sbin/ipsec ${pkgdir}/etc/rc.d/ipsec + install -Dm755 ${srcdir}/strongswan.rc ${pkgdir}/etc/rc.d/strongswan +} + diff --git a/social/strongswan/strongswan.rc b/social/strongswan/strongswan.rc new file mode 100644 index 000000000..58c99c092 --- /dev/null +++ b/social/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/social/tinc/PKGBUILD b/social/tinc/PKGBUILD new file mode 100644 index 000000000..87d3415e9 --- /dev/null +++ b/social/tinc/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=tinc +pkgver=1.0.16 +pkgrel=3 +pkgdesc="VPN (Virtual Private Network) daemon" +arch=(i686 x86_64 mips64el) +url="http://www.tinc-vpn.org/" +license=('GPL') +depends=('lzo2' 'zlib' 'openssl') +backup=(etc/conf.d/tincd.conf) +source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz + tincd.conf + tincd.rcd) +md5sums=('f1c7ed94878725fb2cf4efb02bf160da' + 'd4a42b4a474448c64dc8f5100480f569' + '89a91a80c1dee4b365958bd9e6242d5a') + +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/etc/{tinc,rc.d,conf.d} + + install -Dm755 $srcdir/tincd.rcd $pkgdir/etc/rc.d/tincd + install -Dm755 $srcdir/tincd.conf $pkgdir/etc/conf.d/tincd.conf +} diff --git a/social/tinc/tincd.conf b/social/tinc/tincd.conf new file mode 100644 index 000000000..e86139b44 --- /dev/null +++ b/social/tinc/tincd.conf @@ -0,0 +1,2 @@ +NETNAME=yournetname +OPTIONS="-R -U nobody -L" diff --git a/social/tinc/tincd.rcd b/social/tinc/tincd.rcd new file mode 100644 index 000000000..16f39f8ca --- /dev/null +++ b/social/tinc/tincd.rcd @@ -0,0 +1,48 @@ +#!/bin/bash + +daemon_name=tincd + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/${daemon_name}.conf + +PIDFILE=/var/run/tinc.${NETNAME} +[ -f "${PIDFILE}" ] && PID=$(<${PIDFILE}) + +case "$1" in + start) + stat_busy "Starting ${daemon_name}" + [ -z "$PID" ] && \ + /usr/sbin/tincd -n ${NETNAME} \ + ${OPTIONS} \ + --pidfile=${PIDFILE} &> /dev/null + + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon ${daemon_name} + stat_done + fi + ;; + stop) + stat_busy "Stopping ${daemon_name}" + [ ! -z "$PID" ] && /usr/sbin/tincd -n ${NETNAME} -k + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon ${daemon_name} + stat_done + fi + ;; + restart) + $0 stop + sleep 3 + $0 start + ;; + reload) + [ ! -z "$PID" ] && /usr/sbin/tincd -n ${NETNAME} -k HUP + ;; + *) + echo "usage: $0 {start|stop|restart|reload}" +esac +exit 0 diff --git a/social/tokyotyrant/PKGBUILD b/social/tokyotyrant/PKGBUILD new file mode 100644 index 000000000..74da4570c --- /dev/null +++ b/social/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=2 +pkgdesc="Network interface to TokyoCabinet" +arch=('i686' 'x86_64') +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/social/tokyotyrant/tokyotyrant.conf b/social/tokyotyrant/tokyotyrant.conf new file mode 100644 index 000000000..77c299a81 --- /dev/null +++ b/social/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/social/tokyotyrant/tokyotyrant.rc b/social/tokyotyrant/tokyotyrant.rc new file mode 100644 index 000000000..eaecb0af0 --- /dev/null +++ b/social/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 diff --git a/social/tomoyo-tools/PKGBUILD b/social/tomoyo-tools/PKGBUILD new file mode 100644 index 000000000..aacd1dbe4 --- /dev/null +++ b/social/tomoyo-tools/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Jamie Nguyen <jamie AT tomoyolinux.co.uk> + +pkgname=tomoyo-tools +_basever=2.3.0 +_timestamp=20110211 +pkgver=${_basever}.${_timestamp} +pkgrel=4 +pkgdesc='TOMOYO Linux 2.3.x userspace tools for Linux kernel 2.6.36 and later' +arch=('i686' 'x86_64') +url='http://tomoyo.sourceforge.jp' +license=('GPL') +depends=('ncurses') +makedepends=('help2man') +conflicts=('ccs-tools') +install=tomoyo-tools.install +source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/${pkgname}-${_basever}-${_timestamp}.tar.gz") + +build() { + cd "${srcdir}/${pkgname}" + make -j1 || return 1 +} + +package() { + cd "${srcdir}/${pkgname}" + make INSTALLDIR="${pkgdir}" install || return 1 +} + +sha256sums=('3144bbd6056528c85f63889c8b977b994d5596611b74afdc9a3924162cf94db0') diff --git a/social/tomoyo-tools/tomoyo-tools.install b/social/tomoyo-tools/tomoyo-tools.install new file mode 100644 index 000000000..6fb5e16d2 --- /dev/null +++ b/social/tomoyo-tools/tomoyo-tools.install @@ -0,0 +1,11 @@ +post_install () { + echo + echo " * To enable TOMOYO Linux, append 'security=tomoyo' to the kernel" + echo " boot options and initialize policy with this command:" + echo " /usr/lib/tomoyo/init_policy" + echo +} + +post_upgrade () { + post_install $1 +} diff --git a/social/uci/PKGBUILD b/social/uci/PKGBUILD new file mode 100644 index 000000000..5a14ac2c0 --- /dev/null +++ b/social/uci/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +pkgname=uci +pkgver=0.8.0 +pkgrel=1 +pkgdesc="OpenWRT's Unified Configuration Interface" +arch=('i686' 'mips64el') +url="https://openwrt.org" +license=('GPL2') +makedepends=('git' 'cmake' 'lua51') +source=(git://nbd.name/uci.git) +md5sums=(SKIP) + +pkgver() { + cd ${srcdir}/${pkgname} + local ver="$(git describe --long --tags)" + printf "%s" "${ver//-/.}" +} + +build() { + cd ${srcdir}/${pkgname} + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd ${srcdir}/${pkgname} + make DESTDIR=${pkgdir}/ install +} + +# vim:set ts=2 sw=2 et: 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 <andrea@archlinux.org> +# Contributor: David Zaragoza <david@zaragoza.com.ve> + +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') diff --git a/social/uftp/PKGBUILD b/social/uftp/PKGBUILD new file mode 100644 index 000000000..1dea3b5ba --- /dev/null +++ b/social/uftp/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Markus Jochim <ich@markusjochim.de> +# Maintainer (Parabola): fauno <fauno@parabola.nu> +pkgname=uftp +pkgver=3.7.1 +pkgrel=2 +pkgdesc="Multicast FTP software" +arch=(i686 x86_64 mips64el) +url="http://www.tcnj.edu/~bush/uftp.html" +license=('GPL3') +depends=('openssl') +source=(http://www.tcnj.edu/~bush/downloads/uftp-${pkgver}.tar) +md5sums=('0d3aa7d3e57251e8abf34027afa1e321') + +build() { + cd "$srcdir/uftp-${pkgver}/" + + sed "s,/bin,/usr&,g" -i makefile + + make CFLAGS="$CFLAGS" +} + +package() { + cd "$srcdir/uftp-${pkgver}/" + make DESTDIR="${pkgdir}" install +} + |