Makefile 1.4 KB

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