diff options
-rw-r--r-- | pcr/darcsver/PKGBUILD | 26 | ||||
-rw-r--r-- | pcr/nevow/PKGBUILD | 23 | ||||
-rw-r--r-- | pcr/pycryptopp/PKGBUILD | 31 | ||||
-rw-r--r-- | pcr/python2-mock/PKGBUILD | 24 | ||||
-rw-r--r-- | pcr/pyutil/PKGBUILD | 28 | ||||
-rw-r--r-- | pcr/setuptools_darcs/PKGBUILD | 29 | ||||
-rw-r--r-- | pcr/tahoe-lafs/PKGBUILD | 30 | ||||
-rw-r--r-- | pcr/tahoe-lafs/nodaemon.patch | 19 | ||||
-rw-r--r-- | pcr/zbase32/PKGBUILD | 25 | ||||
-rw-r--r-- | pcr/zfec/PKGBUILD | 26 |
10 files changed, 261 insertions, 0 deletions
diff --git a/pcr/darcsver/PKGBUILD b/pcr/darcsver/PKGBUILD new file mode 100644 index 000000000..e93250680 --- /dev/null +++ b/pcr/darcsver/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net> +# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com> +# Contributor: Peter Simons <simons@cryp.to> +pkgname=darcsver +pkgver=1.7.4 +pkgrel=2 +pkgdesc="generate a version number from darcs history" +arch=('any') +url='http://allmydata.org/trac/darcsver' +license=('BSD') +depends=('python2') +makedepends=('python2-mock' 'python2-distribute') +source=( http://pypi.python.org/packages/source/d/$pkgname/$pkgname-$pkgver.tar.gz ) +md5sums=('e38aecd1343ab8447888a479ab12cb59') + +build(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +package(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" + + install -Dm644 darcsver.egg-info/PKG-INFO $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/nevow/PKGBUILD b/pcr/nevow/PKGBUILD new file mode 100644 index 000000000..956a0cd32 --- /dev/null +++ b/pcr/nevow/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com> +# Contributor: Peter Simons <simons@cryp.to> +pkgname=nevow +pkgver=0.10.0 +pkgrel=8 +pkgdesc="web application construction kit written in Python" +arch=('any') +url='http://pypi.python.org/pypi/Nevow' +license=('custom') +depends=('python2' 'twisted') +source=( http://pypi.python.org/packages/source/N/Nevow/Nevow-$pkgver.tar.gz ) +md5sums=('66dda2ad88f42dea05911add15f4d1b2') + +build(){ + cd "$srcdir/Nevow-$pkgver" + python2 setup.py build +} + +package(){ + cd "$srcdir/Nevow-$pkgver" + python2 setup.py install --prefix=/usr --root="$pkgdir" --install-data=/usr/share/"$pkgname" + install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/pcr/pycryptopp/PKGBUILD b/pcr/pycryptopp/PKGBUILD new file mode 100644 index 000000000..f95654884 --- /dev/null +++ b/pcr/pycryptopp/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com> +# Contributor: Peter Simons <simons@cryp.to> +pkgname=pycryptopp +pkgver=0.6.0 +_pkgtag=1206569328141510525648634803928199668821045408958 +pkgrel=2 +pkgdesc="Python wrappers for the Crypto++ library" +arch=('i686' 'x86_64') +url='http://allmydata.org/trac/pycryptopp' +license=('GPL2' 'custom') +depends=('python2' 'crypto++') +makedepends=('darcsver' 'setuptools_darcs') +source=( http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.$_pkgtag.tar.gz + http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.$_pkgtag.tar.gz.asc ) +md5sums=('ce38fbe03705d27da408c78b56eb1947' + '76fe2da5b1fc964d9e1ee4596c36d5bf') + +build() { + cd "$srcdir/$pkgname-$pkgver.$_pkgtag" + export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1 + python2 setup.py build + python2 setup.py test +} + +package() { + cd "$srcdir/$pkgname-$pkgver.$_pkgtag" + python2 setup.py install --root="$pkgdir" + + install -d $pkgdir/usr/share/licenses/$pkgname/ + install -m 644 COPYING* $pkgdir/usr/share/licenses/$pkgname/ +} diff --git a/pcr/python2-mock/PKGBUILD b/pcr/python2-mock/PKGBUILD new file mode 100644 index 000000000..5647c15d2 --- /dev/null +++ b/pcr/python2-mock/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: Felix Kaiser <felix.kaiser@fxkr.net> + +pkgname=python2-mock +pkgver=1.0.1 +pkgrel=1 +pkgdesc="A Python Mocking and Patching Library for Testing" +url='http://www.voidspace.org.uk/python/mock/' +license=('BSD') +depends=('python2') +arch=('i686' 'x86_64') +source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz") +md5sums=('c3971991738caa55ec7c356bbc154ee2') + +build() { + cd "$srcdir/mock-$pkgver" + python2 setup.py build +} + +package() { + cd "$srcdir/mock-$pkgver" + python2 setup.py install --optimize=1 --root="$pkgdir" + install -Dm644 LICENSE* $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + diff --git a/pcr/pyutil/PKGBUILD b/pcr/pyutil/PKGBUILD new file mode 100644 index 000000000..7c3ca9f60 --- /dev/null +++ b/pcr/pyutil/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com> +# Contributor: Peter Simons <simons@cryp.to> +pkgname=pyutil +pkgver=1.9.4 +pkgrel=2 +pkgdesc="general-purpose python library (used by tahoe-lafs)" +arch=('any') +url='http://pypi.python.org/pypi/pyutil' +license=('GPL2' 'custom') +depends=('python2') +makedepends=('setuptools' 'darcsver' 'setuptools_darcs' 'python2-simplejson') # 'zbase32') # missing: setuptools_trial +source=( http://pypi.python.org/packages/source/p/pyutil/pyutil-$pkgver.tar.gz ) +md5sums=('af51cf296b574112e115c9dfba51464d') + +build(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build + python2 setup.py trial +} + +package(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" + + install -d $pkgdir/usr/share/licenses/$pkgname/ + install -m644 COPYING* $pkgdir/usr/share/licenses/$pkgname/ + +} diff --git a/pcr/setuptools_darcs/PKGBUILD b/pcr/setuptools_darcs/PKGBUILD new file mode 100644 index 000000000..7fbbdcaa8 --- /dev/null +++ b/pcr/setuptools_darcs/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor: Peter Simons <simons@cryp.to> +# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com> +pkgname=setuptools_darcs +pkgver=1.2.11 +pkgrel=3 +pkgdesc="Python setuptools plugin for darcs" +arch=('any') +url='http://pypi.python.org/pypi/setuptools_darcs' +license=('BSD') +depends=('python2') +makedepends=('setuptools' 'darcsver') +source=( http://pypi.python.org/packages/source/s/$pkgname/$pkgname-$pkgver.tar.gz ) +md5sums=('79451a8e77b9692861a655e53df094f0') + +build() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py test +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" + install -Dm644 PKG-INFO $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/tahoe-lafs/PKGBUILD b/pcr/tahoe-lafs/PKGBUILD new file mode 100644 index 000000000..8ace70679 --- /dev/null +++ b/pcr/tahoe-lafs/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Peter Simons <simons@cryp.to> +# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com> +pkgname=tahoe-lafs +pkgver=1.10.0 +pkgrel=1 +pkgdesc="a secure, decentralized, fault-tolerant filesystem" +arch=('any') +url='http://tahoe-lafs.org/' +license=('GPL') +# net-tools is needed because Tahoe-LAFS uses /sbin/ifconfig +depends=('net-tools' 'python2' 'python2-zope-interface>=3.6.5' + 'twisted' 'python2-pyasn1' 'python2-crypto' 'pycryptopp' 'nevow' + 'python2-foolscap' 'python2-simplejson' 'zfec' 'python2-pyopenssl' + 'pyutil' 'python2-argparse' 'zbase32' 'python2-mock>=0.8.0') +source=(nodaemon.patch https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-$pkgver.tar.bz2) +sha256sums=('7fb13a50bdca729b9c78f12369e56fccf55594b646bddb270d55c08c83ce3449' + '9c5516700fe95fdf8c57eca1e2a7b4aebf2de9a4d327d50afd684ebf833ccfe2') + +build(){ + cd "$srcdir/allmydata-tahoe-$pkgver" + patch -p0 < ../nodaemon.patch + python2 setup.py build + # disabled due to the nodaemon patch and the test_filesystem* tests + #python2 setup.py test || return 1 +} + +package(){ + cd "$srcdir/allmydata-tahoe-$pkgver" + python2 setup.py install --root="$pkgdir" +} diff --git a/pcr/tahoe-lafs/nodaemon.patch b/pcr/tahoe-lafs/nodaemon.patch new file mode 100644 index 000000000..dfcc0b8ae --- /dev/null +++ b/pcr/tahoe-lafs/nodaemon.patch @@ -0,0 +1,19 @@ +--- src/allmydata/scripts/startstop_node.py 2011-10-30 22:54:34.000000000 +0100 ++++ src/allmydata/scripts/startstop_node.py 2011-11-10 15:22:21.432711365 +0100 +@@ -10,6 +10,7 @@ + optFlags = [ + ["profile", "p", "Run under the Python profiler, putting results in 'profiling_results.prof'."], + ["syslog", None, "Tell the node to log to syslog, not a file."], ++ ["nodaemon", "n", "Do not daemonize."], + ] + + def getSynopsis(self): +@@ -70,6 +71,8 @@ + args.extend(["--logfile", os.path.join("logs", "twistd.log")]) + if opts["profile"]: + args.extend(["--profile=profiling_results.prof", "--savestats",]) ++ if opts["nodaemon"]: ++ args.extend(["--nodaemon", "--umask=0077"]) + # now we're committed + os.chdir(basedir) + from twisted.scripts import twistd diff --git a/pcr/zbase32/PKGBUILD b/pcr/zbase32/PKGBUILD new file mode 100644 index 000000000..b4373abb8 --- /dev/null +++ b/pcr/zbase32/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Peter Simons <simons@cryp.to> +# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com> +pkgname=zbase32 +pkgver=1.1.5 +pkgrel=1 +pkgdesc="alternate base32 encoder (not RFC 3548 compliant)" +arch=('i686' 'x86_64') +url='http://pypi.python.org/pypi/zbase32' +license=('BSD') +depends=('python2') +makedepends=('setuptools' 'darcsver' 'setuptools_darcs' 'pyutil') +source=( http://pypi.python.org/packages/source/z/zbase32/zbase32-$pkgver.tar.gz ) +md5sums=('4dba0be4ac6d66968de8e5173f51d65d') + +build() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build + python2 setup.py test +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" + install -Dm644 PKG-INFO* $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/zfec/PKGBUILD b/pcr/zfec/PKGBUILD new file mode 100644 index 000000000..0c2487c6b --- /dev/null +++ b/pcr/zfec/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com> +# Contributor: Peter Simons <simons@cryp.to> +pkgname=zfec +pkgver=1.4.24 +pkgrel=2 +pkgdesc="a fast erasure codec which can be used with the command-line, C, Python, or Haskell" +arch=('i686' 'x86_64') +url='http://pypi.python.org/pypi/zfec' +license=('GPL' 'custom') +depends=('python2' 'pyutil' 'zbase32') +makedepends=('darcsver' 'setuptools_darcs') +source=( http://pypi.python.org/packages/source/z/zfec/zfec-$pkgver.tar.gz ) +md5sums=('e1bca3a1f18374f72bdf8cd42ea9c919') + +build(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build + python2 setup.py test +} + +package(){ + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" + install -d $pkgdir/usr/share/licenses/$pkgname/ + install -m644 COPYING* $pkgdir/usr/share/licenses/$pkgname/ +} |