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

Up openssl 1.1.1n (bump packages curl, git, wget, python), up cherokee 1.2.104 and bdeps (automake, openldap, cyrus-sasl)
author Stanislas Leduc <shann@slitaz.org>
date Sun Apr 02 14:34:44 2023 +0000 (21 months ago)
parents c9eb1de0c7df
children
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 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="https://www.kernel.org/pub/software/scm/git/$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 }