1
0
forked from ports/opt

cvstrac: update to 1.2.1, subversion support added

This commit is contained in:
Juergen Daubert 2006-01-13 17:40:18 +00:00
parent 2960256b83
commit 9f365651aa
6 changed files with 40 additions and 12 deletions

@ -4,6 +4,7 @@ drwxr-xr-x root/root etc/rc.d/
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/cvstrac
lrwxrwxrwx root/root usr/bin/svntrac -> cvstrac
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxr-xr-x nobody/nobody var/lib/cvstrac/

@ -1,3 +1,3 @@
fa2235232c583af82d78107a750fbf12 cvstrac-src-1.1.5.tar.gz
f52127de3a99689122949884795e8515 cvstrac_cgi
d7871fa0d4a87c392579bc0066ceeb07 cvstracd
8659529167f022a7e0df2c5a1ef30a34 cvstrac-1.2.1.tar.gz
f1a1dd021329f06361b2580aa26b327a cvstrac_cgi
a8e250e0a1b070e307dbcfa66d495ebc cvstracd

@ -1,25 +1,29 @@
# Description: A low-ceremony bug tracking system for CVS with integrated Wiki and CVS browser
# Description: Bug tracking system for Subversion and CVS with integrated Wiki and repository browser
# URL: http://www.cvstrac.org
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: sqlite, rcs
name=cvstrac
version=1.1.5
version=1.2.1
release=1
source=(http://www.cvstrac.org/$name-src-$version.tar.gz \
source=(http://www.cvstrac.org/$name-$version.tar.gz \
cvstrac_cgi cvstracd)
build () {
cd $name-$version
sed -e "/^SRCDIR/s/=.*$/= \./" -e "s/-O[02]/$CFLAGS/" \
linux-gcc.mk > Makefile
sed "/^SRCDIR/s/=.*$/=\./; s/-O[02]/$CFLAGS/ " linux-gcc.mk > Makefile
make
chmod 777 .
su nobody -c "./cvstrac init . MyProject"
mkdir -p $PKG/var/lib
install -D -m 755 cvstrac $PKG/usr/bin/cvstrac
ln -s cvstrac $PKG/usr/bin/svntrac
install -d $PKG/var/lib
install -d -o nobody -g nobody $PKG/var/lib/cvstrac
install -m 644 -o nobody -g nobody MyProject.db $PKG/var/lib/cvstrac
install -D -m 755 ../cvstrac_cgi $PKG/var/www/cgi-bin/cvstrac.cgi
install -D -m 755 ../cvstracd $PKG/etc/rc.d/cvstrac
}

9
cvstrac/README Normal file

@ -0,0 +1,9 @@
README for cvstrac 1.2.x
As of version 1.2 cvstrac supports subversion and cvs as
SCM backends. Git is possible as well, but untested by me.
To use cvstrac for a subversion repository just call it as
/usr/bin/svntrac, which is a symlink to cvstrac. See also
/etc/rc.d/cvstrac and /var/www/cgi-bin/cvstrac.cgi.

@ -1,5 +1,13 @@
#! /bin/sh
#
# cvstrac.cgi: CGI script for cvstrac
#
/usr/bin/cvstrac cgi /var/lib/cvstrac MyProject
# For use with Subversion
# SCM=svntrac
# For use with CVS
SCM=cvstrac
/usr/bin/$SCM cgi /var/lib/cvstrac MyProject
# End of file

@ -3,6 +3,12 @@
# /etc/rc.d/cvstrac: start/stop cvstrac http daemon
#
# For use with Subversion
# SCM=svntrac
# For use with CVS
SCM=cvstrac
USER=nobody
PORT=8008
DB=/var/lib/cvstrac
@ -10,10 +16,10 @@ PROJ=MyProject
case $1 in
start)
/usr/bin/cvstrac chroot / $USER server $PORT $DB $PROJ &
/usr/bin/$SCM chroot / $USER server $PORT $DB $PROJ &
;;
stop)
killall -q /usr/bin/cvstrac
killall -q /usr/bin/$SCM
;;
restart)
$0 stop