diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-06-20 14:36:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-06-24 12:29:38 +0200 |
commit | 409c3254c49acbbfcc9ed9eb95c60276d517310e (patch) | |
tree | 8deec9c7581799862af847ad513b54dbc08064ff /net-libs/liblockfile | |
parent | net-mail/mailbase: Migrate to use acct-*/{mail,postmaster} (diff) | |
download | gentoo-409c3254c49acbbfcc9ed9eb95c60276d517310e.tar.gz gentoo-409c3254c49acbbfcc9ed9eb95c60276d517310e.tar.bz2 gentoo-409c3254c49acbbfcc9ed9eb95c60276d517310e.zip |
net-libs/liblockfile: Use acct-group/mail
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-libs/liblockfile')
-rw-r--r-- | net-libs/liblockfile/liblockfile-1.14-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/net-libs/liblockfile/liblockfile-1.14-r1.ebuild b/net-libs/liblockfile/liblockfile-1.14-r1.ebuild new file mode 100644 index 000000000000..2e058d9d5a44 --- /dev/null +++ b/net-libs/liblockfile/liblockfile-1.14-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib user + +DESCRIPTION="Implements functions designed to lock the standard mailboxes" +HOMEPAGE="http://www.debian.org/" +SRC_URI="mirror://debian/pool/main/libl/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +RDEPEND="acct-group/mail" +DEPEND=${RDEPEND} + +S="${WORKDIR}/${PN}" + +DOCS=( Changelog README ) + +PATCHES=( + "${FILESDIR}/${PN}-1.13-makefile.patch" +) + +src_prepare() { + default + + # I don't feel like making the Makefile portable + [[ ${CHOST} == *-darwin* ]] \ + && cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in + + eautoreconf +} + +src_configure() { + local grp=mail + if use prefix ; then + # we never want to use LDCONFIG + export LDCONFIG=${EPREFIX}/bin/true + # in unprivileged installs this is "mail" + grp=$(id -g) + fi + econf --with-mailgroup=${grp} --enable-shared +} |