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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Apr 2 17:14:56 2005 UTC (9 years, 4 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.49.ebuild,v 1.2 2005/03/14 20:45:49 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 ~ppc"
13 IUSE=""
14
15 DEPEND=""
16
17 # configure fails with -O higher than 2
18 replace-flags "-O[3-9s]" "-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 sed -i -e "s/HEAD -1/HEAD -n 1/" configure
28 }
29
30 src_compile() {
31 append-flags -fno-stack-protector
32
33 ./configure \
34 -cflags "${CFLAGS}" \
35 -bindest /usr/bin \
36 -datdest /var/lib/ircservices \
37 || die "./configure failed"
38 emake -j1 || die "make failed"
39 }
40
41 src_install() {
42 dodir \
43 /usr/bin \
44 /{etc,{usr,var}/lib,usr/share}/ircservices || die "dodir failed"
45 keepdir /var/log/ircservices || die "keepdir failed"
46 fperms 700 /{etc,var/lib}/ircservices || die "fperms failed"
47
48 make \
49 BINDEST=${D}/usr/bin \
50 DATDEST=${D}/var/lib/ircservices \
51 install \
52 || die "make install failed"
53
54 mv ${D}/var/lib/ircservices/convert-db \
55 ${D}/usr/bin/ircservices-convert-db || die "mv failed"
56
57 # Now we move some files around to make it FHS conform
58 mv ${D}/var/lib/ircservices/example-ircservices.conf \
59 ${D}/etc/ircservices/ircservices.conf || die "mv failed"
60 dosym /etc/ircservices/ircservices.conf \
61 /var/lib/ircservices/ircservices.conf || die "dosym failed"
62
63 mv ${D}/var/lib/ircservices/example-modules.conf \
64 ${D}/etc/ircservices/modules.conf || die "mv failed"
65 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf \
66 || die "dosym failed"
67
68 mv ${D}/var/lib/ircservices/modules ${D}/usr/lib/ircservices \
69 || die "mv failed"
70 dosym /usr/lib/ircservices/modules /var/lib/ircservices/modules \
71 || die "dosym failed"
72
73 mv ${D}/var/lib/ircservices/{helpfiles,languages} \
74 ${D}/usr/share/ircservices || die "mv failed"
75 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles \
76 || die "mv failed"
77 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages \
78 || die "dosym failed"
79
80 newinitd ${FILESDIR}/ircservices.init.d ircservices \
81 || die "newinitd failed"
82 newconfd ${FILESDIR}/ircservices.conf.d ircservices \
83 || die "newconfd failed"
84
85 doman docs/ircservices.8 || die "doman failed"
86 newman docs/convert-db.8 ircservices-convert-db.8 || die "newman failed"
87 dohtml docs/*.html || die "dohtml failed"
88 dodoc KnownBugs Changes README TODO WhatsNew || die "dodoc failed"
89 }
90
91 pkg_postinst() {
92 enewuser ircservices
93 chown ircservices ${ROOT}/var/lib/ircservices
94 chown -R ircservices ${ROOT}/etc/ircservices
95 }

  ViewVC Help
Powered by ViewVC 1.1.20