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

Contents of /net-irc/atheme-services/atheme-services-0.2.2.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, 4 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-0.2.2.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}/make-postgresql-support-optional.patch || die "epacth failed"
27 epatch ${FILESDIR}/makefile-DESTDIR-support.patch || die "epatch failed"
28
29 eautoreconf
30 }
31
32 src_compile() {
33 econf \
34 --prefix=/var/lib/atheme \
35 $(use_with postgresql) \
36 $(use_with largenet large-net) \
37 || die "econf failed"
38 emake || die "emake failed"
39 }
40
41 src_install() {
42 local dir
43
44 make DESTDIR="${D}" install || die "make install failed"
45
46 dodir /{etc,usr/{lib,share}}/atheme
47 keepdir /var/lib/atheme/var
48 fowners atheme:atheme /etc/atheme /var/lib/atheme/var
49 fperms 750 /etc/atheme /var/lib/atheme/var
50
51 for dir in backend contrib modules protocol
52 do
53 mv "${D}"/var/lib/atheme/${dir} "${D}"/usr/lib/atheme
54 dosym /usr/lib/atheme/${dir} /var/lib/atheme
55 done
56
57 mv "${D}"/var/lib/atheme/help "${D}"/usr/share/atheme
58 dosym /usr/share/atheme/help /var/lib/atheme
59
60 mv "${D}"/var/lib/atheme/etc/example.conf ${D}/etc/atheme/atheme.conf
61 fowners root:atheme /etc/atheme/atheme.conf
62 fperms 640 /etc/atheme/atheme.conf
63
64 rm -rf "${D}"/var/lib/atheme/etc
65 dosym /etc/atheme /var/lib/atheme/etc
66
67 dobin "${D}"/var/lib/atheme/bin/atheme || die "dobin failed"
68
69 dodoc \
70 ChangeLog INSTALL README \
71 doc/{example_module.c,LICENSE,POSTGRESQL,RELEASE,ROADMAP} \
72 || die "dodoc failed"
73
74 newinitd "${FILESDIR}"/atheme.initd atheme
75
76 # And remove stuff we don't need
77 rm -rf "${D}"/var/lib/atheme/{bin,doc}
78 }
79
80 pkg_setup() {
81 enewgroup atheme
82 enewuser atheme -1 -1 /var/lib/atheme atheme
83 }
84
85 pkg_postinst() {
86 elog
87 elog "Don't forget to edit /etc/atheme/atheme.conf!"
88 elog
89 }

  ViewVC Help
Powered by ViewVC 1.1.20