public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/taylor-uucp/
Date: Mon, 14 Sep 2020 23:53:46 +0000 (UTC)	[thread overview]
Message-ID: <1600127504.cd8186b85ef88256f71ba6a9802fc312ef0c9f7f.sam@gentoo> (raw)

commit:     cd8186b85ef88256f71ba6a9802fc312ef0c9f7f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 14 23:51:44 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 14 23:51:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd8186b8

net-misc/taylor-uucp: modernise ebuild

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/taylor-uucp/taylor-uucp-1.07-r4.ebuild | 39 +++++++++++++++----------
 1 file changed, 23 insertions(+), 16 deletions(-)

diff --git a/net-misc/taylor-uucp/taylor-uucp-1.07-r4.ebuild b/net-misc/taylor-uucp/taylor-uucp-1.07-r4.ebuild
index 1f216fb1763..40489f01df1 100644
--- a/net-misc/taylor-uucp/taylor-uucp-1.07-r4.ebuild
+++ b/net-misc/taylor-uucp/taylor-uucp-1.07-r4.ebuild
@@ -1,24 +1,28 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=7
 
-inherit eutils flag-o-matic autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Taylor UUCP"
 HOMEPAGE="https://www.airs.com/ian/uucp.html"
 SRC_URI="mirror://gnu/uucp/uucp-${PV}.tar.gz"
+S="${WORKDIR}/uucp-${PV}"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~ia64 ppc sparc x86"
 
-S="${WORKDIR}/uucp-${PV}"
+PATCHES=(
+	"${FILESDIR}"/${P}-gentoo.patch
+	"${FILESDIR}"/${P}-fprintf.patch
+	"${FILESDIR}"/${P}-remove-extern.patch
+)
 
 src_prepare() {
-	epatch "${FILESDIR}"/${P}-gentoo.patch
-	epatch "${FILESDIR}"/${P}-fprintf.patch
-	epatch "${FILESDIR}"/${P}-remove-extern.patch
+	default
+
 	mv configure.{in,ac} || die
 	sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
 	eautoreconf
@@ -32,7 +36,6 @@ src_configure() {
 src_install() {
 	dodir /usr/share/man/man{1,8}
 	dodir /usr/share/info
-	dodir /etc/uucp
 	dodir /usr/bin /usr/sbin
 	diropts -o uucp -g uucp -m 0750
 	keepdir /var/log/uucp /var/spool/uucp
@@ -40,19 +43,23 @@ src_install() {
 	keepdir /var/spool/uucppublic
 
 	emake \
-		"prefix=${D}/usr" \
-		"sbindir=${D}/usr/sbin" \
-		"bindir=${D}/usr/bin" \
-		"man1dir=${D}/usr/share/man/man1" \
-		"man8dir=${D}/usr/share/man/man8" \
-		"newconfigdir=${D}/etc/uucp" \
-		"infodir=${D}/usr/share/info" \
+		"prefix=${ED}/usr" \
+		"sbindir=${ED}/usr/sbin" \
+		"bindir=${ED}/usr/bin" \
+		"man1dir=${ED}/usr/share/man/man1" \
+		"man8dir=${ED}/usr/share/man/man8" \
+		"newconfigdir=${ED}/etc/uucp" \
+		"infodir=${ED}/usr/share/info" \
 		install install-info
+
 	sed -i -e 's:/usr/spool:/var/spool:g' sample/config
-	cp sample/* "${ED}/etc/uucp" || die
+
+	insinto etc/uucp
+	doins sample/*
+
 	dodoc ChangeLog NEWS README TODO
 }
 
 pkg_preinst() {
-	usermod -s /bin/bash uucp
+	usermod -s /bin/bash uucp || die
 }


             reply	other threads:[~2020-09-14 23:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 23:53 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-22  9:34 [gentoo-commits] repo/gentoo:master commit in: net-misc/taylor-uucp/ Petr Vaněk
2024-11-08  2:49 Sam James
2024-11-03 18:28 Sam James
2024-11-03 18:28 Sam James
2024-11-03 18:28 Sam James
2024-10-21  2:55 Eli Schwartz
2023-10-05 19:57 Mike Gilbert
2022-07-15 20:55 Conrad Kostecki
2018-05-22 21:52 Sergei Trofimovich
2018-05-20 23:26 Aaron Bauman
2018-04-12 20:54 Thomas Deutschmann
2018-04-01 14:14 Aaron Bauman
2018-04-01 11:09 Tobias Klausmann
2018-03-28 19:32 Sergei Trofimovich
2018-03-27 22:32 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1600127504.cd8186b85ef88256f71ba6a9802fc312ef0c9f7f.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox