app-admin/conserver: add 8.2.7_p20250129

update SRC_URI (redirect)

add a snapshot which includes some fixes

reorder iuse, deps
remove test useflag, without dep
remove libnsl, at worst it should be conditioned to tcpd but
tcp-wrappers[netgroups] doesn't link against either.

add prefix in path

tested with gcc-16/clang-21/musl

Closes: https://bugs.gentoo.org/877651
Closes: https://bugs.gentoo.org/894194
Closes: https://bugs.gentoo.org/943774
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43204
Closes: https://github.com/gentoo/gentoo/pull/43204
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-07-27 21:14:58 +02:00
committed by Sam James
parent b565ac84f6
commit 98f26b4a03
3 changed files with 98 additions and 1 deletions

View File

@@ -1 +1,2 @@
DIST conserver-8.2.6.tar.gz 437315 BLAKE2B 9f62bb8ac91b57759c6b08d5a6ff31727a547c1991d322d75350a879a247925bbb1bbcab25b8a3d99a2ce6a997ba9f2e6c35338588e913055b29f3574e00e434 SHA512 3b7769675fd0edfd3727e5e84785f33c037b9e7a17c8c69c0ce48a447ea3b7de916e217c0f3b808b8350818b7bc702c917ea7a122ed96ae6b73f81ff0b5ae283
DIST conserver-8.2.7_p20250129.tar.gz 290368 BLAKE2B c1198e86955e48811cf9f470428bfd2697bac5945efaaa6e0ca6aa64e00301ccf1cff3f0852754bbacbc8d16e657be5af6109eae44c21dbaa4cf28e6efad25c8 SHA512 eeb8459ae2f9146b1020ad7a738828b037f7e8c7de01414682e70e1b7bb1df4e410ee58a9d35077d0254c077ecd775ccc3e6468604c4d9e55712a3591d6ac758

View File

@@ -0,0 +1,96 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools pam ssl-cert
COMMIT_HASH="290933b4a7964d56f74d2e3c61f7045c5e0d6bfe"
DESCRIPTION="Serial Console Manager"
HOMEPAGE="https://www.conserver.com"
SRC_URI="https://github.com/bstansell/${PN}/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_HASH}"
LICENSE="BSD BSD-with-attribution"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="freeipmi ipv6 kerberos pam ssl tcpd"
DEPEND="
virtual/libcrypt:=
freeipmi? ( sys-libs/freeipmi )
kerberos? (
net-libs/libgssglue
virtual/krb5
)
pam? ( sys-libs/pam )
ssl? ( dev-libs/openssl:0= )
tcpd? ( sys-apps/tcp-wrappers )
"
RDEPEND="${DEPEND}"
DOCS=( CHANGES FAQ PROTOCOL README.md conserver/Sun-serial contrib/maketestcerts )
src_prepare() {
default
sed -e '/^INSTALL_PROGRAM/s:-s::' \
-i {console,conserver,autologin,contrib/chat}/Makefile.in || die
eautoreconf
}
src_configure() {
local myconf=(
$(use_with freeipmi)
$(use_with ipv6)
$(use_with kerberos gssapi)
$(use_with pam)
$(use_with ssl openssl)
$(use_with tcpd libwrap)
--without-dmalloc
--with-cffile=conserver/conserver.cf
--with-logfile="${EPREFIX}"/var/log/conserver.log
--with-master=localhost
--with-pidfile="${EPREFIX}"/run/conserver.pid
--with-port=7782
--with-pwdfile=conserver/conserver.passwd
)
econf "${myconf[@]}"
}
src_test() {
# hangs without -j1
emake -j1 test
}
src_install() {
emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install
keepdir /var/consoles
fowners daemon:daemon /var/consoles
fperms 700 /var/consoles
newinitd "${FILESDIR}"/conserver.initd-r1 conserver
newconfd "${FILESDIR}"/conserver.confd-r1 conserver
dodir /etc/conserver
fperms 700 /etc/conserver
insinto /etc/conserver
newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample
newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample
einstalldocs
docinto examples
dodoc -r conserver.cf/samples/.
if use pam; then
newpamd "${FILESDIR}"/conserver.pam-pambase conserver
fi
}
pkg_postinst() {
if use ssl; then
if [[ ! -f "${EROOT}"/etc/ssl/conserver/conserver.key ]]; then
install_cert /etc/ssl/conserver/conserver
fi
fi
}

View File

@@ -26,6 +26,6 @@
<flag name="freeipmi">Compile in FreeIPMI support via <pkg>sys-libs/freeipmi</pkg></flag>
</use>
<upstream>
<remote-id type="github">conserver/conserver</remote-id>
<remote-id type="github">bstansell/conserver</remote-id>
</upstream>
</pkgmetadata>