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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Oct 3 19:28:27 2004 UTC (9 years, 10 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump. Removed old ebuild.

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.37.ebuild,v 1.3 2004/09/08 21:08:05 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="ftp://ftp.esper.net/${PN}/${P}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~x86"
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}/${PV}-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
42 keepdir /var/log/ircservices
43 fperms 700 /{etc,var/lib}/ircservices
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
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
57 dosym /etc/ircservices/ircservices.conf \
58 /var/lib/ircservices/ircservices.conf
59
60 mv ${D}/var/lib/ircservices/example-modules.conf \
61 ${D}/etc/ircservices/modules.conf
62 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf
63
64 mv ${D}/var/lib/ircservices/modules ${D}/usr/lib/ircservices
65 dosym /usr/lib/ircservices/modules /var/lib/ircservices/modules
66
67 mv ${D}/var/lib/ircservices/{helpfiles,languages} \
68 ${D}/usr/share/ircservices
69 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles
70 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages
71
72 exeinto /etc/init.d
73 newexe ${FILESDIR}/ircservices.init.d ircservices
74 insinto /etc/conf.d
75 newins ${FILESDIR}/ircservices.conf.d ircservices
76
77 doman docs/ircservices.8
78 newman docs/convert-db.8 ircservices-convert-db.8
79 dohtml docs/*.html
80 dodoc KnownBugs Changes README TODO WhatsNew
81 }
82
83 pkg_postinst() {
84 enewuser ircservices
85 chown ircservices ${ROOT}/var/lib/ircservices
86 chown -R ircservices ${ROOT}/etc/ircservices
87 }

  ViewVC Help
Powered by ViewVC 1.1.20