Skip to content

Commit

Permalink
net-misc/axel: update 9999 ebuild with latest URI, flags and instruct…
Browse files Browse the repository at this point in the history
…ions.

Signed-off-by: Antonio Quartulli <[email protected]>
Package-Manager: Portage-2.3.8, Repoman-2.3.3
  • Loading branch information
ordex authored and monsieurp committed Oct 27, 2017
1 parent 141e2f0 commit 277d3f4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions net-misc/axel/axel-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ EAPI=6
inherit autotools git-r3

DESCRIPTION="Light Unix download accelerator"
HOMEPAGE="https://github.com/eribertomota/axel"
HOMEPAGE="https://github.com/axel-download-accelerator/axel"
SRC_URI=""
EGIT_REPO_URI="https://github.com/eribertomota/axel.git"
EGIT_REPO_URI="https://github.com/axel-download-accelerator/axel.git"

LICENSE="GPL-2"
SLOT="0"
Expand Down Expand Up @@ -38,12 +38,19 @@ src_prepare() {
src_configure() {
econf \
$(use_enable nls) \
$(use_with ssl openssl)
$(use_with ssl)
}

pkg_postinst() {
einfo 'To use axel with portage, try these settings in your make.conf'
einfo 'To use axel with portage, create a script in'
einfo '/usr/local/bin/fetchwrapper.sh with the following content:'
einfo
einfo ' FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
einfo ' #!/bin/bash'
einfo ' set -e'
einfo ' /usr/bin/axel -o "$1.axel" "$2"'
einfo ' mv "$1.axel" "$1"'
einfo
einfo 'and then add the following to your make.conf:'
einfo ' FETCHCOMMAND='\''/usr/local/bin/fetchwrapper.sh "\${DISTDIR}/\${FILE}" "\${URI}"'\'
einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
}

0 comments on commit 277d3f4

Please sign in to comment.