1 |
commit: 35599f54e2933f16e5c7c87e7ff1cd337929515a |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 3 19:48:48 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 3 19:52:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35599f54 |
7 |
|
8 |
net-irc/irc-server: new revision to fix minor QA issues. |
9 |
|
10 |
This new revision fixes a few small issues: |
11 |
|
12 |
* The GPL-2 (for the init script) was missing from LICENSE. |
13 |
* Some die() statements were missing from system commands. |
14 |
* The src_prepare() was redundant. |
15 |
* The slot was missing from the ncurses dependency. |
16 |
|
17 |
Gentoo-Bug: 338571 |
18 |
Gentoo-Bug: 426038 |
19 |
|
20 |
Package-Manager: portage-2.2.28 |
21 |
|
22 |
...p1-r3.ebuild => irc-server-2.11.1_p1-r4.ebuild} | 38 +++++++++++++--------- |
23 |
1 file changed, 23 insertions(+), 15 deletions(-) |
24 |
|
25 |
diff --git a/net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild b/net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild |
26 |
similarity index 71% |
27 |
rename from net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild |
28 |
rename to net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild |
29 |
index cf0b971..49aa925 100644 |
30 |
--- a/net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild |
31 |
+++ b/net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild |
32 |
@@ -4,38 +4,36 @@ |
33 |
|
34 |
EAPI=6 |
35 |
|
36 |
-inherit eutils versionator flag-o-matic user |
37 |
+inherit versionator user |
38 |
|
39 |
-MY_P=irc${PV/_/} |
40 |
+MY_P="irc${PV/_/}" |
41 |
|
42 |
DESCRIPTION="RFC compliant IRC server" |
43 |
HOMEPAGE="http://www.irc.org/" |
44 |
SRC_URI="ftp://ftp.irc.org/irc/server/${MY_P}.tgz |
45 |
ftp://ftp.irc.org/irc/server/Old/irc$(get_version_component_range 1-2)/${MY_P}.tgz" |
46 |
|
47 |
-LICENSE="GPL-1" |
48 |
+# GPL-2 is for the init script, bug 426038. |
49 |
+LICENSE="GPL-1 GPL-2" |
50 |
SLOT="0" |
51 |
KEYWORDS="~amd64 ~ppc ~x86" |
52 |
IUSE="zlib ipv6" |
53 |
|
54 |
-RDEPEND="sys-libs/ncurses |
55 |
+RDEPEND="sys-libs/ncurses:0 |
56 |
zlib? ( sys-libs/zlib )" |
57 |
DEPEND="${RDEPEND} |
58 |
sys-apps/sed |
59 |
sys-apps/grep" |
60 |
|
61 |
-S=${WORKDIR}/${MY_P} |
62 |
+S="${WORKDIR}/${MY_P}" |
63 |
+ |
64 |
+PATCHES=( "${FILESDIR}"/2.10.3_p3-gentoo.patch ) |
65 |
|
66 |
pkg_setup() { |
67 |
enewgroup ircd |
68 |
enewuser ircd -1 -1 -1 ircd |
69 |
} |
70 |
|
71 |
-src_prepare() { |
72 |
- eapply "${FILESDIR}"/2.10.3_p3-gentoo.patch |
73 |
- default |
74 |
-} |
75 |
- |
76 |
src_configure () { |
77 |
sed -i \ |
78 |
-e "s/^#undef\tOPER_KILL$/#define\tOPER_KILL/" \ |
79 |
@@ -47,10 +45,17 @@ src_configure () { |
80 |
-e "s/^#undef\tIRC_UID$/#define\tIRC_UID\t$IRCUID/" \ |
81 |
-e "s/^#undef\tIRC_GID$/#define\tIRC_GID\t$IRCGID/" \ |
82 |
-e "s/^#undef USE_SERVICES$/#define\tUSE_SERVICES/" \ |
83 |
- "${S}"/support/config.h.dist |
84 |
+ "${S}"/support/config.h.dist \ |
85 |
+ || die "failed to sed definitions in config.h.dist" |
86 |
|
87 |
- use zlib && sed -i -e "s/^#undef\tZIP_LINKS$/#define\tZIP_LINKS/" "${S}"/support/config.h.dist |
88 |
+ if use zlib ; then |
89 |
+ sed -i -e "s/^#undef\tZIP_LINKS$/#define\tZIP_LINKS/" \ |
90 |
+ "${S}"/support/config.h.dist \ |
91 |
+ || die "failed to sed ZIP_LINKS definition in config.h.dist" |
92 |
+ fi |
93 |
|
94 |
+ # The --mandir has single quotes around it, the $prefix is NOT |
95 |
+ # interpolated into the string. |
96 |
econf \ |
97 |
--sysconfdir=/etc/ircd \ |
98 |
--localstatedir=/var/run/ircd \ |
99 |
@@ -62,12 +67,14 @@ src_configure () { |
100 |
} |
101 |
|
102 |
src_compile() { |
103 |
- cd $(support/config.guess) |
104 |
+ cd $(support/config.guess) \ |
105 |
+ || die "failed to change into the source directory in src_compile" |
106 |
emake ircd iauth chkconf ircd-mkpasswd ircdwatch tkserv |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
- cd $(support/config.guess) |
111 |
+ cd $(support/config.guess) \ |
112 |
+ || die "failed to change into the source directory in src_install" |
113 |
|
114 |
emake \ |
115 |
prefix="${D}"/usr \ |
116 |
@@ -80,7 +87,8 @@ src_install() { |
117 |
fowners ircd:ircd /var/run/ircd |
118 |
fowners ircd:ircd /var/log/ircd |
119 |
|
120 |
- cd ../doc |
121 |
+ cd ../doc || die "failed to change into the doc directory in src_install" |
122 |
+ |
123 |
dodoc \ |
124 |
*-New alt-irc-faq Authors BUGS ChangeLog Etiquette \ |
125 |
iauth-internals.txt INSTALL.appendix INSTALL.* \ |