diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2019-04-10 11:02:24 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-30 11:22:12 +0000 |
commit | 230e7972a0b693c517793bb44366f3114ce8eba3 (patch) | |
tree | 983215e1004a939ab7af01ab99a6902c6cb8cfa5 /main/git/APKBUILD | |
parent | 0e22b8ed0be2f72f048e2dbb9e72406ad39038a7 (diff) | |
download | aports-230e7972a0b693c517793bb44366f3114ce8eba3.tar.bz2 aports-230e7972a0b693c517793bb44366f3114ce8eba3.tar.xz |
main/git: Split deamon's openrc scripts
It seems to be reasonably common to have openrc scripts in their own
package. Autodetection here however fails as the openrc-daemon is
already a separate pacakge.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'main/git/APKBUILD')
-rw-r--r-- | main/git/APKBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD index 75af6258a1..374f4ac7f4 100644 --- a/main/git/APKBUILD +++ b/main/git/APKBUILD @@ -32,6 +32,7 @@ subpackages="$pkgname-doc $pkgname-cvs::noarch $pkgname-p4::noarch $pkgname-daemon + $pkgname-daemon-openrc:daemon_openrc $pkgname-gitweb::noarch $pkgname-subtree::noarch $pkgname-subtree-doc:subtree_doc:noarch @@ -158,8 +159,15 @@ daemon() { "$pkgdir"/$_gitcoredir/git-http-backend \ "$pkgdir"/$_gitcoredir/git-shell \ "$subpkgdir"/$_gitcoredir/ +} + +daemon_openrc() { + pkgdesc="Git protocol daemon" + + default_openrc - mv "$pkgdir"/etc "$subpkgdir"/ + depends="git-daemon=${pkgver}-r${pkgrel} ${depends_openrc}" + install_if="openrc ${pkgname}-daemon=${pkgver}-r${pkgrel}" } gitweb() { |