/[gentoo-x86]/net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild
Gentoo

Diff of /net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/Attic/unrealircd-3.2.7-r2.ebuild,v 1.5 2009/06/06 21:29:01 cla Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/Attic/unrealircd-3.2.7-r2.ebuild,v 1.6 2009/09/18 15:10:56 betelgeuse Exp $
4
5EAPI="2"
4 6
5inherit eutils ssl-cert versionator multilib 7inherit eutils ssl-cert versionator multilib
6 8
7MY_P=Unreal${PV} 9MY_P=Unreal${PV}
8 10
17KEYWORDS="~amd64 ~mips ppc sparc x86 ~x86-fbsd" 19KEYWORDS="~amd64 ~mips ppc sparc x86 ~x86-fbsd"
18IUSE="hub ipv6 ssl zlib curl prefixaq showlistmodes" 20IUSE="hub ipv6 ssl zlib curl prefixaq showlistmodes"
19 21
20RDEPEND="ssl? ( dev-libs/openssl ) 22RDEPEND="ssl? ( dev-libs/openssl )
21 zlib? ( sys-libs/zlib ) 23 zlib? ( sys-libs/zlib )
22 curl? ( net-misc/curl )" 24 curl? ( net-misc/curl[ares,-ipv6] )"
23DEPEND="${RDEPEND} 25DEPEND="${RDEPEND}
24 >=sys-apps/sed-4" 26 >=sys-apps/sed-4"
25 27
26S="${WORKDIR}/Unreal${PV}" 28S="${WORKDIR}/Unreal${PV}"
27 29
28pkg_setup() { 30pkg_setup() {
29 if use curl && ( ! built_with_use net-misc/curl ares || built_with_use net-misc/curl ipv6 )
30 then
31 eerror "You need net-misc/curl compiled with the ares USE flag to be able to use"
32 eerror "net-irc/unrealircd with the curl USE flag. Please note that ares support"
33 eerror "for net-misc/curl is incompatible with the ipv6 USE flag."
34 die "need net-misc/curl with ares support"
35 fi
36
37 enewuser unrealircd 31 enewuser unrealircd
38} 32}
39 33
40src_unpack() { 34src_prepare() {
41 unpack ${A}
42 cd "${S}"
43
44 sed -i \ 35 sed -i \
45 -e "s:ircd\.pid:/var/run/unrealircd/ircd.pid:" \ 36 -e "s:ircd\.pid:/var/run/unrealircd/ircd.pid:" \
46 -e "s:ircd\.log:/var/log/unrealircd/ircd.log:" \ 37 -e "s:ircd\.log:/var/log/unrealircd/ircd.log:" \
47 -e "s:debug\.log:/var/log/unrealircd/debug.log:" \ 38 -e "s:debug\.log:/var/log/unrealircd/debug.log:" \
48 -e "s:ircd\.tune:/var/lib/unrealircd/ircd.tune:" \ 39 -e "s:ircd\.tune:/var/lib/unrealircd/ircd.tune:" \
49 include/config.h 40 include/config.h
50} 41}
51 42
52src_compile() { 43src_configure() {
53 local myconf="" 44 local myconf=""
54 use curl && myconf="${myconf} --enable-libcurl=/usr" 45 use curl && myconf="${myconf} --enable-libcurl=/usr"
55 use ipv6 && myconf="${myconf} --enable-inet6" 46 use ipv6 && myconf="${myconf} --enable-inet6"
56 use zlib && myconf="${myconf} --enable-ziplinks" 47 use zlib && myconf="${myconf} --enable-ziplinks"
57 use hub && myconf="${myconf} --enable-hub" 48 use hub && myconf="${myconf} --enable-hub"
75 66
76 sed -i \ 67 sed -i \
77 -e "s:${D}::" \ 68 -e "s:${D}::" \
78 include/setup.h \ 69 include/setup.h \
79 ircdcron/ircdchk 70 ircdcron/ircdchk
71}
80 72
73src_compile() {
81 emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed" 74 emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed"
82} 75}
83 76
84src_install() { 77src_install() {
85 keepdir /var/{lib,log,run}/unrealircd 78 keepdir /var/{lib,log,run}/unrealircd

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20