wok-next view git/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 41f7b84e8b0c
children a3c581bf52b8
line source
1 # SliTaz package receipt v2.
3 PACKAGE="git"
4 VERSION="2.17.1"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://git-scm.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
14 # NO_NSEC=1
15 CROSS_BUGS="bug: can't run test and make package."
17 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
18 tar bzip2 gettext-tools"
20 compile_rules() {
21 ./configure \
22 --prefix=/usr \
23 --with-gitconfig=/etc/gitconfig \
24 --libexecdir=/usr/lib \
25 --without-tcltk \
26 $CONFIGURE_ARGS &&
27 make THREADED_DELTA_SEARCH=1 &&
28 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install || return 1
30 install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon
31 }
33 genpkg_rules() {
34 copy @std
35 DEPENDS="zlib openssl curl expat"
36 }
38 # edit daemons.conf.
39 post_install() {
40 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
41 mkdir -p "$1/var/www/git"
42 cat >> "$1/etc/daemons.conf" <<EOT
43 # Git daemon options.
44 GIT_REPO="/var/www/git/"
45 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
47 EOT
48 fi
49 }