wok-6.x view git/receipt @ rev 22322
updated yelp-tools and yelp-xsl
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 14 17:10:01 2019 +0100 (2019-11-14) |
parents | a78610b2eb47 |
children | 376c63dc731b |
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="2.21.0"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system."
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://git-scm.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
14 DEPENDS="cacerts curl expat openssl zlib"
15 BUILD_DEPENDS="curl-dev expat-dev openssl-dev perl python-dev zlib-dev"
17 # NO_NSEC=1
18 CROSS_BUGS="bug: can't run test and make package."
19 #HOST_ARCH="i486 arm"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure \
25 --prefix=/usr \
26 --libexecdir=/usr/lib \
27 --without-tcltk \
28 $CONFIGURE_ARGS &&
29 make -j 1 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
38 cp -a $stuff/git-daemon $fs/etc/init.d
39 cp -a $install/usr $fs/
41 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
42 }
44 # edit daemons.conf.
45 post_install()
46 {
47 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
48 mkdir -p "$1/var/www/git"
49 echo '# Git daemon options.' >> "$1/etc/daemons.conf"
50 echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
51 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
52 echo '' >> "$1/etc/daemons.conf"
53 fi
54 }