lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1651B)


      1 #
      2 # Copyright (C) 2006-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=logrotate
     11 PKG_VERSION:=3.10.0
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:= https://github.com/logrotate/logrotate/releases/download/$(PKG_VERSION)
     16 PKG_MD5SUM:=888f58caf07082c76f5dd39e5d30ec12
     17 PKG_LICENSE:=GPL-2.0
     18 
     19 include $(INCLUDE_DIR)/package.mk
     20 
     21 define Package/logrotate
     22   SECTION:=utils
     23   CATEGORY:=Utilities
     24   DEPENDS:=+libpopt
     25   TITLE:=rotates, compresses, and mails system logs
     26   URL:=https://github.com/logrotate/logrotate
     27   MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
     28 endef
     29 
     30 define Package/logrotate/description
     31  logrotate is designed to ease administration of systems that generate large
     32  numbers of log files. It allows auto-matic rotation, compression, removal and
     33  mailing of log files. Each log file may be handled daily, weekly, monthly or
     34  when it grows too large.
     35 endef
     36 
     37 define Package/logrotate/conffiles
     38 /etc/logrotate.conf
     39 endef
     40 
     41 CONFIGURE_ARGS += --with-acl=no
     42 
     43 EXTRA_CFLAGS += $(TARGET_CPPFLAGS) -Wno-nonnull-compare
     44 EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
     45 
     46 define Build/Compile
     47 	$(call Build/Compile/Default, \
     48 		RPM_OPT_FLAGS:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
     49 		LDFLAGS="$(EXTRA_LDFLAGS)" \
     50 		logrotate \
     51 	)
     52 endef
     53 
     54 define Package/logrotate/install	
     55 	$(INSTALL_DIR) $(1)/usr/sbin
     56 	$(INSTALL_BIN) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
     57 	$(INSTALL_DIR) $(1)/etc
     58 	$(INSTALL_DATA) ./files/logrotate.conf $(1)/etc/
     59 	$(INSTALL_DIR) $(1)/etc/logrotate.d
     60 endef
     61 
     62 $(eval $(call BuildPackage,logrotate))