logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

skeud-9999.ebuild (1639B)


  1. # Copyright 2021-2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. DESCRIPTION="Simple and portable utilities to deal with user accounts (su, login)"
  5. HOMEPAGE="https://hacktivis.me/git/skeud"
  6. if [[ "${PV}" = *9999* ]]; then
  7. inherit git-r3
  8. EGIT_REPO_URI="https://anongit.hacktivis.me/git/skeud.git"
  9. else
  10. VERIFY_SIG_METHOD=signify
  11. inherit verify-sig
  12. SRC_URI="
  13. https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz
  14. verify-sig? ( https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz.sign )
  15. "
  16. KEYWORDS="~amd64 ~arm64 ~riscv"
  17. fi
  18. LICENSE="MPL-2.0"
  19. SLOT="0"
  20. IUSE="static test"
  21. RESTRICT="!test? ( test )"
  22. DEPEND="virtual/libcrypt:="
  23. RDEPEND="${DEPEND}"
  24. BDEPEND="
  25. test? (
  26. dev-libs/atf
  27. dev-util/kyua
  28. )
  29. "
  30. if [[ "${PV}" != 9999* ]]
  31. then
  32. BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2025 )"
  33. VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2025.pub"
  34. src_unpack() {
  35. if use verify-sig; then
  36. # Too many levels of symbolic links workaround
  37. cd "${WORKDIR}" || die
  38. cp "${DISTDIR}/${P}.tar.gz" "${DISTDIR}/${P}.tar.gz.sign" "${WORKDIR}/" || die
  39. verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign"
  40. unpack "${WORKDIR}/${P}.tar.gz"
  41. rm "${WORKDIR}/${P}.tar.gz"
  42. else
  43. default
  44. fi
  45. }
  46. fi
  47. src_compile() {
  48. use static && export LDSTATIC='-static'
  49. default
  50. }
  51. src_install() {
  52. emake install DESTDIR="${D}" PREFIX='/opt/lanodan' SYS_BINDIR='/opt/lanodan/bin'
  53. # before 50baselayout
  54. newenvd - 40skeud <<-EOF
  55. PATH="/opt/lanodan/bin"
  56. MANPATH="/opt/lanodan/share/man"
  57. EOF
  58. }