wok-next annotate git/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a3c581bf52b8 |
children | 20af6f0f7070 |
rev | line source |
---|---|
al@20511 | 1 # SliTaz package receipt v2. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
erkan@20778 | 4 VERSION="2.17.1" |
b1+slitaz@1825 | 5 CATEGORY="development" |
b1+slitaz@1825 | 6 SHORT_DESC="Fast version control system" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20906 | 9 WEB_SITE="https://git-scm.com/" |
al@20511 | 10 |
al@20511 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@16753 | 12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL" |
pankso@16314 | 13 |
al@20511 | 14 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \ |
al@21020 | 15 tar bzip2 gettext" |
b1+slitaz@1825 | 16 |
al@20511 | 17 compile_rules() { |
pankso@4165 | 18 ./configure \ |
pankso@4165 | 19 --prefix=/usr \ |
al@20511 | 20 --with-gitconfig=/etc/gitconfig \ |
slaxemulator@11682 | 21 --libexecdir=/usr/lib \ |
pankso@4165 | 22 --without-tcltk \ |
pankso@16314 | 23 $CONFIGURE_ARGS && |
pankso@16314 | 24 make THREADED_DELTA_SEARCH=1 && |
al@21020 | 25 make THREADED_DELTA_SEARCH=1 DESTDIR=$install install || return 1 |
al@20511 | 26 |
al@20511 | 27 install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon |
b1+slitaz@1825 | 28 } |
b1+slitaz@1825 | 29 |
al@20511 | 30 genpkg_rules() { |
al@20511 | 31 copy @std |
al@20511 | 32 DEPENDS="zlib openssl curl expat" |
b1+slitaz@1825 | 33 } |
slaxemulator@11682 | 34 |
slaxemulator@11682 | 35 # edit daemons.conf. |
al@20511 | 36 post_install() { |
pascal@18730 | 37 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then |
pascal@18730 | 38 mkdir -p "$1/var/www/git" |
al@20511 | 39 cat >> "$1/etc/daemons.conf" <<EOT |
al@20511 | 40 # Git daemon options. |
al@20511 | 41 GIT_REPO="/var/www/git/" |
al@20511 | 42 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO" |
al@20511 | 43 |
al@20511 | 44 EOT |
slaxemulator@11682 | 45 fi |
al@14645 | 46 } |