mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
syslog-ng: update to version 3.19.1
Makefile - Changed URL - Added LICENSE, CPE ID, more dependencies, postint and prerm scripts - Enabled by default JSON and HTTP (would be good to split them in future to sub-packages); Disabled java-modules, tcp wrapper - Re-ordered CONFIGURE_ARGS as they occur when executing - Resorted section: define Package/syslog-ng/install syslog-ng.conf - include scl.conf - have a more specific one than upstream (they have it really simple) - document it Patch: remove the unnecessary one Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
+56
-44
@@ -1,26 +1,33 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=syslog-ng
|
||||
PKG_VERSION:=3.17.2
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=3.19.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||
PKG_LICENSE:=LGPL-2.1+
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_CPE_ID:=cpe:/a:balabit:syslog-ng
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/balabit/syslog-ng/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
|
||||
PKG_HASH:=73601f7ca13c6b534318d5b0648ec1833aa9ca0516d6c3f90085b090d548c50b
|
||||
PKG_HASH:=5cf931a9d7bead0e6d9a2c65eee8f6005a005878f59aa280f3c4294257ed5178
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_IPV6 \
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/syslog-ng
|
||||
SECTION:=admin
|
||||
CATEGORY:=Administration
|
||||
DEPENDS:=+libpcre +glib2 +libopenssl +libuuid +libcurl
|
||||
DEPENDS:=+libpcre +glib2 +libopenssl +libpthread +librt +zlib +libdbi +psmisc +libjson-c +libcurl +libuuid
|
||||
TITLE:=A powerful syslog daemon
|
||||
URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
|
||||
URL:=https://www.syslog-ng.com/products/open-source-log-management/
|
||||
endef
|
||||
|
||||
define Package/syslog-ng/description
|
||||
@@ -32,6 +39,7 @@ endef
|
||||
define Package/syslog-ng/conffiles
|
||||
/etc/syslog-ng.conf
|
||||
/etc/syslog-ng.d/
|
||||
/etc/scl.conf
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
@@ -39,55 +47,59 @@ define Build/Configure
|
||||
$(Build/Configure/Default)
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
$(call autoconf_bool,CONFIG_IPV6,ipv6) \
|
||||
--disable-dependency-tracking \
|
||||
--disable-amqp \
|
||||
--disable-tcp-wrapper \
|
||||
--disable-glibtest \
|
||||
--disable-mongodb \
|
||||
--disable-java \
|
||||
--disable-json \
|
||||
--disable-python \
|
||||
--disable-spoof-source \
|
||||
--disable-sql \
|
||||
--disable-linux-caps \
|
||||
--disable-smtp \
|
||||
--disable-redis \
|
||||
--enable-prce \
|
||||
|
||||
TARGET_CPPFLAGS += \
|
||||
-I$(STAGING_DIR)/usr/include/eventlog
|
||||
CONFIGURE_ARGS += \
|
||||
$(call autoconf_bool,CONFIG_IPV6,ipv6) \
|
||||
--disable-tcp-wrapper \
|
||||
--disable-spoof-source \
|
||||
--disable-sql \
|
||||
--disable-linux-caps \
|
||||
--with-jsonc=system \
|
||||
--enable-json=yes \
|
||||
--enable-http=yes \
|
||||
--disable-smtp \
|
||||
--disable-redis \
|
||||
--disable-dependency-tracking \
|
||||
--disable-python \
|
||||
--disable-java \
|
||||
--disable-java-modules \
|
||||
--with-librabbitmq-client=no \
|
||||
--with-mongoc=no
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
|
||||
LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
|
||||
|
||||
define Package/syslog-ng/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
install-sbinPROGRAMS install-libLTLIBRARIES \
|
||||
install-moduleLTLIBRARIES DESTDIR="$(1)"
|
||||
cd $(PKG_BUILD_DIR); make DESTDIR=$(1) install
|
||||
|
||||
$(call libtool_remove_files,$(1)) # This removes .la files in folder (including subfolders) /usr/lib
|
||||
rm -rf $(1)/usr/lib/pkgconfig \
|
||||
$(1)/usr/lib/*.a \
|
||||
$(1)/usr/include \
|
||||
$(1)/var
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
|
||||
$(INSTALL_DIR) $(1)/etc/syslog-ng.d
|
||||
$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
|
||||
$(INSTALL_DIR) $(1)/etc/syslog-ng.d/
|
||||
$(call libtool_remove_files,$(1))
|
||||
touch $(1)/etc/syslog-ng.d/.keep
|
||||
endef
|
||||
|
||||
define Package/syslog-ng/postinst
|
||||
#!/bin/sh
|
||||
|
||||
[ -n "$$IPKG_INSTROOT" ] || {
|
||||
/etc/init.d/syslog-ng enable
|
||||
/etc/init.d/syslog-ng restart
|
||||
}
|
||||
endef
|
||||
|
||||
define Package/syslog-ng/prerm
|
||||
#!/bin/sh
|
||||
# check if we are on real system
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
# wish we had pidof unconditionally
|
||||
pid=$(ps | grep syslog | grep -v grep | awk '{ print $$1; }')
|
||||
[ -n "$$pid" ] && /etc/init.d/syslog-ng stop
|
||||
[ "$${PKG_UPGRADE}" != "1" ] && {
|
||||
echo "Removing rc.d symlink for syslog-ng"
|
||||
/etc/init.d/syslog-ng disable
|
||||
}
|
||||
fi
|
||||
exit 0
|
||||
#!/bin/sh
|
||||
|
||||
[ -n "$$IPKG_INSTROOT" ] || {
|
||||
/etc/init.d/syslog-ng disable
|
||||
/etc/init.d/syslog-ng stop
|
||||
}
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,syslog-ng))
|
||||
|
||||
Reference in New Issue
Block a user