Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/anope: anope-1.8.0.ebuild ChangeLog
Date: Sat, 27 Jun 2009 11:04:37
Message-Id: E1MKVhy-0000ED-Lp@stork.gentoo.org
1 patrick 09/06/27 11:04:34
2
3 Modified: ChangeLog
4 Added: anope-1.8.0.ebuild
5 Log:
6 Bump to 1.8.0 final. Fixes #274378
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.15 net-irc/anope/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/anope/ChangeLog?rev=1.15&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/anope/ChangeLog?rev=1.15&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/anope/ChangeLog?r1=1.14&r2=1.15
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v
19 retrieving revision 1.14
20 retrieving revision 1.15
21 diff -u -r1.14 -r1.15
22 --- ChangeLog 4 Jan 2009 21:23:25 -0000 1.14
23 +++ ChangeLog 27 Jun 2009 11:04:34 -0000 1.15
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-irc/anope
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v 1.14 2009/01/04 21:23:25 gurligebis Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v 1.15 2009/06/27 11:04:34 patrick Exp $
29 +
30 +*anope-1.8.0 (27 Jun 2009)
31 +
32 + 27 Jun 2009; Patrick Lauer <patrick@g.o> +anope-1.8.0.ebuild:
33 + Bump to 1.8.0 final. Fixes #274378
34
35 04 Jan 2009; Bjarke Istrup Pedersen <gurligebis@g.o>
36 anope-1.8.0_rc1.ebuild:
37
38
39
40 1.1 net-irc/anope/anope-1.8.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/anope/anope-1.8.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/anope/anope-1.8.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: anope-1.8.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.8.0.ebuild,v 1.1 2009/06/27 11:04:34 patrick Exp $
50
51 inherit eutils versionator
52
53 MY_PV=$(replace_version_separator 3 '-')
54 S="${WORKDIR}/${PN}-${MY_PV}"
55
56 DESCRIPTION="Anope IRC Services"
57 HOMEPAGE="http://www.anope.org"
58 SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="mysql"
64
65 DEPEND="mysql? ( virtual/mysql )"
66
67 INSTALL_DIR="/opt/anope"
68
69 pkg_setup() {
70 enewgroup anope
71 enewuser anope -1 -1 "${INSTALL_DIR}" anope
72 if has_version net-irc/anope ; then
73 ewarn
74 ewarn "Make backups before updating as they will be overwritten"
75 ewarn
76 ebeep 10
77 fi
78 }
79
80 src_unpack() {
81 unpack ${A}
82 cd "${S}"
83
84 epatch "${FILESDIR}"/pid-patch.diff
85 }
86
87 src_compile() {
88 local myconf
89 if ! use mysql; then
90 myconf="${myconf} --without-mysql"
91 fi
92
93 econf \
94 ${myconf} \
95 --bindir ${INSTALL_DIR} \
96 --with-bindir=${INSTALL_DIR} \
97 --with-datadir=${INSTALL_DIR}/data \
98 --with-modules=${INSTALL_DIR}/modules \
99 --with-encryption \
100 --with-rungroup=anope \
101 --with-permissions=077 \
102 || die "Configuration failed."
103
104 sed -i -e "/^build:/s:$: language:g" "${S}"/Makefile || die "sed failed"
105
106 emake || die "Make failed."
107 }
108
109 src_install() {
110 dodir ${INSTALL_DIR}
111 dodir ${INSTALL_DIR}/data
112 dodir ${INSTALL_DIR}/data/logs
113 dodir ${INSTALL_DIR}/data/languages
114 dodir ${INSTALL_DIR}/data/modules
115 dodir ${INSTALL_DIR}/data/modules/runtime
116 dodir ${INSTALL_DIR}/modules
117
118 dodir /var/run/anope
119 fowners anope:anope /var/run/anope
120 keepdir /var/run/anope
121
122 fowners anope:anope ${INSTALL_DIR}
123 fowners anope:anope ${INSTALL_DIR}/data
124 fowners anope:anope ${INSTALL_DIR}/data/logs
125 fowners anope:anope ${INSTALL_DIR}/data/languages
126 fowners anope:anope ${INSTALL_DIR}/data/modules
127 fowners anope:anope ${INSTALL_DIR}/data/modules/runtime
128 fowners anope:anope ${INSTALL_DIR}/modules
129
130 exeinto ${INSTALL_DIR}
131 doexe src/services
132 insinto ${INSTALL_DIR}/data
133 newins data/example.conf services.conf.example
134
135 newinitd "${FILESDIR}"/anope.initd anope
136 newconfd "${FILESDIR}"/anope.confd anope
137
138 insinto ${INSTALL_DIR}/modules
139 doins src/modules/*.so
140
141 keepdir ${INSTALL_DIR}/data/logs
142
143 insinto ${INSTALL_DIR}/data/languages
144 doins lang/cat
145 doins lang/de
146 doins lang/en_us
147 doins lang/es
148 doins lang/fr
149 doins lang/gr
150 doins lang/hun
151 doins lang/it
152 doins lang/nl
153 doins lang/pl
154 doins lang/pt
155 doins lang/ru
156 doins lang/tr
157
158 keepdir ${INSTALL_DIR}/data/modules/runtime
159
160 insinto ${INSTALL_DIR}/data/modules
161 doins src/protocol/*.so
162 doins src/core/*.so
163
164 fowners anope:anope ${INSTALL_DIR}/services
165 fowners anope:anope ${INSTALL_DIR}/data/languages/cat
166 fowners anope:anope ${INSTALL_DIR}/data/languages/de
167 fowners anope:anope ${INSTALL_DIR}/data/languages/en_us
168 fowners anope:anope ${INSTALL_DIR}/data/languages/fr
169 fowners anope:anope ${INSTALL_DIR}/data/languages/gr
170 fowners anope:anope ${INSTALL_DIR}/data/languages/hun
171 fowners anope:anope ${INSTALL_DIR}/data/languages/it
172 fowners anope:anope ${INSTALL_DIR}/data/languages/nl
173 fowners anope:anope ${INSTALL_DIR}/data/languages/pl
174 fowners anope:anope ${INSTALL_DIR}/data/languages/pt
175 fowners anope:anope ${INSTALL_DIR}/data/languages/ru
176 fowners anope:anope ${INSTALL_DIR}/data/languages/tr
177
178 dodoc Changes Changes.conf Changes.lang Changes.mysql docs/*
179
180 use mysql && dodoc data/tables.sql
181 }
182
183 pkg_preinst() {
184 if has_version net-irc/anope ; then
185 elog "Making a backup of your config to data/pre-update"
186 mkdir "${ROOT}"opt/anope/data/pre-update
187 cp "${ROOT}"opt/anope/data/* "${ROOT}"opt/anope/data/pre-update
188 fi
189 }
190
191 pkg_postinst() {
192 echo
193 ewarn "Anope won't run out of the box, you still have to configure it to match your IRCDs configuration."
194 ewarn "Edit ${INSTALL_DIR}/data/services.conf to configure Anope."
195 echo
196 ewarn "!!! ATTENTION !!!"
197 ewarn "Be sure to read Changes.mysql to update your MySQL"
198 ewarn "tables or anope will break after restart"
199 ewarn "!!! ATTENTION !!!"
200
201 if use mysql; then
202 einfo "The mysql script for updating the tables is located in the"
203 einfo "/usr/share/doc/${P} directory"
204 fi
205 }