1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= maradns
  5. PKG_VERSION:= 1.4.05
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d23ca1301dfff220beed8847466785c077e94bed931cf81668c3a23ae461a680
  8. PKG_DESCR:= small and secure DNS server
  9. PKG_SECTION:= net/dns
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://www.maradns.org
  12. PKG_SITES:= http://www.maradns.org/download/1.4/${PKG_VERSION}/
  13. PKG_NOPARALLEL:= 1
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \
  19. RPM_BUILD_ROOT="${WRKINST}"
  20. pre-install:
  21. @mkdir -p ${WRKINST}/usr/{sbin,bin,man/man{1,5,8}}
  22. do-configure:
  23. (cd ${WRKBUILD} && ./configure);
  24. maradns-install:
  25. ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns
  26. ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin
  27. ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc
  28. ${INSTALL_DATA} ./files/sample.{zone,ptr} \
  29. ${IDIR_MARADNS}/etc/maradns/
  30. ${CP} ${WRKINST}/usr/bin/{askmara,getzone} ${IDIR_MARADNS}/usr/bin/
  31. ${CP} ${WRKINST}/usr/sbin/{maradns,zoneserver} \
  32. ${IDIR_MARADNS}/usr/sbin/
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk