diff options
Diffstat (limited to 'pcr')
48 files changed, 1568 insertions, 0 deletions
diff --git a/pcr/aiccu/PKGBUILD b/pcr/aiccu/PKGBUILD new file mode 100644 index 000000000..55ccfb2c0 --- /dev/null +++ b/pcr/aiccu/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=aiccu +pkgver=20070115 +pkgrel=7 +pkgdesc="SixXS Automatic IPv6 Connectivity Client Utility - AICCU" +arch=('i686' 'x86_64' 'mips64el') +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/pcr/aiccu/aiccu.rc.d b/pcr/aiccu/aiccu.rc.d new file mode 100644 index 000000000..b0ca08fce --- /dev/null +++ b/pcr/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/pcr/anubis/PKGBUILD b/pcr/anubis/PKGBUILD new file mode 100644 index 000000000..1b345a943 --- /dev/null +++ b/pcr/anubis/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# Contributor (Arch): 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/pcr/bip/PKGBUILD b/pcr/bip/PKGBUILD new file mode 100644 index 000000000..756bd0959 --- /dev/null +++ b/pcr/bip/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): 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' 'mips64el') +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/pcr/bitcoin-daemon/PKGBUILD b/pcr/bitcoin-daemon/PKGBUILD new file mode 100644 index 000000000..8815eae9f --- /dev/null +++ b/pcr/bitcoin-daemon/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Contributor (Arch): Artefact2 <artefact2@gmail.com> +# Contributor (Arch): shahid <helllamer@gmail.com> +# Based on bitcoin by +# Maintainer (Arch): 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' 'mips64el') +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/pcr/bitcoin-daemon/bitcoin-daemon.install b/pcr/bitcoin-daemon/bitcoin-daemon.install new file mode 100644 index 000000000..5b2ffec92 --- /dev/null +++ b/pcr/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/pcr/bitcoin-daemon/makefile.parabola b/pcr/bitcoin-daemon/makefile.parabola new file mode 100644 index 000000000..984750982 --- /dev/null +++ b/pcr/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/pcr/bitcoin-daemon/rc.bitcoind b/pcr/bitcoin-daemon/rc.bitcoind new file mode 100644 index 000000000..be09251d1 --- /dev/null +++ b/pcr/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/pcr/bitcoin/PKGBUILD b/pcr/bitcoin/PKGBUILD new file mode 100644 index 000000000..293a7f26b --- /dev/null +++ b/pcr/bitcoin/PKGBUILD @@ -0,0 +1,62 @@ +## Maintainer (Arch): 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' 'mips64el') +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/pcr/bitcoin/bitcoin.desktop b/pcr/bitcoin/bitcoin.desktop new file mode 100644 index 000000000..f27429060 --- /dev/null +++ b/pcr/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/pcr/diaspora-git/PKGBUILD b/pcr/diaspora-git/PKGBUILD new file mode 100644 index 000000000..7d48edcb2 --- /dev/null +++ b/pcr/diaspora-git/PKGBUILD @@ -0,0 +1,172 @@ +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Maintainer (Arch): Hilton Medeiros <medeiros.hilton at gmail dot com> +# Contributor (Arch): Jonne Haß <me@mrzyx.de> +# Contributor (Arch): 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' 'mips64el') +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/pcr/diaspora-git/diaspora.bashrc b/pcr/diaspora-git/diaspora.bashrc new file mode 100644 index 000000000..b694ca0b0 --- /dev/null +++ b/pcr/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/pcr/diaspora-git/diaspora.bin b/pcr/diaspora-git/diaspora.bin new file mode 100644 index 000000000..dfd0d026f --- /dev/null +++ b/pcr/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/pcr/diaspora-git/diaspora.install b/pcr/diaspora-git/diaspora.install new file mode 100644 index 000000000..7833be058 --- /dev/null +++ b/pcr/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/pcr/diaspora-git/diaspora.logrotate b/pcr/diaspora-git/diaspora.logrotate new file mode 100644 index 000000000..bb5564a79 --- /dev/null +++ b/pcr/diaspora-git/diaspora.logrotate @@ -0,0 +1,5 @@ +/var/log/diaspora.log { + notifempty + copytruncate + missingok +} diff --git a/pcr/diaspora-git/diaspora.pam b/pcr/diaspora-git/diaspora.pam new file mode 100644 index 000000000..53724d1f8 --- /dev/null +++ b/pcr/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/pcr/diaspora-git/diaspora.rc b/pcr/diaspora-git/diaspora.rc new file mode 100644 index 000000000..8464f3947 --- /dev/null +++ b/pcr/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/pcr/elementary-gtk-theme/PKGBUILD b/pcr/elementary-gtk-theme/PKGBUILD new file mode 100644 index 000000000..d2495da03 --- /dev/null +++ b/pcr/elementary-gtk-theme/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer (Arch): paterbrown <paterbrown at silberhelme dot de> +# Contributor (Arch): Daniel Milde <info@milde.cz> + +pkgname=elementary-gtk-theme +_pkgname=egtk +pkgver=2.1 +pkgrel=5 +pkgdesc="The official elementary GTK theme designed to be smooth, attractive, fast, and usable." +arch=('any') +url="https://launchpad.net/egtk" +license=('GPL2') +depends=('gtk-engine-murrine') +optdepends=('elementary-icons: the elementary icon theme' + 'nautilus-elementary-bzr: the fork of Nautilus for simplicity') +source=(http://launchpad.net/egtk/2.0/${pkgver}/+download/${_pkgname}.zip) +md5sums=('f685d659c72271944ca2e76d638ca2ed') +install=elementary-gtk-theme.install + +build () { + mkdir -p ${pkgdir}/usr/share/themes + cp -r ${srcdir}/${_pkgname} ${pkgdir}/usr/share/themes/elementary + + # remove unnecessary files + rm -rf ${pkgdir}/usr/share/themes/elementary/debian + rm -rf ${pkgdir}/usr/share/themes/elementary/.bzr +} + diff --git a/pcr/elementary-gtk-theme/elementary-gtk-theme.install b/pcr/elementary-gtk-theme/elementary-gtk-theme.install new file mode 100644 index 000000000..66264ead4 --- /dev/null +++ b/pcr/elementary-gtk-theme/elementary-gtk-theme.install @@ -0,0 +1,10 @@ +pkgname=elementary-gtk-theme + +post_install() { + echo -e "\033[1;34mIf you prefer the light panel then follow this instruction:\033[0m" + echo -e "change '\033[1;32minclude "Apps/panel-dark.rc"\033[0m' to '\033[1;32minclude "Apps/panel.rc"\033[0m' in '/usr/share/themes/elementary/gtk-2.0/gtkrc'" +} + +post_upgrade() { + post_install $1 +} diff --git a/pcr/elementary-icons/PKGBUILD b/pcr/elementary-icons/PKGBUILD new file mode 100644 index 000000000..6e6ac0c7d --- /dev/null +++ b/pcr/elementary-icons/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer (Arch): paterbrown <paterbrown at silberhelme dot de> +# Contributor (Arch): Josip <josipponjavic at gmail dot com> + +pkgname=elementary-icons +_pkgname=elementary-icon-theme +pkgver=2.7.1 +pkgrel=1 +pkgdesc="The elementary icons is an icon theme designed to be smooth, sexy, clear, and efficient." +arch=('any') +url="https://launchpad.net/elementaryicons" +license=('GPL3') +depends=('librsvg') +source=(http://launchpad.net/elementaryicons/2.0/${pkgver}/+download/${_pkgname}-${pkgver}.tar.gz) +md5sums=('fc4580641089a09cbcf7df38ebddd807') + +build() { + cd ${srcdir}/${_pkgname}/elementary/panel/22 + for i in audio*-panel.svg; do ln -s "$i" "${i%-panel.svg}.svg"; done + cd ${srcdir}/${_pkgname}/elementary-mono-dark/panel/22 + for i in audio*-panel.svg; do ln -s "$i" "${i%-panel.svg}.svg"; done + mkdir -p ${pkgdir}/usr/share/icons + cp -r ${srcdir}/${_pkgname}/elementary ${pkgdir}/usr/share/icons + cp -r ${srcdir}/${_pkgname}/elementary-mono-dark ${pkgdir}/usr/share/icons +} diff --git a/pcr/gtk-engine-equinox/PKGBUILD b/pcr/gtk-engine-equinox/PKGBUILD new file mode 100644 index 000000000..c6742a410 --- /dev/null +++ b/pcr/gtk-engine-equinox/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): SpepS <dreamspepser at yahoo dot it> +# Contributor (Arch): Frikilinux <frikilinux at frikilinux.com.ar> + +pkgname=gtk-engine-equinox +pkgver=1.50 +pkgrel=3 +pkgdesc="A heavily modified version of the beautiful Aurora engine" +url="http://gnome-look.org/content/show.php/Equinox+GTK+Engine?content=121881" +license=('GPL') +arch=('i686' 'x86_64' 'mips64el') +depends=('gtk2') +makedepends=('libtool') +options=('!libtool') +source=("http://gnome-look.org/CONTENT/content-files/121881-equinox-$pkgver.tar.gz") +sha256sums=('0cf8b8cc841e0da7d4a08ab5a70d3bb330fd76bdcb03165a47aaddcd47e02227') + +build() { + cd "$srcdir/equinox-$pkgver" + + # toolbar fix + sed -i "s/=\( EQUINOX_IS_TOOLBAR\)/= widget \&\&\1/" \ + src/equinox_style.c + + # glib2 fix + sed -i "/gtimer/d" src/animation.c + + ./configure --prefix=/usr \ + --enable-animation + make +} +package() { + cd "$srcdir/equinox-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/pcr/haveged/PKGBUILD b/pcr/haveged/PKGBUILD new file mode 100644 index 000000000..257e1f39f --- /dev/null +++ b/pcr/haveged/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer (Arch): kfgz <kfgz at interia dot pl> +# Contributor (Arch): pootzko <pootzko at gmail dot com> + +pkgname=haveged +pkgver=1.1 +pkgrel=1 +pkgdesc="A simple entropy daemon." +arch=('i686' 'x86_64' 'mips64el') +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/pcr/haveged/haveged b/pcr/haveged/haveged new file mode 100644 index 000000000..c0e13b40d --- /dev/null +++ b/pcr/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/pcr/liblockfile/PKGBUILD b/pcr/liblockfile/PKGBUILD new file mode 100644 index 000000000..a20883cfd --- /dev/null +++ b/pcr/liblockfile/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor (Arch): 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' 'mips64el') +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/pcr/lockfile-progs/PKGBUILD b/pcr/lockfile-progs/PKGBUILD new file mode 100644 index 000000000..c04b7eb37 --- /dev/null +++ b/pcr/lockfile-progs/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor (Arch): 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' 'mips64el') +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/pcr/merkaartor/PKGBUILD b/pcr/merkaartor/PKGBUILD new file mode 100644 index 000000000..d52cfe14a --- /dev/null +++ b/pcr/merkaartor/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org> +# Contributor (Arch): Michael Kanis <mkanis gmx de> +# Contributor (Arch): Paulo Freire <paulofreire gmail com> +# Contributor (Arch): Brice Maron <brice bmaron net> + +pkgname=merkaartor +pkgver=0.17.2 +pkgrel=3 +pkgdesc='OpenStreetMap editor' +url='http://merkaartor.be/' +arch=('i686' 'x86_64' 'mips64el') +license=('GPL2') +makedepends=('boost') +depends=('qtwebkit' 'exiv2') +optdepends=('gpsd' 'desktop-file-utils' 'gtk-update-icon-cache') +source=("http://www.merkaartor.be/attachments/download/253/merkaartor-${pkgver}.tar.bz2") +sha1sums=('f789141db427bf25bb3b61801fefc98ab0430012') + +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + echo 'QMAKE_MOC = $$QMAKE_MOC -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED' >> src/src.pro + lrelease src/src.pro + qmake Merkaartor.pro \ + PREFIX="/usr" \ + GEOIMAGE=1 \ + NODEBUG=1 \ + RELEASE=1 \ + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make INSTALL_ROOT="${pkgdir}" install +} diff --git a/pcr/merkaartor/install b/pcr/merkaartor/install new file mode 100644 index 000000000..af0c8724a --- /dev/null +++ b/pcr/merkaartor/install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/pcr/nitroshare/PKGBUILD b/pcr/nitroshare/PKGBUILD new file mode 100644 index 000000000..7f4dfbaa0 --- /dev/null +++ b/pcr/nitroshare/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer (Arch): Sid Karunaratne <sid at karunaratne dot net> +# Contributor (Arch): 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' 'mips64el') +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/pcr/nitroshare/nitroshare.install b/pcr/nitroshare/nitroshare.install new file mode 100644 index 000000000..d6519a6e8 --- /dev/null +++ b/pcr/nitroshare/nitroshare.install @@ -0,0 +1,4 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor + update-desktop-database -q +} diff --git a/pcr/postler/PKGBUILD b/pcr/postler/PKGBUILD new file mode 100644 index 000000000..b5d624895 --- /dev/null +++ b/pcr/postler/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer (Arch): Kosava <kosava@archlinux.us> + +pkgname=postler +pkgver=0.1.1 +pkgrel=2 +pkgdesc="Postler is simple desktop mail client built in vala" +arch=('i686' 'x86_64' 'mips64el') +url="https://launchpad.net/postler" +license=('GPL') +depends=('libwebkit' 'libunique' 'libcanberra' 'libnotify') +makedepends=('vala-010' 'intltool' 'librsvg' 'gettext' 'python2' 'msmtp') +optdepends=('dexter: provides contact completion' + 'lynx: enables HTML to text conversion' + 'libindicate: raise flags on dbus for other components of the desktop') +install="postler.install" +source=(http://git.xfce.org/apps/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 $pkgname.install) +md5sums=('02e502c9f4a4b92e4ace32d9e268f06d' + '7541710086c2b4f45da7268c137ed708') + +build() { + cd $srcdir/$pkgname-$pkgver + export VALAC="/opt/vala-0.10/bin/valac" + msg "Patching the buildscript to use python2..." + sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|g" waf + ./waf configure --prefix=/usr --disable-libindicate + ./waf build + ./waf --destdir=$pkgdir install +} diff --git a/pcr/postler/postler.install b/pcr/postler/postler.install new file mode 100644 index 000000000..709ad81f2 --- /dev/null +++ b/pcr/postler/postler.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/pcr/python-relatorio/PKGBUILD b/pcr/python-relatorio/PKGBUILD new file mode 100644 index 000000000..9b6d40936 --- /dev/null +++ b/pcr/python-relatorio/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor (Arch): Florian Walch <florian.walch@gmx.at> +# Maintainer (Arch): 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' 'mips64el') +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/pcr/python2-polib/PKGBUILD b/pcr/python2-polib/PKGBUILD new file mode 100644 index 000000000..fc346ec97 --- /dev/null +++ b/pcr/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/pcr/qxmlrpc/01_build_targets.patch b/pcr/qxmlrpc/01_build_targets.patch new file mode 100644 index 000000000..bee6d5167 --- /dev/null +++ b/pcr/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/pcr/qxmlrpc/02_staticlib_removed.patch b/pcr/qxmlrpc/02_staticlib_removed.patch new file mode 100644 index 000000000..58f1d68d1 --- /dev/null +++ b/pcr/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/pcr/qxmlrpc/03_client.h_include_fix.patch b/pcr/qxmlrpc/03_client.h_include_fix.patch new file mode 100644 index 000000000..6f174cb95 --- /dev/null +++ b/pcr/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/pcr/qxmlrpc/04_do_not_link_gui.patch b/pcr/qxmlrpc/04_do_not_link_gui.patch new file mode 100644 index 000000000..c086d4990 --- /dev/null +++ b/pcr/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/pcr/qxmlrpc/PKGBUILD b/pcr/qxmlrpc/PKGBUILD new file mode 100644 index 000000000..b39b40890 --- /dev/null +++ b/pcr/qxmlrpc/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer (Arch): 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' 'mips64el') +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/pcr/qxmlrpc/SRCBUILD b/pcr/qxmlrpc/SRCBUILD new file mode 100644 index 000000000..b5fe17ebf --- /dev/null +++ b/pcr/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/pcr/statusnet/PKGBUILD b/pcr/statusnet/PKGBUILD new file mode 100644 index 000000000..998751df5 --- /dev/null +++ b/pcr/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/pcr/statusnet/statusnet.install b/pcr/statusnet/statusnet.install new file mode 100644 index 000000000..5ec72e7c2 --- /dev/null +++ b/pcr/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/pcr/tinc/PKGBUILD b/pcr/tinc/PKGBUILD new file mode 100644 index 000000000..87d3415e9 --- /dev/null +++ b/pcr/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/pcr/tinc/tincd.conf b/pcr/tinc/tincd.conf new file mode 100644 index 000000000..e86139b44 --- /dev/null +++ b/pcr/tinc/tincd.conf @@ -0,0 +1,2 @@ +NETNAME=yournetname +OPTIONS="-R -U nobody -L" diff --git a/pcr/tinc/tincd.rcd b/pcr/tinc/tincd.rcd new file mode 100644 index 000000000..16f39f8ca --- /dev/null +++ b/pcr/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/pcr/tomoyo-tools/PKGBUILD b/pcr/tomoyo-tools/PKGBUILD new file mode 100644 index 000000000..9f583166b --- /dev/null +++ b/pcr/tomoyo-tools/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer (Arch): 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' 'mips64el') +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/pcr/tomoyo-tools/tomoyo-tools.install b/pcr/tomoyo-tools/tomoyo-tools.install new file mode 100644 index 000000000..6fb5e16d2 --- /dev/null +++ b/pcr/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/pcr/ucommon/PKGBUILD b/pcr/ucommon/PKGBUILD new file mode 100644 index 000000000..ec34d126e --- /dev/null +++ b/pcr/ucommon/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer (Arch): Dan Serban +# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org> +# Contributor (Arch): 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/pcr/vala-010/PKGBUILD b/pcr/vala-010/PKGBUILD new file mode 100644 index 000000000..af72d0326 --- /dev/null +++ b/pcr/vala-010/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): Alessio Sergi <asergi at archlinux dot us> + +pkgname=vala-010 +_pkgname=vala +pkgver=0.10.4 +pkgrel=1 +pkgdesc="Compiler for the GObject type system (0.10 branch)" +arch=('i686' 'x86_64' 'mips64el') +url="http://live.gnome.org/Vala" +license=('LGPL2.1') +depends=('glib2') +makedepends=('libxslt') +options=('!libtool') +source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgname}/0.10/${_pkgname}-${pkgver}.tar.bz2) +sha256sums=('4d23bd8b904ec59537ed5bcf44064104ccc41d639a3386cbc62d91f6bf0301c4') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + ./configure --prefix=/opt/vala-0.10 \ + --enable-vapigen + make +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + # make it nice + install -d -m755 ${pkgdir}/usr/bin + ln -s /opt/vala-0.10/bin/{vala-0.10,valac-0.10,vala-gen-introspect-0.10,vapicheck-0.10,vapigen-0.10} ${pkgdir}/usr/bin/ +} + |