Makefile 1004 B

1234567891011121314151617181920212223242526272829303132
  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.7.1
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= popt
  8. PKG_MD5SUM:= 552639142e163745f6bcd4f1f3816d8a
  9. PKG_DESCR:= logfile rotation utility
  10. PKG_SECTION:= misc
  11. PKG_DEPENDS:= libpopt
  12. PKG_SITES:= http://ftp.debian.org/debian/pool/main/l/logrotate/
  13. DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.orig.tar.gz
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LOGROTATE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TCFLAGS+= -D_GNU_SOURCE -DLinux -DVERSION=\"$(PKG_VERSION)\"
  17. ALL_TARGET= logrotate
  18. BUILD_STYLE= auto
  19. do-install:
  20. ${INSTALL_DIR} ${IDIR_LOGROTATE}/usr/sbin
  21. ${CP} ${WRKBUILD}/logrotate ${IDIR_LOGROTATE}/usr/sbin
  22. ${INSTALL_DIR} ${IDIR_LOGROTATE}/etc/logrotate.d
  23. ${CP} ./files/logrotate.conf ${IDIR_LOGROTATE}/etc
  24. include ${TOPDIR}/mk/pkg-bottom.mk