wok view git/receipt @ rev 18954

open-vm-tools: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 08 10:05:07 2016 +0100 (2016-03-08)
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 }