From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E80FD13835C for ; Mon, 18 Jan 2021 09:28:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C25D6E0874; Mon, 18 Jan 2021 09:28:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A940DE0874 for ; Mon, 18 Jan 2021 09:28:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A06A340E76 for ; Mon, 18 Jan 2021 09:28:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF6CC49F for ; Mon, 18 Jan 2021 09:28:18 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1610962057.8186e14efd61d97cdac690d3c1d8a637eb70b0a7.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/poppassd_ceti/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/poppassd_ceti/Manifest net-mail/poppassd_ceti/poppassd_ceti-1.8.9.ebuild X-VCS-Directories: net-mail/poppassd_ceti/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 8186e14efd61d97cdac690d3c1d8a637eb70b0a7 X-VCS-Branch: master Date: Mon, 18 Jan 2021 09:28:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 55123fd9-457d-425a-959c-6fbf095bafed X-Archives-Hash: 324c372b68ec956bda63e8479dcc1db7 commit: 8186e14efd61d97cdac690d3c1d8a637eb70b0a7 Author: Matthew Ogilvie zoho com> AuthorDate: Wed Dec 23 20:16:15 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Jan 18 09:27:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8186e14e net-mail/poppassd_ceti: bump 1.8.9 This works properly in my existing sudo-based installation. However, upstream (and this ebuild) has added new LDAP support and systemd unit files, and I don't have an environment to test either. Bug: https://bugs.gentoo.org/145839 Signed-off-by: Matthew Ogilvie zoho.com> Closes: https://github.com/gentoo/gentoo/pull/18795 Signed-off-by: Joonas Niilola gentoo.org> net-mail/poppassd_ceti/Manifest | 1 + net-mail/poppassd_ceti/poppassd_ceti-1.8.9.ebuild | 65 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/net-mail/poppassd_ceti/Manifest b/net-mail/poppassd_ceti/Manifest index a7b79b5b06e..9902ccd8d78 100644 --- a/net-mail/poppassd_ceti/Manifest +++ b/net-mail/poppassd_ceti/Manifest @@ -1 +1,2 @@ DIST poppassd-ceti-1.8.7.tar.xz 71400 BLAKE2B ca26f7298a8f679c595a9cd66622f1e8ddeff80a7b1655df91a7a15668337112113806d0aef788a374c483cbc957e765b178428d839da2c853ebf87e16039548 SHA512 d50549a4f6bdd9eac7fa74a7787e47dbffff14da883d4e8e23e24802883761c1a392b8a7fbffe5fa726845f48b3b33e0dbc1743ad2d689a4d396c91d0a42f8f1 +DIST poppassd-ceti-1.8.9.tar.gz 15465 BLAKE2B 22f6b521d83c4b7c4a8842cde22710c17dda26f9cbfb39d020de05b14c045a1606fcebf51557c2e38c932e009554c5f0d1f770d5cfbf1666f81eb03a342c25f4 SHA512 cc8953aaed8cd6d2633d1c2040e364770598eb71d563a29fd3f4798730654d002ba720babab0596cc336ea8aff403064e17e8b17c3df657e5c840db2230a2077 diff --git a/net-mail/poppassd_ceti/poppassd_ceti-1.8.9.ebuild b/net-mail/poppassd_ceti/poppassd_ceti-1.8.9.ebuild new file mode 100644 index 00000000000..0d8585f2854 --- /dev/null +++ b/net-mail/poppassd_ceti/poppassd_ceti-1.8.9.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake pam readme.gentoo-r1 systemd + +# Long ago it was just "poppassd", but upstream now seems to have +# settled on "poppassd-ceti" (instead of "poppassd_ceti" or no suffix). +MY_PN="poppassd-ceti" +MY_P="${MY_PN}-${PV}" +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Password change daemon with PAM support" +HOMEPAGE="https://github.com/kravietz/poppassd-ceti" +SRC_URI="https://github.com/kravietz/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-libs/pam" +RDEPEND="${DEPEND}" + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS="poppassd is installed, but has to be run as root to work. + +Most commonly a front end would require sys-apps/xinetd and connect to +port 106: For this, edit /etc/xinetd.d/poppassd, install sys-apps/xinetd, +and start the xinetd service. + +If you use systemd, you may be able to use the installed poppassd.socket +and poppassd.service files instead of xinetd. See README.md.bz2 and +systemd documentation. + +Alternatively, a front end may be able to run it directly (if already +root), or might use app-admin/sudo. To use sudo, you'll need to configure +/etc/sudoers with something similar to: + + apache ALL=(ALL) NOPASSWD: /usr/sbin/poppassd + +See also README.md.bz2 for related configuration and security +considerations. +" + +src_install() { + dodoc README.md + readme.gentoo_create_doc + + pamd_mimic_system poppassd auth account password + + insinto /etc/xinetd.d + newins "${FILESDIR}"/poppassd.xinetd poppassd + + systemd_dounit etc/systemd/poppassd.{socket,service} + + exeinto /usr/sbin + exeopts -o root -g bin -m 500 + doexe poppassd +} + +pkg_postinst() { + readme.gentoo_print_elog +}