wok-4.x view git/receipt @ rev 12473

Up openssl 1.0.2u, zlib 1.2.13, tar 1.34, add cacerts, fix git receipt
author Stanislas Leduc <shann@slitaz.org>
date Sat Mar 04 08:15:16 2023 +0000 (15 months ago)
parents 39f7962e4210
children e937cb65232c
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="1.7.9.1"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="b1+slitaz@nagel.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="https://git-scm.com/"
10 #WGET_URL="http://git-core.googlecode.com/files/$TARBALL"
11 WGET_URL="http://mirror.slitaz.org/sources/packages-4.0/g/$TARBALL"
13 DEPENDS="zlib openssl curl expat"
14 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev bzip2"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --libexecdir=/usr/lib \
23 --without-tcltk \
24 --build=$HOST_SYSTEM \
25 --host=$HOST_SYSTEM &&
26 make THREADED_DELTA_SEARCH=1
27 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/etc/init.d
34 cp -a $stuff/git-daemon $fs/etc/init.d
35 cp -a $install/usr $fs/
36 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
37 }
39 # edit daemons.conf.
40 post_install()
41 {
42 local root
43 root=$1
44 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
45 mkdir $root/var/www/git
46 echo '# Git daemon options.' >> $root/etc/daemons.conf
47 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
48 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
49 echo '' >> $root/etc/daemons.conf
50 fi
51 }