diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 13:18:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 13:21:50 +0000 |
commit | 136ad6f85ce94485e85a0f286653b10ae2c75bfc (patch) | |
tree | 7cfbffb31fddca71c6edc70d2207d1eaf3fa1e0c | |
parent | 1ac22eea9baee1a5ebed55d28a10703eecef8387 (diff) | |
download | alpine_aports-136ad6f85ce94485e85a0f286653b10ae2c75bfc.tar.bz2 alpine_aports-136ad6f85ce94485e85a0f286653b10ae2c75bfc.tar.xz alpine_aports-136ad6f85ce94485e85a0f286653b10ae2c75bfc.zip |
main/trac,py-sqlite,py-setuptools,py-genshi: moved from testing
-rw-r--r-- | main/py-genshi/APKBUILD | 26 | ||||
-rw-r--r-- | main/py-setuptools/APKBUILD | 27 | ||||
-rw-r--r-- | main/py-sqlite/APKBUILD | 26 | ||||
-rw-r--r-- | main/trac/APKBUILD | 35 | ||||
-rw-r--r-- | main/trac/trac.pre-install | 5 | ||||
-rw-r--r-- | main/trac/tracd.confd | 13 | ||||
-rwxr-xr-x | main/trac/tracd.initd | 27 |
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 @@ | |||
1 | # Contributor: Mika Havela <mika.havela@gmail.com> | ||
2 | # Maintainer: Mika Havela <mika.havela@gmail.com> | ||
3 | pkgname=py-genshi | ||
4 | _realname=Genshi | ||
5 | pkgver=0.6 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="Python toolkit for stream-based generation of output for the web." | ||
8 | url="http://genshi.edgewall.org/" | ||
9 | license="BSD" | ||
10 | depends="python" | ||
11 | makedepends="py-setuptools python-dev" | ||
12 | install= | ||
13 | source="http://ftp.edgewall.com/pub/genshi/$_realname-$pkgver.tar.gz" | ||
14 | |||
15 | _builddir="$srcdir"/$_realname-$pkgver | ||
16 | |||
17 | build() { | ||
18 | exit 0 | ||
19 | } | ||
20 | |||
21 | build() { | ||
22 | cd "$_builddir" | ||
23 | python setup.py install --root="$pkgdir" | ||
24 | } | ||
25 | |||
26 | 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 @@ | |||
1 | # Contributor: Andrew Manison <amanison@anselsystems.com> | ||
2 | # Maintainer: | ||
3 | pkgname=py-setuptools | ||
4 | _pkgname=${pkgname#py-} | ||
5 | pkgver=0.6c11 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="setuptools is a collection of enhancements to the Python distutils" | ||
8 | url="http://pypi.python.org/pypi/setuptools" | ||
9 | license="PSF" | ||
10 | depends="python" | ||
11 | makedepends="python-dev" | ||
12 | install= | ||
13 | subpackages="" | ||
14 | source="http://pypi.python.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz" | ||
15 | |||
16 | build() { | ||
17 | cd "$srcdir"/$_pkgname-$pkgver | ||
18 | mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages | ||
19 | python setup.py install --root="$pkgdir" | ||
20 | echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth | ||
21 | |||
22 | # we don't provide a non-suffixed easy_install | ||
23 | echo "Removing non-suffixed easy_install ( $pkgdir/usr/bin/easy_install)" | ||
24 | rm "$pkgdir"/usr/bin/easy_install | ||
25 | } | ||
26 | |||
27 | 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 @@ | |||
1 | # Contributor: Mika Havela <mika.havela@gmail.com> | ||
2 | # Maintainer: Mika Havela <mika.havela@gmail.com> | ||
3 | pkgname=py-sqlite | ||
4 | _realname=pysqlite | ||
5 | pkgver=2.6.0 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="A Python DB-API 2.0 interface for the SQLite embedded relational database engine" | ||
8 | url="http://code.google.com/p/pysqlite/" | ||
9 | license="MIT" | ||
10 | depends="python sqlite" | ||
11 | makedepends="sqlite-dev python-dev" | ||
12 | install= | ||
13 | source="http://pysqlite.googlecode.com/files/${_realname}-${pkgver}.tar.gz" | ||
14 | |||
15 | _builddir="$srcdir"/$_realname-$pkgver | ||
16 | |||
17 | build() { | ||
18 | return 0 | ||
19 | } | ||
20 | |||
21 | package() { | ||
22 | cd "$_builddir" | ||
23 | python setup.py install --root="$pkgdir" | ||
24 | } | ||
25 | |||
26 | 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 @@ | |||
1 | # Contributor: Michael Mason <ms13sp@gmail.com> | ||
2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | pkgname=trac | ||
4 | _realname=Trac | ||
5 | pkgver=0.11.7 | ||
6 | pkgrel=1 | ||
7 | pkgusers="tracd" | ||
8 | pkggroups="tracd" | ||
9 | pkgdesc="Trac is a minimalistic web-based project management, wiki and bug/issue tracking system." | ||
10 | url="http://trac.edgewall.com/" | ||
11 | license="GPL" | ||
12 | depends="python py-setuptools py-genshi py-sqlite" | ||
13 | makedepends="python-dev" | ||
14 | install="$pkgname.pre-install" | ||
15 | source="ftp://ftp.edgewall.com/pub/$pkgname/$_realname-$pkgver.tar.gz | ||
16 | tracd.confd | ||
17 | tracd.initd" | ||
18 | |||
19 | _builddir="$srcdir"/$_realname-$pkgver | ||
20 | |||
21 | build() { | ||
22 | cd "$_builddir" | ||
23 | python setup.py install --prefix=/usr --root="$pkgdir" | ||
24 | } | ||
25 | |||
26 | package() { | ||
27 | cd "$_builddir" | ||
28 | install -d -o tracd -g tracd "$pkgdir"/var/lib/trac | ||
29 | install -m755 -D "$srcdir"/tracd.initd "$pkgdir"/etc/init.d/tracd | ||
30 | install -m644 -D "$srcdir"/tracd.confd "$pkgdir"/etc/conf.d/tracd | ||
31 | } | ||
32 | |||
33 | md5sums="3cd96dad0e4f25d977c422fd6e985e99 Trac-0.11.7.tar.gz | ||
34 | 95b1311ca65e1ffcd51a191542f45ba4 tracd.confd | ||
35 | 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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | addgroup tracd 2>/dev/null | ||
4 | adduser -s /bin/false -G tracd -D -H tracd 2>/dev/null | ||
5 | 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 @@ | |||
1 | # The commented variables in this file are the defaults that are used | ||
2 | # in the init-script. You don't need to uncomment them except to | ||
3 | # customize them to different values. | ||
4 | |||
5 | # Port for tracd | ||
6 | #TRACD_PORT="8000" | ||
7 | |||
8 | # Options for tracd | ||
9 | #TRACD_OPTS="--env-parent-dir /var/lib/trac/" | ||
10 | |||
11 | # User and group as which to run tracd | ||
12 | #TRACD_USER="tracd" | ||
13 | #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 @@ | |||
1 | #!/sbin/runscript | ||
2 | # Copyright 1999-2006 Gentoo Foundation | ||
3 | # Distributed under the terms of the GNU General Public License, v2 or later | ||
4 | # $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.4 2010/05/28 14:43:40 arfrever Exp $ | ||
5 | |||
6 | depend() { | ||
7 | need net | ||
8 | } | ||
9 | |||
10 | start() { | ||
11 | ebegin "Starting tracd" | ||
12 | # tracd fails to create pidfile if started as non-root user, thus we are asking | ||
13 | # s-s-d to do that. To have correct pid we avoid -d option of tracd and use | ||
14 | # --background option of s-s-d. | ||
15 | start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \ | ||
16 | --pidfile /var/run/tracd.pid --make-pidfile --background \ | ||
17 | --env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \ | ||
18 | --exec /usr/bin/python -- /usr/bin/tracd \ | ||
19 | -p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/} | ||
20 | eend $? | ||
21 | } | ||
22 | |||
23 | stop() { | ||
24 | ebegin "Stopping tracd" | ||
25 | start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid | ||
26 | eend $? | ||
27 | } | ||