1
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= maradns
  5. PKG_VERSION:= 1.4.05
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= aff277f6ba0e1ff46d32a60ab84f16cb
  8. PKG_DESCR:= small and secure DNS server
  9. PKG_SECTION:= 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. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MARADNS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \
  18. RPM_BUILD_ROOT="${WRKINST}"
  19. pre-install:
  20. @mkdir -p ${WRKINST}/usr/{sbin,bin,man/man{1,5,8}}
  21. do-configure:
  22. (cd ${WRKBUILD} && ./configure);
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns
  25. ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin
  26. ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc
  27. ${INSTALL_DATA} ./files/sample.{zone,ptr} \
  28. ${IDIR_MARADNS}/etc/maradns/
  29. ${CP} ${WRKINST}/usr/bin/{askmara,getzone} ${IDIR_MARADNS}/usr/bin/
  30. ${CP} ${WRKINST}/usr/sbin/{maradns,zoneserver} \
  31. ${IDIR_MARADNS}/usr/sbin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk