1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.03
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9e715104234cc9bf01e2afaad27eb787
  8. PKG_DESCR:= small and secure DNS server
  9. PKG_SECTION:= dns
  10. PKG_NOPARALLEL:= 1
  11. PKG_DEPENDS:= libpthread
  12. PKG_URL:= http://www.maradns.org
  13. PKG_SITES:= http://www.maradns.org/download/1.4/${PKG_VERSION}/
  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/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