Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Copyright 1999-2018 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=6
- EGO_PN="github.com/takuzoo3868/${PN}"
- S="${WORKDIR}/${P}/src/${EGO_PN}"
- if [[ ${PV} == *9999 ]]; then
- inherit golang-vcs
- else
- #SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~arm64 ~arm ~*"
- #inherit golang-vcs-snapshot
- RESTRICT="mirror"
- inherit golang-vcs git-r3
- EGIT_REPO_URI="https://${EGO_PN}"
- EGIT_COMMIT="cf3408ca12512f20f7c531c9977441aaad8cf5e0"
- EGIT_CHECKOUT_DIR="${S}"
- EGIT_BRANCH="master"
- fi
- inherit golang-build
- DESCRIPTION="This is a tool for searching CVEs in Metasploit-Framework DB With Vuls.io/vulsrepo "
- HOMEPAGE="https://github.com/takuzoo3868/go-msfdb"
- LICENSE="GPL-3"
- SLOT="0"
- RDEPEND="dev-go/golint
- dev-go/godep
- app-admin/vuls"
- #
- src_compile() {
- golang-build_src_compile golint/godep
- #else emake all to GNUmakefile#
- }
- src_install() {
- exeinto "$(get_golibdir_gopath)"/bin
- doexe /usr/bin/${PN}"
- fperms 0755 "/usr/bin/${PN}"
- keepdir "/var/log/vuls" "/var/lib/vuls"
- ## hotfix for dir
- dosym "/var/log/vuls" "/var/log/${PN}"
- dodoc src/"${EGO_PN}"/{README.md,Dockerfile}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement