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 8D8E8139348 for ; Sun, 18 Jul 2021 16:18:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83D80E0CDA; Sun, 18 Jul 2021 16:18:05 +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 65181E0CCE for ; Sun, 18 Jul 2021 16:18:05 +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 55DD4342B57 for ; Sun, 18 Jul 2021 16:18:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79A427F3 for ; Sun, 18 Jul 2021 16:18:01 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626625059.9dc843d04bd7146dfe6a7021536bdbc2839e5874.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/beanstalkd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild X-VCS-Directories: app-misc/beanstalkd/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 9dc843d04bd7146dfe6a7021536bdbc2839e5874 X-VCS-Branch: master Date: Sun, 18 Jul 2021 16:18:01 +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: 6eab9a39-37ea-4b3e-89dc-0a679d8fd7f9 X-Archives-Hash: c4f47190af959666d86bb9b8ebceef1a commit: 9dc843d04bd7146dfe6a7021536bdbc2839e5874 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 18 11:44:26 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 18 16:17:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc843d0 app-misc/beanstalkd: migrate to GLEP 81 Bug: https://bugs.gentoo.org/781257 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild new file mode 100644 index 00000000000..489bb2fc14e --- /dev/null +++ b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd toolchain-funcs + +DESCRIPTION="A simple, fast work queue" +HOMEPAGE="https://kr.github.io/beanstalkd/" +SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x64-macos" + +RDEPEND=" + acct-group/beanstalk + acct-user/beanstalk +" + +DOCS=( README News docs/protocol.txt ) + +src_prepare() { + sed -e "s/CFLAGS=/CFLAGS?=/" \ + -e "s/LDLIBS/LDFLAGS/" \ + -e "s/LDFLAGS=/LDFLAGS?=/" + -i Makefile || die +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)" +} + +src_install() { + dobin beanstalkd + + doman doc/"${PN}".1 + + newconfd "${FILESDIR}/conf-1.9" beanstalkd + newinitd "${FILESDIR}/init-1.9" beanstalkd + + systemd_dounit "${S}/adm/systemd/${PN}".{service,socket} +}