mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 07:48:56 -04:00
net-analyzer/nali: new package, add 0.7.1
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
This commit is contained in:
parent
eb101f9652
commit
1232813c01
2
net-analyzer/nali/Manifest
Normal file
2
net-analyzer/nali/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST nali-0.7.1-deps.tar.xz 27238096 BLAKE2B b5f43e1953c3fee53df6bac6150db778fb12af1388cb54b120fe4d85c08691babae4ad622aa359d6a24bb4f750c644f22ea0b9b783f7a5fffd1e2cc7d8f5fd7b SHA512 57dbe710a06da169f584fd311ad784515a5b7834e84ed0dbe9c38f5dcf9c0b7348ac2aaa3a6d9547744edb28527839d06b2eae821515d7a6a934b5062d419c3c
|
||||
DIST nali-0.7.1.tar.gz 41404 BLAKE2B bc8586aef65cb781d1c603d02d2521f92cee89f177040fd4825da2c1dd90168170bf067d6942fa6aad98c01c4e88e04d067cc3104da748817ca588b3d7d8906c SHA512 99c0b796048535e52b15fdfbead39cc37c3da3629eac6257f6604c4c2a8c63f4261e5acab273b5175cbf09ed61f35d33d2ab90b4c424637215e11dc054db3e14
|
7
net-analyzer/nali/metadata.xml
Normal file
7
net-analyzer/nali/metadata.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">zu1k/nali</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
31
net-analyzer/nali/nali-0.7.1.ebuild
Normal file
31
net-analyzer/nali/nali-0.7.1.ebuild
Normal file
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="An offline tool for querying IP geographic information and CDN provider."
|
||||
HOMEPAGE="https://github.com/zu1k/nali"
|
||||
|
||||
SRC_URI="
|
||||
https://github.com/zu1k/nali/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/peeweep/gentoo-go-deps/releases/download/${P}/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
local ldflags="\
|
||||
-X \"github.com/zu1k/nali/internal/constant.Version=${PV}\" \
|
||||
-w -s"
|
||||
ego build -o ${P} -trimpath -ldflags "${ldflags}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin ${P} ${PN}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user