/[gentoo-x86]/net-irc/atheme-services/atheme-services-1.2.1.ebuild
Gentoo

Contents of /net-irc/atheme-services/atheme-services-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 9 05:06:46 2011 UTC (3 years, 2 months ago) by binki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop atheme-services-0.2.2 and atheme-services-1.2.1 which are ancient and affected by bug #313373 and bug #335467.

(Portage version: 2.2.0_alpha37-r1/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/atheme-services-1.2.1.ebuild,v 1.1 2011/06/08 00:45:34 binki Exp $
4
5 inherit eutils autotools
6
7 DESCRIPTION="A portable, secure set of open source, and modular IRC services"
8 HOMEPAGE="http://www.atheme.net/"
9 SRC_URI="http://distfiles.atheme.org/atheme-${PV}.tgz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~sparc ~x86 ~x86-fbsd"
14 IUSE="largenet postgres"
15
16 RDEPEND="postgres? ( dev-db/postgresql-server )"
17 DEPEND="${RDEPEND}
18 >=sys-devel/autoconf-2.59"
19
20 S=${WORKDIR}/atheme-${PV}
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25
26 epatch "${FILESDIR}"/atheme-1.2.1-postgresl.patch
27
28 eautoreconf
29 }
30
31 src_compile() {
32 econf \
33 --prefix=/var/lib/atheme \
34 $(use_enable postgresql) \
35 $(use_with largenet large-net) \
36 || die "econf failed"
37 emake || die "emake failed"
38 }
39
40 src_install() {
41 make prefix="${D}"/var/lib/atheme install || die "make install failed"
42
43 dodir /usr/{lib,share}/atheme /etc
44 keepdir /var/lib/atheme/var
45 fowners atheme:atheme /var/lib/atheme/var
46 fperms 750 /var/lib/atheme/var
47
48 local dir
49 for dir in backend crypto modules protocol
50 do
51 mv "${D}"/var/lib/atheme/${dir} "${D}"/usr/lib/atheme
52 dosym /usr/lib/atheme/${dir} /var/lib/atheme/${dir}
53 done
54
55 mv "${D}"/var/lib/atheme/help "${D}"/usr/share/atheme
56 dosym /usr/share/atheme/help /var/lib/atheme/help
57
58 mv "${D}"/var/lib/atheme/etc "${D}"/etc/atheme
59 cp "${D}"/etc/atheme/example.conf "${D}"/etc/atheme/atheme.conf
60 fowners root:atheme /etc/atheme/atheme.conf
61 fperms 640 /etc/atheme/atheme.conf
62 dosym /etc/atheme /var/lib/atheme/etc
63
64 dobin "${D}"/var/lib/atheme/bin/atheme || die "dobin failed"
65
66 dodoc \
67 ChangeLog INSTALL README \
68 doc/{example_module.c,LICENSE,SQL,RELEASE} \
69 || die "dodoc failed"
70
71 newinitd "${FILESDIR}"/atheme.initd atheme
72
73 # And remove stuff we don't need
74 rm -rf "${D}"/var/lib/atheme/{bin,doc}
75 }
76
77 pkg_setup() {
78 enewgroup atheme
79 enewuser atheme -1 -1 /var/lib/atheme atheme
80 }
81
82 pkg_postinst() {
83 elog
84 elog "Don't forget to edit /etc/atheme/atheme.conf!"
85 elog
86 }

  ViewVC Help
Powered by ViewVC 1.1.20