From 5eb4a450aabce7bc22713ef7409a927072806510 Mon Sep 17 00:00:00 2001 From: travankor Date: Tue, 29 Oct 2019 04:27:31 -0700 Subject: [PATCH] git: add netrc subpackage. --- srcpkgs/git-netrc | 1 + srcpkgs/git/template | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/git-netrc diff --git a/srcpkgs/git-netrc b/srcpkgs/git-netrc new file mode 120000 index 00000000000..ce531e3ced1 --- /dev/null +++ b/srcpkgs/git-netrc @@ -0,0 +1 @@ +git/ \ No newline at end of file diff --git a/srcpkgs/git/template b/srcpkgs/git/template index 3325499c584..e24b0de6000 100644 --- a/srcpkgs/git/template +++ b/srcpkgs/git/template @@ -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 + } +}