Makefile 1007 B

12345678910111213141516171819202122232425262728293031
  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:= logrotate
  5. PKG_VERSION:= 3.8.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 99e08503ef24c3e2e3ff74cc5f3be213
  8. PKG_DESCR:= logfile rotation utility
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libpopt
  11. PKG_BUILDDEP:= popt
  12. PKG_SITES:= https://fedorahosted.org/releases/l/o/logrotate/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LOGROTATE,logrotate,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. TARGET_CFLAGS+= -D_GNU_SOURCE -DVERSION=\"$(PKG_VERSION)\"
  18. logrotate-install:
  19. ${INSTALL_DIR} ${IDIR_LOGROTATE}/usr/sbin
  20. ${INSTALL_BIN} ${WRKINST}/usr/sbin/logrotate ${IDIR_LOGROTATE}/usr/sbin
  21. ${INSTALL_DIR} ${IDIR_LOGROTATE}/etc/logrotate.d
  22. ${INSTALL_DATA} ./files/logrotate.conf ${IDIR_LOGROTATE}/etc
  23. include ${TOPDIR}/mk/pkg-bottom.mk