wok-current view git/receipt @ rev 20752
updated bmon (3.6 -> 4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 12 13:58:21 2019 +0100 (2019-02-12) |
parents | 6bd25993e7c8 |
children | b736070e9649 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://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."
15 #HOST_ARCH="i486 arm"
17 DEPENDS="zlib openssl curl expat"
18 BUILD_DEPENDS="wget zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
19 tar bzip2"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 [ -L /bin/tar ] && tazpkg get-install tar --forced
25 ./configure \
26 --prefix=/usr \
27 --libexecdir=/usr/lib \
28 --without-tcltk \
29 $CONFIGURE_ARGS &&
30 make THREADED_DELTA_SEARCH=1 &&
31 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/init.d
38 cp -a $stuff/git-daemon $fs/etc/init.d
39 cp -a $install/usr $fs/
40 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
41 }
43 # edit daemons.conf.
44 post_install()
45 {
46 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
47 mkdir -p "$1/var/www/git"
48 echo '# Git daemon options.' >> "$1/etc/daemons.conf"
49 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
50 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
51 echo '' >> "$1/etc/daemons.conf"
52 fi
53 }