wok-next view git/receipt @ rev 20474

Tiny edits... (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 10 17:39:42 2018 +0200 (2018-03-10)
parents 018320afe651
children 41f7b84e8b0c
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="2.3.0"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://git-scm.com/"
11 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
13 # NO_NSEC=1
14 CROSS_BUGS="bug: can't run test and make package."
16 DEPENDS="zlib openssl curl expat"
17 BUILD_DEPENDS="wget zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
18 tar bzip2 gettext-tools"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 [ -L /bin/tar ] && tazpkg get-install tar --forced
24 ./configure \
25 --prefix=/usr \
26 --libexecdir=/usr/lib \
27 --without-tcltk \
28 $CONFIGURE_ARGS &&
29 make THREADED_DELTA_SEARCH=1 &&
30 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/init.d
37 cp -a $stuff/git-daemon $fs/etc/init.d
38 cp -a $install/usr $fs/
39 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
40 }
42 # edit daemons.conf.
43 post_install()
44 {
45 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
46 mkdir -p "$1/var/www/git"
47 echo '# Git daemon options.' >> "$1/etc/daemons.conf"
48 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
49 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
50 echo '' >> "$1/etc/daemons.conf"
51 fi
52 }