wok view git/receipt @ rev 19905

Up backup-manager (0.7.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 10 09:25:19 2017 +0200 (2017-04-10)
parents c0e5b40bd091
children 6bd25993e7c8
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."
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 }