diff options
-rw-r--r-- | development/viewvc/README | 7 | ||||
-rw-r--r-- | development/viewvc/README.SLACKWARE | 38 | ||||
-rw-r--r-- | development/viewvc/doinst.sh | 15 | ||||
-rw-r--r-- | development/viewvc/slack-desc | 19 | ||||
-rw-r--r-- | development/viewvc/viewvc.SlackBuild | 84 | ||||
-rw-r--r-- | development/viewvc/viewvc.info | 10 |
6 files changed, 173 insertions, 0 deletions
diff --git a/development/viewvc/README b/development/viewvc/README new file mode 100644 index 000000000000..319b8e392e51 --- /dev/null +++ b/development/viewvc/README @@ -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) diff --git a/development/viewvc/README.SLACKWARE b/development/viewvc/README.SLACKWARE new file mode 100644 index 000000000000..411ed57740cb --- /dev/null +++ b/development/viewvc/README.SLACKWARE @@ -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/ diff --git a/development/viewvc/doinst.sh b/development/viewvc/doinst.sh new file mode 100644 index 000000000000..93cffbdb359d --- /dev/null +++ b/development/viewvc/doinst.sh @@ -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 + diff --git a/development/viewvc/slack-desc b/development/viewvc/slack-desc new file mode 100644 index 000000000000..03fcddfd249e --- /dev/null +++ b/development/viewvc/slack-desc @@ -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: diff --git a/development/viewvc/viewvc.SlackBuild b/development/viewvc/viewvc.SlackBuild new file mode 100644 index 000000000000..3baeb503f04b --- /dev/null +++ b/development/viewvc/viewvc.SlackBuild @@ -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} diff --git a/development/viewvc/viewvc.info b/development/viewvc/viewvc.info new file mode 100644 index 000000000000..bd4b9d716df4 --- /dev/null +++ b/development/viewvc/viewvc.info @@ -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" |