Blame view

buildroot/buildroot-2016.08.1/package/logrotate/logrotate.mk 1.08 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  ################################################################################
  #
  # logrotate
  #
  ################################################################################
  
  LOGROTATE_VERSION = 3.9.2
  LOGROTATE_SITE = $(call github,logrotate,logrotate,$(LOGROTATE_VERSION))
  LOGROTATE_LICENSE = GPLv2+
  LOGROTATE_LICENSE_FILES = COPYING
  LOGROTATE_DEPENDENCIES = popt host-pkgconf
  # tarball does not have a generated configure script
  LOGROTATE_AUTORECONF = YES
  LOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
  LOGROTATE_CONF_OPTS = --without-selinux
  LOGROTATE_PATCH = https://github.com/logrotate/logrotate/commit/6a36c105587b07ad14fc937f3ee6e2eb402621a2.patch
  
  ifeq ($(BR2_PACKAGE_ACL),y)
  LOGROTATE_DEPENDENCIES += acl
  LOGROTATE_CONF_OPTS += --with-acl
  else
  LOGROTATE_CONF_OPTS += --without-acl
  endif
  
  define LOGROTATE_INSTALL_TARGET_CONF
  	$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
  	$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
  endef
  LOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF
  
  $(eval $(autotools-package))