Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/termpkg/files/, net-misc/termpkg/
Date: Wed, 04 May 2016 01:02:52
Message-Id: 1462323274.c07c7081dc292ae9f040f5e38f117dddefd61b49.wizardedit@gentoo
1 commit: c07c7081dc292ae9f040f5e38f117dddefd61b49
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 00:54:34 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 00:54:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c07c7081
7
8 net-misc/termpkg: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-misc/termpkg/files/termnetd.initd | 4 +-
15 net-misc/termpkg/files/ttyd.initd | 4 +-
16 net-misc/termpkg/termpkg-3.3.9.1-r2.ebuild | 65 ++++++++++++++++++++++++++++++
17 3 files changed, 69 insertions(+), 4 deletions(-)
18
19 diff --git a/net-misc/termpkg/files/termnetd.initd b/net-misc/termpkg/files/termnetd.initd
20 index 90e2462..010c5c3 100644
21 --- a/net-misc/termpkg/files/termnetd.initd
22 +++ b/net-misc/termpkg/files/termnetd.initd
23 @@ -1,5 +1,5 @@
24 -#!/sbin/runscript
25 -# Copyright 1999-2012 Gentoo Foundation
26 +#!/sbin/openrc-run
27 +# Copyright 1999-2016 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 # $Id$
30
31
32 diff --git a/net-misc/termpkg/files/ttyd.initd b/net-misc/termpkg/files/ttyd.initd
33 index abcb691..3193053 100644
34 --- a/net-misc/termpkg/files/ttyd.initd
35 +++ b/net-misc/termpkg/files/ttyd.initd
36 @@ -1,5 +1,5 @@
37 -#!/sbin/runscript
38 -# Copyright 1999-2012 Gentoo Foundation
39 +#!/sbin/openrc-run
40 +# Copyright 1999-2016 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 # $Id$
43
44
45 diff --git a/net-misc/termpkg/termpkg-3.3.9.1-r2.ebuild b/net-misc/termpkg/termpkg-3.3.9.1-r2.ebuild
46 new file mode 100644
47 index 0000000..5cdb58f
48 --- /dev/null
49 +++ b/net-misc/termpkg/termpkg-3.3.9.1-r2.ebuild
50 @@ -0,0 +1,65 @@
51 +# Copyright 1999-2016 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +# $Id$
54 +
55 +EAPI=4
56 +
57 +inherit base versionator
58 +
59 +MY_PV=$(get_version_component_range 1-2)
60 +MY_PF=$(replace_version_separator 2 '-')
61 +
62 +DESCRIPTION="Termpkg, the Poor Man's Terminal Server"
63 +HOMEPAGE="http://www.linuxlots.com/~termpkg/"
64 +SRC_URI="mirror://debian/pool/main/t/termpkg/${PN}_${MY_PV}.orig.tar.gz
65 + mirror://debian/pool/main/t/termpkg/${PN}_${MY_PF}.diff.gz"
66 +
67 +LICENSE="GPL-2"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="+uucp"
71 +
72 +DEPEND="sys-devel/flex"
73 +RDEPEND=""
74 +
75 +S="${WORKDIR}/${PN}-${MY_PV}"
76 +
77 +DOCS=(
78 + "README"
79 + "CHANGES"
80 + "termpkg.lsm"
81 +)
82 +
83 +PATCHES=(
84 + # debian patches
85 + "${WORKDIR}/${PN}_${MY_PF}.diff"
86 +
87 + # gentoo patches
88 + "${FILESDIR}/${P}-gcc43.diff"
89 +
90 + # iaxmodem patches
91 + "${FILESDIR}/${PN}-${MY_PV}-ttydforfax.diff"
92 +)
93 +
94 +src_configure() {
95 + ./configure LINUX $(use uucp && echo UUCP_LOCKING)
96 +}
97 +
98 +src_compile() {
99 + emake -C linux CC=$(tc-getCC) LIBS="${LDFLAGS}" || die "emake failed"
100 +}
101 +
102 +src_install() {
103 + local X
104 + base_src_install_docs
105 + dobin linux/bin/termnet
106 + dosbin linux/bin/{termnetd,ttyd}
107 + newdoc debian/changelog ChangeLog.debian
108 + doman doc/*.1
109 + insinto /etc
110 + newins debian/termnetd.conf termnetd.conf.dist
111 + for X in termnetd ttyd; do
112 + newinitd "${FILESDIR}/${X}.initd" "${X}"
113 + newconfd "${FILESDIR}/${X}.confd" "${X}"
114 + done
115 +}