git: add netrc subpackage.

This commit is contained in:
travankor 2019-10-29 04:27:31 -07:00 committed by Michael Aldridge
parent 810f3126e1
commit 5eb4a450aa
2 changed files with 13 additions and 2 deletions

1
srcpkgs/git-netrc Symbolic link
View File

@ -0,0 +1 @@
git/

View File

@ -1,7 +1,7 @@
# Template file for 'git'
pkgname=git
version=2.24.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-curl --with-expat --with-tcltk --with-libpcre2
ac_cv_snprintf_returns_bogus=no"
@ -20,7 +20,7 @@ checksum=9f71d61973626d8b28c4cdf8e2484b4bf13870ed643fed982d68b2cfd754371b
replaces="git-perl>=0"
register_shell=/usr/bin/git-shell
subpackages="git-cvs git-svn gitk git-gui git-all git-libsecret"
subpackages="git-cvs git-svn gitk git-gui git-all git-libsecret git-netrc"
case "$XBPS_TARGET_MACHINE" in
*-musl)
@ -61,6 +61,7 @@ post_install() {
vinstall contrib/git-jump/README 644 usr/share/doc/git-jump
make -C contrib/subtree DESTDIR=${DESTDIR} prefix=/usr install install-man
vinstall contrib/credential/libsecret/git-credential-libsecret 755 usr/libexec/git-core
vinstall contrib/credential/netrc/git-credential-netrc 755 usr/libexec/git-core
}
git-cvs_package() {
@ -126,3 +127,12 @@ git-libsecret_package() {
vmove usr/libexec/git-core/git-credential-libsecret
}
}
git-netrc_package() {
depends="git-${version}_${revision}"
archs=noarch
short_desc+=" - netrc credential helper"
pkg_install() {
vmove usr/libexec/git-core/git-credential-netrc
}
}