Makefile 1.4 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= maradns
  5. PKG_VERSION:= 1.3.07.09
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1d221438fb4d9317263555262b9c652c
  8. PKG_DESCR:= small and secure DNS server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://www.maradns.org
  12. PKG_SITES:= http://www.maradns.org/download/1.3/${PKG_VERSION}/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. BUILD_STYLE:= auto
  17. MAKE_FLAGS+= CFLAGS="${TCFLAGS}" \
  18. FLAGS="${TCFLAGS}" \
  19. CC="${TARGET_CC}" \
  20. HOSTCC="${HOSTCC}"
  21. INSTALL_STYLE:= auto
  22. FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \
  23. RPM_BUILD_ROOT="${WRKINST}"
  24. pre-install:
  25. mkdir -p ${WRKINST}/usr/{bin,sbin}
  26. mkdir -p ${WRKINST}/usr/man/man{1,5,8}
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns
  29. ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin
  30. ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc
  31. ${INSTALL_DATA} ./files/sample.{zone,ptr} ${IDIR_MARADNS}/etc/maradns/
  32. ${CP} ${WRKINST}/usr/bin/{askmara,getzone} ${IDIR_MARADNS}/usr/bin/
  33. ${CP} ${WRKINST}/usr/sbin/{maradns,zoneserver} ${IDIR_MARADNS}/usr/sbin/
  34. include ${TOPDIR}/mk/pkg-bottom.mk