diff options
author | Chen, Chih-Chia <pigfoot@gmail.com> | 2022-03-16 19:07:42 +0800 |
---|---|---|
committer | Chen, Chih-Chia <pigfoot@gmail.com> | 2022-03-16 19:07:42 +0800 |
commit | 5f08c1ba3802ebdbb6958184273105a6096db49b (patch) | |
tree | be7e1a51071ea10bb45c2ee064285865a03fa431 /net-analyzer | |
parent | [net-misc/BaiduPCS-Go] upgrade from upstream (diff) | |
download | pigfoot-5f08c1ba3802ebdbb6958184273105a6096db49b.tar.gz pigfoot-5f08c1ba3802ebdbb6958184273105a6096db49b.tar.bz2 pigfoot-5f08c1ba3802ebdbb6958184273105a6096db49b.zip |
apply new go-module guideline
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/amass/amass-9999.ebuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/net-analyzer/amass/amass-9999.ebuild b/net-analyzer/amass/amass-9999.ebuild index b130786..0049921 100644 --- a/net-analyzer/amass/amass-9999.ebuild +++ b/net-analyzer/amass/amass-9999.ebuild @@ -10,6 +10,7 @@ inherit go-module if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://${EGO_PN}.git" + EGO_VER="devel" src_unpack() { git-r3_src_unpack @@ -18,17 +19,14 @@ if [[ ${PV} == *9999* ]]; then else EGO_VER="v${PV}" #SRC_URI="https://${EGO_PN}/archive/${EGO_VER}.tar.gz -> ${P}.tar.gz" - - #SRC_URI+="${EGO_SUM_SRC_URI}" - #S="${WORKDIR}/Amass-${PV}" inherit git-r3 EGIT_REPO_URI="https://${EGO_PN}.git" EGIT_COMMIT="${EGO_VER}" - src_unpack() { - git-r3_src_unpack - go-module_live_vendor - } + src_unpack() { + git-r3_src_unpack + go-module_live_vendor + } KEYWORDS="~amd64 ~x86 ~arm64 ~arm" fi @@ -45,17 +43,18 @@ src_compile() { use pie && local build_pie="-buildmode=pie" local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )" + local ld_flags="" set -- env \ CGO_ENABLED=0 \ - go build -o "bin/${PN}" -mod=vendor -v -work -x ${build_flags} \ + go build -o "bin/${PN}" -mod=vendor -v -work -x "${build_flags}" -ldflags "${ld_flags}" \ ./cmd/${PN} echo "$@" "$@" || die } src_install() { - dobin bin/${PN} + dobin bin/* insinto /etc/amass doins "${S}"/examples/config.ini |