contrib/cgit/Pkgfile

45 lines
1.3 KiB
Plaintext
Raw Normal View History

2010-12-14 14:20:47 +01:00
# Description: Git web interface written in C.
2017-06-19 16:46:50 +02:00
# URL: https://git.zx2c4.com/cgit/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
# Optional: apache asciidoc lighttpd luajit
2009-01-29 05:56:35 +01:00
name=cgit
2020-05-15 15:15:42 +02:00
version=1.2.3
_gitver=2.25.1
release=2
2017-06-19 16:46:50 +02:00
source=(https://git.zx2c4.com/cgit/snapshot/$name-$version.tar.xz
https://www.kernel.org/pub/software/scm/git/git-${_gitver}.tar.xz
cgitrc
cgit.conf
lighttpd-cgit.conf)
2009-01-29 05:56:35 +01:00
build() {
cd $name-$version
2010-12-15 15:53:13 +01:00
rm -rf git && mv $SRC/git-${_gitver} git
make
make CGIT_SCRIPT_PATH=/usr/lib/cgit DESTDIR=$PKG prefix=/usr install
2010-12-15 15:53:13 +01:00
install -m 0644 $SRC/cgitrc $PKG/etc/cgitrc
mkdir -p $PKG/var/cache/cgit
2017-06-19 16:46:50 +02:00
# a web server should be present prior to building this port;
# otherwise the config files must be created manually
if prt-get isinst apache 2>/dev/null; then
install -D -m 0644 $SRC/cgit.conf $PKG/etc/apache/original/extra/cgit.conf
install -D -m 0644 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
fi
if prt-get isinst lighttpd 2>/dev/null; then
install -D -m 0644 $SRC/lighttpd-cgit.conf $PKG/etc/lighttpd-cgit.conf
fi
# asciidoc is needed to generate the man-page
if command -v a2x >/dev/null; then
make doc-man
make DESTDIR=$PKG prefix=/usr install-man
fi
2009-01-29 05:56:35 +01:00
}