net-proxy/zaproxy: fix for gentoo prefix systems

This commit is contained in:
João Lucas 2024-12-28 15:12:39 +00:00
parent 50183d32f8
commit d3e2f8e2e0
No known key found for this signature in database
GPG key ID: 6404947A3E15D5AB
2 changed files with 8 additions and 4 deletions

View file

@ -94,6 +94,8 @@ src_prepare() {
src_install() {
dodir /opt/"${PN}"
cp -R "${S}"/* "${D}/opt/${PN}" || die "Install failed!"
dosym -r "${EPREFIX}"/opt/"${PN}"/zap.sh /usr/bin/zaproxy
insinto /opt/"${PN}"
doins -r "${S}"/*
fperms +x /opt/"${PN}"/zap.sh
dosym -r /opt/"${PN}"/zap.sh /usr/bin/zaproxy
}

View file

@ -94,6 +94,8 @@ src_prepare() {
src_install() {
dodir /opt/"${PN}"
cp -R "${S}"/* "${D}/opt/${PN}" || die "Install failed!"
dosym -r "${EPREFIX}"/opt/"${PN}"/zap.sh /usr/bin/zaproxy
insinto /opt/"${PN}"
doins -r "${S}"/*
fperms +x /opt/"${PN}"/zap.sh
dosym -r /opt/"${PN}"/zap.sh /usr/bin/zaproxy
}