wok-next view git/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | c4e53a39395a |
children | f08ef8cf230f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="git"
4 VERSION="2.16.2"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://git-scm.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
14 # NO_NSEC=1
15 CROSS_BUGS="bug: can't run test and make package."
17 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
18 tar bzip2 gettext-tools"
20 compile_rules() {
21 ./configure \
22 --prefix=/usr \
23 --with-gitconfig=/etc/gitconfig \
24 --libexecdir=/usr/lib \
25 --without-tcltk \
26 $CONFIGURE_ARGS &&
27 make THREADED_DELTA_SEARCH=1 &&
28 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install || return 1
30 install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon
31 }
33 genpkg_rules() {
34 copy @std
35 DEPENDS="zlib openssl curl expat"
36 }
38 # edit daemons.conf.
39 post_install() {
40 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
41 mkdir -p "$1/var/www/git"
42 cat >> "$1/etc/daemons.conf" <<EOT
43 # Git daemon options.
44 GIT_REPO="/var/www/git/"
45 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
47 EOT
48 fi
49 }