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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Jun 21 14:46:11 2007 UTC (7 years, 5 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3_rc4)

1 # Copyright 1999-2007 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.59.ebuild,v 1.5 2007/02/11 06:58:07 josejx 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="http://www.ircservices.za.net/download/${P}.tar.gz
10 ftp://ftp.esper.net/${PN}/${P}.tar.gz
11 mirror://gentoo/${P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="ppc x86"
15 IUSE=""
16
17 DEPEND=""
18 RDEPEND=""
19
20 pkg_setup() {
21 enewgroup ircservices
22 enewuser ircservices -1 -1 -1 ircservices
23 # this is needed, because old ebuilds added the user with ircservices:users
24 usermod -g ircservices ircservices
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 epatch "${FILESDIR}"/5.0.37-fPIC.patch
32 epatch "${FILESDIR}"/5.0.53-fPIC-configure.patch
33
34 ht_fix_file configure
35 sed -i \
36 -e "s/HEAD -1/HEAD -n 1/" \
37 -e "s/-m 750/-m 755/" \
38 -e "s/-m 640/-m 644/" \
39 configure
40 }
41
42 src_compile() {
43 append-flags -fno-stack-protector
44 # configure fails with -O higher than 2
45 replace-flags "-O[3-9s]" "-O2"
46
47 RUNGROUP="ircservices" \
48 ./configure \
49 -cc "$(tc-getCC)" \
50 -cflags "${CFLAGS}" \
51 -bindest /usr/bin \
52 -datdest /var/lib/ircservices \
53 || die "./configure failed"
54 emake -j1 || die "make failed"
55 }
56
57 src_install() {
58 dodir /usr/bin /{etc,usr/{$(get_libdir),share},var/lib}/ircservices || die "dodir failed"
59 keepdir /var/log/ircservices || die "keepdir failed"
60
61 make \
62 BINDEST="${D}"/usr/bin \
63 DATDEST="${D}"/var/lib/ircservices \
64 install \
65 || die "make install failed"
66
67 mv "${D}"/var/lib/ircservices/convert-db "${D}"/usr/bin/ircservices-convert-db || die "mv failed"
68
69 # Now we move some files around to make it FHS conform
70 mv "${D}"/var/lib/ircservices/example-ircservices.conf "${D}"/etc/ircservices/ircservices.conf || die "mv failed"
71 dosym /etc/ircservices/ircservices.conf /var/lib/ircservices/ircservices.conf || die "dosym failed"
72
73 mv "${D}"/var/lib/ircservices/example-modules.conf "${D}"/etc/ircservices/modules.conf || die "mv failed"
74 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf || die "dosym failed"
75
76 mv "${D}"/var/lib/ircservices/modules "${D}"/usr/$(get_libdir)/ircservices || die "mv failed"
77 dosym /usr/$(get_libdir)/ircservices/modules /var/lib/ircservices/modules || die "dosym failed"
78
79 mv "${D}"/var/lib/ircservices/{helpfiles,languages} "${D}"/usr/share/ircservices || die "mv failed"
80 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles || die "mv failed"
81 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages || die "dosym failed"
82
83 fperms 750 /var/{lib,log}/ircservices /etc/ircservices
84 fperms 640 /etc/ircservices/{ircservices,modules}.conf
85 fowners ircservices:ircservices /var/{lib,log}/ircservices
86 fowners root:ircservices /etc/ircservices{,/{ircservices,modules}.conf}
87
88 newinitd "${FILESDIR}"/ircservices.init.d ircservices || die "newinitd failed"
89 newconfd "${FILESDIR}"/ircservices.conf.d ircservices || die "newconfd failed"
90
91 doman docs/ircservices.8 || die "doman failed"
92 newman docs/convert-db.8 ircservices-convert-db.8 || die "newman failed"
93 dohtml docs/*.html || die "dohtml failed"
94 dodoc KnownBugs Changes README TODO WhatsNew || die "dodoc failed"
95 }

  ViewVC Help
Powered by ViewVC 1.1.20