diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-11-24 20:17:01 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-25 14:08:19 -0600 |
commit | 1d048cb81c1eaeac61ee151bb9fa2458870024c3 (patch) | |
tree | fb682c80bea61fcfacadab41aba49f24def32dd3 /development/cgit/cgit.SlackBuild | |
parent | 2d46d325edead9a0adefc8f508377be0c8a00436 (diff) |
development/cgit: Fixes for httpd-2.4.x and allow custom DOCROOT
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/cgit/cgit.SlackBuild')
-rw-r--r-- | development/cgit/cgit.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/development/cgit/cgit.SlackBuild b/development/cgit/cgit.SlackBuild index 2eb9459223d6c..a5570e5a30a52 100644 --- a/development/cgit/cgit.SlackBuild +++ b/development/cgit/cgit.SlackBuild @@ -26,6 +26,8 @@ VERSION=${VERSION:-20130826_d62e71a} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +DOCROOT=${DOCROOT:-/var/www} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -56,8 +58,8 @@ fi CGIT_VERSION=${CGIT_VERSION:-v0.9.2-21-gd62e} GIT_VERSION=${GIT_VERSION:-1.8.4} -DOCS="cgitrc.5.txt COPYING README $CWD/config/cgit-lighttpd.conf \ - $CWD/config/cgit-httpd.conf $CWD/config/cgitrc.sample" +DOCS="cgitrc.5.txt COPYING README $CWD/config/cgitrc.sample \ + $CWD/config/cgit-lighttpd.conf $CWD/config/cgit-httpd.conf" set -e @@ -75,10 +77,12 @@ find -L . \ -exec chmod 644 {} \; # prepare sources -sed -i -e "s|-g -Wall -Igit|-Wall ${SLKCFLAGS} -Igit|" Makefile -sed -i -e "s|\/lib$|/lib${LIBDIRSUFFIX}|" Makefile -sed -i -e "s|(libdir)|(prefix)/share|" Makefile -cat $CWD/config/cgit.conf > cgit.conf +sed -i Makefile \ + -e "s|-g -Wall -Igit|-Wall ${SLKCFLAGS} -Igit|" \ + -e "s|\/lib$|/lib${LIBDIRSUFFIX}|" \ + -e "s|(libdir)|(prefix)/share|" \ + -e "s|/usr/local|/usr|" +sed -e "s|@DOCROOT@|$DOCROOT|g" $CWD/config/cgit.conf > cgit.conf echo "CGIT_VERSION = $CGIT_VERSION" >> cgit.conf # extract the git tarball @@ -94,6 +98,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION install -m0644 -oroot $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +sed -i "s|@DOCROOT@|$DOCROOT|g" $PKG/usr/doc/$PRGNAM-$VERSION/* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # prepare the cache dir: default permissions are for the apache user and group |