wok-next diff git/receipt @ rev 21099

Update doxygen (1.8.15), git (2.20.1); add db5 (5.3.28)
TODO: switch to using /etc/daemons.conf.d/ in other packages too.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 01 22:49:19 2019 +0200 (2019-01-01)
parents d5aab818505e
children 06f83e7bab65
line diff
     1.1 --- a/git/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.2 +++ b/git/receipt	Tue Jan 01 22:49:19 2019 +0200
     1.3 @@ -1,46 +1,37 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="git"
     1.7 -VERSION="2.17.1"
     1.8 +VERSION="2.20.1"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Fast version control system"
    1.11  MAINTAINER="devel@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13  WEB_SITE="https://git-scm.com/"
    1.14 +LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/git.html"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.17  WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
    1.18 +TARBALL_SHA1="58dca49db21f4bebf56f8861f15800f1c57c5ee3"
    1.19  
    1.20 -BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
    1.21 -tar bzip2 gettext"
    1.22 +BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev tar \
    1.23 +bzip2 gettext"
    1.24 +DEPENDS="zlib openssl curl expat"
    1.25 +
    1.26 +CONFIG_FILES="/etc/gitconfig /etc/daemons.conf.d/git-daemon.conf"
    1.27  
    1.28  compile_rules() {
    1.29  	./configure \
    1.30  		--prefix=/usr \
    1.31  		--with-gitconfig=/etc/gitconfig \
    1.32 -		--libexecdir=/usr/lib \
    1.33  		--without-tcltk \
    1.34  		$CONFIGURE_ARGS &&
    1.35  	make THREADED_DELTA_SEARCH=1 &&
    1.36 -	make THREADED_DELTA_SEARCH=1 DESTDIR=$install install || return 1
    1.37 +	make \
    1.38 +		THREADED_DELTA_SEARCH=1 \
    1.39 +		INSTALL_SYMLINKS=1 \
    1.40 +		DESTDIR=$install install || return 1
    1.41  
    1.42 -	install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon
    1.43 +	install -Dm755 $stuff/git-daemon      $install/etc/init.d/git-daemon
    1.44 +	install -Dm644 $stuff/git-daemon.conf $install/etc/daemons.conf.d/git-daemon.conf
    1.45 +	mkdir -p $install/var/www/git/
    1.46  }
    1.47 -
    1.48 -genpkg_rules() {
    1.49 -	copy @std
    1.50 -	DEPENDS="zlib openssl curl expat"
    1.51 -}
    1.52 -
    1.53 -# edit daemons.conf.
    1.54 -post_install() {
    1.55 -	if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
    1.56 -		mkdir -p "$1/var/www/git"
    1.57 -		cat >> "$1/etc/daemons.conf" <<EOT
    1.58 -# Git daemon options.
    1.59 -GIT_REPO="/var/www/git/"
    1.60 -GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
    1.61 -
    1.62 -EOT
    1.63 -	fi
    1.64 -}