Commit 136ad6f8 authored by Natanael Copa's avatar Natanael Copa

main/trac,py-sqlite,py-setuptools,py-genshi: moved from testing

parent 1ac22eea
# 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"
# 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"
# 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"
# 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"
#!/bin/sh
addgroup tracd 2>/dev/null
adduser -s /bin/false -G tracd -D -H tracd 2>/dev/null
exit 0
# 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"
#!/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 $?
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment