mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
development/viewvc: Added (cvs/svn browser interface)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
b951c756c6
commit
b6304352d7
6 changed files with 173 additions and 0 deletions
7
development/viewvc/README
Normal file
7
development/viewvc/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
ViewVC is a browser interface for CVS and Subversion version control
|
||||
repositories. It generates templatized HTML to present navigable directory,
|
||||
revision, and change log listings. It can display specific versions of files
|
||||
as well as diffs between those versions.
|
||||
|
||||
Installing Pygments (available on SlackBuilds) will improve your ViewVC
|
||||
experience (highlighting changes)
|
38
development/viewvc/README.SLACKWARE
Normal file
38
development/viewvc/README.SLACKWARE
Normal file
|
@ -0,0 +1,38 @@
|
|||
README.SLACKWARE
|
||||
================
|
||||
|
||||
After installing the package, follow these minimal steps to setup ViewVC:
|
||||
|
||||
1) Edit /etc/viewvc.conf
|
||||
------------------------
|
||||
|
||||
At least set 'svn_roots' or 'cvs_roots' to your local repository.
|
||||
|
||||
This configuration file is very well documented, so do read through it.
|
||||
|
||||
2) Edit /etc/httpd/httpd.conf
|
||||
-----------------------------
|
||||
|
||||
Look for the section where the ScriptAliases are defined and add:
|
||||
|
||||
ScriptAlias /viewvc "/opt/viewvc/bin/cgi/viewvc.cgi"
|
||||
|
||||
Also add this section to allow access to the scripts:
|
||||
|
||||
<Directory "/opt/viewvc/bin/cgi">
|
||||
AllowOverride None
|
||||
Options None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
3) Restart httpd
|
||||
----------------
|
||||
|
||||
# /etc/rc.d/rc.httpd restart
|
||||
|
||||
4) Read the documentation!
|
||||
--------------------------
|
||||
|
||||
Read at least the INSTALL document in /usr/doc/viewvc-<version>/ and check
|
||||
for more documentation at http://viewvc.tigris.org/
|
15
development/viewvc/doinst.sh
Normal file
15
development/viewvc/doinst.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
find etc/viewvc/ -name *.new | while read cfg ; do config $cfg ; done
|
||||
|
19
development/viewvc/slack-desc
Normal file
19
development/viewvc/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
viewvc: viewvc (browser interface for cvs and svn)
|
||||
viewvc:
|
||||
viewvc: ViewVC is a browser interface for CVS and Subversion version control
|
||||
viewvc: repositories. It generates templatized HTML to present navigable
|
||||
viewvc: directory, revision, and change log listings. It can display specific
|
||||
viewvc: versions of files as well as diffs between those versions.
|
||||
viewvc:
|
||||
viewvc: Homepage: http://www.viewvc.org/
|
||||
viewvc:
|
||||
viewvc:
|
||||
viewvc:
|
84
development/viewvc/viewvc.SlackBuild
Normal file
84
development/viewvc/viewvc.SlackBuild
Normal file
|
@ -0,0 +1,84 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for viewvc
|
||||
# a browser interface for cvs and svn
|
||||
|
||||
# Written by Niels Horn <niels.horn@gmail.com>
|
||||
# Revision date: 2010/06/13
|
||||
|
||||
PRGNAM=viewvc
|
||||
VERSION=${VERSION:-1.1.6}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Use included "install" script
|
||||
cat << EOF | ./viewvc-install
|
||||
/opt/$PRGNAM
|
||||
$PKG
|
||||
EOF
|
||||
|
||||
# Move configuration files to /etc/
|
||||
mkdir -p $PKG/etc/$PRGNAM
|
||||
for i in $( find $PKG/opt/$PRGNAM/*.conf ); do
|
||||
j=$(basename $i)
|
||||
mv $i $PKG/etc/$PRGNAM/$j.new
|
||||
ln -sf ../../etc/$PRGNAM/$j $i
|
||||
done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGES COMMITTERS INSTALL LICENSE.html README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
development/viewvc/viewvc.info
Normal file
10
development/viewvc/viewvc.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="viewvc"
|
||||
VERSION="1.1.6"
|
||||
HOMEPAGE="http://www.viewvc.org/"
|
||||
DOWNLOAD="http://viewvc.tigris.org/files/documents/3330/47623/viewvc-1.1.6.tar.gz"
|
||||
MD5SUM="9b0fd59fe4410dfc809d9b7d07f9baf6"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue