Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= maradns
  7. PKG_VERSION:= 1.0.41
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 9abc13da25c1103d788ee9def1c8e764
  10. PKG_DESCR:= small and secure DNS server
  11. PKG_SECTION:= net
  12. PKG_DEPENDS:= libpthread
  13. PKG_URL:= http://www.maradns.org
  14. PKG_SITES:= http://www.maradns.org/download/1.0/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. BUILD_STYLE:= auto
  19. MAKE_FLAGS+= CFLAGS="${TCFLAGS}" \
  20. FLAGS="${TCFLAGS}" \
  21. CC="${TARGET_CC}" \
  22. HOSTCC="${HOSTCC}"
  23. INSTALL_STYLE:= auto
  24. FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \
  25. RPM_BUILD_ROOT="${WRKINST}"
  26. pre-install:
  27. mkdir -p ${WRKINST}/usr/{bin,sbin}
  28. mkdir -p ${WRKINST}/usr/man/man{1,5,8}
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns
  31. ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin
  32. ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc
  33. ${INSTALL_DATA} ./files/sample.{zone,ptr} ${IDIR_MARADNS}/etc/maradns/
  34. ${CP} ${WRKINST}/usr/bin/{askmara,getzone} ${IDIR_MARADNS}/usr/bin/
  35. ${CP} ${WRKINST}/usr/sbin/{maradns,zoneserver} ${IDIR_MARADNS}/usr/sbin/
  36. include ${TOPDIR}/mk/pkg-bottom.mk