git: 16e48a3e7912 - main - security/libprelude: Resurrect

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 01 Apr 2022 08:41:08 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=16e48a3e791202c95fd27ab21a62c4075b5d9b67

commit 16e48a3e791202c95fd27ab21a62c4075b5d9b67
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-04-01 08:38:52 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-04-01 08:40:50 +0000

    security/libprelude: Resurrect
    
    Update to latest release 5.2.0
---
 MOVED                         |   1 -
 security/Makefile             |   1 +
 security/libprelude/Makefile  |  42 ++++++++++++++
 security/libprelude/distinfo  |   3 +
 security/libprelude/pkg-descr |  13 +++++
 security/libprelude/pkg-plist | 132 ++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 191 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index df6954255e1f..a0ef75cc5ec8 100644
--- a/MOVED
+++ b/MOVED
@@ -17095,7 +17095,6 @@ net-im/diligent||2022-03-31|Has expired: Abandoned upstream, users also confirms
 www/typo3-9||2022-03-31|Has expired: Mainstream support ended 2021-09-30
 databases/adodb||2022-03-31|Has expired: Unsupported upstream, cannot be used with PHP 8.0+
 audio/clementine-player||2022-03-31|Has expired: Last release in 2016, many issue reports upstream and little to no development for years. Please consider using audio/strawberry
-security/libprelude||2022-03-31|Has expired: Very outdated, current version in tree was released back in 2015 and upstream is still active
 www/crp||2022-03-31|Has expired: Abandonware, last release in 2003 and upstream refers to PHP 4.x and is dead
 devel/fb-adb||2022-03-31|Has expired: Last release in 2016 and deprecated by upstream, please consider using devel/android-tools-adb instead
 comms/o2sms||2022-03-31|Has expired: Abandonware, last release in 2010 and upstream is dead
diff --git a/security/Makefile b/security/Makefile
index a72925f68730..d102ee837b67 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -291,6 +291,7 @@
     SUBDIR += libotr
     SUBDIR += libotr3
     SUBDIR += libp11
+    SUBDIR += libprelude
     SUBDIR += libpwquality
     SUBDIR += libressl
     SUBDIR += libressl-devel
diff --git a/security/libprelude/Makefile b/security/libprelude/Makefile
new file mode 100644
index 000000000000..30fa23f86ea1
--- /dev/null
+++ b/security/libprelude/Makefile
@@ -0,0 +1,42 @@
+PORTNAME=	libprelude
+PORTVERSION=	5.2.0
+CATEGORIES=	security
+MASTER_SITES=	https://www.prelude-siem.org/attachments/download/1395/
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Sensor support library from Prelude SIEM
+
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libgnutls.so:security/gnutls \
+		libltdl.so:devel/libltdl \
+		libpcre.so:devel/pcre
+
+USES=		libtool localbase pkgconfig
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--without-lua \
+		--without-python3 \
+		--without-swig \
+		--without-valgrind \
+		ac_cv_path_RUBY=
+
+INSTALL_TARGET=	install-strip
+
+ETCDIR=		${PREFIX}/etc/prelude
+
+OPTIONS_DEFINE=	DOCS PERL
+OPTIONS_SUB=	yes
+
+PERL_USES=		perl5
+PERL_CONFIGURE_WITH=	perl=${PERL}
+
+post-install:
+.for f in client.conf global.conf idmef-client.conf tls.conf
+	${MV} ${STAGEDIR}${ETCDIR}/default/${f} \
+		${STAGEDIR}${ETCDIR}/default/${f}.sample
+.endfor
+
+.include <bsd.port.mk>
diff --git a/security/libprelude/distinfo b/security/libprelude/distinfo
new file mode 100644
index 000000000000..3addcb721ba1
--- /dev/null
+++ b/security/libprelude/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1648786682
+SHA256 (libprelude-5.2.0.tar.gz) = 187e025a5d51219810123575b32aa0b40037709a073a775bc3e5a65aa6d6a66e
+SIZE (libprelude-5.2.0.tar.gz) = 2902019
diff --git a/security/libprelude/pkg-descr b/security/libprelude/pkg-descr
new file mode 100644
index 000000000000..dbaa74427df8
--- /dev/null
+++ b/security/libprelude/pkg-descr
@@ -0,0 +1,13 @@
+Prelude is a Universal "Security Information & Event Management" (SIEM)
+system.  Prelude collects, normalizes, sorts, aggregates, correlates and
+reports all security-related events.
+
+As well as being capable of recovering any type of log (system logs, syslog,
+flat files, etc.), Prelude benefits from a native support with a number of
+systems dedicated to enriching information even further (snort, samhain,
+ossec, auditd, etc.).
+
+This library provides functionality for sensors (connection with a manager,
+handling sensor-exported options,...).
+
+WWW: https://www.prelude-siem.org/
diff --git a/security/libprelude/pkg-plist b/security/libprelude/pkg-plist
new file mode 100644
index 000000000000..2d47e6427b79
--- /dev/null
+++ b/security/libprelude/pkg-plist
@@ -0,0 +1,132 @@
+bin/libprelude-config
+bin/prelude-adduser
+bin/prelude-admin
+@sample %%ETCDIR%%/default/client.conf.sample
+@sample %%ETCDIR%%/default/global.conf.sample
+@sample %%ETCDIR%%/default/idmef-client.conf.sample
+@sample %%ETCDIR%%/default/tls.conf.sample
+include/libprelude/common.h
+include/libprelude/daemonize.h
+include/libprelude/idmef.h
+include/libprelude/idmef.hxx
+include/libprelude/idmef-additional-data.h
+include/libprelude/idmef-class.h
+include/libprelude/idmef-class.hxx
+include/libprelude/idmef-criteria.h
+include/libprelude/idmef-criteria.hxx
+include/libprelude/idmef-criterion-value.h
+include/libprelude/idmef-data.h
+include/libprelude/idmef-message-helpers.h
+include/libprelude/idmef-message-id.h
+include/libprelude/idmef-message-print.h
+include/libprelude/idmef-message-print-json.h
+include/libprelude/idmef-message-read.h
+include/libprelude/idmef-message-write.h
+include/libprelude/idmef-object.h
+include/libprelude/idmef-path.h
+include/libprelude/idmef-path.hxx
+include/libprelude/idmef-time.h
+include/libprelude/idmef-time.hxx
+include/libprelude/idmef-tree-data.h
+include/libprelude/idmef-tree-wrap.h
+include/libprelude/idmef-value.h
+include/libprelude/idmef-value.hxx
+include/libprelude/idmef-value-type.h
+include/libprelude/prelude.h
+include/libprelude/prelude.hxx
+include/libprelude/prelude-async.h
+include/libprelude/prelude-client.h
+include/libprelude/prelude-client.hxx
+include/libprelude/prelude-client-easy.hxx
+include/libprelude/prelude-client-profile.h
+include/libprelude/prelude-client-profile.hxx
+include/libprelude/prelude-config.h
+include/libprelude/prelude-connection.h
+include/libprelude/prelude-connection.hxx
+include/libprelude/prelude-connection-pool.h
+include/libprelude/prelude-connection-pool.hxx
+include/libprelude/prelude-error.h
+include/libprelude/prelude-error.hxx
+include/libprelude/prelude-extract.h
+include/libprelude/prelude-failover.h
+include/libprelude/prelude-hash.h
+include/libprelude/prelude-ident.h
+include/libprelude/prelude-inttypes.h
+include/libprelude/prelude-io.h
+include/libprelude/prelude-linked-object.h
+include/libprelude/prelude-list.h
+include/libprelude/prelude-log.h
+include/libprelude/prelude-log.hxx
+include/libprelude/prelude-macros.h
+include/libprelude/prelude-message-id.h
+include/libprelude/prelude-msg.h
+include/libprelude/prelude-msgbuf.h
+include/libprelude/prelude-option-wide.h
+include/libprelude/prelude-option.h
+include/libprelude/prelude-plugin.h
+include/libprelude/prelude-string.h
+include/libprelude/prelude-thread.h
+include/libprelude/prelude-timer.h
+lib/libprelude.so
+lib/libprelude.so.28
+lib/libprelude.so.28.1.0
+lib/libpreludecpp.so
+lib/libpreludecpp.so.12
+lib/libpreludecpp.so.12.0.1
+%%PERL%%%%SITE_ARCH%%/Prelude.pm
+%%PERL%%%%SITE_ARCH%%/auto/Prelude/Prelude.so
+libdata/pkgconfig/libprelude.pc
+man/man1/libprelude-config.1.gz
+man/man1/prelude-admin.1.gz
+share/aclocal/libprelude.m4
+%%PORTDOCS%%share/gtk-doc/html/libprelude/api-index-full.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/ch01.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/deprecated-api-index.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/home.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/index.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/left.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/left-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-additional-data.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-criteria.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-criterion-value.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-data.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-message-print.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-message-read.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-message-write.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-path.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-time.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-tree-wrap.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-idmef-value.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-async.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-client-profile.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-client.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-connection-pool.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-connection.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-error.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-failover.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-hash.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-ident.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-inttypes.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-io.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-linked-object.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-list.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-log.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-msg.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-msgbuf.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-option-wide.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-option.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-plugin.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-string.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude-timer.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude-prelude.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/libprelude.devhelp2
+%%PORTDOCS%%share/gtk-doc/html/libprelude/object-tree.html
+%%PORTDOCS%%share/gtk-doc/html/libprelude/right.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/right-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/style.css
+%%PORTDOCS%%share/gtk-doc/html/libprelude/up.png
+%%PORTDOCS%%share/gtk-doc/html/libprelude/up-insensitive.png
+%%DATADIR%%/swig/libpreludecpp.i
+%%PERL%%%%DATADIR%%/swig/perl/libpreludecpp-perl.i
+@dir(,,711) %%ETCDIR%%/profile
+@dir(,,711) /var/spool/prelude