template 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Template file for 'delphinusdnsd'
  2. pkgname=delphinusdnsd
  3. version=1.7.3
  4. revision=1
  5. _delphinusdnsVersion=1_7_3
  6. build_style=configure
  7. configure_script="./configure"
  8. conf_files="/etc/delphinusdns/delphinusdns.conf"
  9. hostmakedepends="mk-configure bison"
  10. makedepends="openssl-devel libbsd-devel libmd-devel libtls-devel"
  11. short_desc="Delphinusdns is a small authoritative nameserver"
  12. maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
  13. license="BSD-3-Clause"
  14. homepage="https://delphinusdns.org"
  15. distfiles="https://github.com/delphinusdns/${pkgname}/archive/RELEASE_${_delphinusdnsVersion}.tar.gz"
  16. checksum=f4825d38a1c5030def1c7a867fc302f7656e434eadad83339db16d39f8d001f1
  17. patch_args="-Np0"
  18. system_accounts="_ddd"
  19. if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
  20. makedepends+=" musl-legacy-compat"
  21. fi
  22. do_install() {
  23. vbin dddctl/dddctl
  24. vbin delphinusdnsd/delphinusdnsd
  25. vmkdir etc/delphinusdns/
  26. vmkdir usr/share/examples/delphinusdnsd
  27. mv examples/Master/* ${DESTDIR}/usr/share/examples/delphinusdnsd
  28. mv examples/Replicant/* ${DESTDIR}/usr/share/examples/delphinusdnsd
  29. chmod 0644 ${DESTDIR}/usr/share/examples/delphinusdnsd/*
  30. vinstall delphinusdns.conf 0644 etc/delphinusdns/
  31. vman delphinusdns.conf.5
  32. vman delphinusdnsd.8
  33. vman dddctl.8
  34. sed -n '2,25p' < ddd-dns.h > LICENSE.BSD-3-Clause
  35. vlicense LICENSE.BSD-3-Clause
  36. }