aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-11 13:18:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-11 13:18:22 +0000
commit3a4b60e9e1c4fd340d6847f3f3d4b1380387026a (patch)
tree2316472742fcd3dffb5e1749b67084c626cd5a49 /main
parent6be82ec40a642fc049398d571ce8394ca88d43ab (diff)
downloadaports-3a4b60e9e1c4fd340d6847f3f3d4b1380387026a.tar.bz2
aports-3a4b60e9e1c4fd340d6847f3f3d4b1380387026a.tar.xz
main/trac,py-sqlite,py-setuptools,py-genshi: moved from testing
Diffstat (limited to 'main')
-rw-r--r--main/py-genshi/APKBUILD26
-rw-r--r--main/py-setuptools/APKBUILD27
-rw-r--r--main/py-sqlite/APKBUILD26
-rw-r--r--main/trac/APKBUILD35
-rw-r--r--main/trac/trac.pre-install5
-rw-r--r--main/trac/tracd.confd13
-rwxr-xr-xmain/trac/tracd.initd27
7 files changed, 159 insertions, 0 deletions
diff --git a/main/py-genshi/APKBUILD b/main/py-genshi/APKBUILD
new file mode 100644
index 0000000000..461e285476
--- /dev/null
+++ b/main/py-genshi/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=py-genshi
+_realname=Genshi
+pkgver=0.6
+pkgrel=0
+pkgdesc="Python toolkit for stream-based generation of output for the web."
+url="http://genshi.edgewall.org/"
+license="BSD"
+depends="python"
+makedepends="py-setuptools python-dev"
+install=
+source="http://ftp.edgewall.com/pub/genshi/$_realname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ exit 0
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir"
+}
+
+md5sums="604e8b23b4697655d36a69c2d8ef7187 Genshi-0.6.tar.gz"
diff --git a/main/py-setuptools/APKBUILD b/main/py-setuptools/APKBUILD
new file mode 100644
index 0000000000..2ccca3b4cd
--- /dev/null
+++ b/main/py-setuptools/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Andrew Manison <amanison@anselsystems.com>
+# Maintainer:
+pkgname=py-setuptools
+_pkgname=${pkgname#py-}
+pkgver=0.6c11
+pkgrel=0
+pkgdesc="setuptools is a collection of enhancements to the Python distutils"
+url="http://pypi.python.org/pypi/setuptools"
+license="PSF"
+depends="python"
+makedepends="python-dev"
+install=
+subpackages=""
+source="http://pypi.python.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$_pkgname-$pkgver
+ mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
+ python setup.py install --root="$pkgdir"
+ echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth
+
+ # we don't provide a non-suffixed easy_install
+ echo "Removing non-suffixed easy_install ( $pkgdir/usr/bin/easy_install)"
+ rm "$pkgdir"/usr/bin/easy_install
+}
+
+md5sums="7df2a529a074f613b509fb44feefe74e setuptools-0.6c11.tar.gz"
diff --git a/main/py-sqlite/APKBUILD b/main/py-sqlite/APKBUILD
new file mode 100644
index 0000000000..a0ae27156a
--- /dev/null
+++ b/main/py-sqlite/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=py-sqlite
+_realname=pysqlite
+pkgver=2.6.0
+pkgrel=0
+pkgdesc="A Python DB-API 2.0 interface for the SQLite embedded relational database engine"
+url="http://code.google.com/p/pysqlite/"
+license="MIT"
+depends="python sqlite"
+makedepends="sqlite-dev python-dev"
+install=
+source="http://pysqlite.googlecode.com/files/${_realname}-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir"
+}
+
+md5sums="fc92618b3b39d02e6ff10dc467c36640 pysqlite-2.6.0.tar.gz"
diff --git a/main/trac/APKBUILD b/main/trac/APKBUILD
new file mode 100644
index 0000000000..d4e09e554e
--- /dev/null
+++ b/main/trac/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=trac
+_realname=Trac
+pkgver=0.11.7
+pkgrel=1
+pkgusers="tracd"
+pkggroups="tracd"
+pkgdesc="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system."
+url="http://trac.edgewall.com/"
+license="GPL"
+depends="python py-setuptools py-genshi py-sqlite"
+makedepends="python-dev"
+install="$pkgname.pre-install"
+source="ftp://ftp.edgewall.com/pub/$pkgname/$_realname-$pkgver.tar.gz
+ tracd.confd
+ tracd.initd"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+package() {
+ cd "$_builddir"
+ install -d -o tracd -g tracd "$pkgdir"/var/lib/trac
+ install -m755 -D "$srcdir"/tracd.initd "$pkgdir"/etc/init.d/tracd
+ install -m644 -D "$srcdir"/tracd.confd "$pkgdir"/etc/conf.d/tracd
+}
+
+md5sums="3cd96dad0e4f25d977c422fd6e985e99 Trac-0.11.7.tar.gz
+95b1311ca65e1ffcd51a191542f45ba4 tracd.confd
+e53761b1e84c5d68c8e6c4b837e57008 tracd.initd"
diff --git a/main/trac/trac.pre-install b/main/trac/trac.pre-install
new file mode 100644
index 0000000000..05c659552b
--- /dev/null
+++ b/main/trac/trac.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup tracd 2>/dev/null
+adduser -s /bin/false -G tracd -D -H tracd 2>/dev/null
+exit 0
diff --git a/main/trac/tracd.confd b/main/trac/tracd.confd
new file mode 100644
index 0000000000..2cb9d292a7
--- /dev/null
+++ b/main/trac/tracd.confd
@@ -0,0 +1,13 @@
+# The commented variables in this file are the defaults that are used
+# in the init-script. You don't need to uncomment them except to
+# customize them to different values.
+
+# Port for tracd
+#TRACD_PORT="8000"
+
+# Options for tracd
+#TRACD_OPTS="--env-parent-dir /var/lib/trac/"
+
+# User and group as which to run tracd
+#TRACD_USER="tracd"
+#TRACD_GROUP="tracd"
diff --git a/main/trac/tracd.initd b/main/trac/tracd.initd
new file mode 100755
index 0000000000..83f84052d3
--- /dev/null
+++ b/main/trac/tracd.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.4 2010/05/28 14:43:40 arfrever Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting tracd"
+ # tracd fails to create pidfile if started as non-root user, thus we are asking
+ # s-s-d to do that. To have correct pid we avoid -d option of tracd and use
+ # --background option of s-s-d.
+ start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \
+ --pidfile /var/run/tracd.pid --make-pidfile --background \
+ --env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
+ --exec /usr/bin/python -- /usr/bin/tracd \
+ -p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping tracd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid
+ eend $?
+}