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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jul 7 16:16:16 2005 UTC (8 years, 9 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Marked stable on x86.
(Portage version: 2.0.51.22-r1)

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.51.ebuild,v 1.3 2005/05/16 16:04:47 swegener Exp $
4
5 inherit eutils fixheadtails flag-o-matic toolchain-funcs
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 mirror://gentoo/${P}.tar.gz"
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ~ppc"
14 IUSE=""
15
16 DEPEND=""
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21
22 epatch "${FILESDIR}"/5.0.37-fPIC.patch
23
24 ht_fix_file configure
25 sed -i -e "s/HEAD -1/HEAD -n 1/" configure
26 }
27
28 src_compile() {
29 append-flags -fno-stack-protector
30 # configure fails with -O higher than 2
31 replace-flags "-O[3-9s]" "-O2"
32
33 ./configure \
34 -cc "$(tc-getCC)" \
35 -cflags "${CFLAGS}" \
36 -bindest /usr/bin \
37 -datdest /var/lib/ircservices \
38 || die "./configure failed"
39 emake -j1 || die "make failed"
40 }
41
42 src_install() {
43 dodir /usr/bin /{etc,{usr,var}/lib,usr/share}/ircservices || die "dodir failed"
44 keepdir /var/log/ircservices || die "keepdir failed"
45 fperms 700 /{etc,var/lib}/ircservices || die "fperms failed"
46
47 make \
48 BINDEST="${D}"/usr/bin \
49 DATDEST="${D}"/var/lib/ircservices \
50 install \
51 || die "make install failed"
52
53 mv "${D}"/var/lib/ircservices/convert-db "${D}"/usr/bin/ircservices-convert-db || die "mv failed"
54
55 # Now we move some files around to make it FHS conform
56 mv "${D}"/var/lib/ircservices/example-ircservices.conf "${D}"/etc/ircservices/ircservices.conf || die "mv failed"
57 dosym /etc/ircservices/ircservices.conf /var/lib/ircservices/ircservices.conf || die "dosym failed"
58
59 mv "${D}"/var/lib/ircservices/example-modules.conf "${D}"/etc/ircservices/modules.conf || die "mv failed"
60 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf || die "dosym failed"
61
62 mv "${D}"/var/lib/ircservices/modules "${D}"/usr/$(get_libdir)/ircservices || die "mv failed"
63 dosym /usr/$(get_libdir)/ircservices/modules /var/lib/ircservices/modules || die "dosym failed"
64
65 mv "${D}"/var/lib/ircservices/{helpfiles,languages} "${D}"/usr/share/ircservices || die "mv failed"
66 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles || die "mv failed"
67 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages || die "dosym failed"
68
69 newinitd "${FILESDIR}"/ircservices.init.d ircservices || die "newinitd failed"
70 newconfd "${FILESDIR}"/ircservices.conf.d ircservices || die "newconfd failed"
71
72 doman docs/ircservices.8 || die "doman failed"
73 newman docs/convert-db.8 ircservices-convert-db.8 || die "newman failed"
74 dohtml docs/*.html || die "dohtml failed"
75 dodoc KnownBugs Changes README TODO WhatsNew || die "dodoc failed"
76 }
77
78 pkg_postinst() {
79 enewuser ircservices
80 chown ircservices "${ROOT}"/var/lib/ircservices
81 chown -R ircservices "${ROOT}"/etc/ircservices
82 }

  ViewVC Help
Powered by ViewVC 1.1.20