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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Sep 19 20:40:29 2009 UTC (4 years, 10 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Bumping to 5.1.17
(Portage version: 2.2_rc40/cvs/Linux i686)

1 # Copyright 1999-2009 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.1.14.ebuild,v 1.3 2009/08/10 17:22:36 vostorga 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="~amd64 ~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}/${P}-fPIC.patch"
32 epatch "${FILESDIR}/${P}-fPIC-configure.patch"
33
34 ht_fix_file configure
35 sed -i \
36 -e "s/-m 750/-m 755/" \
37 -e "s/-m 640/-m 644/" \
38 configure
39 #bug 273978
40 sed -i -e "s/getline/get_line/" lang/langcomp.c
41 }
42
43 src_compile() {
44 append-flags -fno-stack-protector
45 # configure fails with -O higher than 2
46 replace-flags "-O[3-9s]" "-O2"
47
48 RUNGROUP="ircservices" \
49 ./configure \
50 -cc "$(tc-getCC)" \
51 -cflags "${CFLAGS}" \
52 -bindest /usr/bin \
53 -datdest /var/lib/ircservices \
54 || die "./configure failed"
55 emake -j1 || die "make failed"
56 }
57
58 src_install() {
59 dodir /usr/bin /{etc,usr/{$(get_libdir),share},var/lib}/ircservices || die "dodir failed"
60 keepdir /var/log/ircservices || die "keepdir failed"
61
62 make \
63 BINDEST="${D}"/usr/bin \
64 DATDEST="${D}"/var/lib/ircservices \
65 install \
66 || die "make install failed"
67
68 mv "${D}"/var/lib/ircservices/convert-db "${D}"/usr/bin/ircservices-convert-db || die "mv failed"
69
70 # Now we move some files around to make it FHS conform
71 mv "${D}"/var/lib/ircservices/example-ircservices.conf "${D}"/etc/ircservices/ircservices.conf || die "mv failed"
72 dosym /etc/ircservices/ircservices.conf /var/lib/ircservices/ircservices.conf || die "dosym failed"
73
74 mv "${D}"/var/lib/ircservices/example-modules.conf "${D}"/etc/ircservices/modules.conf || die "mv failed"
75 dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf || die "dosym failed"
76
77 mv "${D}"/var/lib/ircservices/modules "${D}"/usr/$(get_libdir)/ircservices || die "mv failed"
78 dosym /usr/$(get_libdir)/ircservices/modules /var/lib/ircservices/modules || die "dosym failed"
79
80 mv "${D}"/var/lib/ircservices/{helpfiles,languages} "${D}"/usr/share/ircservices || die "mv failed"
81 dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles || die "mv failed"
82 dosym /usr/share/ircservices/languages /var/lib/ircservices/languages || die "dosym failed"
83
84 fperms 750 /var/{lib,log}/ircservices /etc/ircservices
85 fperms 640 /etc/ircservices/{ircservices,modules}.conf
86 fowners ircservices:ircservices /var/{lib,log}/ircservices
87 fowners root:ircservices /etc/ircservices{,/{ircservices,modules}.conf}
88
89 newinitd "${FILESDIR}"/ircservices.init.d ircservices || die "newinitd failed"
90 newconfd "${FILESDIR}"/ircservices.conf.d ircservices || die "newconfd failed"
91
92 doman docs/ircservices.8 || die "doman failed"
93 newman docs/convert-db.8 ircservices-convert-db.8 || die "newman failed"
94 dohtml docs/*.html || die "dohtml failed"
95 dodoc docs/Changes README docs/WhatsNew || die "dodoc failed"
96 }

  ViewVC Help
Powered by ViewVC 1.1.20