mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
vulsrepo: update ebuild
This commit is contained in:
parent
d85f192594
commit
186adeec2b
2 changed files with 5 additions and 5 deletions
|
|
@ -21,8 +21,8 @@ depend() {
|
|||
}
|
||||
|
||||
checkconfig() {
|
||||
if ! [ -f "/etc/vulsrepo/vulsrepo-config.toml" ]; then
|
||||
eerror "You need an \"/etc/vulsrepo/vulsrepo-config.toml\" file to run ${RC_SVCNAME}"
|
||||
if ! [ -f "/etc/vuls/vulsrepo-config.toml" ]; then
|
||||
eerror "You need an \"/etc/vuls/vulsrepo-config.toml\" file to run ${RC_SVCNAME}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ DEPEND="${RDEPEND}
|
|||
|
||||
pkg_setup() {
|
||||
enewgroup vuls
|
||||
enewuser vuls -1 -1 /dev/null vuls
|
||||
enewuser vuls -1 -1 "/var/lib/vuls" vuls
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e "/fpath, _ := (os.Executable())/d" \
|
||||
-e "s:filepath.Dir(fpath)+\"/vulsrepo-config.toml\":\"/etc/${PN}/vulsrepo-config.toml\":" \
|
||||
-e "s:filepath.Dir(fpath)+\"/vulsrepo-config.toml\":\"/etc/vuls/vulsrepo-config.toml\":" \
|
||||
-i src/"${EGO_PN}"/server/main.go || die
|
||||
|
||||
default
|
||||
|
|
@ -56,7 +56,7 @@ src_compile() {
|
|||
src_install() {
|
||||
cd src/"${EGO_PN}" || die
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
insinto "/etc/vuls"
|
||||
doins "${FILESDIR}"/vulsrepo-config.toml.sample
|
||||
|
||||
insinto "/var/lib/vuls/${PN}"
|
||||
Loading…
Reference in a new issue