diff options
author | tnn <tnn@pkgsrc.org> | 2022-08-22 22:59:07 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-08-22 22:59:07 +0000 |
commit | dabc0cbdc331bca93382d1662ee96876043e0e02 (patch) | |
tree | 045dd7ad43d000bf8bd5f1c2922dd261399eb6cd | |
parent | 569813dfb57d330bd4cc4bbc499cb5df8f0582d8 (diff) | |
download | pkgsrc-dabc0cbdc331bca93382d1662ee96876043e0e02.tar.gz |
prelude: remove from pkgsrc
prelude is unmaintained in pkgsrc since 2009 and is several major
versions behind. This makes it useless for it's intended purpose as an
intrusion detection system. Can be revived if/when there is an interested
maintainer. But it's probably easier to start from scratch given how stale
these packages were.
101 files changed, 1 insertions, 3335 deletions
diff --git a/security/Makefile b/security/Makefile index d675f35fde0..0c4fb17bf79 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.868 2022/08/17 15:44:16 hauke Exp $ +# $NetBSD: Makefile,v 1.869 2022/08/22 22:59:07 tnn Exp $ # COMMENT= Security and cryptography tools and libraries @@ -184,16 +184,6 @@ SUBDIR+= liboauth SUBDIR+= libp11 SUBDIR+= libpbc SUBDIR+= libpe -SUBDIR+= libprelude -SUBDIR+= libprelude-lua -SUBDIR+= libprelude-perl -SUBDIR+= libprelude-python -SUBDIR+= libpreludedb -SUBDIR+= libpreludedb-mysql -SUBDIR+= libpreludedb-perl -SUBDIR+= libpreludedb-pgsql -SUBDIR+= libpreludedb-python -SUBDIR+= libpreludedb-sqlite3 SUBDIR+= libpwquality SUBDIR+= libressl SUBDIR+= libretls @@ -412,9 +402,6 @@ SUBDIR+= polkit SUBDIR+= polkit-qt SUBDIR+= polkit-qt5 SUBDIR+= portsentry -SUBDIR+= prelude-correlator -SUBDIR+= prelude-lml -SUBDIR+= prelude-manager SUBDIR+= priv SUBDIR+= prngd SUBDIR+= pscan @@ -491,7 +478,6 @@ SUBDIR+= py-paramiko SUBDIR+= py-passlib SUBDIR+= py-pbkdf2 SUBDIR+= py-pip-audit -SUBDIR+= py-prewikka SUBDIR+= py-pydeep SUBDIR+= py-requests-gssapi SUBDIR+= py-requests-kerberos diff --git a/security/libprelude-lua/DESCR b/security/libprelude-lua/DESCR deleted file mode 100644 index 0f940750bec..00000000000 --- a/security/libprelude-lua/DESCR +++ /dev/null @@ -1,7 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. LibPrelude -is the glue that binds all aspects of Prelude together. -LibPrelude is a library which enables Prelude -components to communicate in a standard IDMEF method. - -This package only installs easy bindigs for lua. diff --git a/security/libprelude-lua/Makefile b/security/libprelude-lua/Makefile deleted file mode 100644 index 2c0b60dc618..00000000000 --- a/security/libprelude-lua/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: Makefile,v 1.26 2022/06/28 11:35:36 wiz Exp $ - -PKGNAME= libprelude-lua-${VERSION} -PKGREVISION= 20 -COMMENT= Lua bindings to LibPrelude - -LUA_VERSIONS_ACCEPTED= 51 - -.include "../../security/libprelude/Makefile.common" - -TOOLS_BROKEN+= perl -CONFIGURE_ARGS+= --with-lua - -BUILD_DIRS= bindings/lua - -PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude -PKG_SUPPORTED_OPTIONS= debug - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mdebug) -CFLAGS= -O0 -ggdb -.endif - -.include "../../devel/libltdl/convenience.mk" -.include "../../lang/lua/buildlink3.mk" -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/gnutls/libgnutls-config.mk" -.include "../../security/libprelude/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libprelude-lua/PLIST b/security/libprelude-lua/PLIST deleted file mode 100644 index 9d2fe3c67d3..00000000000 --- a/security/libprelude-lua/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2009/08/23 19:03:34 hasso Exp $ -lib/PreludeEasy.la diff --git a/security/libprelude-lua/buildlink3.mk b/security/libprelude-lua/buildlink3.mk deleted file mode 100644 index 398703ce78b..00000000000 --- a/security/libprelude-lua/buildlink3.mk +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libprelude-lua - -.if !defined(LIBPRELUDE_LUA_BUILDLINK3_MK) -LIBPRELUDE_LUA_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libprelude-lua+= libprelude-lua>=0.9.24 -BUILDLINK_ABI_DEPENDS.libprelude-lua?= libprelude-lua>=0.9.24.1nb20 -BUILDLINK_PKGSRCDIR.libprelude-lua?= ../../security/libprelude-lua -.endif # LIBPRELUDE_LUA_BUILDLINK3_MK - -BUILDLINK_TREE+= -libprelude-lua diff --git a/security/libprelude-perl/DESCR b/security/libprelude-perl/DESCR deleted file mode 100644 index 926aaf49c24..00000000000 --- a/security/libprelude-perl/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. LibPrelude -is the glue that binds all aspects of Prelude together. -LibPrelude is a library which enables Prelude -components to communicate in a standard IDMEF method. - -This package installs low-level and easy bindings for -perl. diff --git a/security/libprelude-perl/Makefile b/security/libprelude-perl/Makefile deleted file mode 100644 index 209262ccb05..00000000000 --- a/security/libprelude-perl/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -# $NetBSD: Makefile,v 1.29 2022/06/28 11:35:36 wiz Exp $ - -PKGNAME= libprelude-perl-${VERSION} -PKGREVISION= 26 -COMMENT= Perl bindings to LibPrelude - -.include "../../security/libprelude/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=${PERL5:Q} -CONFIGURE_ARGS+= --with-perl-installdirs=vendor -USE_TOOLS+= perl:run -PERL5_PACKLIST= auto/Prelude/.packlist -PERL5_PACKLIST+= auto/PreludeEasy/.packlist -PERL5_CONFIGURE= no -# something overrides USE_LANGUAGES from Makefile.common so repeat this here -USE_LANGUAGES= c c++ - -.include "../../lang/perl5/module.mk" - -PLIST_SRC= - -BUILD_DIRS= bindings/low-level/perl bindings/perl - -PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude -PKG_SUPPORTED_OPTIONS= debug - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mdebug) -CFLAGS= -O0 -ggdb -.endif - -do-build: - cd ${WRKSRC}/bindings && ${MAKE} perl-build - cd ${WRKSRC}/bindings/low-level && ${MAKE} perl-build - -.include "../../devel/libltdl/convenience.mk" -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/gnutls/libgnutls-config.mk" -.include "../../security/libprelude/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libprelude-perl/buildlink3.mk b/security/libprelude-perl/buildlink3.mk deleted file mode 100644 index 31b7fd11e4d..00000000000 --- a/security/libprelude-perl/buildlink3.mk +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.5 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libprelude-perl - -.if !defined(LIBPRELUDE_PERL_BUILDLINK3_MK) -LIBPRELUDE_PERL_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libprelude-perl+= libprelude-perl>=0.9.24 -BUILDLINK_ABI_DEPENDS.libprelude-perl?= libprelude-perl>=0.9.24.1nb26 -BUILDLINK_PKGSRCDIR.libprelude-perl?= ../../security/libprelude-perl -.endif # LIBPRELUDE_PERL_BUILDLINK3_MK - -BUILDLINK_TREE+= -libprelude-perl diff --git a/security/libprelude-python/DESCR b/security/libprelude-python/DESCR deleted file mode 100644 index 247f0c33961..00000000000 --- a/security/libprelude-python/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. LibPrelude -is the glue that binds all aspects of Prelude together. -LibPrelude is a library which enables Prelude -components to communicate in a standard IDMEF method. - -This package installs low-level and easy bindings for -python. diff --git a/security/libprelude-python/Makefile b/security/libprelude-python/Makefile deleted file mode 100644 index 8d100d27659..00000000000 --- a/security/libprelude-python/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $NetBSD: Makefile,v 1.35 2022/06/30 11:18:47 nia Exp $ - -PKGNAME= libprelude-python-${VERSION} -PKGREVISION= 22 -COMMENT= Python bindings to LibPrelude - -.include "../../security/libprelude/Makefile.common" - -TOOLS_BROKEN+= perl -CONFIGURE_ARGS+= --with-python -CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} -PY_PATCHPLIST= yes - -BUILD_DIRS= bindings/low-level/python bindings/python - -PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude -PKG_SUPPORTED_OPTIONS= debug - -PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 0.9.24.1 - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mdebug) -CFLAGS= -O0 -ggdb -.endif - -.include "../../devel/libltdl/convenience.mk" -.include "../../lang/python/application.mk" -.include "../../lang/python/extension.mk" -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/gnutls/libgnutls-config.mk" -.include "../../security/libprelude/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libprelude-python/PLIST b/security/libprelude-python/PLIST deleted file mode 100644 index f3c47d3fa54..00000000000 --- a/security/libprelude-python/PLIST +++ /dev/null @@ -1,9 +0,0 @@ -@comment $NetBSD: PLIST,v 1.2 2022/02/01 11:38:39 wiz Exp $ -${PYSITELIB}/PreludeEasy-${PKGVERSION}-py2.7.egg-info -${PYSITELIB}/PreludeEasy.py -${PYSITELIB}/PreludeEasy.pyc -${PYSITELIB}/_PreludeEasy.so -${PYSITELIB}/_prelude.so -${PYSITELIB}/prelude-${PKGVERSION}-py2.7.egg-info -${PYSITELIB}/prelude.py -${PYSITELIB}/prelude.pyc diff --git a/security/libprelude-python/buildlink3.mk b/security/libprelude-python/buildlink3.mk deleted file mode 100644 index 7b5e5a545c4..00000000000 --- a/security/libprelude-python/buildlink3.mk +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.3 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libprelude-python - -.if !defined(LIBPRELUDE_PYTHON_BUILDLINK3_MK) -LIBPRELUDE_PYTHON_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libprelude-python+= libprelude-python>=0.9.24 -BUILDLINK_ABI_DEPENDS.libprelude-python?= libprelude-python>=0.9.24.1nb21 -BUILDLINK_PKGSRCDIR.libprelude-python?= ../../security/libprelude-python -.endif # LIBPRELUDE_PYTHON_BUILDLINK3_MK - -BUILDLINK_TREE+= -libprelude-python diff --git a/security/libprelude/DESCR b/security/libprelude/DESCR deleted file mode 100644 index 2c0c2ebe633..00000000000 --- a/security/libprelude/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. LibPrelude -is the glue that binds all aspects of Prelude together. -LibPrelude is a library which enables Prelude -components to communicate in a standard IDMEF method. - -This is just the base packages which installs -LibPrelude's libraries and c++ easy bindings. diff --git a/security/libprelude/Makefile b/security/libprelude/Makefile deleted file mode 100644 index 1f9989c52da..00000000000 --- a/security/libprelude/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $NetBSD: Makefile,v 1.73 2022/06/28 11:35:36 wiz Exp $ -# - -PKGREVISION= 27 -COMMENT= LibPrelude libraries and c++ easy bindings -LICENSE= gnu-gpl-v2 - -.include "../../security/libprelude/Makefile.common" - -CONF_FILES+= ${PREFIX}/share/examples/libprelude/client.conf ${PKG_SYSCONFDIR}/default/client.conf -CONF_FILES+= ${PREFIX}/share/examples/libprelude/global.conf ${PKG_SYSCONFDIR}/default/global.conf -CONF_FILES+= ${PREFIX}/share/examples/libprelude/idmef-client.conf ${PKG_SYSCONFDIR}/default/idmef-client.conf -CONF_FILES+= ${PREFIX}/share/examples/libprelude/tls.conf ${PKG_SYSCONFDIR}/default/tls.conf - -CONFIGURE_ARGS+= --without-python --without-lua --without-perl - -# Work around mktime configure test failure leading to build issue -.if !empty(MACHINE_PLATFORM:MDarwin-*-x86_64) -CONFIGURE_ENV+= ac_cv_func_working_mktime=yes -.endif - -PKGCONFIG_OVERRIDE+= src/libprelude.pc.in - -PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude -PKG_SUPPORTED_OPTIONS= debug - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mdebug) -CFLAGS= -O0 -ggdb -.endif - -# we already patch 'configure' -CHECK_PORTABILITY_SKIP+= configure.in - -.include "../../devel/libltdl/convenience.mk" -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/libgcrypt/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libprelude/Makefile.common b/security/libprelude/Makefile.common deleted file mode 100644 index 12ee93ccc28..00000000000 --- a/security/libprelude/Makefile.common +++ /dev/null @@ -1,59 +0,0 @@ -# $NetBSD: Makefile.common,v 1.15 2022/04/23 11:56:24 tnn Exp $ -# -# used by security/libprelude/Makefile -# used by security/libprelude-lua/Makefile -# used by security/libprelude-perl/Makefile -# used by security/libprelude-python/Makefile - -DISTNAME= libprelude-${VERSION} -VERSION= 0.9.24.1 -CATEGORIES= security -#MASTER_SITES= http://www.prelude-ids.com/download/releases/libprelude/ - -MAINTAINER?= pkgsrc-users@NetBSD.org -HOMEPAGE= https://www.prelude-siem.org/ - -PATCHDIR= ${.CURDIR}/../../security/libprelude/patches -DISTINFO_FILE= ${.CURDIR}/../../security/libprelude/distinfo - -BUILD_DEFS+= VARBASE - -USE_PKGLOCALEDIR= yes -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -USE_TOOLS+= chown bison gawk gmake pkg-config -USE_LANGUAGES= c c++ -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} -CONFIGURE_ARGS+= --localstatedir=${VARBASE} -CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc -CONFIGURE_ARGS+= --enable-easy-bindings -PKG_SYSCONFSUBDIR= prelude - -.include "../../mk/bsd.prefs.mk" - -PRELUDE_USER?= _prelude -PRELUDE_GROUP?= _prelude -PRELUDE_HOME?= ${VARBASE}/spool/prelude - -PKG_GROUPS= ${PRELUDE_GROUP} -PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP} - -PKG_GROUPS_VARS+= PRELUDE_GROUP -PKG_USERS_VARS+= PRELUDE_USER - -PKG_GECOS.${PRELUDE_USER}= Prelude IDS -PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME} - -EGDIR= ${PREFIX}/share/examples/libprelude -REQD_DIRS= ${EGDIR} -MAKE_DIRS= ${PKG_SYSCONFDIR}/default ${PKG_SYSCONFDIR}/profile -MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/profile ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0711 - -SUBST_CLASSES+= make -SUBST_STAGE.make= pre-configure -SUBST_FILES.make= Makefile.in -SUBST_VARS.make= EGDIR - -INSTALLATION_DIRS= share/examples/libprelude - -.include "../../mk/bsd.prefs.mk" diff --git a/security/libprelude/PLIST b/security/libprelude/PLIST deleted file mode 100644 index 07570683c3b..00000000000 --- a/security/libprelude/PLIST +++ /dev/null @@ -1,121 +0,0 @@ -@comment $NetBSD: PLIST,v 1.14 2017/09/12 05:55:31 dholland Exp $ -bin/libprelude-config -bin/prelude-adduser -bin/prelude-admin -include/libprelude/common.h -include/libprelude/daemonize.h -include/libprelude/idmef-additional-data.h -include/libprelude/idmef-class.h -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-read.h -include/libprelude/idmef-message-write.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-type.h -include/libprelude/idmef-value.h -include/libprelude/idmef-value.hxx -include/libprelude/idmef.h -include/libprelude/idmef.hxx -include/libprelude/prelude-async.h -include/libprelude/prelude-client-easy.hxx -include/libprelude/prelude-client-profile.h -include/libprelude/prelude-client-profile.hxx -include/libprelude/prelude-client.h -include/libprelude/prelude-client.hxx -include/libprelude/prelude-config.h -include/libprelude/prelude-connection-pool.h -include/libprelude/prelude-connection-pool.hxx -include/libprelude/prelude-connection.h -include/libprelude/prelude-connection.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-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 -include/libprelude/prelude.h -include/libprelude/prelude.hxx -lib/libprelude.la -lib/libpreludecpp.la -lib/pkgconfig/libprelude.pc -man/man1/prelude-admin.1 -share/aclocal/libprelude.m4 -share/doc/libprelude/ch01.html -share/doc/libprelude/ch02.html -share/doc/libprelude/ch03.html -share/doc/libprelude/ch04.html -share/doc/libprelude/home.png -share/doc/libprelude/index.html -share/doc/libprelude/index.sgml -share/doc/libprelude/left.png -share/doc/libprelude/libprelude-idmef-additional-data.html -share/doc/libprelude/libprelude-idmef-criteria.html -share/doc/libprelude/libprelude-idmef-criterion-value.html -share/doc/libprelude/libprelude-idmef-data.html -share/doc/libprelude/libprelude-idmef-message-print.html -share/doc/libprelude/libprelude-idmef-message-read.html -share/doc/libprelude/libprelude-idmef-message-write.html -share/doc/libprelude/libprelude-idmef-path.html -share/doc/libprelude/libprelude-idmef-time.html -share/doc/libprelude/libprelude-idmef-tree-wrap.html -share/doc/libprelude/libprelude-idmef-value.html -share/doc/libprelude/libprelude-prelude-async.html -share/doc/libprelude/libprelude-prelude-client-profile.html -share/doc/libprelude/libprelude-prelude-client.html -share/doc/libprelude/libprelude-prelude-connection-pool.html -share/doc/libprelude/libprelude-prelude-connection.html -share/doc/libprelude/libprelude-prelude-error.html -share/doc/libprelude/libprelude-prelude-failover.html -share/doc/libprelude/libprelude-prelude-hash.html -share/doc/libprelude/libprelude-prelude-ident.html -share/doc/libprelude/libprelude-prelude-inttypes.html -share/doc/libprelude/libprelude-prelude-io.html -share/doc/libprelude/libprelude-prelude-linked-object.html -share/doc/libprelude/libprelude-prelude-list.html -share/doc/libprelude/libprelude-prelude-log.html -share/doc/libprelude/libprelude-prelude-msg.html -share/doc/libprelude/libprelude-prelude-msgbuf.html -share/doc/libprelude/libprelude-prelude-option-wide.html -share/doc/libprelude/libprelude-prelude-option.html -share/doc/libprelude/libprelude-prelude-plugin.html -share/doc/libprelude/libprelude-prelude-string.html -share/doc/libprelude/libprelude-prelude-timer.html -share/doc/libprelude/libprelude-prelude.html -share/doc/libprelude/libprelude.devhelp -share/doc/libprelude/libprelude.devhelp2 -share/doc/libprelude/pt01.html -share/doc/libprelude/pt02.html -share/doc/libprelude/pt03.html -share/doc/libprelude/pt04.html -share/doc/libprelude/right.png -share/doc/libprelude/style.css -share/doc/libprelude/up.png -share/examples/libprelude/client.conf -share/examples/libprelude/global.conf -share/examples/libprelude/idmef-client.conf -share/examples/libprelude/tls.conf diff --git a/security/libprelude/buildlink3.mk b/security/libprelude/buildlink3.mk deleted file mode 100644 index abe35dccb8a..00000000000 --- a/security/libprelude/buildlink3.mk +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.25 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libprelude - -.if !defined(LIBPRELUDE_BUILDLINK3_MK) -LIBPRELUDE_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libprelude+= libprelude>=0.9.0 -BUILDLINK_ABI_DEPENDS.libprelude+= libprelude>=0.9.24.1nb27 -BUILDLINK_PKGSRCDIR.libprelude?= ../../security/libprelude - -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/libgcrypt/buildlink3.mk" -.endif # LIBPRELUDE_BUILDLINK3_MK - -BUILDLINK_TREE+= -libprelude diff --git a/security/libprelude/distinfo b/security/libprelude/distinfo deleted file mode 100644 index d74d67c5ea2..00000000000 --- a/security/libprelude/distinfo +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: distinfo,v 1.44 2021/10/26 11:17:14 nia Exp $ - -BLAKE2s (libprelude-0.9.24.1.tar.gz) = 1eca0af9bdb4f57f0712fb486b7308a86dcbf4c4fd36f059c6a076c45f71d229 -SHA512 (libprelude-0.9.24.1.tar.gz) = f7f86f1f92e84e66f198e04e1d9a6b82c28d8239835919b76bfdb3034270956d915eea0a6c8d9a9eeb519ad02396ab50f14cf820b95c7288d2188ac85923b05c -Size (libprelude-0.9.24.1.tar.gz) = 2582719 bytes -SHA1 (patch-aa) = 4781d5d5f726b74e3e2179217ff2db9672c12158 -SHA1 (patch-ab) = 126b42abda48d8200040519210a962474fc7c3d0 -SHA1 (patch-ac) = 7474b2cf8cbb7fca81d85fe7c575f8ca99f90a43 -SHA1 (patch-ad) = 195228e1e04918275a3ab1cccb838de081a9ec98 -SHA1 (patch-ae) = d8b22cea826727a41108d65f84b594d0879397b2 -SHA1 (patch-ag) = 684bf8a217950b0a7fb38140b20643f81d464431 -SHA1 (patch-ah) = 840be5d59650cfc62cfa1b26693d90e6c08cc220 -SHA1 (patch-ai) = 53a16f270a9048f74849c0cd02b517e821bdf08a -SHA1 (patch-aj) = e4019c1a71ecdf33540d603ba2e0ba09bd2b6f7b -SHA1 (patch-ak) = d5ba7700db11bee688d56e1b92f3663e6637237d -SHA1 (patch-al) = a3c150d76c91e33703d9ee05cd32e5d6f7b1264a -SHA1 (patch-am) = 5581c999105a5d3b616e090afc105781e66eb888 -SHA1 (patch-an) = 1f92ed4028087d9a357fcf3788978495d63a13e3 -SHA1 (patch-ba) = 333d6e3f842d80888be0cec3921417fe51a027bc -SHA1 (patch-bb) = ca80e503226a2e1adcc0976597a225a51a74b8f9 -SHA1 (patch-bindings_low_level_perl_Prelude.c) = 919ad0340f590365857fe7495c9d6dfa3540c0cf -SHA1 (patch-config.h.in) = 11b1031ece55e086dcf9ff94f32b9321fe92bd48 -SHA1 (patch-src_include_prelude-plugin.h) = 4731b98059971577819906d84fe7f160c24c04f5 -SHA1 (patch-src_libprelude-error_Makefile.in) = 7cedf555b09f14b8cd37aea07789f0078302d735 -SHA1 (patch-src_libprelude-error_mkstrtable.awk) = 52078d284f2529eb08e29423afb738b8da5d98e4 diff --git a/security/libprelude/patches/patch-aa b/security/libprelude/patches/patch-aa deleted file mode 100644 index aa8b48fd33d..00000000000 --- a/security/libprelude/patches/patch-aa +++ /dev/null @@ -1,90 +0,0 @@ -$NetBSD: patch-aa,v 1.8 2009/08/23 18:56:34 hasso Exp $ - ---- Makefile.in.orig 2009-07-08 16:37:14 +0200 -+++ Makefile.in 2009-07-20 00:38:41 +0200 -@@ -865,7 +865,7 @@ - install_sh = @install_sh@ - libdir = @libdir@ - libexecdir = @libexecdir@ --localedir = @localedir@ -+localedir = @prefix@/share/locale - localstatedir = @localstatedir@ - lt_ECHO = @lt_ECHO@ - ltdl_LIBOBJS = @ltdl_LIBOBJS@ -@@ -1525,71 +1525,13 @@ - # Spool directory for report saving is mode - - install-data-local: -- $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_SPOOL_DIR); -- $(INSTALL) -d -m 755 $(DESTDIR)$(PRELUDE_CONFIG_DIR); -- $(INSTALL) -d -m 755 $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; -- $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_CONFIG_DIR)/profile; -- @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf; then \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- $(INSTALL) -m 644 $(top_builddir)/client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf-dist; \ -- else \ -- $(INSTALL) -m 644 $(top_builddir)/client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ -- fi -- -- @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf; then \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- $(INSTALL) -m 644 $(top_builddir)/global.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf-dist; \ -- else \ -- $(INSTALL) -m 644 $(top_builddir)/global.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ -- fi -- -- @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf; then \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- $(INSTALL) -m 644 $(top_builddir)/idmef-client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf-dist;\ -- else \ -- $(INSTALL) -m 644 $(top_builddir)/idmef-client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ -- fi -- -- @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf; then \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- echo; \ -- $(INSTALL) -m 644 $(top_srcdir)/tls.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf-dist; \ -- else \ -- $(INSTALL) -m 644 $(top_srcdir)/tls.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ -- fi -+ $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_SPOOL_DIR) -+ $(BSD_INSTALL_DATA) $(top_srcdir)/client.conf ${DESTDIR}@EGDIR@ -+ $(BSD_INSTALL_DATA) $(top_srcdir)/global.conf ${DESTDIR}@EGDIR@ -+ $(BSD_INSTALL_DATA) $(top_srcdir)/idmef-client.conf ${DESTDIR}@EGDIR@ -+ $(BSD_INSTALL_DATA) $(top_srcdir)/tls.conf ${DESTDIR}@EGDIR@ - - uninstall-local: -- rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf -- rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf -- rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf -- rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf - - dist-hook: - @if test -d "$(srcdir)/.git"; then \ diff --git a/security/libprelude/patches/patch-ab b/security/libprelude/patches/patch-ab deleted file mode 100644 index b29bb37784b..00000000000 --- a/security/libprelude/patches/patch-ab +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-ab,v 1.4 2016/09/29 12:14:38 joerg Exp $ - ---- src/tls-auth.c.orig 2009-05-12 07:49:43.000000000 +0000 -+++ src/tls-auth.c -@@ -259,6 +260,7 @@ int tls_auth_connection(prelude_client_p - return prelude_error_verbose(PRELUDE_ERROR_PROFILE, "TLS initialization error: %s", gnutls_strerror(ret)); - - set_default_priority(session); -+ gnutls_priority_set_direct (session, "NORMAL", NULL); - gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, cred); - - fd = prelude_io_get_fd(io); diff --git a/security/libprelude/patches/patch-ac b/security/libprelude/patches/patch-ac deleted file mode 100644 index bc94e926a66..00000000000 --- a/security/libprelude/patches/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ac,v 1.7 2009/08/23 18:56:34 hasso Exp $ - ---- src/Makefile.in.orig 2008-12-12 15:49:25 +0100 -+++ src/Makefile.in 2008-12-12 15:49:32 +0100 -@@ -183,7 +183,7 @@ - libprelude_la_OBJECTS = $(am_libprelude_la_OBJECTS) - libprelude_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ -- $(libprelude_la_LDFLAGS) $(LDFLAGS) -o $@ -+ $(libprelude_la_LDFLAGS) $(LDFLAGS) $(LIBMULTITHREAD) -o $@ - DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) - depcomp = $(SHELL) $(top_srcdir)/depcomp - am__depfiles_maybe = depfiles diff --git a/security/libprelude/patches/patch-ad b/security/libprelude/patches/patch-ad deleted file mode 100644 index adc27478d51..00000000000 --- a/security/libprelude/patches/patch-ad +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-ad,v 1.6 2009/08/23 18:56:34 hasso Exp $ - -From Till Dörges on the prelude-devel ML. - ---- libprelude-config.in.orig 2009-07-21 00:31:43 +0200 -+++ libprelude-config.in 2009-07-21 00:31:58 +0200 -@@ -70,6 +70,7 @@ - ;; - - --ldflags) -+ echo "-Wl,-rpath -Wl,@libdir@" - ;; - - --c++) diff --git a/security/libprelude/patches/patch-ae b/security/libprelude/patches/patch-ae deleted file mode 100644 index f8bd5faacc7..00000000000 --- a/security/libprelude/patches/patch-ae +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ae,v 1.2 2009/08/23 18:56:34 hasso Exp $ - ---- configure.orig 2008-04-25 07:08:22.000000000 -0600 -+++ configure -@@ -44961,7 +44961,7 @@ fi - - { $as_echo "$as_me:$LINENO: checking for cpu-specific compiler flags" >&5 - $as_echo_n "checking for cpu-specific compiler flags... " >&6; } --if test "$host_cpu" == "x86_64" && test $enable_static = "yes"; then -+if test "$host_cpu" = "x86_64" && test $enable_static = "yes"; then - { $as_echo "$as_me:$LINENO: result: x86_64/static: adding -fPIC" >&5 - $as_echo "x86_64/static: adding -fPIC" >&6; } - diff --git a/security/libprelude/patches/patch-ag b/security/libprelude/patches/patch-ag deleted file mode 100644 index 23afa25f369..00000000000 --- a/security/libprelude/patches/patch-ag +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ag,v 1.1 2009/08/23 18:56:34 hasso Exp $ - ---- bindings/lua/Makefile.in.orig 2009-07-24 19:26:18 +0300 -+++ bindings/lua/Makefile.in 2009-07-24 19:27:20 +0300 -@@ -194,7 +194,7 @@ am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' - am__installdirs = "$(DESTDIR)$(PreludeEasydir)" - LTLIBRARIES = $(PreludeEasy_LTLIBRARIES) --@HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_DEPENDENCIES = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la -+@HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_DEPENDENCIES = $(top_builddir)/../.buildlink/lib/libpreludecpp.la - am__PreludeEasy_la_SOURCES_DIST = PreludeEasy.cxx - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@am_PreludeEasy_la_OBJECTS = \ - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@ PreludeEasy.lo -@@ -860,7 +860,7 @@ top_srcdir = @top_srcdir@ - @HAVE_EASY_BINDINGS_TRUE@EXTRA_DIST = libpreludecpp-lua.i PreludeEasy.cxx - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@AM_CPPFLAGS = -I@top_srcdir@ -I@top_builddir@/src/include -I@top_srcdir@/src/include -I@top_builddir@/src/libprelude-error -I@top_srcdir@/bindings/c++/include @LUA_CFLAGS@ -I@top_srcdir@/libmissing -I@top_builddir@/libmissing - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_LDFLAGS = -module -avoid-version @LUA_LIBS@ --@HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_LIBADD = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la -+@HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_LIBADD = $(top_builddir)/../.buildlink/lib/libpreludecpp.la - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_la_SOURCES = PreludeEasy.cxx - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasydir = $(libdir) - @HAVE_EASY_BINDINGS_TRUE@@HAVE_LUA_TRUE@PreludeEasy_LTLIBRARIES = PreludeEasy.la diff --git a/security/libprelude/patches/patch-ah b/security/libprelude/patches/patch-ah deleted file mode 100644 index 2f08dfb3095..00000000000 --- a/security/libprelude/patches/patch-ah +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ah,v 1.2 2013/06/30 11:35:23 sno Exp $ - -Fixing missing RPATH for perl bindings - ---- bindings/perl/Makefile.PL.in.orig 2009-07-24 19:55:09 +0300 -+++ bindings/perl/Makefile.PL.in 2009-07-24 19:58:01 +0300 -@@ -6,7 +6,7 @@ use Cwd "abs_path"; - - my %attributs = (NAME => 'PreludeEasy', - INC => '-I@top_srcdir@ -I@top_builddir@/src/include -I@top_srcdir@/src/include -I@top_builddir@/src/libprelude-error -I@top_srcdir@/bindings/c++/include -I@top_srcdir@/libmissing -I@top_builddir@/libmissing', -- LIBS => ["-L@top_builddir@/src/.libs -lprelude -L@top_builddir@/bindings/c++/.libs -lpreludecpp", "-L$ENV{LIBDIR} -lprelude @LIBPRELUDE_LIBS@ @LIBADD_DL@ @LTLIBTHREAD@" ], -+ LIBS => ["-L@top_builddir@/../.buildlink/lib -lprelude -lpreludecpp @LIBPRELUDE_LIBS@", "-L$ENV{LIBDIR} -lprelude @LIBPRELUDE_LIBS@ @LIBADD_DL@ @LTLIBTHREAD@" ], - LDDLFLAGS => "-L@top_builddir@/src/.libs $Config{lddlflags}"); - - if ( abs_path("@top_srcdir@") ne abs_path("@top_builddir@") ) { diff --git a/security/libprelude/patches/patch-ai b/security/libprelude/patches/patch-ai deleted file mode 100644 index 9a64aaf9a74..00000000000 --- a/security/libprelude/patches/patch-ai +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ai,v 1.1 2009/08/23 18:56:34 hasso Exp $ - ---- bindings/ruby/Makefile.in.orig 2009-07-24 20:01:14 +0300 -+++ bindings/ruby/Makefile.in 2009-07-24 20:02:07 +0300 -@@ -195,7 +195,7 @@ am__base_list = \ - am__installdirs = "$(DESTDIR)$(rbexecdir)" - LTLIBRARIES = $(rbexec_LTLIBRARIES) - am__DEPENDENCIES_1 = --@HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_DEPENDENCIES = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la \ -+@HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_DEPENDENCIES = $(top_builddir)/../.buildlink/lib/libpreludecpp.la \ - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@ $(am__DEPENDENCIES_1) - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@nodist_PreludeEasy_la_OBJECTS = PreludeEasy_la-PreludeEasy.lo - PreludeEasy_la_OBJECTS = $(nodist_PreludeEasy_la_OBJECTS) -@@ -860,7 +860,7 @@ top_srcdir = @top_srcdir@ - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@rbexec_LTLIBRARIES = PreludeEasy.la - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_CPPFLAGS = $(RUBY_INCLUDES) $(RUBY_CCFLAGS) -I@top_builddir@ -I$(top_srcdir)/src/include -I$(top_builddir)/src/include -I@top_builddir@/src/libprelude-error -I$(top_srcdir)/bindings/c++/include -I@top_srcdir@/libmissing -I@top_builddir@/libmissing - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_LDFLAGS = -module -avoid-version --@HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_LIBADD = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la $(RUBY_LIBS) -+@HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@PreludeEasy_la_LIBADD = $(top_builddir)/../.buildlink/lib/libpreludecpp.la $(RUBY_LIBS) - @HAVE_EASY_BINDINGS_TRUE@@HAVE_RUBY_TRUE@nodist_PreludeEasy_la_SOURCES = PreludeEasy.cxx - all: all-am - diff --git a/security/libprelude/patches/patch-aj b/security/libprelude/patches/patch-aj deleted file mode 100644 index 00bfa99fefc..00000000000 --- a/security/libprelude/patches/patch-aj +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aj,v 1.1 2009/09/11 16:54:47 joerg Exp $ - ---- bindings/c++/prelude.cxx.orig 2009-09-11 18:50:18.000000000 +0200 -+++ bindings/c++/prelude.cxx -@@ -21,6 +21,8 @@ - * - *****/ - -+#include <ctime> -+ - #include <prelude.h> - #include "prelude.hxx" - diff --git a/security/libprelude/patches/patch-ak b/security/libprelude/patches/patch-ak deleted file mode 100644 index 3d21a648ebd..00000000000 --- a/security/libprelude/patches/patch-ak +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ak,v 1.1 2009/11/25 20:56:04 joerg Exp $ - ---- bindings/c++/Makefile.in.orig 2009-11-25 21:47:32.000000000 +0100 -+++ bindings/c++/Makefile.in -@@ -194,7 +194,7 @@ am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' - am__installdirs = "$(DESTDIR)$(libdir)" - LTLIBRARIES = $(lib_LTLIBRARIES) --@HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_DEPENDENCIES = $(top_builddir)/src/.libs/libprelude.la -+@HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_DEPENDENCIES = $(top_builddir)/src/libprelude.la - am__libpreludecpp_la_SOURCES_DIST = prelude-error.cxx idmef.cxx \ - idmef-criteria.cxx idmef-path.cxx idmef-time.cxx \ - idmef-value.cxx prelude.cxx prelude-client.cxx \ -@@ -929,7 +929,7 @@ top_srcdir = @top_srcdir@ - @HAVE_EASY_BINDINGS_TRUE@ prelude-log.cxx - - @HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_LDFLAGS = -no-undefined -version-info @LIBPRELUDECPP_SONAME@ --@HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_LIBADD = $(top_builddir)/src/.libs/libprelude.la -+@HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_LIBADD = $(top_builddir)/src/libprelude.la - @HAVE_EASY_BINDINGS_TRUE@libpreludecpp_la_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/src/include -I$(top_srcdir)/src/include -I$(top_builddir)/src/libprelude-error -I$(top_builddir)/bindings/c++/include -I$(top_srcdir)/bindings/c++/include - all: all-recursive - diff --git a/security/libprelude/patches/patch-al b/security/libprelude/patches/patch-al deleted file mode 100644 index 19ff0722a38..00000000000 --- a/security/libprelude/patches/patch-al +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-al,v 1.1 2009/11/25 20:56:04 joerg Exp $ - ---- bindings/c++/Makefile.am.orig 2009-11-25 21:47:30.000000000 +0100 -+++ bindings/c++/Makefile.am -@@ -20,7 +20,7 @@ libpreludecpp_la_SOURCES = \ - prelude-log.cxx - - libpreludecpp_la_LDFLAGS = -no-undefined -version-info @LIBPRELUDECPP_SONAME@ --libpreludecpp_la_LIBADD = $(top_builddir)/src/.libs/libprelude.la -+libpreludecpp_la_LIBADD = $(top_builddir)/src/libprelude.la - libpreludecpp_la_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/src/include -I$(top_srcdir)/src/include -I$(top_builddir)/src/libprelude-error -I$(top_builddir)/bindings/c++/include -I$(top_srcdir)/bindings/c++/include - - endif diff --git a/security/libprelude/patches/patch-am b/security/libprelude/patches/patch-am deleted file mode 100644 index f8b3afba90d..00000000000 --- a/security/libprelude/patches/patch-am +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-am,v 1.1 2011/07/08 11:47:28 drochner Exp $ - ---- libmissing/mktime.c.orig 2009-05-12 07:49:42.000000000 +0000 -+++ libmissing/mktime.c -@@ -165,8 +165,10 @@ ydhms_diff (long int year1, long int yda - int year0, int yday0, int hour0, int min0, int sec0) - { - verify (C99_integer_division, -1 / 2 == 0); -+#if 0 - verify (long_int_year_and_yday_are_wide_enough, - INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); -+#endif - - /* Compute intervening leap days correctly even if year is negative. - Take care to avoid integer overflow here. */ diff --git a/security/libprelude/patches/patch-an b/security/libprelude/patches/patch-an deleted file mode 100644 index e338ed12995..00000000000 --- a/security/libprelude/patches/patch-an +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-an,v 1.1 2013/06/30 11:35:23 sno Exp $ - -Fixing missing RPATH for perl bindings - ---- bindings/low-level/perl/Makefile.PL.in.orig 2009-05-12 07:49:42.000000000 +0000 -+++ bindings/low-level/perl/Makefile.PL.in -@@ -6,7 +6,7 @@ use Cwd "abs_path"; - - my %attributs = (NAME => 'Prelude', - INC => '-I@top_srcdir@ -I@top_builddir@/src/include -I@top_srcdir@/src/include -I@top_builddir@/src/libprelude-error', -- LIBS => ["-L@top_builddir@/src/.libs -lprelude", "-L$ENV{LIBDIR} -lprelude @LIBPRELUDE_LIBS@ @LIBADD_DL@ @LTLIBTHREAD@" ], -+ LIBS => ["-L@top_builddir@/src/.libs -lprelude @LIBPRELUDE_LIBS@", "-L$ENV{LIBDIR} -lprelude @LIBPRELUDE_LIBS@ @LIBADD_DL@ @LTLIBTHREAD@" ], - LDDLFLAGS => "-L@top_builddir@/src/.libs $Config{lddlflags}"); - - if ( abs_path("@top_srcdir@") ne abs_path("@top_builddir@") ) { diff --git a/security/libprelude/patches/patch-ba b/security/libprelude/patches/patch-ba deleted file mode 100644 index 06365df4c3e..00000000000 --- a/security/libprelude/patches/patch-ba +++ /dev/null @@ -1,117 +0,0 @@ -$NetBSD: patch-ba,v 1.2 2016/09/29 12:14:38 joerg Exp $ - -make this build with gnutls-3 - ---- prelude-admin/prelude-admin.c.orig 2009-07-08 13:50:22.000000000 +0000 -+++ prelude-admin/prelude-admin.c -@@ -57,7 +57,6 @@ - #include <errno.h> - #include <gnutls/gnutls.h> - #include <gnutls/x509.h> --#include <gnutls/extra.h> - - #include "common.h" - #include "config-engine.h" -@@ -841,29 +840,70 @@ static int anon_check_passwd(prelude_io_ - } - - -+static inline gnutls_transport_ptr_t fd_to_ptr(int fd) -+{ -+ union { -+ gnutls_transport_ptr_t ptr; -+ int fd; -+ } data; -+ -+ data.fd = fd; -+ -+ return data.ptr; -+} -+ -+ -+static inline int ptr_to_fd(gnutls_transport_ptr_t ptr) -+{ -+ union { -+ gnutls_transport_ptr_t ptr; -+ int fd; -+ } data; -+ -+ data.ptr = ptr; -+ return data.fd; -+} -+ -+ -+static ssize_t tls_pull(gnutls_transport_ptr_t fd, void *buf, size_t count) -+{ -+ return read(ptr_to_fd(fd), buf, count); -+} -+ -+ -+static ssize_t tls_push(gnutls_transport_ptr_t fd, const void *buf, size_t count) -+{ -+ return write(ptr_to_fd(fd), buf, count); -+} -+ - - static gnutls_session new_tls_session(int sock, char *passwd) - { - int ret; - gnutls_session session; - gnutls_anon_client_credentials anoncred; -+ const char *err; - -- const int kx_priority[] = { -- GNUTLS_KX_ANON_DH, --#ifdef GNUTLS_SRP_ENABLED -- GNUTLS_KX_SRP, GNUTLS_KX_SRP_DSS, GNUTLS_KX_SRP_RSA, -+#if defined LIBGNUTLS_VERSION_MAJOR && LIBGNUTLS_VERSION_MAJOR >= 3 -+# define TLS_DH_STR "+ANON-ECDH:+ANON-DH" -+#else -+# define TLS_DH_STR "+ANON-DH" - #endif -- 0 -- }; - -- union { -- int fd; -- void *ptr; -- } data; -+#ifdef GNUTLS_SRP_ENABLED -+ const char *pstring = "NORMAL:+SRP:+SRP-DSS:+SRP-RSA:" TLS_DH_STR; -+#else -+ const char *pstring = "NORMAL:" TLS_DH_STR; -+#endif - - gnutls_init(&session, GNUTLS_CLIENT); - gnutls_set_default_priority(session); -- gnutls_kx_set_priority(session, kx_priority); -+ -+ ret = gnutls_priority_set_direct(session, pstring, &err); -+ if (ret < 0) { -+ fprintf(stderr, "TLS priority syntax error at: %s\n", err); -+ return NULL; -+ } - - #ifdef GNUTLS_SRP_ENABLED - { -@@ -877,8 +917,9 @@ static gnutls_session new_tls_session(in - gnutls_anon_allocate_client_credentials(&anoncred); - gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred); - -- data.fd = sock; -- gnutls_transport_set_ptr(session, data.ptr); -+ gnutls_transport_set_ptr(session, fd_to_ptr(sock)); -+ gnutls_transport_set_pull_function(session, tls_pull); -+ gnutls_transport_set_push_function(session, tls_push); - - ret = gnutls_handshake(session); - if ( ret < 0 ) { -@@ -897,8 +938,6 @@ static gnutls_session new_tls_session(in - return session; - } - -- -- - static prelude_io_t *connect_manager(const char *addr, unsigned int port, char *passwd) - { - int ret, sock; diff --git a/security/libprelude/patches/patch-bb b/security/libprelude/patches/patch-bb deleted file mode 100644 index 1f41b0bc599..00000000000 --- a/security/libprelude/patches/patch-bb +++ /dev/null @@ -1,108 +0,0 @@ -$NetBSD: patch-bb,v 1.2 2016/09/29 12:14:38 joerg Exp $ - -make this build with gnutls-3 - ---- prelude-admin/server.c.orig 2009-05-12 07:49:42.000000000 +0000 -+++ prelude-admin/server.c -@@ -39,7 +39,6 @@ - - #include <gcrypt.h> - #include <gnutls/gnutls.h> --#include <gnutls/extra.h> - - #include "prelude-client.h" - #include "prelude-error.h" -@@ -97,26 +96,71 @@ static int anon_check_passwd(prelude_io_ - } - - -+static inline gnutls_transport_ptr_t fd_to_ptr(int fd) -+{ -+ union { -+ gnutls_transport_ptr_t ptr; -+ int fd; -+ } data; -+ -+ data.fd = fd; -+ -+ return data.ptr; -+} -+ -+ -+static inline int ptr_to_fd(gnutls_transport_ptr_t ptr) -+{ -+ union { -+ gnutls_transport_ptr_t ptr; -+ int fd; -+ } data; -+ -+ data.ptr = ptr; -+ return data.fd; -+} -+ -+ -+ -+static ssize_t tls_pull(gnutls_transport_ptr_t fd, void *buf, size_t count) -+{ -+ return read(ptr_to_fd(fd), buf, count); -+} -+ -+static ssize_t tls_push(gnutls_transport_ptr_t fd, const void *buf, size_t count) -+{ -+ return write(ptr_to_fd(fd), buf, count); -+} -+ -+ - - static gnutls_session new_tls_session(int sock) - { - int ret; - gnutls_session session; -- const int kx_priority[] = { -- GNUTLS_KX_ANON_DH, -+ const char *err; -+ -+#if defined LIBGNUTLS_VERSION_MAJOR && LIBGNUTLS_VERSION_MAJOR >= 3 -+# define TLS_DH_STR "+ANON-ECDH:+ANON-DH" -+#else -+# define TLS_DH_STR "+ANON-DH" -+#endif -+ - #ifdef GNUTLS_SRP_ENABLED -- GNUTLS_KX_SRP, GNUTLS_KX_SRP_DSS, GNUTLS_KX_SRP_RSA, -+ const char *pstring = "NORMAL:+SRP:+SRP-DSS:+SRP-RSA:" TLS_DH_STR; -+#else -+ const char *pstring = "NORMAL:" TLS_DH_STR; - #endif -- 0 }; -- union { -- int fd; -- void *ptr; -- } data; - - gnutls_init(&session, GNUTLS_SERVER); -- - gnutls_set_default_priority(session); -- gnutls_kx_set_priority(session, kx_priority); -+ -+ ret = gnutls_priority_set_direct(session, pstring, &err); -+ if (ret < 0) { -+ fprintf(stderr, "TLS priority syntax error at: %s\n", err); -+ return NULL; -+ } -+ - - #ifdef GNUTLS_SRP_ENABLED - gnutls_credentials_set(session, GNUTLS_CRD_SRP, srpcred); -@@ -124,8 +168,9 @@ static gnutls_session new_tls_session(in - #endif - gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred); - -- data.fd = sock; -- gnutls_transport_set_ptr(session, data.ptr); -+ gnutls_transport_set_ptr(session, fd_to_ptr(sock)); -+ gnutls_transport_set_pull_function(session, tls_pull); -+ gnutls_transport_set_push_function(session, tls_push); - - ret = gnutls_handshake(session); - if ( ret < 0 ) { diff --git a/security/libprelude/patches/patch-bindings_low_level_perl_Prelude.c b/security/libprelude/patches/patch-bindings_low_level_perl_Prelude.c deleted file mode 100644 index 646cc6ba923..00000000000 --- a/security/libprelude/patches/patch-bindings_low_level_perl_Prelude.c +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-bindings_low_level_perl_Prelude.c,v 1.1 2017/09/12 06:04:47 dholland Exp $ - -Don't undef bool; it breaks the build. - ---- bindings/low-level/perl/Prelude.c~ 2009-08-11 15:13:59.000000000 +0000 -+++ bindings/low-level/perl/Prelude.c -@@ -1425,7 +1425,7 @@ SWIG_Perl_SetModule(swig_module_info *mo - #undef eof - #endif - #ifdef bool -- #undef bool -+// #undef bool - #endif - #ifdef close - #undef close diff --git a/security/libprelude/patches/patch-config.h.in b/security/libprelude/patches/patch-config.h.in deleted file mode 100644 index d7a2405c7e5..00000000000 --- a/security/libprelude/patches/patch-config.h.in +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-config.h.in,v 1.1 2018/01/31 12:55:29 jperkin Exp $ - -Don't break std::mktime. - ---- config.h.in.orig 2009-08-11 15:05:50.000000000 +0000 -+++ config.h.in -@@ -957,7 +957,9 @@ - #undef mbstate_t - - /* Define to rpl_mktime if the replacement function should be used. */ -+#if !defined(__cplusplus) - #undef mktime -+#endif - - /* Define to the type of st_nlink in struct stat, or a supertype. */ - #undef nlink_t diff --git a/security/libprelude/patches/patch-src_include_prelude-plugin.h b/security/libprelude/patches/patch-src_include_prelude-plugin.h deleted file mode 100644 index 458583bfb05..00000000000 --- a/security/libprelude/patches/patch-src_include_prelude-plugin.h +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-src_include_prelude-plugin.h,v 1.1 2013/04/12 13:45:48 joerg Exp $ - ---- src/include/prelude-plugin.h.orig 2009-05-12 07:49:42.000000000 +0000 -+++ src/include/prelude-plugin.h -@@ -59,11 +59,8 @@ typedef struct { - * Hack for plugin preloading, - * without having the end program depend on ltdl. - */ --#ifdef PRELUDE_APPLICATION_USE_LIBTOOL2 --# define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols --#endif -- --extern const void *lt_preloaded_symbols[]; -+#include <ltdl.h> -+#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols - - #define PRELUDE_PLUGIN_SET_PRELOADED_SYMBOLS() \ - prelude_plugin_set_preloaded_symbols(lt_preloaded_symbols) diff --git a/security/libprelude/patches/patch-src_libprelude-error_Makefile.in b/security/libprelude/patches/patch-src_libprelude-error_Makefile.in deleted file mode 100644 index 800bc1e5843..00000000000 --- a/security/libprelude/patches/patch-src_libprelude-error_Makefile.in +++ /dev/null @@ -1,29 +0,0 @@ -$NetBSD: patch-src_libprelude-error_Makefile.in,v 1.2 2019/12/20 22:11:02 gutteridge Exp $ - -Use -P when preprocessing error symbols to avoid getting line number -output, which on gcc5 introduces extra line breaks and makes the -downstream processing fail miserably. - -Also, rename the awk variable "namespace" to "name_space", since the -former is now a reserved word with GNU awk 5.0. - ---- src/libprelude-error/Makefile.in.orig 2009-08-11 15:05:56.000000000 +0000 -+++ src/libprelude-error/Makefile.in -@@ -1201,7 +1201,7 @@ code-to-errno.h: Makefile mkerrnos.awk e - - mkerrcodes.h: Makefile mkerrcodes.awk - LANG="" $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@ -- $(CPP) _$@ | grep PRELUDE_ERROR_ | LANG="" $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ -+ $(CPP) -P _$@ | grep PRELUDE_ERROR_ | LANG="" $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ - -rm _$@ - - # It is correct to use $(CC_FOR_BUILD) here. We want to run the -@@ -1214,7 +1214,7 @@ code-from-errno.h: mkerrcodes Makefile - - errnos-sym.h: Makefile mkstrtable.awk errnos.in - LANG="" $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \ -- -v prefix=PRELUDE_ERROR_ -v namespace=errnos_ \ -+ -v prefix=PRELUDE_ERROR_ -v name_space=errnos_ \ - $(srcdir)/errnos.in >$@ - - prelude-error.h: Makefile mkheader.awk err-sources.h.in err-codes.h.in errnos.in prelude-error.h.in diff --git a/security/libprelude/patches/patch-src_libprelude-error_mkstrtable.awk b/security/libprelude/patches/patch-src_libprelude-error_mkstrtable.awk deleted file mode 100644 index df191d8e989..00000000000 --- a/security/libprelude/patches/patch-src_libprelude-error_mkstrtable.awk +++ /dev/null @@ -1,42 +0,0 @@ -$NetBSD: patch-src_libprelude-error_mkstrtable.awk,v 1.1 2019/12/20 22:11:02 gutteridge Exp $ - -Rename the awk variable "namespace" to "name_space", since the former -is now a reserved word with GNU awk 5.0. - ---- src/libprelude-error/mkstrtable.awk.orig 2009-05-12 07:49:42.000000000 +0000 -+++ src/libprelude-error/mkstrtable.awk -@@ -77,7 +77,7 @@ - # - # The variable prefix can be used to prepend a string to each message. - # --# The variable namespace can be used to prepend a string to each -+# The variable name_space can be used to prepend a string to each - # variable and macro name. - - BEGIN { -@@ -102,7 +102,7 @@ header { - print "/* The purpose of this complex string table is to produce"; - print " optimal code with a minimum of relocations. */"; - print ""; -- print "static const char " namespace "msgstr[] = "; -+ print "static const char " name_space "msgstr[] = "; - header = 0; - } - else -@@ -150,14 +150,14 @@ END { - else - print " gettext_noop (\"" prefix last_msgstr "\");"; - print ""; -- print "static const int " namespace "msgidx[] ="; -+ print "static const int " name_space "msgidx[] ="; - print " {"; - for (i = 0; i < coded_msgs; i++) - print " " pos[i] ","; - print " " pos[coded_msgs]; - print " };"; - print ""; -- print "#define " namespace "msgidxof(code) (0 ? -1 \\"; -+ print "#define " name_space "msgidxof(code) (0 ? -1 \\"; - - # Gather the ranges. - skip = code[0]; diff --git a/security/libpreludedb-mysql/DESCR b/security/libpreludedb-mysql/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb-mysql/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb-mysql/Makefile b/security/libpreludedb-mysql/Makefile deleted file mode 100644 index a9088da9d96..00000000000 --- a/security/libpreludedb-mysql/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.30 2022/06/28 11:35:36 wiz Exp $ -# - -PKGNAME= libpreludedb-mysql-${VERSION} -PKGREVISION= 27 -COMMENT= MySQL plugin for LibPreludeDB - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=no -CONFIGURE_ARGS+= --with-python=no -CONFIGURE_ARGS+= --with-sqlite3=no -CONFIGURE_ARGS+= --with-postgresql=no - -BUILD_DIRS= plugins/sql - -CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config - -.include "../../mk/mysql.buildlink3.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb-mysql/PLIST b/security/libpreludedb-mysql/PLIST deleted file mode 100644 index e331f228b4f..00000000000 --- a/security/libpreludedb-mysql/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2009/10/02 10:02:08 hasso Exp $ -lib/libpreludedb/plugins/sql/mysql.la diff --git a/security/libpreludedb-mysql/buildlink3.mk b/security/libpreludedb-mysql/buildlink3.mk deleted file mode 100644 index 459aedd2b73..00000000000 --- a/security/libpreludedb-mysql/buildlink3.mk +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb-mysql - -.if !defined(LIBPRELUDEDB_MYSQL_BUILDLINK3_MK) -LIBPRELUDEDB_MYSQL_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb-mysql+= libpreludedb-mysql>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb-mysql?= libpreludedb-mysql>=0.9.15.3nb27 -BUILDLINK_PKGSRCDIR.libpreludedb-mysql?= ../../security/libpreludedb-mysql - -.endif # LIBPRELUDEDB_MYSQL_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb-mysql diff --git a/security/libpreludedb-perl/DESCR b/security/libpreludedb-perl/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb-perl/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb-perl/Makefile b/security/libpreludedb-perl/Makefile deleted file mode 100644 index 41b6458ccdf..00000000000 --- a/security/libpreludedb-perl/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.29 2022/06/28 11:35:37 wiz Exp $ -# - -PKGNAME= libpreludedb-perl-${VERSION} -PKGREVISION= 26 -COMMENT= Perl bindings for LibPreludeDB libraries - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-python=no -CONFIGURE_ARGS+= --with-mysql=no -CONFIGURE_ARGS+= --with-postgresql=no -CONFIGURE_ARGS+= --with-sqlite3=no - -BUILD_DIRS= bindings - -CONFIGURE_ARGS+= --with-perl=${PERL5:Q} --with-perl-installdirs=vendor -USE_TOOLS+= perl:run - -PERL5_PACKLIST= ${PERL5_VENDORARCH}auto/PreludeDB/.packlist -PERL5_CONFIGURE= no - -.include "../../lang/perl5/buildlink3.mk" -.include "../../lang/perl5/module.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb-perl/buildlink3.mk b/security/libpreludedb-perl/buildlink3.mk deleted file mode 100644 index 2bbe77618d5..00000000000 --- a/security/libpreludedb-perl/buildlink3.mk +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.7 2022/06/28 11:35:37 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb-perl - -.if !defined(LIBPRELUDEDB_PERL_BUILDLINK3_MK) -LIBPRELUDEDB_PERL_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb-perl+= libpreludedb-perl>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb-perl?= libpreludedb-perl>=0.9.15.3nb26 -BUILDLINK_PKGSRCDIR.libpreludedb-perl?= ../../security/libpreludedb-perl - -.endif # LIBPRELUDEDB_PERL_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb-perl diff --git a/security/libpreludedb-pgsql/DESCR b/security/libpreludedb-pgsql/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb-pgsql/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb-pgsql/Makefile b/security/libpreludedb-pgsql/Makefile deleted file mode 100644 index a15372795ee..00000000000 --- a/security/libpreludedb-pgsql/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.29 2022/06/28 11:35:37 wiz Exp $ -# - -PKGNAME= libpreludedb-pgsql-${VERSION} -PKGREVISION= 26 -COMMENT= PostgreSQL plugin for LibPreludeDB - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=no -CONFIGURE_ARGS+= --with-python=no -CONFIGURE_ARGS+= --with-mysql=no -CONFIGURE_ARGS+= --with-sqlite3=no - -BUILD_DIRS= plugins/sql - -CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX}/bin/pg_config - -.include "../../mk/pgsql.buildlink3.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb-pgsql/PLIST b/security/libpreludedb-pgsql/PLIST deleted file mode 100644 index 7c0fe004795..00000000000 --- a/security/libpreludedb-pgsql/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2009/10/02 10:03:08 hasso Exp $ -lib/libpreludedb/plugins/sql/pgsql.la diff --git a/security/libpreludedb-pgsql/buildlink3.mk b/security/libpreludedb-pgsql/buildlink3.mk deleted file mode 100644 index 175881db3d4..00000000000 --- a/security/libpreludedb-pgsql/buildlink3.mk +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:35:37 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb-pgsql - -.if !defined(LIBPRELUDEDB_PGSQL_BUILDLINK3_MK) -LIBPRELUDEDB_PGSQL_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb-pgsql+= libpreludedb-pgsql>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb-pgsql?= libpreludedb-pgsql>=0.9.15.3nb26 -BUILDLINK_PKGSRCDIR.libpreludedb-pgsql?= ../../security/libpreludedb-pgsql - -.endif # LIBPRELUDEDB_PGSQL_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb-pgsql diff --git a/security/libpreludedb-python/DESCR b/security/libpreludedb-python/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb-python/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb-python/Makefile b/security/libpreludedb-python/Makefile deleted file mode 100644 index d105287b68d..00000000000 --- a/security/libpreludedb-python/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.40 2022/06/30 11:18:47 nia Exp $ - -PKGNAME= libpreludedb-python-${VERSION} -PKGREVISION= 28 -COMMENT= Python bindings for LibPreludeDB libraries - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=no -CONFIGURE_ARGS+= --with-mysql=no -CONFIGURE_ARGS+= --with-postgresql=no -CONFIGURE_ARGS+= --with-sqlite3=no - -CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} -PYBINMODULE= yes -PY_PATCHPLIST= yes -BUILD_DIRS= bindings - -PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 0.9.24.1 - -.include "../../lang/python/application.mk" -.include "../../lang/python/extension.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb-python/PLIST b/security/libpreludedb-python/PLIST deleted file mode 100644 index a0f52719ffe..00000000000 --- a/security/libpreludedb-python/PLIST +++ /dev/null @@ -1,5 +0,0 @@ -@comment $NetBSD: PLIST,v 1.2 2022/02/01 11:41:47 wiz Exp $ -${PYSITELIB}/_preludedb.so -${PYSITELIB}/preludedb-0.0.0-py2.7.egg-info -${PYSITELIB}/preludedb.py -${PYSITELIB}/preludedb.pyc diff --git a/security/libpreludedb-python/buildlink3.mk b/security/libpreludedb-python/buildlink3.mk deleted file mode 100644 index 83190e9b491..00000000000 --- a/security/libpreludedb-python/buildlink3.mk +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:35:37 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb-python - -.if !defined(LIBPRELUDEDB_PYTHON_BUILDLINK3_MK) -LIBPRELUDEDB_PYTHON_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb-python+= libpreludedb-python>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb-python?= libpreludedb-python>=0.9.15.3nb27 -BUILDLINK_PKGSRCDIR.libpreludedb-python?= ../../security/libpreludedb-python - -.endif # LIBPRELUDEDB_PYTHON_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb-python diff --git a/security/libpreludedb-sqlite3/DESCR b/security/libpreludedb-sqlite3/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb-sqlite3/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb-sqlite3/Makefile b/security/libpreludedb-sqlite3/Makefile deleted file mode 100644 index 0eae3a3356e..00000000000 --- a/security/libpreludedb-sqlite3/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.49 2022/06/28 11:35:37 wiz Exp $ -# - -PKGNAME= libpreludedb-sqlite3-${VERSION} -PKGREVISION= 46 -COMMENT= Sqlite3 plugin for LibPreludeDB - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=no -CONFIGURE_ARGS+= --with-python=no -CONFIGURE_ARGS+= --with-mysql=no -CONFIGURE_ARGS+= --with-postgresql=no - -BUILD_DIRS= plugins/sql - -CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3} - -.include "../../databases/sqlite3/buildlink3.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb-sqlite3/PLIST b/security/libpreludedb-sqlite3/PLIST deleted file mode 100644 index 7a2951df543..00000000000 --- a/security/libpreludedb-sqlite3/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2009/10/02 10:05:54 hasso Exp $ -lib/libpreludedb/plugins/sql/sqlite3.la diff --git a/security/libpreludedb-sqlite3/buildlink3.mk b/security/libpreludedb-sqlite3/buildlink3.mk deleted file mode 100644 index 9475654a007..00000000000 --- a/security/libpreludedb-sqlite3/buildlink3.mk +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:35:37 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb-sqlite3 - -.if !defined(LIBPRELUDEDB_SQLITE3_BUILDLINK3_MK) -LIBPRELUDEDB_SQLITE3_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb-sqlite3+= libpreludedb-sqlite3>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb-sqlite3?= libpreludedb-sqlite3>=0.9.15.3nb46 -BUILDLINK_PKGSRCDIR.libpreludedb-sqlite3?= ../../security/libpreludedb-sqlite3 - -.endif # LIBPRELUDEDB_SQLITE3_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb-sqlite3 diff --git a/security/libpreludedb/DESCR b/security/libpreludedb/DESCR deleted file mode 100644 index 43ee5edbaa3..00000000000 --- a/security/libpreludedb/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is Prelude DB Library. It allow the interface -allowing Prelude to use a DBMS for alert storage. -While libprelude support a choice of MySQL or -postgreSQL, this package uses MySQL because it -was nearly an order of magnitude faster during -test operation. diff --git a/security/libpreludedb/MESSAGE b/security/libpreludedb/MESSAGE deleted file mode 100644 index 6b927ac550c..00000000000 --- a/security/libpreludedb/MESSAGE +++ /dev/null @@ -1,13 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.2 2009/08/24 13:50:03 hasso Exp $ -Instructions for setting database creation may be found in the prelude -handbook: - -https://trac.prelude-ids.org/wiki/InstallingPreludeDbLibrary - -Deletion of database entries can be quite slow unless some additional -indices are created. The additional indices can be created by entering: - -mysql -u prelude prelude -p \ - < ${PREFIX}/share/libpreludedb/classic/addIndices.sql -=========================================================================== diff --git a/security/libpreludedb/Makefile b/security/libpreludedb/Makefile deleted file mode 100644 index aa3a7842508..00000000000 --- a/security/libpreludedb/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.52 2022/06/28 11:35:36 wiz Exp $ -# - -COMMENT= LibPreludeDB libraries -PKGREVISION= 23 - -.include "../../security/libpreludedb/Makefile.common" - -CONFIGURE_ARGS+= --with-perl=no -CONFIGURE_ARGS+= --with-python=no -CONFIGURE_ARGS+= --with-mysql=no -CONFIGURE_ARGS+= --with-postgresql=no -CONFIGURE_ARGS+= --with-sqlite3=no - -post-install: - ${INSTALL_DATA} ${FILESDIR}/addIndices.sql ${DESTDIR}${PREFIX}/share/libpreludedb/classic - -.include "../../security/libprelude/buildlink3.mk" -.include "../../devel/libltdl/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/libpreludedb/Makefile.common b/security/libpreludedb/Makefile.common deleted file mode 100644 index 386b2292f61..00000000000 --- a/security/libpreludedb/Makefile.common +++ /dev/null @@ -1,36 +0,0 @@ -# $NetBSD: Makefile.common,v 1.9 2020/03/27 20:56:53 joerg Exp $ -# -# used by security/libpreludedb/Makefile -# used by security/libpreludedb-mysql/Makefile -# used by security/libpreludedb-perl/Makefile -# used by security/libpreludedb-pgsql/Makefile -# used by security/libpreludedb-python/Makefile -# used by security/libpreludedb-sqlite3/Makefile - -DISTNAME= libpreludedb-${VERSION} -VERSION= 0.9.15.3 -CATEGORIES= security -MASTER_SITES= http://www.prelude-ids.com/download/releases/libpreludedb/ - -MAINTAINER?= pkgsrc-users@NetBSD.org -#HOMEPAGE= http://www.prelude-ids.org/download/releases/ -COMMENT= Provides an interface to the database used to store IDMEF alerts - -PATCHDIR= ${.CURDIR}/../../security/libpreludedb/patches -DISTINFO_FILE= ${.CURDIR}/../../security/libpreludedb/distinfo - -CHECK_PORTABILITY_SKIP+= configure.in - -USE_PKGLOCALEDIR= yes -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -USE_TOOLS+= make -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} -USE_LANGUAGES= c c++ - -PKG_OPTIONS_VAR= PKG_OPTIONS.libpreludedb - -pre-configure: - ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la ${BUILDLINK_DIR}/lib/libltdlc.la - -.include "../../mk/bsd.prefs.mk" diff --git a/security/libpreludedb/PLIST b/security/libpreludedb/PLIST deleted file mode 100644 index 8beeef1b6b3..00000000000 --- a/security/libpreludedb/PLIST +++ /dev/null @@ -1,57 +0,0 @@ -@comment $NetBSD: PLIST,v 1.13 2017/09/12 06:14:40 dholland Exp $ -bin/libpreludedb-config -bin/preludedb-admin -include/libpreludedb/preludedb-error.h -include/libpreludedb/preludedb-path-selection.h -include/libpreludedb/preludedb-plugin-format.h -include/libpreludedb/preludedb-plugin-sql.h -include/libpreludedb/preludedb-sql-settings.h -include/libpreludedb/preludedb-sql.h -include/libpreludedb/preludedb-version.h -include/libpreludedb/preludedb.h -lib/libpreludedb.la -lib/libpreludedb/plugins/formats/classic.la -man/man1/preludedb-admin.1 -share/aclocal/libpreludedb.m4 -share/gtk-doc/html/libpreludedb/ch01.html -share/gtk-doc/html/libpreludedb/home.png -share/gtk-doc/html/libpreludedb/index.html -share/gtk-doc/html/libpreludedb/index.sgml -share/gtk-doc/html/libpreludedb/left.png -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-error.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-path-selection.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-plugin-format.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-plugin-sql.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-sql-settings.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-sql.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb-version.html -share/gtk-doc/html/libpreludedb/libpreludedb-preludedb.html -share/gtk-doc/html/libpreludedb/libpreludedb.devhelp -share/gtk-doc/html/libpreludedb/libpreludedb.devhelp2 -share/gtk-doc/html/libpreludedb/right.png -share/gtk-doc/html/libpreludedb/style.css -share/gtk-doc/html/libpreludedb/up.png -share/libpreludedb/classic/addIndices.sql -share/libpreludedb/classic/mysql-update-14-1.sql -share/libpreludedb/classic/mysql-update-14-2.sql -share/libpreludedb/classic/mysql-update-14-3.sql -share/libpreludedb/classic/mysql-update-14-4.sql -share/libpreludedb/classic/mysql-update-14-5.sql -share/libpreludedb/classic/mysql-update-14-6.sql -share/libpreludedb/classic/mysql-update-14-7.sql -share/libpreludedb/classic/mysql.sql -share/libpreludedb/classic/mysql2pgsql.sh -share/libpreludedb/classic/mysql2sqlite.sh -share/libpreludedb/classic/pgsql-update-14-1.sql -share/libpreludedb/classic/pgsql-update-14-2.sql -share/libpreludedb/classic/pgsql-update-14-3.sql -share/libpreludedb/classic/pgsql-update-14-4.sql -share/libpreludedb/classic/pgsql-update-14-5.sql -share/libpreludedb/classic/pgsql-update-14-6.sql -share/libpreludedb/classic/pgsql-update-14-7.sql -share/libpreludedb/classic/pgsql.sql -share/libpreludedb/classic/sqlite-update-14-4.sql -share/libpreludedb/classic/sqlite-update-14-5.sql -share/libpreludedb/classic/sqlite-update-14-6.sql -share/libpreludedb/classic/sqlite-update-14-7.sql -share/libpreludedb/classic/sqlite.sql diff --git a/security/libpreludedb/buildlink3.mk b/security/libpreludedb/buildlink3.mk deleted file mode 100644 index f1a79fda276..00000000000 --- a/security/libpreludedb/buildlink3.mk +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: buildlink3.mk,v 1.26 2022/06/28 11:35:36 wiz Exp $ - -BUILDLINK_TREE+= libpreludedb - -.if !defined(LIBPRELUDEDB_BUILDLINK3_MK) -LIBPRELUDEDB_BUILDLINK3_MK:= - -BUILDLINK_API_DEPENDS.libpreludedb+= libpreludedb>=0.9.15.3 -BUILDLINK_ABI_DEPENDS.libpreludedb+= libpreludedb>=0.9.15.3nb23 -BUILDLINK_PKGSRCDIR.libpreludedb?= ../../security/libpreludedb - -.include "../../security/libprelude/buildlink3.mk" -.include "../../devel/libltdl/buildlink3.mk" -.endif # LIBPRELUDEDB_BUILDLINK3_MK - -BUILDLINK_TREE+= -libpreludedb diff --git a/security/libpreludedb/distinfo b/security/libpreludedb/distinfo deleted file mode 100644 index 3763ccaaeba..00000000000 --- a/security/libpreludedb/distinfo +++ /dev/null @@ -1,10 +0,0 @@ -$NetBSD: distinfo,v 1.19 2021/10/26 11:17:15 nia Exp $ - -BLAKE2s (libpreludedb-0.9.15.3.tar.gz) = 7f5b26f9789ea2460d93af02efb4b557427c0531ebdafd9f15b8f1d84b676f46 -SHA512 (libpreludedb-0.9.15.3.tar.gz) = 7cc0c04585fda115c88417782c6b18a61c93fe5c8d63c9be3f57de98972c031686576ab5a46adedc09b80054a9251979968c7006e59014d46b3265df166dcd12 -Size (libpreludedb-0.9.15.3.tar.gz) = 935457 bytes -SHA1 (patch-aa) = 11cb4f1353a5dbfc046992d862230849aeb21afa -SHA1 (patch-ab) = 52fe326b51634cdc123d4ccb48ac054c7cf318c4 -SHA1 (patch-ac) = d71fa2d8ec5c84692dc68801e06651bc70628e89 -SHA1 (patch-ad) = abd409d4e955f202796a5cb9da3360a76e8d2855 -SHA1 (patch-bindings_perl_PreludeDB.c) = aa77ad738e5d5d9b65cf0f4e2b5d7fdd14e9f7bf diff --git a/security/libpreludedb/files/addIndices.sql b/security/libpreludedb/files/addIndices.sql deleted file mode 100644 index 0d27ada82c7..00000000000 --- a/security/libpreludedb/files/addIndices.sql +++ /dev/null @@ -1,4 +0,0 @@ -alter table Prelude_Service add index (_message_ident,_parent_type); -alter table Prelude_Service add index (_message_ident); -alter table Prelude_Node add index (_message_ident,_parent_type); -alter table Prelude_Process add index (_message_ident,_parent_type); diff --git a/security/libpreludedb/patches/patch-aa b/security/libpreludedb/patches/patch-aa deleted file mode 100644 index 39a80e0e310..00000000000 --- a/security/libpreludedb/patches/patch-aa +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aa,v 1.2 2009/08/24 13:50:04 hasso Exp $ - ---- configure.orig 2009-07-20 22:39:58 +0200 -+++ configure 2009-07-20 22:40:11 +0200 -@@ -12505,7 +12505,7 @@ - - { $as_echo "$as_me:$LINENO: checking for cpu-specific compiler flags" >&5 - $as_echo_n "checking for cpu-specific compiler flags... " >&6; } --if test "$host_cpu" == "x86_64" && test $enable_static = "yes"; then -+if test "$host_cpu" = "x86_64" && test $enable_static = "yes"; then - { $as_echo "$as_me:$LINENO: result: x86_64/static: adding -fPIC" >&5 - $as_echo "x86_64/static: adding -fPIC" >&6; } - diff --git a/security/libpreludedb/patches/patch-ab b/security/libpreludedb/patches/patch-ab deleted file mode 100644 index 3d726e9bf35..00000000000 --- a/security/libpreludedb/patches/patch-ab +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ab,v 1.1 2009/10/02 09:50:38 hasso Exp $ - ---- plugins/sql/sqlite3/Makefile.in.orig 2009-09-26 16:38:21 +0200 -+++ plugins/sql/sqlite3/Makefile.in 2009-09-26 16:39:12 +0200 -@@ -121,7 +121,7 @@ - am__installdirs = "$(DESTDIR)$(sqlite3dir)" - LTLIBRARIES = $(sqlite3_LTLIBRARIES) - @HAVE_SQLITE3_TRUE@sqlite3_la_DEPENDENCIES = \ --@HAVE_SQLITE3_TRUE@ $(top_builddir)/src/libpreludedb.la -+@HAVE_SQLITE3_TRUE@ $(top_builddir)/../.buildlink/lib/libpreludedb.la - am__sqlite3_la_SOURCES_DIST = sqlite3.c - @HAVE_SQLITE3_TRUE@am_sqlite3_la_OBJECTS = sqlite3.lo - sqlite3_la_OBJECTS = $(am_sqlite3_la_OBJECTS) -@@ -590,7 +590,7 @@ - AM_CPPFLAGS = @PCFLAGS@ -I$(top_srcdir)/src/include -I$(top_srcdir)/libmissing -I$(top_builddir)/libmissing @LIBPRELUDE_CFLAGS@ @SQLITE3_CFLAGS@ - sqlite3_la_LDFLAGS = -module -avoid-version @LIBPRELUDE_LDFLAGS@ - @HAVE_SQLITE3_TRUE@sqlite3_la_SOURCES = sqlite3.c --@HAVE_SQLITE3_TRUE@sqlite3_la_LIBADD = $(top_builddir)/src/libpreludedb.la @LIBPRELUDE_LIBS@ @SQLITE3_LDFLAGS@ -+@HAVE_SQLITE3_TRUE@sqlite3_la_LIBADD = $(top_builddir)/../.buildlink/lib/libpreludedb.la @LIBPRELUDE_LIBS@ @SQLITE3_LDFLAGS@ - @HAVE_SQLITE3_TRUE@sqlite3dir = $(sql_plugin_dir) - @HAVE_SQLITE3_TRUE@sqlite3_LTLIBRARIES = sqlite3.la - all: all-am diff --git a/security/libpreludedb/patches/patch-ac b/security/libpreludedb/patches/patch-ac deleted file mode 100644 index 6a7d4e43b4f..00000000000 --- a/security/libpreludedb/patches/patch-ac +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ac,v 1.1 2009/10/02 09:50:38 hasso Exp $ - ---- plugins/sql/mysql/Makefile.in.orig 2009-09-26 16:39:48 +0200 -+++ plugins/sql/mysql/Makefile.in 2009-09-26 16:40:18 +0200 -@@ -121,7 +121,7 @@ - am__installdirs = "$(DESTDIR)$(mysqldir)" - LTLIBRARIES = $(mysql_LTLIBRARIES) - @HAVE_MYSQL_TRUE@mysql_la_DEPENDENCIES = \ --@HAVE_MYSQL_TRUE@ $(top_builddir)/src/libpreludedb.la -+@HAVE_MYSQL_TRUE@ $(top_builddir)/../.buildlink/lib/libpreludedb.la - am__mysql_la_SOURCES_DIST = mysql.c - @HAVE_MYSQL_TRUE@am_mysql_la_OBJECTS = mysql.lo - mysql_la_OBJECTS = $(am_mysql_la_OBJECTS) -@@ -590,7 +590,7 @@ - AM_CPPFLAGS = @PCFLAGS@ -I$(top_srcdir)/src/include -I$(top_srcdir)/libmissing -I$(top_builddir)/libmissing @LIBPRELUDE_CFLAGS@ @MYSQL_CFLAGS@ - mysql_la_LDFLAGS = -module -avoid-version @LIBPRELUDE_LDFLAGS@ - @HAVE_MYSQL_TRUE@mysql_la_SOURCES = mysql.c --@HAVE_MYSQL_TRUE@mysql_la_LIBADD = $(top_builddir)/src/libpreludedb.la @LIBPRELUDE_LIBS@ @MYSQL_LDFLAGS@ -+@HAVE_MYSQL_TRUE@mysql_la_LIBADD = $(top_builddir)/../.buildlink/lib/libpreludedb.la @LIBPRELUDE_LIBS@ @MYSQL_LDFLAGS@ - @HAVE_MYSQL_TRUE@mysqldir = $(sql_plugin_dir) - @HAVE_MYSQL_TRUE@mysql_LTLIBRARIES = mysql.la - all: all-am diff --git a/security/libpreludedb/patches/patch-ad b/security/libpreludedb/patches/patch-ad deleted file mode 100644 index bac43c44f07..00000000000 --- a/security/libpreludedb/patches/patch-ad +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ad,v 1.1 2009/10/02 09:50:38 hasso Exp $ - ---- plugins/sql/pgsql/Makefile.in.orig 2009-09-26 16:39:52 +0200 -+++ plugins/sql/pgsql/Makefile.in 2009-09-26 16:40:32 +0200 -@@ -121,7 +121,7 @@ - am__installdirs = "$(DESTDIR)$(pgsqldir)" - LTLIBRARIES = $(pgsql_LTLIBRARIES) - @HAVE_PGSQL_TRUE@pgsql_la_DEPENDENCIES = \ --@HAVE_PGSQL_TRUE@ $(top_builddir)/src/libpreludedb.la -+@HAVE_PGSQL_TRUE@ $(top_builddir)/../.buildlink/lib/libpreludedb.la - am__pgsql_la_SOURCES_DIST = pgsql.c - @HAVE_PGSQL_TRUE@am_pgsql_la_OBJECTS = pgsql.lo - pgsql_la_OBJECTS = $(am_pgsql_la_OBJECTS) -@@ -590,7 +590,7 @@ - AM_CPPFLAGS = @PCFLAGS@ -I$(top_srcdir)/src/include -I$(top_srcdir)/libmissing -I$(top_builddir)/libmissing @LIBPRELUDE_CFLAGS@ @POSTGRESQL_CFLAGS@ - pgsql_la_LDFLAGS = -module -avoid-version @LIBPRELUDE_LDFLAGS@ - @HAVE_PGSQL_TRUE@pgsql_la_SOURCES = pgsql.c --@HAVE_PGSQL_TRUE@pgsql_la_LIBADD = $(top_builddir)/src/libpreludedb.la @LIBPRELUDE_LIBS@ @POSTGRESQL_LDFLAGS@ -+@HAVE_PGSQL_TRUE@pgsql_la_LIBADD = $(top_builddir)/../.buildlink/lib/libpreludedb.la @LIBPRELUDE_LIBS@ @POSTGRESQL_LDFLAGS@ - @HAVE_PGSQL_TRUE@pgsqldir = $(sql_plugin_dir) - @HAVE_PGSQL_TRUE@pgsql_LTLIBRARIES = pgsql.la - all: all-am diff --git a/security/libpreludedb/patches/patch-bindings_perl_PreludeDB.c b/security/libpreludedb/patches/patch-bindings_perl_PreludeDB.c deleted file mode 100644 index b105375f311..00000000000 --- a/security/libpreludedb/patches/patch-bindings_perl_PreludeDB.c +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-bindings_perl_PreludeDB.c,v 1.1 2017/09/12 06:04:59 dholland Exp $ - -Don't undef bool; it breaks the build. - ---- bindings/perl/PreludeDB.c~ 2009-07-15 07:38:21.000000000 +0000 -+++ bindings/perl/PreludeDB.c -@@ -1425,7 +1425,7 @@ SWIG_Perl_SetModule(swig_module_info *mo - #undef eof - #endif - #ifdef bool -- #undef bool -+// #undef bool - #endif - #ifdef close - #undef close diff --git a/security/prelude-correlator/DESCR b/security/prelude-correlator/DESCR deleted file mode 100644 index cb8637f8e82..00000000000 --- a/security/prelude-correlator/DESCR +++ /dev/null @@ -1,9 +0,0 @@ -Prelude-Correlator serves to correlate, in real time, the multiple -events received by Prelude. Several isolated alerts, generated -from different sensors, can thus trigger a single correlation -alert should the events be related. This correlation alert then -appears within the Prewikka interface and indicates the potential -target information via the set of correlation rules. - -Signature creation with Prelude-Correlator is based on the powerful -programming language Lua. diff --git a/security/prelude-correlator/Makefile b/security/prelude-correlator/Makefile deleted file mode 100644 index 9ca447cc61c..00000000000 --- a/security/prelude-correlator/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -# $NetBSD: Makefile,v 1.28 2022/06/30 11:18:47 nia Exp $ - -DISTNAME= prelude-correlator-0.9.0-beta8 -PKGNAME= prelude-correlator-${DISTNAME:S/-beta/beta/:C/.*-//} -PKGREVISION= 10 -CATEGORIES= security -MASTER_SITES= http://www.prelude-ids.com/download/releases/prelude-correlator/ - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.prelude-ids.com/download/releases/prelude-correlator/ -COMMENT= Intrusion event correlation engine - -BUILD_DEFS+= VARBASE - -RCD_SCRIPTS= preludecorrelator -PRELUDE_CORRELATOR_PID_DIR= ${VARBASE}/run/prelude-correlator -PRELUDE_USER?= _prelude -PRELUDE_GROUP?= _prelude -PRELUDE_HOME?= ${VARBASE}/db/prelude-correlator -INSTALLATION_DIRS= sbin -OWN_DIRS= ${PKG_SYSCONFDIR}/prelude-correlator -EGDIR= ${PREFIX}/share/examples - -PKG_GROUPS_VARS+= PRELUDE_GROUP -PKG_USERS_VARS+= PRELUDE_USER - -PKG_GROUPS= ${PRELUDE_GROUP} -PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP} - -PKG_GECOS.${PRELUDE_USER}= Prelude IDS correlator -PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME} - -FILES_SUBST+= PRELUDE_CORRELATOR_PID_DIR=${PRELUDE_CORRELATOR_PID_DIR:Q} -FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q} -FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_USER:Q} - -SUBST_CLASSES+= code -SUBST_STAGE.code= pre-configure -SUBST_FILES.code= run-prelude-correlator.c -SUBST_FILES.code+= ${WRKSRC}/*.py -SUBST_VARS.code= PREFIX -SUBST_VARS.code+= PRELUDE_USER -SUBST_VARS.code+= PRELUDE_HOME - -CONF_FILES+= ${EGDIR}/prelude-correlator.conf ${PKG_SYSCONFDIR}/prelude-correlator/prelude-correlator.conf -CONF_FILES+= ${EGDIR}/dshield.dat ${PRELUDE_HOME}/dshield.dat -CONF_FILES+= ${EGDIR}/spamhaus_drop.dat ${PRELUDE_HOME}/spamhaus_drop.dat - -REQD_DIRS+= ${PRELUDE_HOME} -REQD_DIRS_PERMS+= ${PRELUDE_HOME} ${PRELUDE_USER} ${PRELUDE_GROUP} 0700 - -REPLACE_PYTHON= PreludeCorrelator/main.py -PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 0.9.0beta8 -EGG_NAME= prelude_correlator-0.9.0b8 - -USE_PKG_RESOURCES= yes - -pre-patch: - ${CP} ${FILESDIR}/run-prelude-correlator.c ${WRKSRC} - -post-build: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-correlator run-prelude-correlator.c - -post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-correlator ${DESTDIR}${PREFIX}/sbin/run-prelude-correlator - ${INSTALL_DATA} ${WRKSRC}/prelude-correlator.conf ${DESTDIR}${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/PreludeCorrelator/plugins/dshield.dat \ - ${WRKSRC}/PreludeCorrelator/plugins/spamhaus_drop.dat \ - ${DESTDIR}${EGDIR} - -.include "../../security/libprelude-python/buildlink3.mk" -.include "../../lang/python/application.mk" -.include "../../lang/python/egg.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/prelude-correlator/PLIST b/security/prelude-correlator/PLIST deleted file mode 100644 index 90411b3e258..00000000000 --- a/security/prelude-correlator/PLIST +++ /dev/null @@ -1,69 +0,0 @@ -@comment $NetBSD: PLIST,v 1.7 2014/03/11 14:05:14 jperkin Exp $ -bin/prelude-correlator -${PYSITELIB}/PreludeCorrelator/__init__.py -${PYSITELIB}/PreludeCorrelator/__init__.pyc -${PYSITELIB}/PreludeCorrelator/__init__.pyo -${PYSITELIB}/PreludeCorrelator/config.py -${PYSITELIB}/PreludeCorrelator/config.pyc -${PYSITELIB}/PreludeCorrelator/config.pyo -${PYSITELIB}/PreludeCorrelator/context.py -${PYSITELIB}/PreludeCorrelator/context.pyc -${PYSITELIB}/PreludeCorrelator/context.pyo -${PYSITELIB}/PreludeCorrelator/idmef.py -${PYSITELIB}/PreludeCorrelator/idmef.pyc -${PYSITELIB}/PreludeCorrelator/idmef.pyo -${PYSITELIB}/PreludeCorrelator/log.py -${PYSITELIB}/PreludeCorrelator/log.pyc -${PYSITELIB}/PreludeCorrelator/log.pyo -${PYSITELIB}/PreludeCorrelator/main.py -${PYSITELIB}/PreludeCorrelator/main.pyc -${PYSITELIB}/PreludeCorrelator/main.pyo -${PYSITELIB}/PreludeCorrelator/pluginmanager.py -${PYSITELIB}/PreludeCorrelator/pluginmanager.pyc -${PYSITELIB}/PreludeCorrelator/pluginmanager.pyo -${PYSITELIB}/PreludeCorrelator/plugins/__init__.py -${PYSITELIB}/PreludeCorrelator/plugins/__init__.pyc -${PYSITELIB}/PreludeCorrelator/plugins/__init__.pyo -${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.py -${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.pyc -${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.pyo -${PYSITELIB}/PreludeCorrelator/plugins/businesshour.py -${PYSITELIB}/PreludeCorrelator/plugins/businesshour.pyc -${PYSITELIB}/PreludeCorrelator/plugins/businesshour.pyo -${PYSITELIB}/PreludeCorrelator/plugins/dshield.py -${PYSITELIB}/PreludeCorrelator/plugins/dshield.pyc -${PYSITELIB}/PreludeCorrelator/plugins/dshield.pyo -${PYSITELIB}/PreludeCorrelator/plugins/firewall.py -${PYSITELIB}/PreludeCorrelator/plugins/firewall.pyc -${PYSITELIB}/PreludeCorrelator/plugins/firewall.pyo -${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.py -${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.pyc -${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.pyo -${PYSITELIB}/PreludeCorrelator/plugins/scan.py -${PYSITELIB}/PreludeCorrelator/plugins/scan.pyc -${PYSITELIB}/PreludeCorrelator/plugins/scan.pyo -${PYSITELIB}/PreludeCorrelator/plugins/spamhausdrop.py -${PYSITELIB}/PreludeCorrelator/plugins/spamhausdrop.pyc -${PYSITELIB}/PreludeCorrelator/plugins/spamhausdrop.pyo -${PYSITELIB}/PreludeCorrelator/plugins/worm.py -${PYSITELIB}/PreludeCorrelator/plugins/worm.pyc -${PYSITELIB}/PreludeCorrelator/plugins/worm.pyo -${PYSITELIB}/PreludeCorrelator/require.py -${PYSITELIB}/PreludeCorrelator/require.pyc -${PYSITELIB}/PreludeCorrelator/require.pyo -${PYSITELIB}/PreludeCorrelator/siteconfig.py -${PYSITELIB}/PreludeCorrelator/siteconfig.pyc -${PYSITELIB}/PreludeCorrelator/siteconfig.pyo -${PYSITELIB}/PreludeCorrelator/utils.py -${PYSITELIB}/PreludeCorrelator/utils.pyc -${PYSITELIB}/PreludeCorrelator/utils.pyo -${PYSITELIB}/${EGG_INFODIR}/PKG-INFO -${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt -${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt -${PYSITELIB}/${EGG_INFODIR}/entry_points.txt -${PYSITELIB}/${EGG_INFODIR}/not-zip-safe -${PYSITELIB}/${EGG_INFODIR}/top_level.txt -sbin/run-prelude-correlator -share/examples/dshield.dat -share/examples/prelude-correlator.conf -share/examples/spamhaus_drop.dat diff --git a/security/prelude-correlator/distinfo b/security/prelude-correlator/distinfo deleted file mode 100644 index bbe25c685bd..00000000000 --- a/security/prelude-correlator/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -$NetBSD: distinfo,v 1.8 2021/10/26 11:17:39 nia Exp $ - -BLAKE2s (prelude-correlator-0.9.0-beta8.tar.gz) = 47e8e3968708ed46197f4c3f44e76fe7f9b4d984d7dead497427839565c32943 -SHA512 (prelude-correlator-0.9.0-beta8.tar.gz) = 79bcfe50f294ec2268aead78b63bc5ec31e0c680a1122723f07d3e9fbc5640a0f0f7b50f453dfb917bd03c54fb34f43d100c22d069ffeba5b3fc2dd83028e6ac -Size (prelude-correlator-0.9.0-beta8.tar.gz) = 179713 bytes -SHA1 (patch-aa) = f6641b5a19d504716dcb51a2d1ec905fed7967f9 diff --git a/security/prelude-correlator/files/preludecorrelator.sh b/security/prelude-correlator/files/preludecorrelator.sh deleted file mode 100644 index b6b3557faa4..00000000000 --- a/security/prelude-correlator/files/preludecorrelator.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: preludecorrelator.sh,v 1.2 2011/10/07 22:37:05 shattered Exp $ -# - -# PROVIDE: preludecorrelator -# REQUIRE: LOGIN - -$_rc_subr_loaded . /etc/rc.subr - -name="preludecorrelator" -procname="@PREFIX@/bin/prelude-correlator" -rcvar=${name} -required_files="@PKG_SYSCONFDIR@/prelude-correlator/prelude-correlator.conf" -start_precmd="correlator_precommand" -start_cmd="@PREFIX@/sbin/run-prelude-correlator --pidfile @PRELUDE_CORRELATOR_PID_DIR@/prelude-correlator.pid --daemon" -pidfile="@PRELUDE_CORRELATOR_PID_DIR@/prelude-correlator.pid" - -correlator_precommand() -{ - /bin/mkdir -p @PRELUDE_CORRELATOR_PID_DIR@ - /usr/sbin/chown @PRELUDE_USER@:@PRELUDE_GROUP@ @PRELUDE_CORRELATOR_PID_DIR@ -} - -load_rc_config $name -run_rc_command "$1" diff --git a/security/prelude-correlator/files/run-prelude-correlator.c b/security/prelude-correlator/files/run-prelude-correlator.c deleted file mode 100644 index 3ea870fd727..00000000000 --- a/security/prelude-correlator/files/run-prelude-correlator.c +++ /dev/null @@ -1,166 +0,0 @@ -#define PRELUDE_CORRELATOR_USER "@PRELUDE_USER@" -#define PRELUDE_CORRELATOR_PATH "@PREFIX@/bin/prelude-correlator" - -#include <unistd.h> -#include <string.h> -#include <stdio.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/wait.h> -#include <pwd.h> -#include <syslog.h> - -#define MAX_ARGS 40 -#ifndef TRUE -#define TRUE 1 -#endif /* TRUE */ - -#ifndef FALSE -#define FALSE 0 -#endif /* FALSE */ - - -void error_sys(char *str) - -{ - /* Output error message to syslog */ - char msg[1024]; - snprintf(msg, sizeof(msg), "run-prelude-correlator : %s : %s", str, strerror(errno)); - syslog(LOG_ALERT, msg); - -} - - -int obtainUIDandGID(const char *name, uid_t *pw_uid, gid_t *pw_gid) -{ - /* Obtain UID and GID from passwd entry identified by name */ - struct passwd *pw_entry; - char msg[100]; - - if ((pw_entry = getpwnam(name)) == NULL) - { - snprintf(msg, sizeof(msg), "failed to get password entry for %s", name); - error_sys(msg); - return FALSE; - } - else - { - *pw_uid = pw_entry->pw_uid; - *pw_gid = pw_entry->pw_gid; - return TRUE; - - } -} - - -int main (int argc, char **argv ) - -{ - - pid_t pid; - uid_t UID; - gid_t GID; - pid_t pidwait; - int waitstat; - int s; - int max_fd; - - /* Sanity check */ - if (argc > MAX_ARGS) - { - error_sys("arg buffer too small"); - exit(-1); - } - - if (geteuid() != 0) - { - error_sys("must be called by root"); - exit(-1); - } - - /* fork child that will become prelude-correlator */ - if ((pid = fork()) < 0) - - error_sys("fork error"); - - else - - { - - if (pid == 0) - - { - - /* We're the child */ - char *args[MAX_ARGS]; - unsigned int i; - - /* Become session leader */ - setsid(); - - /* Change working directory to root directory. - The current working directory could be a mounted - filesystem; if the daemon stays on a mounted - filesystem it could prevent the filesystem from - being umounted. */ - chdir("/"); - - /* Clear out file creation mask */ - umask(0); - - /* Close unneeded file descriptors */ - max_fd = (int) sysconf(_SC_OPEN_MAX); - if (max_fd == -1) - max_fd = getdtablesize(); - for (s = 3; s < max_fd; s++) - (void) close(s); - - if (!obtainUIDandGID(PRELUDE_CORRELATOR_USER, &UID, &GID)) - exit(-1); - - /* Drop privileges immediately */ - if (setgid(GID) < 0) - { - /* It is VERY important to check return - value and not continue if setgid fails - */ - error_sys ("setgid failed"); - exit (-1); - } - - if (setuid(UID) < 0) - { - /* It is VERY important to check return - value and not continue if setuid fails - */ - error_sys ("setuid failed"); - exit (-1); - } - - /* Build calling argv */ - args[0] = PRELUDE_CORRELATOR_PATH; - for (i=1;i<argc;i++) - { - args[i] = argv[i]; - } - args[i++] = NULL; - - /* Finally transform self into prelude-correlator */ - if (execvp(PRELUDE_CORRELATOR_PATH, args) < 0) - error_sys("execve error"); - else - ; /* avoid if-then ambiguity */ - } - - else - - { - /* We're the parent - Terminate - */ - exit(0); - } - - } - -} diff --git a/security/prelude-correlator/patches/patch-aa b/security/prelude-correlator/patches/patch-aa deleted file mode 100644 index 31393c0bd02..00000000000 --- a/security/prelude-correlator/patches/patch-aa +++ /dev/null @@ -1,41 +0,0 @@ -$NetBSD: patch-aa,v 1.5 2010/03/23 18:01:48 joerg Exp $ - ---- setup.py.orig 2009-11-03 15:57:01.000000000 +0000 -+++ setup.py -@@ -52,7 +52,8 @@ class my_install(install): - - root = self.root or "" - for dir, files in data_files: -- dir = os.path.abspath(root + os.sep + os.path.join(prefix, dir)) -+ if dir != "@PRELUDE_HOME@": -+ dir = os.path.abspath(root + os.sep + os.path.join(prefix, dir)) - - self.mkpath(dir) - for f in files: -@@ -68,14 +69,14 @@ class my_install(install): - prefix = "" - - self.init_siteconfig(prefix) -- self.__install_data() -+ #self.__install_data() - install.run(self) - os.remove("PreludeCorrelator/siteconfig.py") - - def init_siteconfig(self, prefix): - config = open("PreludeCorrelator/siteconfig.py", "w") - print >> config, "conf_dir = '%s'" % os.path.abspath(prefix + "/etc/prelude-correlator") -- print >> config, "lib_dir = '%s'" % os.path.abspath(prefix + "/var/lib/prelude-correlator") -+ print >> config, "lib_dir = '%s'" % os.path.abspath("@PRELUDE_HOME@") - config.close() - - -@@ -88,8 +89,7 @@ if is_egg: - data_files = [ ("", ["prelude-correlator.conf"]) ] - else: - package_data = {} -- data_files = [ ("etc/prelude-correlator", ["prelude-correlator.conf"]), -- ("var/lib/prelude-correlator", ["PreludeCorrelator/plugins/dshield.dat", "PreludeCorrelator/plugins/spamhaus_drop.dat"]) ] -+ data_files = [ ("@PRELUDE_HOME@", ["PreludeCorrelator/plugins/dshield.dat", "PreludeCorrelator/plugins/spamhaus_drop.dat"]) ] - - setup( - name="prelude-correlator", diff --git a/security/prelude-lml/DESCR b/security/prelude-lml/DESCR deleted file mode 100644 index d0dbb033523..00000000000 --- a/security/prelude-lml/DESCR +++ /dev/null @@ -1,5 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. -Prelude-lml is the log file analyzer. It scans -system log files and generates IDMEF alerts to -the prelude-manager based on signature rulesets. diff --git a/security/prelude-lml/Makefile b/security/prelude-lml/Makefile deleted file mode 100644 index 3a57fc28d71..00000000000 --- a/security/prelude-lml/Makefile +++ /dev/null @@ -1,167 +0,0 @@ -# $NetBSD: Makefile,v 1.50 2021/12/08 16:06:22 adam Exp $ -# - -DISTNAME= prelude-lml-0.9.15 -PKGREVISION= 16 -CATEGORIES= security -MASTER_SITES= http://www.prelude-ids.com/download/releases/prelude-lml/ - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.prelude-ids.org/ -COMMENT= Log analyzer monitoring your logfile and received syslog messages - -.include "../../mk/bsd.prefs.mk" - -PRELUDE_USER?= _prelude -PRELUDE_GROUP?= _prelude - -PKG_GROUPS_VARS+= PRELUDE_GROUP -PKG_USERS_VARS+= PRELUDE_USER - -USE_PKGLOCALEDIR= yes -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -USE_TOOLS+= gmake -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} -CONFIGURE_ARGS+= --html=${PREFIX}/share/doc -CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} -RCD_SCRIPTS= preludelml -PRELUDE_USER?= _prelude -PRELUDE_GROUP?= _prelude -BUILD_DEFS+= VARBASE -PRELUDE_LML_PID_DIR= ${VARBASE}/run/prelude-lml -PRELUDE_HOME= ${VARBASE}/prelude-lml - -INSTALLATION_DIRS= sbin - -PKG_GROUPS= ${PRELUDE_GROUP} -PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP} - -EGDIR= ${PREFIX}/share/examples/prelude-lml -REQD_DIRS= ${EGDIR} ${PKG_SYSCONFDIR}/ruleset -MAKE_DIRS_PERMS+= ${VARBASE}/prelude-lml ${PRELUDE_USER} ${PRELUDE_GROUP} 0700 - -PKG_GECOS.${PRELUDE_USER}= Prelude IDS -PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME} - -FILES_SUBST+= PRELUDE_LML_PID_DIR=${PRELUDE_LML_PID_DIR:Q} -FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q} -FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_GROUP:Q} - -SUBST_CLASSES+= code -SUBST_STAGE.code= pre-configure -SUBST_FILES.code= run-prelude-lml.c -SUBST_VARS.code= PREFIX -SUBST_VARS.code+= PRELUDE_USER - -SUBST_CLASSES+= make -SUBST_STAGE.make= pre-configure -SUBST_FILES.make= Makefile.in -SUBST_VARS.make= EGDIR - -PKG_SYSCONFSUBDIR= prelude-lml -CONF_FILES_PERMS+= ${EGDIR}/plugins.rules ${PKG_SYSCONFDIR}/plugins.rules \ - ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644 -CONF_FILES_PERMS+= ${EGDIR}/prelude-lml.conf ${PKG_SYSCONFDIR}/prelude-lml.conf \ - ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644 - -# From plugins/pcre/ruleset/Makefile.in -ruleset_DATA = \ - apc-emu.rules \ - arbor.rules \ - arpwatch.rules \ - asterisk.rules \ - bonding.rules \ - cacti-thold.rules \ - checkpoint.rules \ - cisco-asa.rules \ - cisco-common.rules \ - cisco-css.rules \ - cisco-ips.rules \ - cisco-router.rules \ - cisco-vpn.rules \ - clamav.rules \ - dell-om.rules \ - f5-bigip.rules \ - grsecurity.rules \ - honeyd.rules \ - honeytrap.rules \ - httpd.rules \ - ipchains.rules \ - ipfw.rules \ - kojoney.rules \ - modsecurity.rules \ - ms-cluster.rules \ - ms-sql.rules \ - nagios.rules \ - navce.rules \ - netapp-ontap.rules \ - netfilter.rules \ - netscreen.rules \ - ntsyslog.rules \ - openhostapd.rules \ - pam.rules \ - pcanywhere.rules \ - pcre.rules \ - portsentry.rules \ - postfix.rules \ - ppp.rules \ - proftpd.rules \ - qpopper.rules \ - rishi.rules \ - selinux.rules \ - sendmail.rules \ - shadow-utils.rules \ - single.rules \ - sonicwall.rules \ - spamassassin.rules \ - squid.rules \ - su.rules \ - ssh.rules \ - sudo.rules \ - suhosin.rules \ - tripwire.rules \ - vigor.rules \ - vpopmail.rules \ - linksys-wap11.rules \ - webmin.rules \ - wu-ftp.rules -.for f in ${ruleset_DATA} -CONF_FILES+= ${EGDIR}/ruleset/${f:Q} ${PKG_SYSCONFDIR}/ruleset/${f:Q} -.endfor - -PKG_OPTIONS_VAR= PKG_OPTIONS.prelude-lml -PKG_SUPPORTED_OPTIONS= unsupported-rulesets - -.include "../../mk/bsd.options.mk" - -PLIST_VARS+= unsupported -.if !empty(PKG_OPTIONS:Munsupported-rulesets) -CONFIGURE_ARGS+= --enable-unsupported-rulesets -PLIST.unsupported= yes -unsupported_ruleset_DATA = \ - exim.rules \ - ipso.rules \ - zywall.rules \ - zyxel.rules -. for f in ${unsupported_ruleset_DATA} -CONF_FILES+= ${EGDIR}/ruleset/${f:Q} ${PKG_SYSCONFDIR}/ruleset/${f:Q} -. endfor -.endif - -pre-patch: - ${CP} ${FILESDIR}/run-prelude-lml.c ${WRKSRC} - -pre-configure: - ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.so ${BUILDLINK_DIR}/lib/libltdlc.so - -post-build: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-lml run-prelude-lml.c - -post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-lml ${DESTDIR}${PREFIX}/sbin/run-prelude-lml - -.include "../../security/libprelude/buildlink3.mk" -.include "../../devel/pcre/buildlink3.mk" -.include "../../devel/libltdl/buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/prelude-lml/PLIST b/security/prelude-lml/PLIST deleted file mode 100644 index d934215c17d..00000000000 --- a/security/prelude-lml/PLIST +++ /dev/null @@ -1,71 +0,0 @@ -@comment $NetBSD: PLIST,v 1.15 2018/01/01 22:29:54 rillig Exp $ -bin/prelude-lml -include/prelude-lml/prelude-lml.h -lib/prelude-lml/debug.la -lib/prelude-lml/pcre.la -sbin/run-prelude-lml -share/examples/prelude-lml/plugins.rules -share/examples/prelude-lml/prelude-lml.conf -share/examples/prelude-lml/ruleset/apc-emu.rules -share/examples/prelude-lml/ruleset/arbor.rules -share/examples/prelude-lml/ruleset/arpwatch.rules -share/examples/prelude-lml/ruleset/asterisk.rules -share/examples/prelude-lml/ruleset/bonding.rules -share/examples/prelude-lml/ruleset/cacti-thold.rules -share/examples/prelude-lml/ruleset/checkpoint.rules -share/examples/prelude-lml/ruleset/cisco-asa.rules -share/examples/prelude-lml/ruleset/cisco-common.rules -share/examples/prelude-lml/ruleset/cisco-css.rules -share/examples/prelude-lml/ruleset/cisco-ips.rules -share/examples/prelude-lml/ruleset/cisco-router.rules -share/examples/prelude-lml/ruleset/cisco-vpn.rules -share/examples/prelude-lml/ruleset/clamav.rules -share/examples/prelude-lml/ruleset/dell-om.rules -${PLIST.unsupported}share/examples/prelude-lml/ruleset/exim.rules -share/examples/prelude-lml/ruleset/f5-bigip.rules -share/examples/prelude-lml/ruleset/grsecurity.rules -share/examples/prelude-lml/ruleset/honeyd.rules -share/examples/prelude-lml/ruleset/honeytrap.rules -share/examples/prelude-lml/ruleset/httpd.rules -share/examples/prelude-lml/ruleset/ipchains.rules -share/examples/prelude-lml/ruleset/ipfw.rules -${PLIST.unsupported}share/examples/prelude-lml/ruleset/ipso.rules -share/examples/prelude-lml/ruleset/kojoney.rules -share/examples/prelude-lml/ruleset/linksys-wap11.rules -share/examples/prelude-lml/ruleset/modsecurity.rules -share/examples/prelude-lml/ruleset/ms-cluster.rules -share/examples/prelude-lml/ruleset/ms-sql.rules -share/examples/prelude-lml/ruleset/nagios.rules -share/examples/prelude-lml/ruleset/navce.rules -share/examples/prelude-lml/ruleset/netapp-ontap.rules -share/examples/prelude-lml/ruleset/netfilter.rules -share/examples/prelude-lml/ruleset/netscreen.rules -share/examples/prelude-lml/ruleset/ntsyslog.rules -share/examples/prelude-lml/ruleset/openhostapd.rules -share/examples/prelude-lml/ruleset/pam.rules -share/examples/prelude-lml/ruleset/pcanywhere.rules -share/examples/prelude-lml/ruleset/pcre.rules -share/examples/prelude-lml/ruleset/portsentry.rules -share/examples/prelude-lml/ruleset/postfix.rules -share/examples/prelude-lml/ruleset/ppp.rules -share/examples/prelude-lml/ruleset/proftpd.rules -share/examples/prelude-lml/ruleset/qpopper.rules -share/examples/prelude-lml/ruleset/rishi.rules -share/examples/prelude-lml/ruleset/selinux.rules -share/examples/prelude-lml/ruleset/sendmail.rules -share/examples/prelude-lml/ruleset/shadow-utils.rules -share/examples/prelude-lml/ruleset/single.rules -share/examples/prelude-lml/ruleset/sonicwall.rules -share/examples/prelude-lml/ruleset/spamassassin.rules -share/examples/prelude-lml/ruleset/squid.rules -share/examples/prelude-lml/ruleset/ssh.rules -share/examples/prelude-lml/ruleset/su.rules -share/examples/prelude-lml/ruleset/sudo.rules -share/examples/prelude-lml/ruleset/suhosin.rules -share/examples/prelude-lml/ruleset/tripwire.rules -share/examples/prelude-lml/ruleset/vigor.rules -share/examples/prelude-lml/ruleset/vpopmail.rules -share/examples/prelude-lml/ruleset/webmin.rules -share/examples/prelude-lml/ruleset/wu-ftp.rules -${PLIST.unsupported}share/examples/prelude-lml/ruleset/zywall.rules -${PLIST.unsupported}share/examples/prelude-lml/ruleset/zyxel.rules diff --git a/security/prelude-lml/distinfo b/security/prelude-lml/distinfo deleted file mode 100644 index 6f376451ee9..00000000000 --- a/security/prelude-lml/distinfo +++ /dev/null @@ -1,8 +0,0 @@ -$NetBSD: distinfo,v 1.20 2021/10/26 11:17:39 nia Exp $ - -BLAKE2s (prelude-lml-0.9.15.tar.gz) = c48b75dbe4db2ff4619bf544d301e0fa38100a26b0e05b393acbbecced6e953d -SHA512 (prelude-lml-0.9.15.tar.gz) = deeeead850479e4c15d21c26ab90a611c860df4765effe3bff8efa392ee38807efc7e4ba93d3b6a72085f477f5ff16448323e3df94dbc4025db4f0bd4d3b50d5 -Size (prelude-lml-0.9.15.tar.gz) = 1018513 bytes -SHA1 (patch-ab) = 62ef692dc3e1767de73629a736883c9bc6ef1264 -SHA1 (patch-ac) = 0980dcf3d203ad759997bd3d1efb36ea6722a4af -SHA1 (patch-ad) = ff6978d5975e4a410a8a9206d0a395ada5b4dbdf diff --git a/security/prelude-lml/files/preludelml.sh b/security/prelude-lml/files/preludelml.sh deleted file mode 100644 index 9ac7c7ffe1b..00000000000 --- a/security/prelude-lml/files/preludelml.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: preludelml.sh,v 1.5 2011/10/07 22:37:05 shattered Exp $ -# - -# PROVIDE: preludelml -# REQUIRE: LOGIN - -$_rc_subr_loaded . /etc/rc.subr - -name="preludelml" -procname="@PREFIX@/bin/prelude-lml" -rcvar=${name} -required_files="@PKG_SYSCONFDIR@/prelude-lml/prelude-lml.conf" -start_precmd="preludelml_precommand" -start_cmd="@PREFIX@/sbin/run-prelude-lml --pidfile @PRELUDE_LML_PID_DIR@/prelude-lml.pid" -pidfile="@PRELUDE_LML_PID_DIR@/prelude-lml.pid" - -preludelml_precommand() -{ - /bin/mkdir -p @PRELUDE_LML_PID_DIR@ - /usr/sbin/chown @PRELUDE_USER@:@PRELUDE_GROUP@ @PRELUDE_LML_PID_DIR@ -} - -load_rc_config $name -run_rc_command "$1" diff --git a/security/prelude-lml/files/run-prelude-lml.c b/security/prelude-lml/files/run-prelude-lml.c deleted file mode 100644 index 41e5888524a..00000000000 --- a/security/prelude-lml/files/run-prelude-lml.c +++ /dev/null @@ -1,166 +0,0 @@ -#define PRELUDE_LML_USER "@PRELUDE_USER@" -#define PRELUDE_LML_PATH "@PREFIX@/bin/prelude-lml" - -#include <unistd.h> -#include <string.h> -#include <stdio.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/wait.h> -#include <pwd.h> -#include <syslog.h> - -#define MAX_ARGS 40 -#ifndef TRUE -#define TRUE 1 -#endif /* TRUE */ - -#ifndef FALSE -#define FALSE 0 -#endif /* FALSE */ - - -void error_sys(char *str) - -{ - /* Output error message to syslog */ - char msg[1024]; - snprintf(msg, sizeof(msg), "run-prelude-lml : %s : %s", str, strerror(errno)); - syslog(LOG_ALERT, msg); - -} - - -int obtainUIDandGID(const char *name, uid_t *pw_uid, gid_t *pw_gid) -{ - /* Obtain UID and GID from passwd entry identified by name */ - struct passwd *pw_entry; - char msg[100]; - - if ((pw_entry = getpwnam(name)) == NULL) - { - snprintf(msg, sizeof(msg), "failed to get password entry for %s", name); - error_sys(msg); - return FALSE; - } - else - { - *pw_uid = pw_entry->pw_uid; - *pw_gid = pw_entry->pw_gid; - return TRUE; - - } -} - - -int main (int argc, char **argv ) - -{ - - pid_t pid; - uid_t UID; - gid_t GID; - pid_t pidwait; - int waitstat; - int s; - int max_fd; - - /* Sanity check */ - if (argc > MAX_ARGS) - { - error_sys("arg buffer too small"); - exit(-1); - } - - if (geteuid() != 0) - { - error_sys("must be called by root"); - exit(-1); - } - - /* fork child that will become prelude-lml */ - if ((pid = fork()) < 0) - - error_sys("fork error"); - - else - - { - - if (pid == 0) - - { - - /* We're the child */ - char *args[MAX_ARGS]; - unsigned int i; - - /* Become session leader */ - setsid(); - - /* Change working directory to root directory. - The current working directory could be a mounted - filesystem; if the daemon stays on a mounted - filesystem it could prevent the filesystem from - being umounted. */ - chdir("/"); - - /* Clear out file creation mask */ - umask(0); - - /* Close unneeded file descriptors */ - max_fd = (int) sysconf(_SC_OPEN_MAX); - if (max_fd == -1) - max_fd = getdtablesize(); - for (s = 3; s < max_fd; s++) - (void) close(s); - - if (!obtainUIDandGID(PRELUDE_LML_USER, &UID, &GID)) - exit(-1); - - /* Drop privileges immediately */ - if (setgid(GID) < 0) - { - /* It is VERY important to check return - value and not continue if setgid fails - */ - error_sys ("setgid failed"); - exit (-1); - } - - if (setuid(UID) < 0) - { - /* It is VERY important to check return - value and not continue if setuid fails - */ - error_sys ("setuid failed"); - exit (-1); - } - - /* Build calling argv */ - args[0] = PRELUDE_LML_PATH; - for (i=1;i<argc;i++) - { - args[i] = argv[i]; - } - args[i++] = NULL; - - /* Finally transform self into prelude-lml */ - if (execvp(PRELUDE_LML_PATH, args) < 0) - error_sys("execve error"); - else - ; /* avoid if-then ambiguity */ - } - - else - - { - /* We're the parent - Terminate - */ - exit(0); - } - - } - -} diff --git a/security/prelude-lml/patches/patch-ab b/security/prelude-lml/patches/patch-ab deleted file mode 100644 index fc11f7bd98e..00000000000 --- a/security/prelude-lml/patches/patch-ab +++ /dev/null @@ -1,40 +0,0 @@ -$NetBSD: patch-ab,v 1.5 2011/11/11 18:58:14 joerg Exp $ - ---- Makefile.in.orig 2007-08-08 09:48:58.000000000 -0600 -+++ Makefile.in -@@ -1285,33 +1285,10 @@ - - - install-data-local: -- $(INSTALL) -m 700 -d $(DESTDIR)$(metadata_dir) -- @if test -f $(DESTDIR)$(configdir)/prelude-lml.conf; then \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(configdir)/prelude-lml.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(configdir)/prelude-lml.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- $(INSTALL) -m 600 $(top_srcdir)/prelude-lml.conf $(DESTDIR)$(configdir)/prelude-lml.conf-dist; \ -- else \ -- $(INSTALL) -m 600 $(top_srcdir)/prelude-lml.conf $(DESTDIR)$(configdir)/; \ -- fi -- @if test -f $(DESTDIR)$(configdir)/plugins.rules; then \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(configdir)/plugins.rules already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(configdir)/plugins.rules-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- $(INSTALL) -m 600 $(top_srcdir)/plugins.rules $(DESTDIR)$(configdir)/plugins.rules-dist; \ -- else \ -- $(INSTALL) -m 600 $(top_srcdir)/plugins.rules $(DESTDIR)$(configdir)/; \ -- fi -+ $(BSD_INSTALL_DATA) $(top_srcdir)/prelude-lml.conf ${DESTDIR}@EGDIR@ -+ $(BSD_INSTALL_DATA) $(top_srcdir)/plugins.rules ${DESTDIR}@EGDIR@ - - uninstall-local: -- rm -f $(DESTDIR)$(configdir)/prelude-lml.conf; \ -- rm -f $(DESTDIR)$(configdir)/plugin.rules; - - dist-hook: - @if test -d "$(srcdir)/.git"; then \ diff --git a/security/prelude-lml/patches/patch-ac b/security/prelude-lml/patches/patch-ac deleted file mode 100644 index ca6d29e84ca..00000000000 --- a/security/prelude-lml/patches/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ac,v 1.1 2006/05/20 19:12:59 joerg Exp $ - ---- plugins/pcre/ruleset/unsupported/Makefile.in.orig 2006-05-20 18:50:34.000000000 +0000 -+++ plugins/pcre/ruleset/unsupported/Makefile.in -@@ -236,7 +236,7 @@ target_vendor = @target_vendor@ - @ENABLE_UNSUPPORTED_RULESETS_TRUE@ zywall.rules \ - @ENABLE_UNSUPPORTED_RULESETS_TRUE@ zyxel.rules - --@ENABLE_UNSUPPORTED_RULESETS_TRUE@rulesetdir = $(configdir)/ruleset -+@ENABLE_UNSUPPORTED_RULESETS_TRUE@rulesetdir = $(prefix)/share/examples/prelude-lml/ruleset - @ENABLE_UNSUPPORTED_RULESETS_TRUE@EXTRA_DIST = $(ruleset_DATA) - all: all-am - diff --git a/security/prelude-lml/patches/patch-ad b/security/prelude-lml/patches/patch-ad deleted file mode 100644 index 56c5621e71a..00000000000 --- a/security/prelude-lml/patches/patch-ad +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ad,v 1.2 2008/04/28 10:54:08 shannonjr Exp $ - ---- ./plugins/pcre/ruleset/Makefile.in.orig 2008-04-24 11:48:21.000000000 -0600 -+++ ./plugins/pcre/ruleset/Makefile.in -@@ -535,7 +535,7 @@ ruleset_DATA = \ - webmin.rules \ - wu-ftp.rules - --rulesetdir = $(configdir)/ruleset -+rulesetdir = $(prefix)/share/examples/prelude-lml/ruleset - EXTRA_DIST = $(ruleset_DATA) - all: all-recursive - diff --git a/security/prelude-manager/DESCR b/security/prelude-manager/DESCR deleted file mode 100644 index 3a4f5b67848..00000000000 --- a/security/prelude-manager/DESCR +++ /dev/null @@ -1,7 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is the manager. The Manager (there can be several -in an IDS network) accepts secured connections -from sensors and saves the alerts that Sensors -emit. This package installs the manager so that -mySql is used for alert storage. diff --git a/security/prelude-manager/Makefile b/security/prelude-manager/Makefile deleted file mode 100644 index b68e30132e2..00000000000 --- a/security/prelude-manager/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -# $NetBSD: Makefile,v 1.59 2022/04/18 19:12:01 adam Exp $ -# - -DISTNAME= prelude-manager-0.9.15 -PKGREVISION= 21 -CATEGORIES= security -MASTER_SITES= http://www.prelude-ids.com/download/releases/prelude-manager/ -#MASTER_SITES+= http://www.prelude-ids.org/download/releases/ -#MASTER_SITES+= http://www.prelude-ids.org/download/releases/old/ - -MAINTAINER= pkgsrc-users@NetBSD.org -#HOMEPAGE= http://www.prelude-ids.org/download/releases/ -COMMENT= Prelude IDS manager - -.include "../../mk/bsd.prefs.mk" - -USE_PKGLOCALEDIR= yes -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -USE_TOOLS+= make -USE_LANGUAGES= c c++ -BUILD_DEFS+= VARBASE -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} -CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} -CONFIGURE_ARGS+= --with-libpreludedb-prefix=${BUILDLINK_PREFIX.libpreludedb} - -RCD_SCRIPTS= preludemanager -PRELUDE_MANAGER_PID_DIR= ${VARBASE}/run/prelude-manager -PRELUDE_USER?= _prelude -PRELUDE_GROUP?= _prelude -PRELUDE_HOME?= ${VARBASE}/spool/prelude-manager -OWN_DIRS_PERMS+= ${PRELUDE_HOME} ${PRELUDE_USER} ${PRELUDE_GROUP} 750 -OWN_DIRS+= ${PKG_SYSCONFDIR}/prelude-manager - -INSTALLATION_DIRS= sbin - -PKG_GROUPS_VARS+= PRELUDE_GROUP -PKG_USERS_VARS+= PRELUDE_USER - -PKG_GROUPS= ${PRELUDE_GROUP} -PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP} - -PKG_GECOS.${PRELUDE_USER}= Prelude IDS manager -PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME} - -FILES_SUBST+= PRELUDE_MANAGER_PID_DIR=${PRELUDE_MANAGER_PID_DIR:Q} -FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q} -FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_USER:Q} - -SUBST_CLASSES+= code -SUBST_STAGE.code= pre-configure -SUBST_FILES.code= run-prelude-manager.c -SUBST_VARS.code= PREFIX -SUBST_VARS.code+= PRELUDE_USER - -EGDIR= share/examples/prelude-manager/ -CONF_FILES+= ${EGDIR}/prelude-manager.conf ${PKG_SYSCONFDIR}/prelude-manager/prelude-manager.conf - -pre-patch: - ${CP} ${FILESDIR}/run-prelude-manager.c ${WRKSRC} - -pre-configure: - ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.so ${BUILDLINK_DIR}/lib/libltdlc.so - -post-build: - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-manager run-prelude-manager.c - -post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-manager ${DESTDIR}${PREFIX}/sbin/run-prelude-manager - -.include "../../security/gnutls/buildlink3.mk" -.include "../../security/gnutls/libgnutls-config.mk" -.include "../../security/libprelude/buildlink3.mk" -.include "../../security/libpreludedb/buildlink3.mk" -.include "../../textproc/libxml2/buildlink3.mk" -.include "../../devel/libltdl/buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/prelude-manager/PLIST b/security/prelude-manager/PLIST deleted file mode 100644 index b0f50f58626..00000000000 --- a/security/prelude-manager/PLIST +++ /dev/null @@ -1,17 +0,0 @@ -@comment $NetBSD: PLIST,v 1.13 2018/01/01 22:29:54 rillig Exp $ -bin/prelude-manager -include/prelude-manager/prelude-manager.h -lib/prelude-manager/decodes/normalize.la -lib/prelude-manager/filters/idmef-criteria.la -lib/prelude-manager/filters/thresholding.la -lib/prelude-manager/reports/db.la -lib/prelude-manager/reports/debug.la -lib/prelude-manager/reports/relaying.la -lib/prelude-manager/reports/smtp.la -lib/prelude-manager/reports/textmod.la -lib/prelude-manager/reports/xmlmod.la -man/man1/prelude-manager.1 -sbin/run-prelude-manager -share/doc/prelude-manager/smtp/template.example -share/examples/prelude-manager/prelude-manager.conf -share/prelude-manager/xmlmod/idmef-message.dtd diff --git a/security/prelude-manager/distinfo b/security/prelude-manager/distinfo deleted file mode 100644 index a07fc08df28..00000000000 --- a/security/prelude-manager/distinfo +++ /dev/null @@ -1,7 +0,0 @@ -$NetBSD: distinfo,v 1.22 2021/10/26 11:17:39 nia Exp $ - -BLAKE2s (prelude-manager-0.9.15.tar.gz) = 77d01409aae4c2cc209ba6526ff709204a0fd0bd3b2af5410d8976409366eb1c -SHA512 (prelude-manager-0.9.15.tar.gz) = b4109316680fb8930a47df118bc9fca268a6b5c79f0d58aa030abcb520c14ad3e40dff900ae29a1cad3ba31132c0c00d59d0647e619564bbcc280cac76f86335 -Size (prelude-manager-0.9.15.tar.gz) = 1008163 bytes -SHA1 (patch-aa) = 250034ddeba5188895a6d873ce108b1bf33dfcc5 -SHA1 (patch-ab) = 29f8ff8528a73e05ef810cfa2c8b19325e527a53 diff --git a/security/prelude-manager/files/preludemanager.sh b/security/prelude-manager/files/preludemanager.sh deleted file mode 100644 index 3579565e76a..00000000000 --- a/security/prelude-manager/files/preludemanager.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: preludemanager.sh,v 1.4 2011/10/07 22:37:05 shattered Exp $ -# - -# PROVIDE: preludemanager -# REQUIRE: mysqld mail LOGIN - -$_rc_subr_loaded . /etc/rc.subr - -name="preludemanager" -procname="@PREFIX@/bin/prelude-manager" -rcvar=${name} -required_files="@PKG_SYSCONFDIR@/prelude-manager/prelude-manager.conf" -start_precmd="preludemanager_precommand" -start_cmd="@PREFIX@/sbin/run-prelude-manager -d --pidfile @PRELUDE_MANAGER_PID_DIR@/prelude-manager.pid" -pidfile="@PRELUDE_MANAGER_PID_DIR@/prelude-manager.pid" - -preludemanager_precommand() -{ - /bin/mkdir -p @PRELUDE_MANAGER_PID_DIR@ - /usr/sbin/chown @PRELUDE_USER@:@PRELUDE_GROUP@ @PRELUDE_MANAGER_PID_DIR@ - for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do - if [ -S /tmp/mysql.sock ]; then - break - else - sleep 1 - echo -n '.' - fi - done -} - -load_rc_config $name -run_rc_command "$1" diff --git a/security/prelude-manager/files/run-prelude-manager.c b/security/prelude-manager/files/run-prelude-manager.c deleted file mode 100644 index 5e4a6e5fd0e..00000000000 --- a/security/prelude-manager/files/run-prelude-manager.c +++ /dev/null @@ -1,161 +0,0 @@ -#define PRELUDE_MANAGER_PATH "@PREFIX@/bin/prelude-manager" -#define MAXMAXFD 256 - -#include <unistd.h> -#include <string.h> -#include <stdio.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/wait.h> -#include <pwd.h> -#include <syslog.h> -#include <sys/resource.h> - -#define MAX_ARGS 40 -#ifndef TRUE -#define TRUE 1 -#endif /* TRUE */ - -#ifndef FALSE -#define FALSE 0 -#endif /* FALSE */ - - -void error_sys(char *str) - -{ - /* Output error message to syslog */ - char msg[1024]; - snprintf(msg, sizeof(msg), "run-prelude-manager : %s : %s", str, strerror(errno)); - syslog(LOG_ALERT, msg); - -} - - -static int -fdlim_get(int hard) -{ - struct rlimit rlfd; - - if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0) - return (-1); - if ((hard ? rlfd.rlim_max : rlfd.rlim_cur) == RLIM_INFINITY) - return sysconf(_SC_OPEN_MAX); - else - return hard ? rlfd.rlim_max : rlfd.rlim_cur; -} - -static int -fdlim_set(int lim) -{ - struct rlimit rlfd; - - if (lim <= 0) - return (-1); - if (getrlimit(RLIMIT_NOFILE, &rlfd) < 0) - return (-1); - rlfd.rlim_cur = lim; - if (setrlimit(RLIMIT_NOFILE, &rlfd) < 0) - return (-1); - return (0); -} - -int main (int argc, char **argv ) - -{ - - pid_t pid; - uid_t UID; - gid_t GID; - pid_t pidwait; - int waitstat; - int maxfd; - int s; - - /* Sanity check */ - if (argc > MAX_ARGS) - { - error_sys("arg buffer too small"); - exit(-1); - } - - if (geteuid() != 0) - { - error_sys("must be called by root"); - exit(-1); - } - - /* fork child that will become prelude-manager */ - if ((pid = fork()) < 0) - - error_sys("fork error"); - - else - - { - - if (pid == 0) - - { - - /* We're the child */ - char *args[MAX_ARGS]; - unsigned int i; - - /* Become session leader */ - setsid(); - - /* Change working directory to root directory. - The current working directory could be a mounted - filesystem; if the daemon stays on a mounted - filesystem it could prevent the filesystem from - being umounted. */ - chdir("/"); - - /* Clear out file creation mask */ - umask(0); - - /* Close unneeded file descriptors */ - maxfd = (int) sysconf(_SC_OPEN_MAX); - if (maxfd == -1) - maxfd = getdtablesize(); - for (s = 3; s < maxfd; s++) - (void) close(s); - - /* Increase limit on number of open file descriptors if necessary */ - maxfd = fdlim_get(1); - if (maxfd < 0) - error_sys("fdlim_get: bad value"); - if (maxfd > MAXMAXFD) - maxfd = MAXMAXFD; - if (maxfd > fdlim_get(0)) - fdlim_set(maxfd); - - - /* Build calling argv */ - args[0] = PRELUDE_MANAGER_PATH; - for (i=1;i<argc;i++) - { - args[i] = argv[i]; - } - args[i++] = NULL; - - /* Finally transform self into prelude-manager */ - if (execvp(PRELUDE_MANAGER_PATH, args) < 0) - error_sys("execve error"); - else - ; /* avoid if-then ambiguity */ - } - - else - - { - /* We're the parent - Terminate - */ - exit(0); - } - - } - -} diff --git a/security/prelude-manager/patches/patch-aa b/security/prelude-manager/patches/patch-aa deleted file mode 100644 index 527e1e69b3f..00000000000 --- a/security/prelude-manager/patches/patch-aa +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-aa,v 1.1 2006/02/16 18:31:06 joerg Exp $ - ---- run-prelude-manager.c.orig 2006-02-16 18:22:30.000000000 +0000 -+++ run-prelude-manager.c -@@ -9,6 +9,7 @@ - #include <sys/wait.h> - #include <pwd.h> - #include <syslog.h> -+#include <sys/time.h> - #include <sys/resource.h> - - #define MAX_ARGS 40 diff --git a/security/prelude-manager/patches/patch-ab b/security/prelude-manager/patches/patch-ab deleted file mode 100644 index e28278e686b..00000000000 --- a/security/prelude-manager/patches/patch-ab +++ /dev/null @@ -1,28 +0,0 @@ -$NetBSD: patch-ab,v 1.3 2009/08/24 18:32:22 hasso Exp $ - ---- Makefile.in.orig 2009-07-20 23:35:10 +0200 -+++ Makefile.in 2009-07-20 23:41:18 +0200 -@@ -1208,21 +1208,8 @@ - - - install-data-local: -- $(INSTALL) -d -m 700 $(DESTDIR)$(configdir); -- $(INSTALL) -d -m 700 $(DESTDIR)$(manager_run_dir); -- $(INSTALL) -d -m 700 $(DESTDIR)$(manager_scheduler_dir); -- $(INSTALL) -d -m 700 $(DESTDIR)$(manager_failover_dir); -- @if test -f $(DESTDIR)$(configdir)/prelude-manager.conf; then \ -- $(INSTALL) -m 600 $(top_builddir)/prelude-manager.conf $(DESTDIR)$(configdir)/prelude-manager.conf-dist; \ -- echo "********************************************************************************"; \ -- echo; \ -- echo "$(DESTDIR)$(configdir)/prelude-manager.conf already exist..."; \ -- echo "Installing default configuration in $(DESTDIR)$(configdir)/prelude-manager.conf-dist"; \ -- echo; \ -- echo "********************************************************************************"; \ -- else \ -- $(INSTALL) -m 600 $(top_builddir)/prelude-manager.conf $(DESTDIR)$(configdir)/; \ -- fi -+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(prefix)/share/examples/prelude-manager; -+ $(INSTALL) -m 600 $(top_builddir)/prelude-manager.conf $(DESTDIR)$(prefix)/share/examples/prelude-manager/; - - dist-hook: - @if test -d "$(srcdir)/.git"; then \ diff --git a/security/py-prewikka/DESCR b/security/py-prewikka/DESCR deleted file mode 100644 index 050dab87898..00000000000 --- a/security/py-prewikka/DESCR +++ /dev/null @@ -1,3 +0,0 @@ -Prelude is a hybrid IDS consisting of multiple -sensors, managers, and a display console. This -is the display console. diff --git a/security/py-prewikka/Makefile b/security/py-prewikka/Makefile deleted file mode 100644 index 034d0c76fa5..00000000000 --- a/security/py-prewikka/Makefile +++ /dev/null @@ -1,70 +0,0 @@ -# $NetBSD: Makefile,v 1.53 2022/02/03 23:54:36 wiz Exp $ - -DISTNAME= prewikka-${VERSION} -PKGNAME= ${PYPKGPREFIX}-prewikka-${VERSION} -PKGREVISION= 1 -CATEGORIES= security -#MASTER_SITES= http://www.prelude-ids.org/download/releases/prewikka/ -#MASTER_SITES+= http://www.prelude-ids.org/download/releases/old/ - -MAINTAINER= pkgsrc-users@NetBSD.org -#HOMEPAGE= http://prelude-ids.org/download/releases/ -COMMENT= Prelude-IDS console - -DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah - -VERSION= 0.9.17.1 - -CONFLICTS= prewikka-[0-9]* - -USE_TOOLS+= msgfmt - -.include "../../mk/bsd.prefs.mk" - -REPLACE_PYTHON= scripts/prewikka-httpd -PYTHON_VERSIONS_ACCEPTED= 27 # py-cheetah - -PREWIKKA_USER?= prewikka -PREWIKKA_GROUP?= prewikka -PREWIKKA_HOME= /nonexistent -RCD_SCRIPTS= prewikka -PKG_SYSCONFSUBDIR= prewikka - -PKG_GROUPS= ${PREWIKKA_GROUP} -PKG_USERS= ${PREWIKKA_USER}:${PREWIKKA_GROUP} - -PKG_GECOS.${PREWIKKA_USER}= Prelude-IDS console -PKG_HOME.${PREWIKKA_USER}= ${PREWIKKA_HOME} - -PKG_GROUPS_VARS+= PREWIKKA_GROUP -PKG_USERS_VARS+= PREWIKKA_USER - -SUBST_CLASSES+= code -SUBST_STAGE.code= pre-configure -SUBST_FILES.code= runPrewikka.c -SUBST_VARS.code= PREFIX -SUBST_VARS.code+= PREWIKKA_USER -SUBST_VARS.code+= PYTHONBIN - -FILES_SUBST+= PREWIKKA_USER=${PREWIKKA_USER:Q} - -MAKE_ENV+= EXAMPLEDIR=share/examples/${PKGBASE} - -INSTALLATION_DIRS+= share/examples/${PKGBASE} sbin -CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/prewikka.conf ${PKG_SYSCONFDIR}/prewikka.conf - -pre-patch: - cp ${FILESDIR}/runPrewikka.c ${WRKSRC} - -post-build: - cd ${WRKSRC} && env ${MAKE_ENV} ${CC} ${CFLAGS} -o runPrewikka runPrewikka.c - -post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/runPrewikka ${DESTDIR}${PREFIX}/sbin/runPrewikka - -.include "../../lang/python/application.mk" -.include "../../lang/python/egg.mk" -BUILDLINK_API_DEPENDS.libpreludedb+= libpreludedb>=0.9.9 -.include "../../security/libpreludedb-python/buildlink3.mk" -.include "../../security/libprelude-python/buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/security/py-prewikka/PLIST b/security/py-prewikka/PLIST deleted file mode 100644 index 3bed13365ea..00000000000 --- a/security/py-prewikka/PLIST +++ /dev/null @@ -1,227 +0,0 @@ -@comment $NetBSD: PLIST,v 1.19 2022/02/03 23:54:36 wiz Exp $ -bin/prewikka-httpd -${PYSITELIB}/${EGG_INFODIR} -${PYSITELIB}/prewikka/Auth.py -${PYSITELIB}/prewikka/Auth.pyc -${PYSITELIB}/prewikka/Auth.pyo -${PYSITELIB}/prewikka/CheetahFilters.py -${PYSITELIB}/prewikka/CheetahFilters.pyc -${PYSITELIB}/prewikka/CheetahFilters.pyo -${PYSITELIB}/prewikka/Config.py -${PYSITELIB}/prewikka/Config.pyc -${PYSITELIB}/prewikka/Config.pyo -${PYSITELIB}/prewikka/Core.py -${PYSITELIB}/prewikka/Core.pyc -${PYSITELIB}/prewikka/Core.pyo -${PYSITELIB}/prewikka/DataSet.py -${PYSITELIB}/prewikka/DataSet.pyc -${PYSITELIB}/prewikka/DataSet.pyo -${PYSITELIB}/prewikka/Database.py -${PYSITELIB}/prewikka/Database.pyc -${PYSITELIB}/prewikka/Database.pyo -${PYSITELIB}/prewikka/Error.py -${PYSITELIB}/prewikka/Error.pyc -${PYSITELIB}/prewikka/Error.pyo -${PYSITELIB}/prewikka/Filter.py -${PYSITELIB}/prewikka/Filter.pyc -${PYSITELIB}/prewikka/Filter.pyo -${PYSITELIB}/prewikka/IDMEFDatabase.py -${PYSITELIB}/prewikka/IDMEFDatabase.pyc -${PYSITELIB}/prewikka/IDMEFDatabase.pyo -${PYSITELIB}/prewikka/Log.py -${PYSITELIB}/prewikka/Log.pyc -${PYSITELIB}/prewikka/Log.pyo -${PYSITELIB}/prewikka/ModPythonHandler.py -${PYSITELIB}/prewikka/ModPythonHandler.pyc -${PYSITELIB}/prewikka/ModPythonHandler.pyo -${PYSITELIB}/prewikka/MyConfigParser.py -${PYSITELIB}/prewikka/MyConfigParser.pyc -${PYSITELIB}/prewikka/MyConfigParser.pyo -${PYSITELIB}/prewikka/Request.py -${PYSITELIB}/prewikka/Request.pyc -${PYSITELIB}/prewikka/Request.pyo -${PYSITELIB}/prewikka/User.py -${PYSITELIB}/prewikka/User.pyc -${PYSITELIB}/prewikka/User.pyo -${PYSITELIB}/prewikka/__init__.py -${PYSITELIB}/prewikka/__init__.pyc -${PYSITELIB}/prewikka/__init__.pyo -${PYSITELIB}/prewikka/_threading_local.py -${PYSITELIB}/prewikka/_threading_local.pyc -${PYSITELIB}/prewikka/_threading_local.pyo -${PYSITELIB}/prewikka/localization.py -${PYSITELIB}/prewikka/localization.pyc -${PYSITELIB}/prewikka/localization.pyo -${PYSITELIB}/prewikka/modules/__init__.py -${PYSITELIB}/prewikka/modules/__init__.pyc -${PYSITELIB}/prewikka/modules/__init__.pyo -${PYSITELIB}/prewikka/modules/auth/__init__.py -${PYSITELIB}/prewikka/modules/auth/__init__.pyc -${PYSITELIB}/prewikka/modules/auth/__init__.pyo -${PYSITELIB}/prewikka/modules/auth/anonymous/__init__.py -${PYSITELIB}/prewikka/modules/auth/anonymous/__init__.pyc -${PYSITELIB}/prewikka/modules/auth/anonymous/__init__.pyo -${PYSITELIB}/prewikka/modules/auth/anonymous/anonymous.py -${PYSITELIB}/prewikka/modules/auth/anonymous/anonymous.pyc -${PYSITELIB}/prewikka/modules/auth/anonymous/anonymous.pyo -${PYSITELIB}/prewikka/modules/auth/cgi/__init__.py -${PYSITELIB}/prewikka/modules/auth/cgi/__init__.pyc -${PYSITELIB}/prewikka/modules/auth/cgi/__init__.pyo -${PYSITELIB}/prewikka/modules/auth/cgi/cgi.py -${PYSITELIB}/prewikka/modules/auth/cgi/cgi.pyc -${PYSITELIB}/prewikka/modules/auth/cgi/cgi.pyo -${PYSITELIB}/prewikka/modules/auth/loginpassword/__init__.py -${PYSITELIB}/prewikka/modules/auth/loginpassword/__init__.pyc -${PYSITELIB}/prewikka/modules/auth/loginpassword/__init__.pyo -${PYSITELIB}/prewikka/modules/auth/loginpassword/loginpassword.py -${PYSITELIB}/prewikka/modules/auth/loginpassword/loginpassword.pyc -${PYSITELIB}/prewikka/modules/auth/loginpassword/loginpassword.pyo -${PYSITELIB}/prewikka/resolve.py -${PYSITELIB}/prewikka/resolve.pyc -${PYSITELIB}/prewikka/resolve.pyo -${PYSITELIB}/prewikka/siteconfig.py -${PYSITELIB}/prewikka/siteconfig.pyc -${PYSITELIB}/prewikka/siteconfig.pyo -${PYSITELIB}/prewikka/templates/About.py -${PYSITELIB}/prewikka/templates/About.pyc -${PYSITELIB}/prewikka/templates/About.pyo -${PYSITELIB}/prewikka/templates/AlertListing.py -${PYSITELIB}/prewikka/templates/AlertListing.pyc -${PYSITELIB}/prewikka/templates/AlertListing.pyo -${PYSITELIB}/prewikka/templates/ClassicLayout.py -${PYSITELIB}/prewikka/templates/ClassicLayout.pyc -${PYSITELIB}/prewikka/templates/ClassicLayout.pyo -${PYSITELIB}/prewikka/templates/Command.py -${PYSITELIB}/prewikka/templates/Command.pyc -${PYSITELIB}/prewikka/templates/Command.pyo -${PYSITELIB}/prewikka/templates/ErrorTemplate.py -${PYSITELIB}/prewikka/templates/ErrorTemplate.pyc -${PYSITELIB}/prewikka/templates/ErrorTemplate.pyo -${PYSITELIB}/prewikka/templates/FilterEdition.py -${PYSITELIB}/prewikka/templates/FilterEdition.pyc -${PYSITELIB}/prewikka/templates/FilterEdition.pyo -${PYSITELIB}/prewikka/templates/HTMLDocument.py -${PYSITELIB}/prewikka/templates/HTMLDocument.pyc -${PYSITELIB}/prewikka/templates/HTMLDocument.pyo -${PYSITELIB}/prewikka/templates/HeartbeatAnalyze.py -${PYSITELIB}/prewikka/templates/HeartbeatAnalyze.pyc -${PYSITELIB}/prewikka/templates/HeartbeatAnalyze.pyo -${PYSITELIB}/prewikka/templates/HeartbeatListing.py -${PYSITELIB}/prewikka/templates/HeartbeatListing.pyc -${PYSITELIB}/prewikka/templates/HeartbeatListing.pyo -${PYSITELIB}/prewikka/templates/IDMEFBrowser.py -${PYSITELIB}/prewikka/templates/IDMEFBrowser.pyc -${PYSITELIB}/prewikka/templates/IDMEFBrowser.pyo -${PYSITELIB}/prewikka/templates/LoginPasswordForm.py -${PYSITELIB}/prewikka/templates/LoginPasswordForm.pyc -${PYSITELIB}/prewikka/templates/LoginPasswordForm.pyo -${PYSITELIB}/prewikka/templates/MessageDetails.py -${PYSITELIB}/prewikka/templates/MessageDetails.pyc -${PYSITELIB}/prewikka/templates/MessageDetails.pyo -${PYSITELIB}/prewikka/templates/MessageListing.py -${PYSITELIB}/prewikka/templates/MessageListing.pyc -${PYSITELIB}/prewikka/templates/MessageListing.pyo -${PYSITELIB}/prewikka/templates/MessageSummary.py -${PYSITELIB}/prewikka/templates/MessageSummary.pyc -${PYSITELIB}/prewikka/templates/MessageSummary.pyo -${PYSITELIB}/prewikka/templates/PropertiesChangeForm.py -${PYSITELIB}/prewikka/templates/PropertiesChangeForm.pyc -${PYSITELIB}/prewikka/templates/PropertiesChangeForm.pyo -${PYSITELIB}/prewikka/templates/SensorAlertListing.py -${PYSITELIB}/prewikka/templates/SensorAlertListing.pyc -${PYSITELIB}/prewikka/templates/SensorAlertListing.pyo -${PYSITELIB}/prewikka/templates/SensorHeartbeatListing.py -${PYSITELIB}/prewikka/templates/SensorHeartbeatListing.pyc -${PYSITELIB}/prewikka/templates/SensorHeartbeatListing.pyo -${PYSITELIB}/prewikka/templates/SensorListing.py -${PYSITELIB}/prewikka/templates/SensorListing.pyc -${PYSITELIB}/prewikka/templates/SensorListing.pyo -${PYSITELIB}/prewikka/templates/TopLayout.py -${PYSITELIB}/prewikka/templates/TopLayout.pyc -${PYSITELIB}/prewikka/templates/TopLayout.pyo -${PYSITELIB}/prewikka/templates/UserListing.py -${PYSITELIB}/prewikka/templates/UserListing.pyc -${PYSITELIB}/prewikka/templates/UserListing.pyo -${PYSITELIB}/prewikka/templates/UserSettings.py -${PYSITELIB}/prewikka/templates/UserSettings.pyc -${PYSITELIB}/prewikka/templates/UserSettings.pyo -${PYSITELIB}/prewikka/templates/__init__.py -${PYSITELIB}/prewikka/templates/__init__.pyc -${PYSITELIB}/prewikka/templates/__init__.pyo -${PYSITELIB}/prewikka/templates/utils.py -${PYSITELIB}/prewikka/templates/utils.pyc -${PYSITELIB}/prewikka/templates/utils.pyo -${PYSITELIB}/prewikka/utils.py -${PYSITELIB}/prewikka/utils.pyc -${PYSITELIB}/prewikka/utils.pyo -${PYSITELIB}/prewikka/view.py -${PYSITELIB}/prewikka/view.pyc -${PYSITELIB}/prewikka/view.pyo -${PYSITELIB}/prewikka/views/__init__.py -${PYSITELIB}/prewikka/views/__init__.pyc -${PYSITELIB}/prewikka/views/__init__.pyo -${PYSITELIB}/prewikka/views/alertlisting.py -${PYSITELIB}/prewikka/views/alertlisting.pyc -${PYSITELIB}/prewikka/views/alertlisting.pyo -${PYSITELIB}/prewikka/views/commands.py -${PYSITELIB}/prewikka/views/commands.pyc -${PYSITELIB}/prewikka/views/commands.pyo -${PYSITELIB}/prewikka/views/filter.py -${PYSITELIB}/prewikka/views/filter.pyc -${PYSITELIB}/prewikka/views/filter.pyo -${PYSITELIB}/prewikka/views/heartbeatlisting.py -${PYSITELIB}/prewikka/views/heartbeatlisting.pyc -${PYSITELIB}/prewikka/views/heartbeatlisting.pyo -${PYSITELIB}/prewikka/views/messagedetails.py -${PYSITELIB}/prewikka/views/messagedetails.pyc -${PYSITELIB}/prewikka/views/messagedetails.pyo -${PYSITELIB}/prewikka/views/messagelisting.py -${PYSITELIB}/prewikka/views/messagelisting.pyc -${PYSITELIB}/prewikka/views/messagelisting.pyo -${PYSITELIB}/prewikka/views/messagesummary.py -${PYSITELIB}/prewikka/views/messagesummary.pyc -${PYSITELIB}/prewikka/views/messagesummary.pyo -${PYSITELIB}/prewikka/views/misc.py -${PYSITELIB}/prewikka/views/misc.pyc -${PYSITELIB}/prewikka/views/misc.pyo -${PYSITELIB}/prewikka/views/sensor.py -${PYSITELIB}/prewikka/views/sensor.pyc -${PYSITELIB}/prewikka/views/sensor.pyo -${PYSITELIB}/prewikka/views/usermanagement.py -${PYSITELIB}/prewikka/views/usermanagement.pyc -${PYSITELIB}/prewikka/views/usermanagement.pyo -sbin/runPrewikka -share/examples/${PKGBASE}/prewikka.conf -share/locale/de/LC_MESSAGES/prewikka.mo -share/locale/es/LC_MESSAGES/prewikka.mo -share/locale/fr/LC_MESSAGES/prewikka.mo -share/locale/pl/LC_MESSAGES/prewikka.mo -share/locale/pt_BR/LC_MESSAGES/prewikka.mo -share/locale/ru/LC_MESSAGES/prewikka.mo -share/prewikka/cgi-bin/prewikka.cgi -share/prewikka/database/mysql-update-0.9.1.sql -share/prewikka/database/mysql-update-0.9.11.sql -share/prewikka/database/mysql.sql -share/prewikka/database/mysql2pgsql.sh -share/prewikka/database/mysql2sqlite.sh -share/prewikka/database/pgsql-update-0.9.1.sql -share/prewikka/database/pgsql-update-0.9.11.sql -share/prewikka/database/pgsql.sql -share/prewikka/database/sqlite-update-0.9.11.sql -share/prewikka/database/sqlite.sql -share/prewikka/htdocs/css/style.css -share/prewikka/htdocs/images/bg2.gif -share/prewikka/htdocs/images/bg_content.gif -share/prewikka/htdocs/images/favicon.ico -share/prewikka/htdocs/images/led_N.gif -share/prewikka/htdocs/images/led_Y.gif -share/prewikka/htdocs/images/n.gif -share/prewikka/htdocs/images/pause.png -share/prewikka/htdocs/images/play.png -share/prewikka/htdocs/images/prelude-logo.gif -share/prewikka/htdocs/images/prelude-logo.png -share/prewikka/htdocs/images/search.png -share/prewikka/htdocs/images/table_order_down.gif -share/prewikka/htdocs/images/table_order_up.gif -share/prewikka/htdocs/js/functions.js -share/prewikka/htdocs/js/jquery.js diff --git a/security/py-prewikka/distinfo b/security/py-prewikka/distinfo deleted file mode 100644 index bf2aff52cdd..00000000000 --- a/security/py-prewikka/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -$NetBSD: distinfo,v 1.17 2021/10/26 11:17:49 nia Exp $ - -BLAKE2s (prewikka-0.9.17.1.tar.gz) = d05431746952f10fbf1bbf69d47f41030ab347e9502b717e71c495db55071528 -SHA512 (prewikka-0.9.17.1.tar.gz) = 72b913481eae1af3d22c7faa281df8a36287ca355c94a1788d1c32b6a60e0d8aabd981429ff7ee36d84bd88e4892a4d689fb75e33a137e2472612ea5859162d9 -Size (prewikka-0.9.17.1.tar.gz) = 286990 bytes -SHA1 (patch-ab) = 76fd7ee4f1c19336a8eaa98fa1513e88e1c4c070 diff --git a/security/py-prewikka/files/prewikka.sh b/security/py-prewikka/files/prewikka.sh deleted file mode 100644 index 895b0c712af..00000000000 --- a/security/py-prewikka/files/prewikka.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: prewikka.sh,v 1.2 2011/10/07 22:37:06 shattered Exp $ -# - -# PROVIDE: prewikka -# REQUIRE: mysqld LOGIN - -$_rc_subr_loaded . /etc/rc.subr - -name="prewikka" -rcvar=$name -required_files="@PKG_SYSCONFDIR@/prewikka/prewikka.conf" -start_precmd="prewikka_precommand" -command="@PREFIX@/sbin/runPrewikka -p 8080 -a 192.168.1.8" - -prewikka_precommand() -{ - for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do - if [ -S /tmp/mysql.sock ]; then - break - else - sleep 1 - echo -n '.' - fi - done -} - -load_rc_config $name -run_rc_command "$1" diff --git a/security/py-prewikka/files/runPrewikka.c b/security/py-prewikka/files/runPrewikka.c deleted file mode 100644 index fb27361f5d2..00000000000 --- a/security/py-prewikka/files/runPrewikka.c +++ /dev/null @@ -1,146 +0,0 @@ -#define PREWIKKA_HTTPD_USER "@PREWIKKA_USER@" -#define PREWIKKA_HTTPD_PATH "@PREFIX@/bin/prewikka-httpd" -#define PYTHON "@PYTHONBIN@" - -#include <unistd.h> -#include <string.h> -#include <stdio.h> -#include <errno.h> -#include <stdlib.h> -#include <sys/wait.h> -#include <pwd.h> -#include <syslog.h> - -#define MAX_ARGS 40 -#ifndef TRUE -#define TRUE 1 -#endif /* TRUE */ - -#ifndef FALSE -#define FALSE 0 -#endif /* FALSE */ - - -void error_sys(char *str) - -{ - /* Output error message to syslog */ - char msg[1024]; - snprintf(msg, sizeof(msg), "run-prewikka-httpd : %s : %s", str, strerror(errno)); - syslog(LOG_ALERT, msg); - -} - - -int obtainUIDandGID(const char *name, uid_t *pw_uid, gid_t *pw_gid) -{ - /* Obtain UID and GID from passwd entry identified by name */ - struct passwd *pw_entry; - char msg[100]; - - if ((pw_entry = getpwnam(name)) == NULL) - { - snprintf(msg, sizeof(msg), "failed to get password entry for %s", name); - error_sys(msg); - return FALSE; - } - else - { - *pw_uid = pw_entry->pw_uid; - *pw_gid = pw_entry->pw_gid; - return TRUE; - - } -} - - -int main (int argc, char **argv ) - -{ - - pid_t pid; - uid_t UID; - gid_t GID; - pid_t pidwait; - int waitstat; - - /* Sanity check */ - if (argc > MAX_ARGS) - { - error_sys("arg buffer too small"); - exit(-1); - } - - /* fork child that will become prewikka-httpd */ - if ((pid = fork()) < 0) - - error_sys("fork error"); - - else - - { - - if (pid == 0) - - { - - /* We're the child */ - char *args[MAX_ARGS]; - unsigned int i; - - /* Become session leader */ - setsid(); - - /* Clear out file creation mask */ - umask(0); - - if (!obtainUIDandGID(PREWIKKA_HTTPD_USER, &UID, &GID)) - exit(-1); - - /* Drop privileges immediately */ - if (setgid(GID) < 0) - { - /* It is VERY important to check return - value and not continue if setgid fails - */ - error_sys ("setgid failed"); - exit (-1); - } - - if (setuid(UID) < 0) - { - /* It is VERY important to check return - value and not continue if setuid fails - */ - error_sys ("setuid failed"); - exit (-1); - } - - /* Build calling argv */ - args[0] = PYTHON; - args[1] = PREWIKKA_HTTPD_PATH; - for (i=1;i<argc;i++) - { - args[i+1] = argv[i]; - args[i+2] = NULL; - } - - /* Finally transform self into prewikka-httpd */ - if (execvp(PYTHON, args) < 0) - error_sys("execve error"); - else - ; /* avoid if-then ambiguity */ - } - - else - - { - /* We're the parent - Terminate - */ - exit(0); - } - - } - -} diff --git a/security/py-prewikka/patches/patch-ab b/security/py-prewikka/patches/patch-ab deleted file mode 100644 index b039ab8bee0..00000000000 --- a/security/py-prewikka/patches/patch-ab +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ab,v 1.1 2006/10/10 15:05:14 joerg Exp $ - ---- setup.py.orig 2006-08-16 10:45:41.000000000 +0000 -+++ setup.py -@@ -116,17 +116,13 @@ class my_install_scripts (install_script - class my_install(install): - def finalize_options(self): - ### if no prefix is given, configuration should go to /etc or in {prefix}/etc otherwise -- if self.prefix: -- self.conf_prefix = self.prefix + "/etc/prewikka" -- else: -- self.conf_prefix = "/etc/prewikka" -- -+ self.conf_prefix = os.environ["PKG_SYSCONFDIR"] - install.finalize_options(self) - - def install_conf(self): - self.mkpath((self.root or "") + self.conf_prefix) - for file in self.distribution.conf_files: -- dest = (self.root or "") + self.conf_prefix + "/" + os.path.basename(file) -+ dest = (self.root or "") + self.prefix + "/" + os.environ["EXAMPLEDIR"] + "/" + os.path.basename(file) - if os.path.exists(dest): - dest += "-dist" - self.copy_file(file, dest) |