aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/git/APKBUILD10
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() {