* [gentoo-commits] repo/gentoo:master commit in: app-admin/radmind/files/, app-admin/radmind/
@ 2017-10-20 21:10 Andreas Hüttel
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Hüttel @ 2017-10-20 21:10 UTC (permalink / raw
To: gentoo-commits
commit: d0648f10a2055d4731ff9fc8a572387edc91ddf6
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 20 21:10:17 2017 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 21:10:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0648f10
app-admin/radmind: Fix build with glibc-2.25, bug 580916
Closes: https://bugs.gentoo.org/580916
Package-Manager: Portage-2.3.12, Repoman-2.3.3
.../radmind/files/radmind-1.14.1-glibc225.patch | 22 ++++++++++++++++++++++
app-admin/radmind/radmind-1.14.1-r1.ebuild | 1 +
2 files changed, 23 insertions(+)
diff --git a/app-admin/radmind/files/radmind-1.14.1-glibc225.patch b/app-admin/radmind/files/radmind-1.14.1-glibc225.patch
new file mode 100644
index 00000000000..60ff5925ae1
--- /dev/null
+++ b/app-admin/radmind/files/radmind-1.14.1-glibc225.patch
@@ -0,0 +1,22 @@
+diff -ruN radmind-1.14.1.orig/transcript.c radmind-1.14.1/transcript.c
+--- radmind-1.14.1.orig/transcript.c 2010-12-13 04:42:49.000000000 +0100
++++ radmind-1.14.1/transcript.c 2017-10-20 23:07:47.126110238 +0200
+@@ -6,6 +6,7 @@
+ #include "config.h"
+
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/param.h>
+ #ifdef sun
+ #include <sys/mkdev.h>
+diff -ruN radmind-1.14.1.orig/update.c radmind-1.14.1/update.c
+--- radmind-1.14.1.orig/update.c 2010-12-13 04:42:49.000000000 +0100
++++ radmind-1.14.1/update.c 2017-10-20 23:07:29.173898776 +0200
+@@ -6,6 +6,7 @@
+ #include "config.h"
+
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <sys/param.h>
+ #ifdef sun
diff --git a/app-admin/radmind/radmind-1.14.1-r1.ebuild b/app-admin/radmind/radmind-1.14.1-r1.ebuild
index cfc09f32cca..2637e4c0828 100644
--- a/app-admin/radmind/radmind-1.14.1-r1.ebuild
+++ b/app-admin/radmind/radmind-1.14.1-r1.ebuild
@@ -24,6 +24,7 @@ src_prepare() {
# remove dnssd as it doesn't compile
epatch "${FILESDIR}"/${PN}-1.7.1-dnssd.patch
epatch "${FILESDIR}"/${PN}-1.14.0-parallel-make.patch
+ epatch "${FILESDIR}"/${PN}-1.14.1-glibc225.patch
}
src_install() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/radmind/files/, app-admin/radmind/
@ 2019-05-19 21:19 Andreas Sturmlechner
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2019-05-19 21:19 UTC (permalink / raw
To: gentoo-commits
commit: 709146dcdd1cc924d47db6aa83511de7005600ba
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 20:57:49 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun May 19 21:07:08 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=709146dc
app-admin/radmind: Drop 1.14.1-r1
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
app-admin/radmind/Manifest | 1 -
.../files/radmind-1.14.0-parallel-make.patch | 50 ----------------------
app-admin/radmind/files/radmind-1.7.1-dnssd.patch | 22 ----------
app-admin/radmind/radmind-1.14.1-r1.ebuild | 34 ---------------
4 files changed, 107 deletions(-)
diff --git a/app-admin/radmind/Manifest b/app-admin/radmind/Manifest
index 840b4bef85c..b7eeb46b7c6 100644
--- a/app-admin/radmind/Manifest
+++ b/app-admin/radmind/Manifest
@@ -1,2 +1 @@
-DIST radmind-1.14.1.tar.gz 403553 BLAKE2B ea89c7c28714134df3d9f9ab522c4499590f5f08f3b5d6c0d02c750ee896922720d66e4f08dac70fe93933da0fa5d8776fdf0f7d32b926d76ece27cbcedb87ad SHA512 bccf9681a6899be3b500065237dd1e04cd83ffb6f9be0e355412e7b0c556325f7d13435cec65a8a5e156e4411da915744f01a615472f6361d52c4d54d8be20eb
DIST radmind-1.15.1.tar.gz 449653 BLAKE2B 8a516ede28d561a60f7c51424c6e48ea030dd571528fd3422fab3b23b4448ee898d408136c4845ebe9c5f9088fb425ed67b341f4d1721747a415183687e6daa6 SHA512 3dd9477d00083cf9912e2143adff52f9bc127665ff6705bc200b7323e53390fb76ac125733596ba309905fca3db062c7b1bc1d1372b77a3044c3794bacb96e6c
diff --git a/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch b/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch
deleted file mode 100644
index 63c52ba3306..00000000000
--- a/app-admin/radmind/files/radmind-1.14.0-parallel-make.patch
+++ /dev/null
@@ -1,50 +0,0 @@
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -204,37 +204,37 @@
- radmind : libsnet/libsnet.la ${RADMIND_OBJ} Makefile
- ${CC} ${CFLAGS} -o radmind ${RADMIND_OBJ} ${LDFLAGS}
-
--fsdiff : ${FSDIFF_OBJ}
-+fsdiff : libsnet/libsnet.la ${FSDIFF_OBJ}
- ${CC} ${CFLAGS} -o fsdiff ${FSDIFF_OBJ} ${LDFLAGS}
-
--ktcheck: ${KTCHECK_OBJ}
-+ktcheck: libsnet/libsnet.la ${KTCHECK_OBJ}
- ${CC} ${CFLAGS} -o ktcheck ${KTCHECK_OBJ} ${LDFLAGS}
-
--lapply: ${LAPPLY_OBJ}
-+lapply: libsnet/libsnet.la ${LAPPLY_OBJ}
- ${CC} ${CFLAGS} -o lapply ${LAPPLY_OBJ} ${LDFLAGS}
-
--lcksum: ${LCKSUM_OBJ}
-+lcksum: libsnet/libsnet.la ${LCKSUM_OBJ}
- ${CC} ${CFLAGS} -o lcksum ${LCKSUM_OBJ} ${LDFLAGS}
-
--lcreate: ${LCREATE_OBJ}
-+lcreate: libsnet/libsnet.la ${LCREATE_OBJ}
- ${CC} ${CFLAGS} -o lcreate ${LCREATE_OBJ} ${LDFLAGS}
-
--lmerge: ${LMERGE_OBJ}
-+lmerge: libsnet/libsnet.la ${LMERGE_OBJ}
- ${CC} ${CFLAGS} -o lmerge ${LMERGE_OBJ} ${LDFLAGS}
-
--lfdiff: ${LFDIFF_OBJ}
-+lfdiff: libsnet/libsnet.la ${LFDIFF_OBJ}
- ${CC} ${CFLAGS} -o lfdiff ${LFDIFF_OBJ} ${LDFLAGS}
-
--repo : ${REPO_OBJ}
-+repo: libsnet/libsnet.la ${REPO_OBJ}
- ${CC} ${CFLAGS} -o repo ${REPO_OBJ} ${LDFLAGS}
-
- t2pkg: ${T2PKG_OBJ}
- ${CC} ${CFLAGS} -o t2pkg ${T2PKG_OBJ} ${LDFLAGS}
-
--twhich: ${TWHICH_OBJ}
-+twhich: libsnet/libsnet.la ${TWHICH_OBJ}
- ${CC} ${CFLAGS} -o twhich ${TWHICH_OBJ} ${LDFLAGS}
-
--lsort: ${LSORT_OBJ}
-+lsort: libsnet/libsnet.la ${LSORT_OBJ}
- ${CC} ${CFLAGS} -o lsort ${LSORT_OBJ} ${LDFLAGS}
-
- FRC :
diff --git a/app-admin/radmind/files/radmind-1.7.1-dnssd.patch b/app-admin/radmind/files/radmind-1.7.1-dnssd.patch
deleted file mode 100644
index fe71ee013d1..00000000000
--- a/app-admin/radmind/files/radmind-1.7.1-dnssd.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ru radmind-1.7.1~/configure radmind-1.7.1/configure
---- radmind-1.7.1~/configure 2007-02-10 19:20:01.000000000 +0100
-+++ radmind-1.7.1/configure 2007-02-10 19:22:04.000000000 +0100
-@@ -5265,12 +5265,12 @@
- echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
-
- fi
--if test $ac_cv_header_dns_sd_h = yes; then
-- cat >>confdefs.h <<\_ACEOF
--#define HAVE_DNSSD 1
--_ACEOF
--
--fi
-+#if test $ac_cv_header_dns_sd_h = yes; then
-+# cat >>confdefs.h <<\_ACEOF
-+##define HAVE_DNSSD 1
-+#_ACEOF
-+#
-+#fi
-
-
-
diff --git a/app-admin/radmind/radmind-1.14.1-r1.ebuild b/app-admin/radmind/radmind-1.14.1-r1.ebuild
deleted file mode 100644
index e21fec83efb..00000000000
--- a/app-admin/radmind/radmind-1.14.1-r1.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="command-line tools and server to remotely administer multiple Unix filesystems"
-HOMEPAGE="https://github.com/Radmind https://sourceforge.net/projects/radmind/"
-SRC_URI="mirror://sourceforge/radmind/${P}.tar.gz"
-
-LICENSE="HPND"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="libressl"
-
-DEPEND="
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )"
-RDEPEND="${DEPEND}
- !dev-util/repo"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.7.0-gentoo.patch
- # remove dnssd as it doesn't compile
- epatch "${FILESDIR}"/${PN}-1.7.1-dnssd.patch
- epatch "${FILESDIR}"/${PN}-1.14.0-parallel-make.patch
- epatch "${FILESDIR}"/${PN}-1.14.1-glibc225.patch
-}
-
-src_install() {
- default
- dodoc README VERSION COPYRIGHT
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-admin/radmind/files/, app-admin/radmind/
@ 2022-05-15 0:05 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-05-15 0:05 UTC (permalink / raw
To: gentoo-commits
commit: 1843f84e6b30d338ad004baed919ef6313fe0e4f
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat May 14 17:44:59 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 15 00:05:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1843f84e
app-admin/radmind: Fix build with cyrus-sasl
When radmind is build while cyrus-sasl is installed on the system the
libsnet submodule will enable it and then radmind will fail to compile
with undefined refererenes for sasl.
This was caused by my earlier patches that accidentally dropped that
part in radmind that disabled sasl support during the libsnet configure
process.
I also added missing dependencies and USE flags.
Bug: https://bugs.gentoo.org/844160
Upstream-PR: https://github.com/Radmind/radmind/pull/336
Upstream-PR: https://github.com/voretaq7/radmind/pull/1
Upstream-PR: https://sourceforge.net/p/libsnet/patches/7/
Fixes: https://github.com/gentoo/gentoo/commit/601775bd1dbb2e6f87c8eb39bee18a8964324e22
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/radmind-1.15.4-autoreconf-libsnet.patch | 109 +++++++++++++
.../radmind/files/radmind-1.15.4-autoreconf.patch | 176 +++++++++++++++++++++
app-admin/radmind/radmind-1.15.4-r1.ebuild | 57 +++++++
3 files changed, 342 insertions(+)
diff --git a/app-admin/radmind/files/radmind-1.15.4-autoreconf-libsnet.patch b/app-admin/radmind/files/radmind-1.15.4-autoreconf-libsnet.patch
index 211342d0bd83..a33003b33424 100644
--- a/app-admin/radmind/files/radmind-1.15.4-autoreconf-libsnet.patch
+++ b/app-admin/radmind/files/radmind-1.15.4-autoreconf-libsnet.patch
@@ -165,3 +165,112 @@ index 0000000..88a421b
--
2.35.1
+From 4ea29130382b5ae8b9cf3e3dc8962da764f65377 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Fri, 13 May 2022 13:41:49 -0700
+Subject: [PATCH 2/2] Add AC_ARG_ENABLE options for ssl, sasl and zlib
+
+---
+ configure.ac | 83 +++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 66 insertions(+), 17 deletions(-)
+
+diff --git a/libsnet/configure.ac b/libsnet/configure.ac
+index 83f7e59..9cd16c7 100644
+--- a/libsnet/configure.ac
++++ b/libsnet/configure.ac
+@@ -11,26 +11,75 @@ AC_PROG_AWK
+ AC_PROG_CC
+ AC_PROG_INSTALL
+
+-PKG_CHECK_MODULES([zlib], [zlib],
+- [AC_DEFINE([HAVE_ZLIB], [1], [zlib])],
+- [AC_MSG_WARN(zlib.pc not found, building without zlib support)])
+-AC_SUBST([zlib_LIBS])
+-AC_SUBST([zlib_CFLAGS])
++# Enable features
++AC_ARG_ENABLE([sasl],
++ AS_HELP_STRING([--enable-sasl], [Build with crypto_sasl @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-sasl])])],
++ [enable_sasl=check])
+
+-# Checks for libraries.
+-if test \! x_$with_ssl = x_no; then
+- PKG_CHECK_MODULES([ssl], [openssl],
+- [AC_DEFINE([HAVE_LIBSSL], [1], [libssl])],
+- [AC_MSG_WARN(openssl.pc not found, building without libssl support)])
+- AC_SUBST([ssl_LIBS])
+- AC_SUBST([ssl_CFLAGS])
+-fi
++AC_ARG_ENABLE([ssl],
++ AS_HELP_STRING([--enable-ssl], [Build with openssl @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-ssl])])],
++ [enable_ssl=check])
+
+-PKG_CHECK_MODULES([sasl], [libsasl2],
+- [AC_DEFINE([HAVE_LIBSASL], [1], [libsasl])],
+- [AC_MSG_WARN(libsasl2.pc not found, building without libsasl support)])
+-AC_SUBST([sasl_LIBS])
++AC_ARG_ENABLE([zlib],
++ AS_HELP_STRING([--enable-zlib], [Build with zlib @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-zlib])])],
++ [enable_zlib=check])
++
++# Checks for crypto_sasl.
++AS_IF([test x$enable_sasl != xno],
++ [PKG_CHECK_MODULES([sasl], [libsasl2],
++ [AC_DEFINE([HAVE_LIBSASL], [1], [libsasl])],
++ [AS_IF([test x$enable_sasl != xyes],
++ [AC_MSG_WARN([cannot find libsasl2.pc, disabling libsasl support])],
++ [enable_sasl=error])
++ ])
++ ])
++
++AS_IF([test x$enable_sasl = xerror],
++ [AC_MSG_ERROR([cannot find libsasl2.pc and libsasl support requested])])
++
++AM_CONDITIONAL([ENABLE_LIBSASL], [test x$enable_sasl = xyes])
+ AC_SUBST([sasl_CFLAGS])
++AC_SUBST([sasl_LIBS])
++
++# Checks for openssl.
++AS_IF([test x$enable_ssl != xno],
++ [PKG_CHECK_MODULES([ssl], [openssl],
++ [AC_DEFINE([HAVE_LIBSSL], [1], [libssl])],
++ [AS_IF([test x$enable_ssl != xyes],
++ [AC_MSG_WARN([cannot find openssl.pc, disabling libssl support])],
++ [enable_ssl=error])
++ ])
++ ])
++
++AS_IF([test x$enable_ssl = xerror],
++ [AC_MSG_ERROR([cannot find openssl.pc and libssl support requested])])
++
++AM_CONDITIONAL([ENABLE_LIBSSL], [test x$enable_ssl = xyes])
++AC_SUBST([ssl_CFLAGS])
++AC_SUBST([ssl_LIBS])
++
++# Checks for zlib.
++AS_IF([test x$enable_zlib != xno],
++ [PKG_CHECK_MODULES([zlib], [zlib],
++ [AC_DEFINE([HAVE_ZLIB], [1], [zlib])],
++ [AS_IF([test x$enable_zlib != xyes],
++ [AC_MSG_WARN([cannot find zlib.pc, disabling zlib support])],
++ [enable_zlib=error])
++ ])
++ ])
++
++AS_IF([test x$enable_zlib = xerror],
++ [AC_MSG_ERROR([cannot find zlib.pc and zlib support requested])])
++
++AM_CONDITIONAL([ENABLE_ZLIB], [test x$enable_zlib = xyes])
++AC_SUBST([zlib_CFLAGS])
++AC_SUBST([zlib_LIBS])
+
+ # Checks for header files.
+ #AC_HEADER_STDC
+--
+2.35.1
+
diff --git a/app-admin/radmind/files/radmind-1.15.4-autoreconf.patch b/app-admin/radmind/files/radmind-1.15.4-autoreconf.patch
index f266a386c95b..df983d074709 100644
--- a/app-admin/radmind/files/radmind-1.15.4-autoreconf.patch
+++ b/app-admin/radmind/files/radmind-1.15.4-autoreconf.patch
@@ -217,3 +217,179 @@ index 3bbdabb..8a96de3 100644
# HPUX lacks wait4 and strtoll
AC_CHECK_FUNCS(wait4 strtoll)
+From d31a1c234e7d4f4d630c720024df8bdf911b1de4 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Sat, 14 May 2022 03:30:35 -0700
+Subject: [PATCH 5/6] Disable sasl for libsnet
+
+This was previously set in aclocal.m4
+---
+ configure.ac | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8a96de3..60a56fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -113,7 +113,9 @@ if test x_"$OPTOPTS" = x_; then
+ fi
+ AC_SUBST(OPTOPTS)
+
+-SET_NO_SASL
++ac_configure_args="$ac_configure_args --enable-sasl=no";
++AC_MSG_RESULT([Disabling SASL for libsnet])
++
+ AC_CONFIG_SUBDIRS(libsnet)
+ AC_CONFIG_FILES(Makefile)
+ AC_OUTPUT
+--
+2.35.1
+
+From 66e0cb1c85e16ff70cf68c27e39ae2ec31487183 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Sat, 14 May 2022 09:33:31 -0700
+Subject: [PATCH 6/6] Add AC_ARG_ENABLE options for pam, ssl and zlib
+
+---
+ Makefile.in | 4 +--
+ configure.ac | 89 ++++++++++++++++++++++++++++++++++++++++------------
+ 2 files changed, 71 insertions(+), 22 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ca01832..b2ef2b6 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -39,12 +39,12 @@ INCPATH= @CPPFLAGS@ -I${srcdir}/libsnet -I.
+ OPTOPTS= @OPTOPTS@
+ CC= @CC@
+ DEFS=
+-LIBS= -lsnet @LIBS@ @ssl_LIBS@ @zlib_LIBS@
++LIBS= -lsnet @LIBS@ @pam_LIBS@ @ssl_LIBS@ @zlib_LIBS@
+ LDFLAGS= -Llibsnet/.libs @LDFLAGS@ ${LIBS}
+ INSTALL= @INSTALL@
+
+ CFLAGS= ${DEFS} ${OPTOPTS} ${INCPATH} \
+- @ssl_CFLAGS@ @zlib_CFLAGS@ @CFLAGS@
++ @pam_CFLAGS@ @ssl_CFLAGS@ @zlib_CFLAGS@ @CFLAGS@
+
+ BINTARGETS= fsdiff ktcheck lapply lcksum lcreate lmerge lfdiff repo \
+ twhich lsort
+diff --git a/configure.ac b/configure.ac
+index 60a56fb..8c9b916 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,6 +56,25 @@ CFLAGS="$HOST_CFLAGS -Werror"
+ AC_HEADER_MAJOR
+ CFLAGS="$SAVED_CFLAGS"
+
++# Enable features.
++
++AC_ARG_ENABLE([pam],
++ AS_HELP_STRING([--enable-pam], [Build with pam @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-pam])])],
++ [enable_pam=check])
++
++AC_ARG_ENABLE([ssl],
++ AS_HELP_STRING([--enable-ssl], [Build with openssl @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-ssl])])],
++ [enable_ssl=check])
++
++AC_ARG_ENABLE([zlib],
++ AS_HELP_STRING([--enable-zlib], [Build with zlib @<:@default=yes@:>@]),
++ [AS_CASE(${enableval}, [yes], [], [no], [],
++ [AC_MSG_ERROR([bad value '${enableval}' for --enable-zlib])])],
++ [enable_zlib=check])
+
+ # Checks for libraries.
+ AC_CHECK_LIB(c, inet_aton, libc_inet_aton=yes)
+@@ -69,35 +88,65 @@ fi
+ AC_CHECK_LIB(nsl, gethostbyaddr)
+ AC_CHECK_LIB([socket], [socket])
+
+-PKG_CHECK_MODULES([ssl], [openssl],
+- [AC_DEFINE([HAVE_LIBSSL], [1], [libssl])])
+-AC_SUBST([ssl_LIBS])
+-AC_SUBST([ssl_CFLAGS])
++# Checks for pam.
++AS_IF([test x$enable_pam != xno],
++ [PKG_CHECK_MODULES([pam], [pam],
++ [AC_CHECK_HEADERS([pam/pam_appl.h],
++ [], [AC_CHECK_HEADERS([security/pam_appl.h])])]
++ [AC_DEFINE([HAVE_LIBPAM], [1], [libpam])],
++ [AS_IF([test x$enable_pam != xyes],
++ [AC_MSG_WARN([cannot find pam.pc, disabling pam support])],
++ [enable_pam=error])
++ ])
++ ])
++
++AS_IF([test x$enable_pam = xerror],
++ [AC_MSG_ERROR([cannot find pam.pc and pam support requested])])
++
++AM_CONDITIONAL([ENABLE_PAM], [test x$enable_pam = xyes])
++AC_SUBST([pam_CFLAGS])
++AC_SUBST([pam_LIBS])
++
++# Checks for openssl.
++AS_IF([test x$enable_ssl != xno],
++ [PKG_CHECK_MODULES([ssl], [openssl],
++ [AC_DEFINE([HAVE_LIBSSL], [1], [libssl])],
++ [AS_IF([test x$enable_ssl != xyes],
++ [AC_MSG_WARN([cannot find openssl.pc, disabling libssl support])],
++ [enable_ssl=error])
++ ])
++ ])
+
+ AC_CHECK_HEADER([openssl/ssl.h], [], [AC_MSG_ERROR([header file <openssl/ssl.h>
+ is required for this software. You may be running RedHat 9. If so, see the FAQ or the README for further instructions.])])
+ AC_CHECK_LIB([crypto], [X509_VERIFY_PARAM_set_flags], [AC_DEFINE([HAVE_X509_VERIFY_PARAM], [], [X509_verify_param])])
+
+-# PAM
+-AC_ARG_WITH([pam], AC_HELP_STRING([--with-pam=PATH], [Pluggable Authentication Module support (default: /usr)]), [], with_pam=/usr)
+-if test x_"$with_pam" != x_no; then
+- CPPFLAGS="${CPPFLAGS} -I$with_pam/include"
+- AC_CHECK_LIB([pam], [pam_start],
+- [
+- AC_CHECK_HEADERS(pam/pam_appl.h, , [AC_CHECK_HEADERS(security/pam_appl.h)])
+- AC_DEFINE([HAVE_LIBPAM], [], [libpam])
+- LIBS="$LIBS -lpam";
+- ]
+- )
+-fi
++AS_IF([test x$enable_ssl = xerror],
++ [AC_MSG_ERROR([cannot find openssl.pc and libssl support requested])])
++
++AM_CONDITIONAL([ENABLE_LIBSSL], [test x$enable_ssl = xyes])
++AC_SUBST([ssl_CFLAGS])
++AC_SUBST([ssl_LIBS])
++
+ AC_CHECK_HEADER([dns_sd.h], [AC_DEFINE([HAVE_DNSSD], [], [dnssd])])
+ AC_CHECK_LIB(dns_sd, DNSServiceRegister)
+
+-PKG_CHECK_MODULES([zlib], [zlib],
+- [AC_DEFINE([HAVE_ZLIB], [1], [zlib])],
+- [AC_MSG_WARN(zlib.pc not found, building without zlib support)])
+-AC_SUBST([zlib_LIBS])
++# Checks for zlib.
++AS_IF([test x$enable_zlib != xno],
++ [PKG_CHECK_MODULES([zlib], [zlib],
++ [AC_DEFINE([HAVE_ZLIB], [1], [zlib])],
++ [AS_IF([test x$enable_zlib != xyes],
++ [AC_MSG_WARN([cannot find zlib.pc, disabling zlib support])],
++ [enable_zlib=error])
++ ])
++ ])
++
++AS_IF([test x$enable_zlib = xerror],
++ [AC_MSG_ERROR([cannot find zlib.pc and zlib support requested])])
++
++AM_CONDITIONAL([ENABLE_ZLIB], [test x$enable_zlib = xyes])
+ AC_SUBST([zlib_CFLAGS])
++AC_SUBST([zlib_LIBS])
+
+ # HPUX lacks wait4 and strtoll
+ AC_CHECK_FUNCS(wait4 strtoll)
+--
+2.35.1
+
diff --git a/app-admin/radmind/radmind-1.15.4-r1.ebuild b/app-admin/radmind/radmind-1.15.4-r1.ebuild
new file mode 100644
index 000000000000..0f568b6c08d0
--- /dev/null
+++ b/app-admin/radmind/radmind-1.15.4-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Command-line tools and server to remotely administer multiple Unix filesystems"
+HOMEPAGE="https://github.com/Radmind https://sourceforge.net/projects/radmind/"
+SRC_URI="https://github.com/voretaq7/radmind/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pam zlib"
+
+DEPEND="
+ dev-libs/openssl:0=
+ net-libs/libnsl
+ pam? ( sys-libs/pam )
+ zlib? ( sys-libs/zlib )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.0-gentoo.patch
+ "${FILESDIR}"/${PN}-1.14.1-glibc225.patch
+ # 779664
+ "${FILESDIR}"/${PN}-1.15.4-autoreconf.patch
+ "${FILESDIR}"/${PN}-1.15.4-autoreconf-libsnet.patch
+)
+
+src_prepare() {
+ default
+
+ # We really don't want these
+ # https://github.com/Radmind/radmind/pull/336
+ # https://sourceforge.net/p/libsnet/patches/7/
+ rm -f {,libsnet/}aclocal.m4 || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable pam)
+ $(use_enable zlib)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ keepdir /var/radmind/{cert,client,postapply,preapply}
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-15 0:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-20 21:10 [gentoo-commits] repo/gentoo:master commit in: app-admin/radmind/files/, app-admin/radmind/ Andreas Hüttel
-- strict thread matches above, loose matches on Subject: below --
2019-05-19 21:19 Andreas Sturmlechner
2022-05-15 0:05 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox