/[gentoo-x86]/net-irc/ircservices/ircservices-5.0.41.ebuild
Gentoo

Contents of /net-irc/ircservices/ircservices-5.0.41.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jan 21 20:06:05 2005 UTC (9 years, 6 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Marked stable on x86. Removed old ebuilds.
(Portage version: 2.0.51-r14)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ircservices-5.0.41.ebuild,v 1.5 2004/12/05 01:13:37 swegener Exp $
4
5 inherit eutils fixheadtails flag-o-matic
6
7 DESCRIPTION="ChanServ, NickServ & MemoServ with support for several IRC daemons"
8 HOMEPAGE="http://www.ircservices.za.net/"
9 SRC_URI="mirror://gentoo/${P}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ~ppc"
13 IUSE=""
14
15 DEPEND=""
16
17 # configure fails with -O higher than 2
18 replace-flags "-O[3-9]" "-O2"
19
20 src_unpack() {
21 unpack ${A}
22 cd ${S}
23
24 epatch ${FILESDIR}/5.0.37-fPIC.patch
25
26 ht_fix_file configure
27 }
28
29 src_compile() {
30 ./configure \
31 -cflags "${CFLAGS}" \
32 -bindest /usr/bin \
33 -datdest /var/lib/ircservices \
34 || die "./configure failed"
35 emake -j1 || die "make failed"
36 }
37
38 src_install() {
39 dodir \
40 /usr/bin \
41 /{etc,{usr,var}/lib,usr/share}/ircservices || die "dodir failed"
42 keepdir /var/log/ircservices || die "keepdir failed"
43 fperms 700 /{etc,var/lib}/ircservices || die "fperms failed"
44
45 make \
46 BINDEST=${D}/usr/bin \
47 DATDEST=${D}/var/lib/ircservices \
48 install \
49 || die "make install failed"
50
51 mv ${D}/var/lib/ircservices/convert-db \
52 ${D}/usr/bin/ircservices-convert-db || die "mv failed"
53
54 # Now we move some files around to make it FHS conform
55 mv ${D}/var/lib/ircservices/example-ircservices.conf \
56 ${D}/etc/ircservices/ircservices.conf || die "mv failed"
57 dosym /etc/ircservices/ircservices.conf \
58 /var/lib/ircservices/ircservices.conf || die "dosym failed"
59
60 mv ${D}/var/lib/ircservices/example-modules.conf \
61 ${D}/etc/ircservices/modules.conf || die "mv failed"
62 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf \
63 || die "dosym failed"
64
65 mv ${D}/var/lib/ircservices/modules ${D}/usr/lib/ircservices \
66 || die "mv failed"
67 dosym /usr/lib/ircservices/modules /var/lib/ircservices/modules \
68 || die "dosym failed"
69
70 mv ${D}/var/lib/ircservices/{helpfiles,languages} \
71 ${D}/usr/share/ircservices || die "mv failed"
72 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles \
73 || die "mv failed"
74 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages \
75 || die "dosym failed"
76
77 newinitd ${FILESDIR}/ircservices.init.d ircservices \
78 || die "newinitd failed"
79 newconfd ${FILESDIR}/ircservices.conf.d ircservices \
80 || die "newconfd failed"
81
82 doman docs/ircservices.8 || die "doman failed"
83 newman docs/convert-db.8 ircservices-convert-db.8 || die "newman failed"
84 dohtml docs/*.html || die "dohtml failed"
85 dodoc KnownBugs Changes README TODO WhatsNew || die "dodoc failed"
86 }
87
88 pkg_postinst() {
89 enewuser ircservices
90 chown ircservices ${ROOT}/var/lib/ircservices
91 chown -R ircservices ${ROOT}/etc/ircservices
92 }

  ViewVC Help
Powered by ViewVC 1.1.20