lede-packages-rs

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

Makefile (2135B)


      1 include  $(TOPDIR)/rules.mk
      2 
      3 PKG_NAME:=syslog-ng
      4 PKG_VERSION:=3.9.1
      5 PKG_RELEASE:=2
      6 
      7 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
      8 
      9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     10 PKG_SOURCE_URL:=https://github.com/balabit/syslog-ng/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
     11 PKG_MD5SUM:=1b48da9ef620cf06e55e481b5abb677a
     12 PKG_HASH:=5678856a550ae790618fabde9d1447f932ce7a9080d55dca8fc5df1202c70a17
     13 
     14 PKG_INSTALL:=1
     15 
     16 include $(INCLUDE_DIR)/package.mk
     17 include $(INCLUDE_DIR)/nls.mk
     18 
     19 define Package/syslog-ng
     20   SECTION:=admin
     21   CATEGORY:=Administration
     22   DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libuuid +libcurl
     23   TITLE:=A powerful syslog daemon
     24   URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
     25 endef
     26 
     27 define Package/syslog-ng/description
     28   syslog-ng reads and logs messages to the system console, log
     29   files, other machines and/or users as specified by its
     30   configuration file.
     31 endef
     32 
     33 define Package/syslog-ng/conffiles
     34   /etc/syslog-ng.conf
     35 endef
     36 
     37 define Build/Configure
     38 	$(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
     39 	$(Build/Configure/Default)
     40 endef
     41 
     42 CONFIGURE_ARGS += \
     43   $(call autoconf_bool,CONFIG_IPV6,ipv6) \
     44          --disable-dependency-tracking \
     45          --disable-amqp \
     46          --disable-tcp-wrapper \
     47          --disable-glibtest \
     48          --disable-mongodb \
     49          --disable-java \
     50          --disable-json \
     51          --disable-python \
     52          --disable-spoof-source \
     53          --disable-sql \
     54          --disable-linux-caps \
     55 	 --disable-smtp \
     56 	 --disable-redis \
     57          --enable-prce \
     58 
     59 TARGET_CPPFLAGS += \
     60   -I$(STAGING_DIR)/usr/include/eventlog
     61 
     62 CONFIGURE_VARS += \
     63   LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
     64 
     65 define Package/syslog-ng/install
     66 	$(INSTALL_DIR) $(1)/usr/lib
     67 	$(MAKE) -C $(PKG_BUILD_DIR) \
     68 		install-sbinPROGRAMS install-libLTLIBRARIES \
     69 		install-moduleLTLIBRARIES DESTDIR="$(1)"
     70 	$(INSTALL_DIR) $(1)/etc/init.d
     71 	$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
     72 	$(INSTALL_DIR) $(1)/etc
     73 	$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
     74 	$(call libtool_remove_files,$(1))
     75 endef
     76 
     77 $(eval $(call BuildPackage,syslog-ng))