Gentoo Archives: gentoo-commits

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