wok-next annotate git/receipt @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | c4e53a39395a |
children | f08ef8cf230f |
rev | line source |
---|---|
al@20511 | 1 # SliTaz package receipt v2. |
b1+slitaz@1825 | 2 |
b1+slitaz@1825 | 3 PACKAGE="git" |
al@20511 | 4 VERSION="2.16.2" |
b1+slitaz@1825 | 5 CATEGORY="development" |
b1+slitaz@1825 | 6 SHORT_DESC="Fast version control system" |
b1+slitaz@1825 | 7 MAINTAINER="b1+slitaz@nagel.org" |
pascal@15002 | 8 LICENSE="GPL2" |
slaxemulator@15808 | 9 WEB_SITE="http://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 |
pankso@16314 | 14 # NO_NSEC=1 |
pankso@16314 | 15 CROSS_BUGS="bug: can't run test and make package." |
slaxemulator@11009 | 16 |
al@20511 | 17 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \ |
pascal@19919 | 18 tar bzip2 gettext-tools" |
b1+slitaz@1825 | 19 |
al@20511 | 20 compile_rules() { |
pankso@4165 | 21 ./configure \ |
pankso@4165 | 22 --prefix=/usr \ |
al@20511 | 23 --with-gitconfig=/etc/gitconfig \ |
slaxemulator@11682 | 24 --libexecdir=/usr/lib \ |
pankso@4165 | 25 --without-tcltk \ |
pankso@16314 | 26 $CONFIGURE_ARGS && |
pankso@16314 | 27 make THREADED_DELTA_SEARCH=1 && |
al@20511 | 28 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install || return 1 |
al@20511 | 29 |
al@20511 | 30 install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon |
b1+slitaz@1825 | 31 } |
b1+slitaz@1825 | 32 |
al@20511 | 33 genpkg_rules() { |
al@20511 | 34 copy @std |
al@20511 | 35 DEPENDS="zlib openssl curl expat" |
b1+slitaz@1825 | 36 } |
slaxemulator@11682 | 37 |
slaxemulator@11682 | 38 # edit daemons.conf. |
al@20511 | 39 post_install() { |
pascal@18730 | 40 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then |
pascal@18730 | 41 mkdir -p "$1/var/www/git" |
al@20511 | 42 cat >> "$1/etc/daemons.conf" <<EOT |
al@20511 | 43 # Git daemon options. |
al@20511 | 44 GIT_REPO="/var/www/git/" |
al@20511 | 45 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO" |
al@20511 | 46 |
al@20511 | 47 EOT |
slaxemulator@11682 | 48 fi |
al@14645 | 49 } |