Advertisement
Necrose99

Untitled

Jul 6th, 2020
1,970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=6
  5.  
  6. EGO_PN="github.com/takuzoo3868/${PN}"
  7. S="${WORKDIR}/${P}/src/${EGO_PN}"
  8.  
  9. if [[ ${PV} == *9999 ]]; then
  10.     inherit golang-vcs
  11.  
  12. else
  13.     #SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  14.     KEYWORDS="~amd64 ~arm64 ~arm ~*"
  15.     #inherit golang-vcs-snapshot
  16.     RESTRICT="mirror"
  17.     inherit golang-vcs git-r3
  18.     EGIT_REPO_URI="https://${EGO_PN}"
  19.     EGIT_COMMIT="cf3408ca12512f20f7c531c9977441aaad8cf5e0"
  20.     EGIT_CHECKOUT_DIR="${S}"
  21.     EGIT_BRANCH="master"
  22.  
  23. fi
  24.  
  25.  
  26. inherit golang-build
  27. DESCRIPTION="This is a tool for searching CVEs in Metasploit-Framework DB With Vuls.io/vulsrepo "
  28. HOMEPAGE="https://github.com/takuzoo3868/go-msfdb"
  29.  
  30. LICENSE="GPL-3"
  31. SLOT="0"
  32.  
  33. RDEPEND="dev-go/golint
  34.     dev-go/godep
  35.     app-admin/vuls"
  36.  
  37. #  
  38. src_compile() {
  39. golang-build_src_compile golint/godep
  40. #else emake all to GNUmakefile#
  41. }
  42.  
  43. src_install() {
  44.     exeinto "$(get_golibdir_gopath)"/bin
  45.     doexe /usr/bin/${PN}"
  46.         fperms 0755 "/usr/bin/${PN}"
  47.         keepdir "/var/log/vuls" "/var/lib/vuls"
  48.         ## hotfix for dir
  49.         dosym "/var/log/vuls" "/var/log/${PN}"
  50.         dodoc src/"${EGO_PN}"/{README.md,Dockerfile}
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement