Index: archlinux/PKGBUILD
===================================================================
--- archlinux/PKGBUILD (nonexistent)
+++ archlinux/PKGBUILD (revision 5)
@@ -0,0 +1,38 @@
+#
+# Maintainer: Andrey V.Kosteltsev <kx@radix.pro>
+#
+pkgname=cgit-ui
+pkgver=0.1.7
+pkgrel=2
+pkgdesc='cGit-ui CGI Script is a web interface for Git Repositories'
+arch=('x86_64')
+url='https://csvn.radix.pro'
+license=('custom')
+depends=('file' 'pcre2' 'libgit2' 'md4c')
+source=("https://ftp.radix.pro/pub/cgit-ui/${pkgname}-${pkgver}.tar.xz")
+md5sums=('..Check MD5 sum before Building Package..')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ CFLAGS="-O2 -fPIC -Wno-unused-result" \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-scriptdir=/usr/share/nginx/cgit
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make install DESTDIR="${pkgdir}"
+
+ # Gzip man pages:
+ gzip -9 ${pkgdir}/usr/share/man/man5/cgit-ui.rc.5
+
+ # Install documentation:
+ install -d ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
+ cp -a ChangeLog LICENSE README README.md doc/ ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
+}
Index: archlinux/README
===================================================================
--- archlinux/README (nonexistent)
+++ archlinux/README (revision 5)
@@ -0,0 +1,23 @@
+
+Sytem requires:
+ fakeroot, logrotate, nginx, uwsgi
+
+Build time requires:
+ make, binutils, gcc, bison, autoconf, automake, pkgconfig,
+ file (libmagic), pcre2, libgit2, md4c
+
+Runtime requires:
+ libmagic, pcre2, libgit2, md4c
+
+As non-privileged user:
+
+ $ mkdir build
+ $ cp PKGBUILD build/
+ $ cd build/
+ $ makepkg
+
+As root:
+
+ # pacman -U ./cgit-ui-0.1.7-2-x86_64.pkg.tar.zst
+
+After install you have to configure uWsgi and Nginx servers (see: README.md).
Index: archlinux
===================================================================
--- archlinux (nonexistent)
+++ archlinux (revision 5)
Property changes on: archlinux
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,36 ##
+
+autom4te.cache/
+
+Makefile
+Makefile.in
+config.h
+config.h.in
+config.log
+config.status
+compile
+config.guess
+config.sub
+configure
+install-sh
+missing
+stamp-h1
+aclocal.m4
+depcomp
+
+cgitcgi/.deps/
+cgitcgi/Makefile
+cgitcgi/Makefile.in
+
+po/Makefile
+po/Makefile.in
+po/POTFILES
+po/remove-potcdate.sed
+po/stamp-po
+po/*.gmo
+po/*~
+
+m4/intlmacosx.m4
+m4/pkg.m4
+m4/*~
+
+*~
Index: rpms/README
===================================================================
--- rpms/README (nonexistent)
+++ rpms/README (revision 5)
@@ -0,0 +1,17 @@
+
+To build RPM packages we have to copy source package downloaded
+from https://ftp.radix.pro/pub/cgit-ui directory to /usr/src/packages/SOURSES/
+directory. And also copy the cgit-ui.spec file into /usr/src/packages/SPECS/
+directory. Then edit the package version in the cgit-ui.spec file according
+to source package version.
+
+Dependencies: file-devel, pcre2-devel, libgit2-devel, md4c-devel, md4c-html-devel.
+
+RPMs can be built by following command:
+
+ $ rpmbuild --define "_topdir /usr/src/packages" -ba /usr/src/packages/SPECS/cgit-ui.spec
+
+Resulting RPMs will be saved in /usr/src/packages/SRPMS/ and
+/usr/src/packages/RPMS/`uname -m`/ directories.
+
+After install you have to configure uWsgi and Nginx servers (see: README.md).
Index: rpms/cgit-ui.spec
===================================================================
--- rpms/cgit-ui.spec (nonexistent)
+++ rpms/cgit-ui.spec (revision 5)
@@ -0,0 +1,42 @@
+
+Name: cgit-ui
+Version: 0.1.7
+Release: 2
+Summary: cGit-ui a web interface for Git repositories
+License: RADIX-1.0
+Group: System/base
+Source: https://ftp.radix.pro/pub/cgit-ui/cgit-ui-0.1.7.tar.xz
+Url: https://csvn.radix/pro/cgit-ui/
+
+
+%define _sysconfdir /etc
+%define _scriptdir /srv/www/htdocs/cgit
+
+
+%description
+cGit-ui CGI Script - is a web interface for Git Repositories
+
+%prep
+%setup -q
+
+%build
+./configure \
+ --prefix=/usr \
+ --sysconfdir=%{_sysconfdir} \
+ --with-scriptdir=%{_scriptdir}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%clean
+%{?buildroot:%__rm -rf "%{buildroot}"}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/*
+%doc LICENSE README README.md doc/
+%attr(755,root,root) %{_scriptdir}/cgit-ui.cgi
+%attr(644,root,root) %{_scriptdir}/favicon.ico
+%attr(644,root,root) %{_scriptdir}/robots.txt
+%{_scriptdir}/.cgit/
+
Index: rpms
===================================================================
--- rpms (nonexistent)
+++ rpms (revision 5)
Property changes on: rpms
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,36 ##
+
+autom4te.cache/
+
+Makefile
+Makefile.in
+config.h
+config.h.in
+config.log
+config.status
+compile
+config.guess
+config.sub
+configure
+install-sh
+missing
+stamp-h1
+aclocal.m4
+depcomp
+
+cgitcgi/.deps/
+cgitcgi/Makefile
+cgitcgi/Makefile.in
+
+po/Makefile
+po/Makefile.in
+po/POTFILES
+po/remove-potcdate.sed
+po/stamp-po
+po/*.gmo
+po/*~
+
+m4/intlmacosx.m4
+m4/pkg.m4
+m4/*~
+
+*~
Index: slackware/README
===================================================================
--- slackware/README (nonexistent)
+++ slackware/README (revision 5)
@@ -0,0 +1,7 @@
+
+cgit-ui (a web interface for Git repositories)
+
+cGit-ui CGI Script is a web interface for browsing Git
+repositories.
+
+Homepage: https://csvn.radix.pro
Index: slackware/cgit-ui.SlackBuild
===================================================================
--- slackware/cgit-ui.SlackBuild (nonexistent)
+++ slackware/cgit-ui.SlackBuild (revision 5)
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PKGNAM=cgit-ui
+VERSION=${VERSION:-$(echo cgit-ui-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-2}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i586 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-$PKGNAM
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+
+cd $TMP
+rm -rf $PKGNAM-$VERSION
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
+cd $PKGNAM-$VERSION || exit 1
+
+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 {} \+
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --with-scriptdir=/srv/www/htdocs/cgit \
+ --build=$ARCH-slackware-linux || exit 1
+
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+mv $PKG/usr/share/man $PKG/usr/
+gzip -9 $PKG/usr/man/man?/*
+rmdir $PKG/usr/share/man
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a \
+ ChangeLog LICENSE README README.md doc \
+ $PKG/usr/doc/$PKGNAM-$VERSION
+
+cp -a $CWD/$PKGNAM.info $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a $CWD/$PKGNAM.SlackBuild $PKG/usr/doc/$PKGNAM-$VERSION
+
+# If there's a ChangeLog file, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
Index: slackware/cgit-ui.info
===================================================================
--- slackware/cgit-ui.info (nonexistent)
+++ slackware/cgit-ui.info (revision 5)
@@ -0,0 +1,10 @@
+PRGNAM="cgit-ui"
+VERSION="0.1.7"
+HOMEPAGE="http://csvn.radix.pro"
+DOWNLOAD="https://ftp.radix.pro/pub/cgit-ui/cgit-ui-0.1.7.tar.xz"
+MD5SUM="..Check MD5 sum before Building Package.."
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="cscm md4c libpcre2-8 libpcre2-32 libgit2"
+MAINTAINER="Andrey V.Kosteltsev"
+EMAIL="kx@radix.pro"
Index: slackware/slack-desc
===================================================================
--- slackware/slack-desc (nonexistent)
+++ slackware/slack-desc (revision 5)
@@ -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------------------------------------------------------|
+cgit-ui: cgit-ui (a web interface for Git repositories)
+cgit-ui:
+cgit-ui: cGit-ui CGI Script is a web interface for browsing Git
+cgit-ui: repositories.
+cgit-ui:
+cgit-ui:
+cgit-ui: Homepage: https://csvn.radix.pro
+cgit-ui:
+cgit-ui:
+cgit-ui:
+cgit-ui:
Index: slackware
===================================================================
--- slackware (nonexistent)
+++ slackware (revision 5)
Property changes on: slackware
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,36 ##
+
+autom4te.cache/
+
+Makefile
+Makefile.in
+config.h
+config.h.in
+config.log
+config.status
+compile
+config.guess
+config.sub
+configure
+install-sh
+missing
+stamp-h1
+aclocal.m4
+depcomp
+
+cgitcgi/.deps/
+cgitcgi/Makefile
+cgitcgi/Makefile.in
+
+po/Makefile
+po/Makefile.in
+po/POTFILES
+po/remove-potcdate.sed
+po/stamp-po
+po/*.gmo
+po/*~
+
+m4/intlmacosx.m4
+m4/pkg.m4
+m4/*~
+
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,36 ##
+
+autom4te.cache/
+
+Makefile
+Makefile.in
+config.h
+config.h.in
+config.log
+config.status
+compile
+config.guess
+config.sub
+configure
+install-sh
+missing
+stamp-h1
+aclocal.m4
+depcomp
+
+cgitcgi/.deps/
+cgitcgi/Makefile
+cgitcgi/Makefile.in
+
+po/Makefile
+po/Makefile.in
+po/POTFILES
+po/remove-potcdate.sed
+po/stamp-po
+po/*.gmo
+po/*~
+
+m4/intlmacosx.m4
+m4/pkg.m4
+m4/*~
+
+*~