public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/aide/files/, app-forensics/aide/
@ 2017-05-27 20:59 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-05-27 20:59 UTC (permalink / raw
  To: gentoo-commits

commit:     cef734e130eb7d9e83750ccf89c69c533b195747
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Tue May 23 17:14:42 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 27 20:59:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cef734e1

app-forensics/aide: verbump to 0.16

Notable ebuild changes:
- fix deps;
- fix broken static USE;
- add e2fs USE to check file attributes on ext2/ext3/ext4;
- drop broken and completely useless nls USE;
- modernize ebuild, EAPI=6;
- drop useless dodoc, dohtml, fowners, fperms calls;
- stop repeating to users about example configuration;
- cleanup patches and send them upstream.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 app-forensics/aide/Manifest                        |   1 +
 app-forensics/aide/aide-0.16.ebuild                | 141 +++++++++++++++++++++
 .../aide/files/aide-0.16-add-missing-include.patch |  24 ++++
 .../files/aide-0.16-fix-LIBS-LDFLAGS-mixing.patch  |  23 ++++
 .../files/aide-0.16-fix-acl-configure-option.patch |  23 ++++
 app-forensics/aide/metadata.xml                    |   3 +-
 6 files changed, 214 insertions(+), 1 deletion(-)

diff --git a/app-forensics/aide/Manifest b/app-forensics/aide/Manifest
index 6c9b019e22c..ed8aa2cff1c 100644
--- a/app-forensics/aide/Manifest
+++ b/app-forensics/aide/Manifest
@@ -1,2 +1,3 @@
 DIST aide-0.14.2.tar.gz 418098 SHA256 bf4cd417b0f4778b4f9a618d23e0b0b7db10349ba6a0129394dc82fbc2fa8b9b SHA512 4ef96078fde057a54dda467fb55711e30d947969873715a02052362c57112f5bfd3155460ef353f70ce69fea3a3c491b7925bebbdb7034dbf618c63c360347df WHIRLPOOL fa91e4493bcac4cf11a8fedfd5e3c490752936f9ea04871d812b831f33089b694892e32ed19cef273926d3a8c091fb15a7b98a5e5303f08609f164773475d142
 DIST aide-0.15.1.tar.gz 424970 SHA256 303e5c186257df8c86e418193199f4ea2183fc37d3d4a9098a614f61346059ef SHA512 6afe327474858c697ba017b02bd40717c33874e69b801c171c2496ff9042b557e840bef4a151bda0e4d835ddb0d972b88790237a72f250525dc1fc6b8fa673e7 WHIRLPOOL 4c21221cfbaeff3aa00a3f22c4e31c1fffd3f00d112828540ab6ab94dd019086244de71e5d19d1120078acc7b81b9efa5a36d55937292f523bcb4e064830ba6a
+DIST aide-0.16.tar.gz 391009 SHA256 a81c53a131c4fd130b169b3a26ac35386a2f6e1e014f12807524cc273ed97345 SHA512 29ad97756e3e2fb21dc332ed03b494a1c73e621266f8622ec80bdba23092a38ee975b97f3cff2330e4c16e64e2f672259eea9291ca706a4009e7399b4e14e6a7 WHIRLPOOL d9ecba06d8367ed2ef622ee6b3ccf6a0ed37bad52548063c5c153bd31b856ed8a3379e6057cc1d4aebd29473ded71e9190c8c17dbeaa65eec3365be1d43d5f46

diff --git a/app-forensics/aide/aide-0.16.ebuild b/app-forensics/aide/aide-0.16.ebuild
new file mode 100644
index 00000000000..be5144222bd
--- /dev/null
+++ b/app-forensics/aide/aide-0.16.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools readme.gentoo-r1
+
+DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
+HOMEPAGE="http://aide.sourceforge.net/"
+SRC_URI="mirror://sourceforge/aide/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl audit curl e2fs mhash postgres prelink selinux static xattr zlib"
+
+COMMON_DEPEND="
+	!mhash? (
+		dev-libs/libgcrypt:0=
+		dev-libs/libgpg-error
+	)
+	mhash? ( app-crypt/mhash )
+	dev-libs/libpcre
+	acl? ( virtual/acl )
+	audit? ( sys-process/audit )
+	curl? ( net-misc/curl )
+	e2fs? ( sys-fs/e2fsprogs )
+	postgres? ( dev-db/postgresql:= )
+	prelink? ( dev-libs/elfutils )
+	selinux? ( sys-libs/libselinux )
+	xattr? ( sys-apps/attr )
+	zlib? ( sys-libs/zlib )
+"
+RDEPEND="
+	!static? ( ${COMMON_DEPEND} )
+	prelink? ( sys-devel/prelink )
+	selinux? ( sec-policy/selinux-aide )
+"
+DEPEND="${COMMON_DEPEND}
+	sys-devel/bison
+	sys-devel/flex
+	virtual/pkgconfig
+	static? (
+		!mhash? (
+			dev-libs/libgcrypt:0[static-libs]
+			dev-libs/libgpg-error[static-libs]
+		)
+		mhash? ( app-crypt/mhash[static-libs] )
+		dev-libs/libpcre[static-libs]
+		acl? ( virtual/acl[static-libs] )
+		e2fs? ( sys-fs/e2fsprogs[static-libs] )
+		prelink? ( dev-libs/elfutils[static-libs] )
+		selinux? ( sys-libs/libselinux[static-libs] )
+		xattr? ( sys-apps/attr[static-libs] )
+		zlib? ( sys-libs/zlib[static-libs] )
+	)
+"
+
+REQUIRED_USE="
+	postgres? ( !mhash )
+	static? ( !audit !curl !postgres )
+"
+
+HTML_DOCS=( doc/manual.html )
+
+DISABLE_AUTOFORMATTING=1
+DOC_CONTENTS="
+Example configuration file was installed at '${EPREFIX}/etc/aide/aide.conf'.
+Please edit it to meet your needs. Refer to aide.conf(5) manual page
+for more information.
+
+A helper script, aideinit, was installed and can be used to make AIDE
+management easier. Please run 'aideinit --help' for more information.
+"
+
+PATCHES=(
+	"${FILESDIR}/${P}-add-missing-include.patch"
+	"${FILESDIR}/${P}-fix-LIBS-LDFLAGS-mixing.patch"
+	"${FILESDIR}/${P}-fix-acl-configure-option.patch"
+)
+
+src_prepare() {
+	default_src_prepare
+	sed -i -e 's| -Werror||g' configure.ac || die
+	eautoreconf
+}
+
+src_configure() {
+	local myeconfargs=(
+		--sysconfdir="${EPREFIX}/etc/${PN}"
+		--with-confighmactype="sha512"		# Override default weak MD5 hash.
+		--with-dbhmackey="sha512"			# Override default weak MD5 hash.
+		# Disable broken l10n support: https://sourceforge.net/p/aide/bugs/98/
+		# This doesn't affect anything because there are no localizations yet.
+		--without-locale
+		$(use_enable static)
+		$(use_with zlib)
+		$(use_with curl)
+		$(use_with acl posix-acl)
+		$(use_with selinux)
+		$(use_with prelink prelink "${EPREFIX}/usr/sbin/prelink")
+		$(use_with xattr)
+		$(use_with e2fs e2fsattrs)
+		$(use_with mhash mhash)
+		$(use_with !mhash gcrypt)
+		$(use_with postgres psql)
+		$(use_with audit)
+	)
+	econf "${myeconfargs[@]}"
+}
+
+src_install() {
+	default_src_install
+	readme.gentoo_create_doc
+
+	insinto /etc/${PN}
+	doins "${FILESDIR}"/aide.conf
+
+	dosbin "${FILESDIR}"/aideinit
+	dodoc "${FILESDIR}"/aide.cron
+
+	keepdir /var/{lib,log}/${PN}
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
+
+	if use postgres; then
+		elog
+		elog "Due to a bad assumption by aide, you must issue the following"
+		elog "command after the database initialization (aide --init ...):"
+		elog
+		elog 'psql -c "update pg_index set indisunique=false from pg_class \\ '
+		elog "  where pg_class.relname='TABLE_pkey' and \ "
+		elog '  pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER'
+		elog
+		elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as"
+		elog "in your aide.conf."
+		elog
+	fi
+}

diff --git a/app-forensics/aide/files/aide-0.16-add-missing-include.patch b/app-forensics/aide/files/aide-0.16-add-missing-include.patch
new file mode 100644
index 00000000000..75f0403c968
--- /dev/null
+++ b/app-forensics/aide/files/aide-0.16-add-missing-include.patch
@@ -0,0 +1,24 @@
+commit 1cbb888d55388d6bb88141c946bd6993b3e9872f
+Author: Ilya Tumaykin <itumaykin@gmail.com>
+Date:   Tue May 23 17:24:29 2017 +0300
+
+db: add missing include
+
+url_fclose() function used in this file is defined in fopen.h.
+See https://sourceforge.net/p/aide/bugs/99/
+
+diff --git a/src/db.c b/src/db.c
+index dd133d4..858240d 100644
+--- a/src/db.c
++++ b/src/db.c
+@@ -28,6 +28,10 @@
+ #include "db_disk.h"
+ #include "md.h"
+
++#ifdef WITH_CURL
++#include "fopen.h"
++#endif
++
+ #ifdef WITH_PSQL
+ #include "db_sql.h"
+ #endif

diff --git a/app-forensics/aide/files/aide-0.16-fix-LIBS-LDFLAGS-mixing.patch b/app-forensics/aide/files/aide-0.16-fix-LIBS-LDFLAGS-mixing.patch
new file mode 100644
index 00000000000..453abe5f1ea
--- /dev/null
+++ b/app-forensics/aide/files/aide-0.16-fix-LIBS-LDFLAGS-mixing.patch
@@ -0,0 +1,23 @@
+commit 6da37687ba7cf259ac19cae2e1c16115b6848143
+Author: Ilya Tumaykin <itumaykin@gmail.com>
+Date:   Thu May 25 13:34:55 2017 +0300
+
+build: fix incorrect LIBS/LDFLAGS mixing
+
+Otherwise build with LDFLAGS='-Wl,--as-needed' and curl support fails.
+See https://bugs.gentoo.org/show_bug.cgi?id=271326
+and https://sourceforge.net/p/aide/bugs/96/
+
+diff --git a/configure.ac b/configure.ac
+index 3598ebe..0c5cb0c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -713,7 +713,7 @@ if test x$with_curl = xyes; then
+   AC_CHECK_HEADERS(curl/curl.h,,
+  	[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])])
+   CFLAGS="$CFLAGS $CURL_CFLAGS"
+-  LDFLAGS="$LDFLAGS $CURL_LIBS"
++  LIBS="$LIBS $CURL_LIBS"
+   AC_CHECK_LIB(curl,curl_easy_init,havecurl=yes,
+  	[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])]
+ )

diff --git a/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch b/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch
new file mode 100644
index 00000000000..a989e379039
--- /dev/null
+++ b/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch
@@ -0,0 +1,23 @@
+commit 3d9746bccbb50809e4c3de90ab5145a17af39aeb
+Author: Ilya Tumaykin <itumaykin@gmail.com>
+Date:   Thu May 25 14:38:02 2017 +0300
+
+build: respect user choice for posix-acl configure option
+
+Otherwise acl support is enabled automagically, which is bad.
+See https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies
+and https://sourceforge.net/p/aide/bugs/97/
+
+diff --git a/configure.ac b/configure.ac
+index 3598ebe..c45bbee 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -450,7 +450,7 @@ AC_MSG_CHECKING(for posix-acl-support)
+ AC_ARG_WITH([posix-acl],
+ 	[AC_HELP_STRING([--with-posix-acl],
+ 		[use POSIX ACLs (no checking)])],
+-	[],
++	[with_posix_acl_support="$withval"],
+ 	[with_posix_acl_support=no]
+ )
+

diff --git a/app-forensics/aide/metadata.xml b/app-forensics/aide/metadata.xml
index cfb8d84da80..b39aaf5590b 100644
--- a/app-forensics/aide/metadata.xml
+++ b/app-forensics/aide/metadata.xml
@@ -6,7 +6,8 @@
 		<name>Gentoo Forensics Project</name>
 	</maintainer>
 	<use>
-		<flag name="prelink">Enable support for <pkg>sys-devel/prelink</pkg></flag>
+		<flag name="e2fs">Enable support for checking file attributes on ext2/ext3/ext4 filesystems</flag>
+		<flag name="prelink">Bypass prelinking when calculating checksums</flag>
 	</use>
 	<upstream>
 		<remote-id type="sourceforge">aide</remote-id>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-forensics/aide/files/, app-forensics/aide/
@ 2017-07-01 21:41 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-07-01 21:41 UTC (permalink / raw
  To: gentoo-commits

commit:     2c86304fc737dd5468fd4f90f4ab70ae79ee6c07
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Sat Jul  1 13:41:54 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  1 21:41:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c86304f

app-forensics/aide: remove old

Closes: https://github.com/gentoo/gentoo/pull/5021
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 app-forensics/aide/Manifest                        |   1 -
 app-forensics/aide/aide-0.14.2.ebuild              | 113 ---------------------
 app-forensics/aide/files/aide-0.14-as-needed.patch |  20 ----
 app-forensics/aide/files/aide-0.14-configure.patch |  38 -------
 app-forensics/aide/files/aide-0.14-gentoo.patch    |  26 -----
 5 files changed, 198 deletions(-)

diff --git a/app-forensics/aide/Manifest b/app-forensics/aide/Manifest
index a586feab16c..0eef896e096 100644
--- a/app-forensics/aide/Manifest
+++ b/app-forensics/aide/Manifest
@@ -1,2 +1 @@
-DIST aide-0.14.2.tar.gz 418098 SHA256 bf4cd417b0f4778b4f9a618d23e0b0b7db10349ba6a0129394dc82fbc2fa8b9b SHA512 4ef96078fde057a54dda467fb55711e30d947969873715a02052362c57112f5bfd3155460ef353f70ce69fea3a3c491b7925bebbdb7034dbf618c63c360347df WHIRLPOOL fa91e4493bcac4cf11a8fedfd5e3c490752936f9ea04871d812b831f33089b694892e32ed19cef273926d3a8c091fb15a7b98a5e5303f08609f164773475d142
 DIST aide-0.16.tar.gz 391009 SHA256 a81c53a131c4fd130b169b3a26ac35386a2f6e1e014f12807524cc273ed97345 SHA512 29ad97756e3e2fb21dc332ed03b494a1c73e621266f8622ec80bdba23092a38ee975b97f3cff2330e4c16e64e2f672259eea9291ca706a4009e7399b4e14e6a7 WHIRLPOOL d9ecba06d8367ed2ef622ee6b3ccf6a0ed37bad52548063c5c153bd31b856ed8a3379e6057cc1d4aebd29473ded71e9190c8c17dbeaa65eec3365be1d43d5f46

diff --git a/app-forensics/aide/aide-0.14.2.ebuild b/app-forensics/aide/aide-0.14.2.ebuild
deleted file mode 100644
index 20322e586e7..00000000000
--- a/app-forensics/aide/aide-0.14.2.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="3"
-
-inherit autotools confutils eutils
-
-DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire"
-HOMEPAGE="http://aide.sourceforge.net/"
-SRC_URI="mirror://sourceforge/aide/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="amd64 x86"
-IUSE="acl audit curl mhash nls postgres prelink selinux static xattr zlib"
-
-CDEPEND="acl? ( virtual/acl )
-	audit? ( sys-process/audit )
-	curl? ( net-misc/curl )
-	mhash? ( >=app-crypt/mhash-0.9.2 )
-	!mhash? ( dev-libs/libgcrypt:0 )
-	nls? ( virtual/libintl )
-	postgres? ( dev-db/postgresql )
-	prelink? ( sys-devel/prelink )
-	selinux? (
-		sys-libs/libselinux
-	)
-	xattr? ( sys-apps/attr )
-	zlib? ( sys-libs/zlib )"
-
-RDEPEND="!static? ( ${CDEPEND} )
-	selinux? ( sec-policy/selinux-aide )"
-
-DEPEND="${CDEPEND}
-	nls? ( sys-devel/gettext )
-	sys-devel/bison
-	sys-devel/flex"
-
-pkg_setup() {
-	confutils_use_conflict mhash postgres
-	confutils_use_conflict static curl postgres
-}
-
-src_prepare() {
-	epatch "${FILESDIR}/${PN}-0.14-gentoo.patch"
-
-	# fix as-need issue, bug #271326
-	epatch "${FILESDIR}/${PN}-0.14-as-needed.patch"
-
-	# fix configure issue, bug #323187
-	epatch "${FILESDIR}/${PN}-0.14-configure.patch"
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_with acl posix-acl) \
-		$(use_with audit) \
-		$(use_with curl) \
-		$(use_with !mhash gcrypt) \
-		$(use_with mhash mhash) \
-		$(use_with nls locale) \
-		$(use_with postgres psql) \
-		$(use_with prelink) \
-		$(use_with selinux) \
-		$(use_enable static) \
-		$(use_with xattr) \
-		$(use_with zlib) \
-		--sysconfdir="${EPREFIX}/etc/aide" || die "econf failed"
-}
-
-src_install() {
-	emake DESTDIR="${D}" install install-man || die "emake install failed"
-
-	keepdir /var/lib/aide || die
-	fowners root:0 /var/lib/aide || die
-	fperms 0755 /var/lib/aide || die
-
-	keepdir /var/log/aide || die
-
-	insinto /etc/aide
-	doins "${FILESDIR}"/aide.conf || die
-
-	dosbin "${FILESDIR}"/aideinit || die
-
-	dodoc AUTHORS ChangeLog NEWS README Todo "${FILESDIR}"/aide.cron || die
-	dohtml doc/manual.html || die
-}
-
-pkg_postinst() {
-	elog
-	elog "A sample configuration file has been installed as"
-	elog "/etc/aide/aide.conf.  Please edit to meet your needs."
-	elog "Read the aide.conf(5) manual page for more information."
-	elog "A helper script, aideinit, has been installed and can"
-	elog "be used to make AIDE management easier. Please run"
-	elog "aideinit --help for more information"
-	elog
-
-	if use postgres; then
-		elog "Due to a bad assumption by aide, you must issue the following"
-		elog "command after the database initialization (aide --init ...):"
-		elog
-		elog 'psql -c "update pg_index set indisunique=false from pg_class \\ '
-		elog "  where pg_class.relname='TABLE_pkey' and \ "
-		elog '  pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER'
-		elog
-		elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as"
-		elog "your aide.conf."
-		elog
-	fi
-}

diff --git a/app-forensics/aide/files/aide-0.14-as-needed.patch b/app-forensics/aide/files/aide-0.14-as-needed.patch
deleted file mode 100644
index 7a90b4e2507..00000000000
--- a/app-forensics/aide/files/aide-0.14-as-needed.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- aide-0.14.orig/configure.in	2010-02-26 17:25:29.000000000 +0900
-+++ aide-0.14/configure.in	2010-05-27 00:11:34.000000000 +0900
-@@ -42,7 +42,7 @@
- AC_ARG_WITH(extra-libs,
- 	AC_HELP_STRING([--with-extra-libs],
- 		[Specify additional paths with -L to find libraries]),
--	[LDFLAGS="$LDFLAGS $withval"]
-+	[LIBS="$LIBS $withval"]
- )
- AC_ARG_WITH(extra-link-libs,
- 	AC_HELP_STRING([--with-extra-link-libs],
-@@ -671,7 +671,7 @@
-   AC_CHECK_HEADERS(curl/curl.h,,
-  	[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])])
-   CFLAGS="$CFLAGS $CURL_CFLAGS"
--  LDFLAGS="$LDFLAGS $CURL_LIBS"
-+  LIBS="$LIBS $CURL_LIBS"
-   AC_CHECK_LIB(curl,curl_easy_init,havecurl=yes,
-  	[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])]
- )

diff --git a/app-forensics/aide/files/aide-0.14-configure.patch b/app-forensics/aide/files/aide-0.14-configure.patch
deleted file mode 100644
index 54afd8c4f4c..00000000000
--- a/app-forensics/aide/files/aide-0.14-configure.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -Naur aide-0.14.orig/configure.in aide-0.14/configure.in
---- aide-0.14.orig/configure.in	2010-02-26 17:25:29.000000000 +0900
-+++ aide-0.14/configure.in	2010-06-09 14:24:43.000000000 +0900
-@@ -407,14 +407,14 @@
- AC_ARG_WITH([zlib],
- 	AC_HELP_STRING([--with-zlib],
- 		[use zlib compression]),
--	,
-+	[with_zlib="$withval"],
- 	[with_zlib=yes]
- )
- 
- AC_ARG_WITH([curl],
- 	AC_HELP_STRING([--with-curl],
- 		[use curl for http,https and ftp backends]),
--		,
-+	[with_curl="$withval"],
- 	[with_curl=no]
- )
- 
-@@ -422,7 +422,7 @@
- AC_ARG_WITH([sun-acl],
- 	[AC_HELP_STRING([--with-sun-acl],
- 		[use ACL on solaris (no checking)])],
--	[],
-+	[with_sun_acl="$withval"],
- 	[with_sun_acl=no]
- )
- 
-@@ -440,7 +440,7 @@
- AC_ARG_WITH([posix-acl],
- 	[AC_HELP_STRING([--with-posix-acl],
- 		[use POSIX ACLs (no checking)])],
--	[],
-+	[with_posix_acl_support="$withval"],
- 	[with_posix_acl_support=no]
- )
- 

diff --git a/app-forensics/aide/files/aide-0.14-gentoo.patch b/app-forensics/aide/files/aide-0.14-gentoo.patch
deleted file mode 100644
index f2c8156ed16..00000000000
--- a/app-forensics/aide/files/aide-0.14-gentoo.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -Naur aide-0.14.orig//src/Makefile.am aide-0.14//src/Makefile.am
---- aide-0.14.orig//src/Makefile.am	2010-02-20 04:23:08.000000000 +0900
-+++ aide-0.14//src/Makefile.am	2010-05-26 23:56:47.000000000 +0900
-@@ -26,7 +26,7 @@
- LEX_OUTPUT_ROOT = lex.yy
- 
- LDADD = -lm @CRYPTLIB@ @ACLLIB@ @SELINUXLIB@ @AUDITLIB@ @ATTRLIB@ @ELFLIB@
--AM_CFLAGS = @AIDE_DEFS@ -W -Wall -g
-+AM_CFLAGS = -DLOCALEDIR=\"$(localedir)\" @AIDE_DEFS@ -W -Wall -g
- 
- CLEANFILES = conf_yacc.h conf_yacc.c conf_lex.c db_lex.c *~
- 
-diff -Naur aide-0.14.orig//src/db.c aide-0.14//src/db.c
---- aide-0.14.orig//src/db.c	2010-02-18 05:06:57.000000000 +0900
-+++ aide-0.14//src/db.c	2010-05-27 00:16:07.000000000 +0900
-@@ -26,6 +26,10 @@
- #include "db_file.h"
- #include "db_disk.h"
- 
-+#ifdef WITH_CURL
-+#include "fopen.h"
-+#endif
-+
- #ifdef WITH_PSQL
- #include "db_sql.h"
- #endif


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-forensics/aide/files/, app-forensics/aide/
@ 2024-06-14 10:36 Arthur Zamarin
  0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2024-06-14 10:36 UTC (permalink / raw
  To: gentoo-commits

commit:     c4397edd220540b31805d87c9359df9cc8329e46
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Tue Jun 11 17:34:36 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 14 10:36:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4397edd

app-forensics/aide: remove old

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/37121
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-forensics/aide/Manifest                        |   4 -
 app-forensics/aide/aide-0.17.4-r4.ebuild           | 108 -----------------
 app-forensics/aide/aide-0.18.2.ebuild              | 108 -----------------
 app-forensics/aide/aide-0.18.3.ebuild              | 106 -----------------
 app-forensics/aide/aide-0.18.ebuild                | 108 -----------------
 .../files/aide-0.16-fix-acl-configure-option.patch |  25 ----
 .../aide/files/aide-0.17.4-configure.patch         | 131 ---------------------
 7 files changed, 590 deletions(-)

diff --git a/app-forensics/aide/Manifest b/app-forensics/aide/Manifest
index 8edfb6a2daf7..301abe8edb13 100644
--- a/app-forensics/aide/Manifest
+++ b/app-forensics/aide/Manifest
@@ -1,6 +1,2 @@
-DIST aide-0.17.4.tar.gz 331783 BLAKE2B 584a385d0a0e80edf0b89eef202431adfea7fe8ba04c774e49dfb7230e766e19a48572e9d6c80386668572e459db9770b04978df484bd49c7de6433657500e13 SHA512 b6dba54fd204e1899d47b0b4139786cbeaa51c388027e2cfc1bb839297a70ae8ad6f37429594a730fac8007d62b4ba5b61a4aa22edbc55cbe986ccfaf5197f31
-DIST aide-0.18.2.tar.gz 382582 BLAKE2B 267233a4dfdbc5a433389c20a1abe753133dfa01ecc205769c89a9b4699535b1d00e9df6527ae8298f4cb920e2f755e4d75d17b4a2449041a85c8c5e5ecc2abc SHA512 3a209db9dc1adb345494ce20a5c3def9f40ae49723d3a978d8e9b38f43239496a330b484ed93adba88154770ce1f1a0f3cdeb2ff8d991d28a1d66cfa6cd9b68b
-DIST aide-0.18.3.tar.gz 382694 BLAKE2B f5e79d80c1fa2ba15096d38c1a1d197fc8665bc0ff03665367abce7722561f2054cc64f51429a1411d6aaa0df315869ac99314e660acdff31bf1dc6b471a62b8 SHA512 22f1d2d3e14fa88639587f5a61e114b89c784a87f636c1bbb245e620254b60ec07692e51ae27386a84810d7a915e0ddf5c5073fecb6eb72148ff5035ef8525eb
 DIST aide-0.18.4.tar.gz 382874 BLAKE2B e8fe8a115236f055f24b907ddcf540f02658b85c1df99ff9a8f58dfa9489de3d542b25bb947e047c8363c81d1f0ad0730fd77efacabe15fa24bbafc3fd807687 SHA512 31a17fc97ed9bda5dc4a492bcee699442cee1ea3829b1b06cf91ef9234a8b033677c281979902cbc6a8db0269c7f00499897940df07beff14cbb88b8fe6390f5
 DIST aide-0.18.8.tar.gz 383589 BLAKE2B a3b7efca89d0be99614e423a983fb0a3413f1cbdbc370b54f755e6dae8bb7f5612921ba998fd6db9248ae739fdaf3d344e092933b7dad7fd94dc1844e68a605e SHA512 38763f527cfbc11847eca2fca17eceabc46158624954f0457feb49b885f34e4311f2dbc50b5471f4ff972e9e4e9c9f55c2da8dd8d55c04063a9043ab4829ff05
-DIST aide-0.18.tar.gz 375922 BLAKE2B 03c961682fd25581831ca0715e57546b5595057115a456778ac0846fd1f23622600a061e2d8524f7381dfa6d43cefcdaa52d00eed2639dd60c7f3501efe8b474 SHA512 99d8140523ebe1d80b5d73c20bf13b8559aa22f08a9df485c15daeba7f5448c27d86ed310f2e7963076958dbe1fc2e4636807ca073dd0a6568b4eb8af2a38f4b

diff --git a/app-forensics/aide/aide-0.17.4-r4.ebuild b/app-forensics/aide/aide-0.17.4-r4.ebuild
deleted file mode 100644
index 71aa7366350b..000000000000
--- a/app-forensics/aide/aide-0.17.4-r4.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools readme.gentoo-r1
-
-DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
-HOMEPAGE="https://aide.github.io/ https://github.com/aide/aide"
-SRC_URI="https://github.com/aide/aide/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-IUSE="acl audit curl e2fs mhash selinux xattr"
-
-DEPEND="dev-libs/libpcre
-	sys-libs/zlib
-	acl? ( virtual/acl )
-	audit? ( sys-process/audit )
-	curl? ( net-misc/curl )
-	e2fs? ( sys-fs/e2fsprogs )
-	!mhash? (
-		dev-libs/libgcrypt:0=
-		dev-libs/libgpg-error
-	)
-	mhash? ( app-crypt/mhash )
-	selinux? ( sys-libs/libselinux )
-	xattr? ( sys-apps/attr )"
-RDEPEND="${DEPEND}
-	selinux? ( sec-policy/selinux-aide )"
-BDEPEND="app-alternatives/yacc
-	app-alternatives/lex
-	virtual/pkgconfig"
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="
-Example configuration file was installed at '${EPREFIX}/etc/aide/aide.conf'.
-Please edit it to meet your needs. Refer to aide.conf(5) manual page
-for more information.
-
-A helper script, aideinit, was installed and can be used to make AIDE
-management easier. Please run 'aideinit --help' for more information."
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-0.16-fix-acl-configure-option.patch
-	"${FILESDIR}"/${PN}-0.17.4-configure.patch
-)
-
-src_prepare() {
-	default
-
-	sed -i -e 's| -Werror||g' configure.ac || die
-
-	# Only needed for snapshots.
-	if [[ ${PV} == *_p* ]] ; then
-		echo "m4_define([AIDE_VERSION], [${PV}])" > version.m4 || die
-	fi
-
-	# Can be dropped once Bashism patch is gone
-	eautoreconf
-}
-
-src_configure() {
-	local myeconfargs=(
-		--sysconfdir="${EPREFIX}"/etc/${PN}
-
-		# Needed even in EAPI=8, >=portage-3.0.40 skips it here (bug #887177)
-		--disable-static
-
-		# Disable broken l10n support: https://sourceforge.net/p/aide/bugs/98/
-		# This doesn't affect anything because there are no localizations yet.
-		--without-locale
-
-		--without-prelink
-
-		--with-zlib
-		$(use_with curl)
-		$(use_with acl posix-acl)
-		$(use_with selinux)
-		$(use_with xattr)
-		$(use_with e2fs e2fsattrs)
-		$(use_with mhash mhash)
-		$(use_with !mhash gcrypt)
-		$(use_with audit)
-	)
-
-	econf "${myeconfargs[@]}"
-}
-
-src_install() {
-	default
-
-	readme.gentoo_create_doc
-
-	insinto /etc/${PN}
-	insopts -m0600
-	newins "${FILESDIR}"/aide.conf-r2 aide.conf
-
-	dosbin "${FILESDIR}"/aideinit
-	dodoc -r contrib/ "${FILESDIR}"/aide.cron-r2
-
-	keepdir /var/{lib,log}/${PN}
-}
-
-pkg_postinst() {
-	readme.gentoo_print_elog
-}

diff --git a/app-forensics/aide/aide-0.18.2.ebuild b/app-forensics/aide/aide-0.18.2.ebuild
deleted file mode 100644
index d444643eab3b..000000000000
--- a/app-forensics/aide/aide-0.18.2.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit readme.gentoo-r1
-
-DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
-HOMEPAGE="https://aide.github.io/ https://github.com/aide/aide"
-SRC_URI="https://github.com/aide/aide/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-IUSE="acl audit curl e2fs mhash selinux xattr"
-
-DEPEND="
-	dev-libs/libpcre2
-	sys-libs/zlib
-	acl? ( virtual/acl )
-	audit? ( sys-process/audit )
-	curl? ( net-misc/curl )
-	e2fs? ( sys-fs/e2fsprogs )
-	!mhash? (
-		dev-libs/libgcrypt:=
-		dev-libs/libgpg-error
-	)
-	mhash? ( app-crypt/mhash )
-	selinux? ( sys-libs/libselinux )
-	xattr? ( sys-apps/attr )
-"
-RDEPEND="
-	${DEPEND}
-	selinux? ( sec-policy/selinux-aide )
-"
-BDEPEND="
-	sys-devel/bison
-	sys-devel/flex
-	virtual/pkgconfig
-"
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="
-Example configuration file was installed at '${EPREFIX}/etc/aide/aide.conf'.
-Please edit it to meet your needs. Refer to aide.conf(5) manual page
-for more information.
-
-A helper script, aideinit, was installed and can be used to make AIDE
-management easier. Please run 'aideinit --help' for more information."
-
-src_prepare() {
-	default
-
-	sed -i -e 's| -Werror||g' configure.ac || die
-
-	# Only needed for snapshots.
-	if [[ ${PV} == *_p* ]] ; then
-		echo "m4_define([AIDE_VERSION], [${PV}])" > version.m4 || die
-	fi
-}
-
-src_configure() {
-	# Needs Bison, flex
-	unset YACC
-	export LEX=flex
-
-	local myeconfargs=(
-		--sysconfdir="${EPREFIX}"/etc/${PN}
-
-		# Needed even in EAPI=8, >=portage-3.0.40 skips it here (bug #887177)
-		--disable-static
-
-		# Disable broken l10n support: https://sourceforge.net/p/aide/bugs/98/
-		# This doesn't affect anything because there are no localizations yet.
-		--without-locale
-
-		--with-zlib
-		$(use_with curl)
-		$(use_with acl posix-acl)
-		$(use_with selinux)
-		$(use_with xattr)
-		$(use_with e2fs e2fsattrs)
-		$(use_with mhash mhash)
-		$(use_with !mhash gcrypt)
-		$(use_with audit)
-	)
-
-	econf "${myeconfargs[@]}"
-}
-
-src_install() {
-	default
-
-	readme.gentoo_create_doc
-
-	insinto /etc/${PN}
-	insopts -m0600
-	newins "${FILESDIR}"/aide.conf-r2 aide.conf
-
-	dosbin "${FILESDIR}"/aideinit
-	dodoc -r contrib/ "${FILESDIR}"/aide.cron-r2
-
-	keepdir /var/{lib,log}/${PN}
-}
-
-pkg_postinst() {
-	readme.gentoo_print_elog
-}

diff --git a/app-forensics/aide/aide-0.18.3.ebuild b/app-forensics/aide/aide-0.18.3.ebuild
deleted file mode 100644
index d7e4d4b1948d..000000000000
--- a/app-forensics/aide/aide-0.18.3.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit readme.gentoo-r1
-
-DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
-HOMEPAGE="https://aide.github.io/ https://github.com/aide/aide"
-SRC_URI="https://github.com/aide/aide/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-IUSE="acl audit curl e2fs mhash selinux xattr"
-
-DEPEND="
-	dev-libs/libpcre2
-	sys-libs/zlib
-	acl? ( virtual/acl )
-	audit? ( sys-process/audit )
-	curl? ( net-misc/curl )
-	e2fs? ( sys-fs/e2fsprogs )
-	!mhash? (
-		dev-libs/libgcrypt:=
-		dev-libs/libgpg-error
-	)
-	mhash? ( app-crypt/mhash )
-	selinux? ( sys-libs/libselinux )
-	xattr? ( sys-apps/attr )
-"
-RDEPEND="
-	${DEPEND}
-	selinux? ( sec-policy/selinux-aide )
-"
-BDEPEND="
-	sys-devel/bison
-	sys-devel/flex
-	virtual/pkgconfig
-"
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="
-Example configuration file was installed at '${EPREFIX}/etc/aide/aide.conf'.
-Please edit it to meet your needs. Refer to aide.conf(5) manual page
-for more information.
-
-A helper script, aideinit, was installed and can be used to make AIDE
-management easier. Please run 'aideinit --help' for more information."
-
-src_prepare() {
-	default
-
-	# Only needed for snapshots.
-	if [[ ${PV} == *_p* ]] ; then
-		echo "m4_define([AIDE_VERSION], [${PV}])" > version.m4 || die
-	fi
-}
-
-src_configure() {
-	# Needs Bison, flex
-	unset YACC
-	export LEX=flex
-
-	local myeconfargs=(
-		--sysconfdir="${EPREFIX}"/etc/${PN}
-
-		# Needed even in EAPI=8, >=portage-3.0.40 skips it here (bug #887177)
-		--disable-static
-
-		# Disable broken l10n support: https://sourceforge.net/p/aide/bugs/98/
-		# This doesn't affect anything because there are no localizations yet.
-		--without-locale
-
-		--with-zlib
-		$(use_with curl)
-		$(use_with acl posix-acl)
-		$(use_with selinux)
-		$(use_with xattr)
-		$(use_with e2fs e2fsattrs)
-		$(use_with mhash mhash)
-		$(use_with !mhash gcrypt)
-		$(use_with audit)
-	)
-
-	econf "${myeconfargs[@]}"
-}
-
-src_install() {
-	default
-
-	readme.gentoo_create_doc
-
-	insinto /etc/${PN}
-	insopts -m0600
-	newins "${FILESDIR}"/aide.conf-r2 aide.conf
-
-	dosbin "${FILESDIR}"/aideinit
-	dodoc -r contrib/ "${FILESDIR}"/aide.cron-r2
-
-	keepdir /var/{lib,log}/${PN}
-}
-
-pkg_postinst() {
-	readme.gentoo_print_elog
-}

diff --git a/app-forensics/aide/aide-0.18.ebuild b/app-forensics/aide/aide-0.18.ebuild
deleted file mode 100644
index d444643eab3b..000000000000
--- a/app-forensics/aide/aide-0.18.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit readme.gentoo-r1
-
-DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
-HOMEPAGE="https://aide.github.io/ https://github.com/aide/aide"
-SRC_URI="https://github.com/aide/aide/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-IUSE="acl audit curl e2fs mhash selinux xattr"
-
-DEPEND="
-	dev-libs/libpcre2
-	sys-libs/zlib
-	acl? ( virtual/acl )
-	audit? ( sys-process/audit )
-	curl? ( net-misc/curl )
-	e2fs? ( sys-fs/e2fsprogs )
-	!mhash? (
-		dev-libs/libgcrypt:=
-		dev-libs/libgpg-error
-	)
-	mhash? ( app-crypt/mhash )
-	selinux? ( sys-libs/libselinux )
-	xattr? ( sys-apps/attr )
-"
-RDEPEND="
-	${DEPEND}
-	selinux? ( sec-policy/selinux-aide )
-"
-BDEPEND="
-	sys-devel/bison
-	sys-devel/flex
-	virtual/pkgconfig
-"
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="
-Example configuration file was installed at '${EPREFIX}/etc/aide/aide.conf'.
-Please edit it to meet your needs. Refer to aide.conf(5) manual page
-for more information.
-
-A helper script, aideinit, was installed and can be used to make AIDE
-management easier. Please run 'aideinit --help' for more information."
-
-src_prepare() {
-	default
-
-	sed -i -e 's| -Werror||g' configure.ac || die
-
-	# Only needed for snapshots.
-	if [[ ${PV} == *_p* ]] ; then
-		echo "m4_define([AIDE_VERSION], [${PV}])" > version.m4 || die
-	fi
-}
-
-src_configure() {
-	# Needs Bison, flex
-	unset YACC
-	export LEX=flex
-
-	local myeconfargs=(
-		--sysconfdir="${EPREFIX}"/etc/${PN}
-
-		# Needed even in EAPI=8, >=portage-3.0.40 skips it here (bug #887177)
-		--disable-static
-
-		# Disable broken l10n support: https://sourceforge.net/p/aide/bugs/98/
-		# This doesn't affect anything because there are no localizations yet.
-		--without-locale
-
-		--with-zlib
-		$(use_with curl)
-		$(use_with acl posix-acl)
-		$(use_with selinux)
-		$(use_with xattr)
-		$(use_with e2fs e2fsattrs)
-		$(use_with mhash mhash)
-		$(use_with !mhash gcrypt)
-		$(use_with audit)
-	)
-
-	econf "${myeconfargs[@]}"
-}
-
-src_install() {
-	default
-
-	readme.gentoo_create_doc
-
-	insinto /etc/${PN}
-	insopts -m0600
-	newins "${FILESDIR}"/aide.conf-r2 aide.conf
-
-	dosbin "${FILESDIR}"/aideinit
-	dodoc -r contrib/ "${FILESDIR}"/aide.cron-r2
-
-	keepdir /var/{lib,log}/${PN}
-}
-
-pkg_postinst() {
-	readme.gentoo_print_elog
-}

diff --git a/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch b/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch
deleted file mode 100644
index b860b39d73ee..000000000000
--- a/app-forensics/aide/files/aide-0.16-fix-acl-configure-option.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-Fixes upstream in master but not 0.17.x.
-
-commit 3d9746bccbb50809e4c3de90ab5145a17af39aeb
-Author: Ilya Tumaykin <itumaykin@gmail.com>
-Date:   Thu May 25 14:38:02 2017 +0300
-
-build: respect user choice for posix-acl configure option
-
-Otherwise acl support is enabled automagically, which is bad.
-See https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies
-and https://sourceforge.net/p/aide/bugs/97/
-
-diff --git a/configure.ac b/configure.ac
-index 3598ebe..c45bbee 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -450,7 +450,7 @@ AC_MSG_CHECKING(for posix-acl-support)
- AC_ARG_WITH([posix-acl],
- 	[AC_HELP_STRING([--with-posix-acl],
- 		[use POSIX ACLs (no checking)])],
--	[],
-+	[with_posix_acl_support="$withval"],
- 	[with_posix_acl_support=no]
- )
-

diff --git a/app-forensics/aide/files/aide-0.17.4-configure.patch b/app-forensics/aide/files/aide-0.17.4-configure.patch
deleted file mode 100644
index adf9925d9458..000000000000
--- a/app-forensics/aide/files/aide-0.17.4-configure.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-https://github.com/aide/aide/pull/145
-https://bugs.gentoo.org/881707
-
-From 0a7f36406f3f21e4fcdc0c410ff626c352f2d080 Mon Sep 17 00:00:00 2001
-From: Sam James <sam@gentoo.org>
-Date: Fri, 18 Nov 2022 00:04:10 +0000
-Subject: [PATCH 1/2] Fix bashisms in build system
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-configure scripts need to be runnable with a POSIX-compliant /bin/sh.
-
-On many (but not all!) systems, /bin/sh is provided by Bash, so errors
-like this aren't spotted. Notably Debian defaults to /bin/sh provided
-by dash which doesn't tolerate such bashisms as '=='.
-
-This retains compatibility with bash.
-
-Signed-off-by: Sam James <sam@gentoo.org>
---- a/configure.ac
-+++ b/configure.ac
-@@ -329,7 +329,7 @@ fi
- AC_CHECK_HEADERS(syslog.h inttypes.h fcntl.h ctype.h)
- 
- PCRELIB="-lpcre"
--if test "$aide_static_choice" == "yes"; then
-+if test "$aide_static_choice" = "yes"; then
-     PCRELIB="$PCRELIB -pthread"
- fi
- AC_CHECK_LIB(pcre, pcre_exec, [
-@@ -426,14 +426,14 @@ AS_IF([test "x$with_selinux_support" != xno],
-     AC_DEFINE(WITH_SELINUX,1,[use SELinux])
-     [AC_MSG_RESULT(yes)
-     if test "x$PKG_CONFIG" != xno && $PKG_CONFIG --exists libselinux; then
--        if test "$aide_static_choice" == "yes"; then
-+        if test "$aide_static_choice" = "yes"; then
-             SELINUXLIB=$(${PKG_CONFIG} --libs libselinux --static)
-         else
-             SELINUXLIB=$(${PKG_CONFIG} --libs libselinux)
-         fi
-     else
-     SELINUXLIB="-lselinux"
--    if test "$aide_static_choice" == "yes"; then
-+    if test "$aide_static_choice" = "yes"; then
-         saveLIBS=$LIBS
-         LIBS="-static $SELINUXLIB"
-         AC_SEARCH_LIBS([lgetfilecon_raw], [], [], [SELINUXLIB="$SELINUXLIB -lpthread"])
-@@ -555,7 +555,7 @@ AC_ARG_ENABLE([default_db],
-     [do not set default values for database_in and database_out config options]),
-     [enable_default_db=$enableval],[enable_default_db=yes])
- 
--if test "$enable_default_db" == "yes"; then
-+if test "$enable_default_db" = "yes"; then
- 
- if test "x$sysconfdir" != x'${prefix}/etc'; then
- 	evalled_sysconfdir=`eval echo "$sysconfdir"`
-@@ -592,7 +592,7 @@ AC_ARG_WITH([curl],
-   [use curl library for http, https and ftp database backend (default: no)]),
-  [with_curl=$withval], [with_curl=no])
- AS_IF([test "x$with_curl" = "xyes"], [
--       if test "$aide_static_choice" == "yes"; then
-+       if test "$aide_static_choice" = "yes"; then
-            PKG_CHECK_MODULES_STATIC(CURL, [libcurl], , [AC_MSG_RESULT([libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable])])
-         else
-            PKG_CHECK_MODULES(CURL, [libcurl], , [AC_MSG_RESULT([libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable])])
-@@ -671,7 +671,7 @@ AS_IF([test "x$with_audit" != xno],
- 		AC_MSG_ERROR(You don't have libaudit properly installed. Install it if you need it.)
- 	)
- 	AUDITLIB="-laudit"
--	if test "$aide_static_choice" == "yes"; then
-+	if test "$aide_static_choice" = "yes"; then
- 		saveLIBS=$LIBS
- 		LIBS="-static $AUDITLIB"
- 		AC_CHECK_LIB([audit], [audit_log_user_message], [], [
-
-From 67ad6efc7596c9b3ffdeb411bae942d757e2d96f Mon Sep 17 00:00:00 2001
-From: Sam James <sam@gentoo.org>
-Date: Fri, 18 Nov 2022 00:04:53 +0000
-Subject: [PATCH 2/2] Fix configure.ac compatibility with Clang 16
-
-Clang 16 makes -Wimplicit-function-declaration and -Wimplicit-int errors by default.
-
-Unfortunately, this can lead to misconfiguration or miscompilation of software as configure
-tests may then return the wrong result.
-
-We also fix -Wstrict-prototypes while here as it's easy to do and it prepares
-us for C23.
-
-For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
-or the (new) c-std-porting mailing list [3].
-
-[0] https://lwn.net/Articles/913505/
-[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
-[2] https://wiki.gentoo.org/wiki/Modern_C_porting
-[3] hosted at lists.linux.dev.
-
-Signed-off-by: Sam James <sam@gentoo.org>
---- a/configure.ac
-+++ b/configure.ac
-@@ -295,8 +295,11 @@ AC_CHECK_FUNCS(fcntl ftruncate posix_fadvise asprintf snprintf \
- AC_CACHE_CHECK([for open/O_NOATIME], db_cv_open_o_noatime, [
- echo "test for working open/O_NOATIME" > __o_noatime_file
- AC_TRY_RUN([
--#include <sys/types.h>
- #include <fcntl.h>
-+#include <stdlib.h>
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <unistd.h>
- #ifndef O_NOATIME
- #if defined(__linux__) && (defined(__i386__) || defined(__PPC__))
- #define O_NOATIME 01000000
-@@ -304,13 +307,14 @@ AC_TRY_RUN([
- #define O_NOATIME 0
- #endif
- #endif
--main() {
-+int main(void) {
- int c, fd = open("__o_noatime_file", O_RDONLY | O_NOATIME, 0);
- exit ((!O_NOATIME) || (fd == -1) || (read(fd, &c, 1) != 1));
- }], [db_cv_open_o_noatime=yes], [db_cv_open_o_noatime=no],
- AC_TRY_LINK([
--#include <sys/types.h>   
- #include <fcntl.h>
-+#include <sys/types.h
-+#include <sys/stat.h>
- #ifndef O_NOATIME
- #if defined(__linux__) && (defined(__i386__) || defined(__PPC__))
- #define O_NOATIME 01000000
-


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-14 10:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-01 21:41 [gentoo-commits] repo/gentoo:master commit in: app-forensics/aide/files/, app-forensics/aide/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-06-14 10:36 Arthur Zamarin
2017-05-27 20:59 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox