aboutsummaryrefslogtreecommitdiffstats
path: root/main/git
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-24 10:03:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-07-24 10:09:19 +0000
commitd37cff4d33fd463a287edb932a3a523efde63cd6 (patch)
tree96679ed99b5ef0dcf18e7d07ab04865250d9d519 /main/git
parent0c3e72b88117d5977db692ff109cf126098e4e82 (diff)
downloadaports-d37cff4d33fd463a287edb932a3a523efde63cd6.tar.bz2
aports-d37cff4d33fd463a287edb932a3a523efde63cd6.tar.xz
main/git: improve package splitting
To save space in the 'git' package we move some of the tools to the sub packages: - git-fast-import: move to its own. only used by git-p4 - git-imap-send: move to git-email - git-remote-testsvn: move to git-svn - git-http-backend/git-shell: move to git-daemon - git-instaweb: move git-gitweb reduces size of git package with ~5M https://github.com/linuxkit/linuxkit/pull/2201#issuecomment-315308446
Diffstat (limited to 'main/git')
-rw-r--r--main/git/APKBUILD33
1 files changed, 24 insertions, 9 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index afeb5c1ac1..a541e2a536 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=git
pkgver=2.13.2
-pkgrel=0
+pkgrel=1
pkgdesc="A distributed version control system"
url="https://www.git-scm.com/"
arch="all"
@@ -15,12 +15,13 @@ subpackages="$pkgname-doc
$pkgname-bash-completion:completion:noarch
perl-$pkgname-svn:_perl_git_svn:noarch
perl-$pkgname:_perl_git:noarch
- $pkgname-svn::noarch
- $pkgname-email::noarch
+ $pkgname-svn
+ $pkgname-email
+ $pkgname-fast-import:_fast_import
$pkgname-cvs::noarch
$pkgname-p4::noarch
$pkgname-daemon
- $pkgname-gitweb::noarch
+ $pkgname-gitweb
$pkgname-subtree::noarch
$pkgname-subtree-doc:subtree_doc:noarch
$pkgname-perl:_git_perl:noarch
@@ -94,7 +95,8 @@ email() {
pkgdesc="Git tools for sending email"
replaces="git"
mkdir -p "$subpkgdir"/$_gitcoredir
- mv "$pkgdir"/$_gitcoredir/*email* "$subpkgdir"/$_gitcoredir
+ mv "$pkgdir"/$_gitcoredir/*email* "$pkgdir"/$_gitcoredir/*imap* \
+ "$subpkgdir"/$_gitcoredir
}
svn() {
@@ -104,7 +106,9 @@ svn() {
replaces=""
mkdir -p "$subpkgdir"/$_gitcoredir
- mv "$pkgdir"/$_gitcoredir/git-svn "$subpkgdir"/$_gitcoredir/
+ mv "$pkgdir"/$_gitcoredir/git-svn \
+ "$pkgdir"$_gitcoredir/git-remote-testsvn \
+ "$subpkgdir"/$_gitcoredir/
}
cvs() {
@@ -117,9 +121,16 @@ cvs() {
|| return 1
}
+_fast_import() {
+ pkgdesc="Git backend for fast Git data importers"
+ depends="git=$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/$_gitcoredir
+ mv "$pkgdir"/$_gitcoredir/git-fast-import "$subpkgdir"/$_gitcoredir/
+}
+
p4() {
pkgdesc="Git tools for working with Perforce depots"
- depends="git=$pkgver-r$pkgrel"
+ depends="git=$pkgver-r$pkgrel git-fast-import=$pkgver-r$pkgrel"
replaces="git"
mkdir -p "$subpkgdir"/$_gitcoredir/mergetools
mv "$pkgdir"/$_gitcoredir/*p4* "$subpkgdir"/$_gitcoredir/ || return 1
@@ -132,7 +143,10 @@ daemon() {
depends="git=$pkgver-r$pkgrel"
replaces="git"
mkdir -p "$subpkgdir"/$_gitcoredir
- mv "$pkgdir"/$_gitcoredir/git-daemon "$subpkgdir"/$_gitcoredir \
+ mv "$pkgdir"/$_gitcoredir/git-daemon \
+ "$pkgdir"/$_gitcoredir/git-http-backend \
+ "$pkgdir"/$_gitcoredir/git-shell \
+ "$subpkgdir"/$_gitcoredir \
|| return 1
mv "$pkgdir"/etc "$subpkgdir"/ || return 1
}
@@ -141,8 +155,9 @@ gitweb() {
pkgdesc="Simple web interface to git repositories"
depends="git=$pkgver-r$pkgrel perl"
replaces="git"
- mkdir -p "$subpkgdir"/usr/share
+ mkdir -p "$subpkgdir"/usr/share "$subpkgdir"$_gitcoredir
mv "$pkgdir"/usr/share/gitweb "$subpkgdir"/usr/share/
+ mv "$pkgdir"/$_gitcoredir/git-instaweb "$subpkgdir"$_gitcoredir
}
completion() {