Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 194654 | Differences between
and this patch

Collapse All | Expand All

(-)inspircd-1.1.12.ebuild (-11 / +8 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2007 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/inspircd/inspircd-1.1.12.ebuild,v 1.1 2007/09/20 19:41:13 hansmi Exp $
3
# $Header: $
4
4
5
inherit eutils toolchain-funcs multilib # subversion
5
inherit eutils toolchain-funcs multilib
6
6
7
IUSE="openssl gnutls ipv6 kernel_linux"
7
IUSE="openssl gnutls ipv6 kernel_linux"
8
8
Lines 18-25 Link Here
18
	gnutls? ( >=net-libs/gnutls-1.3.0 )"
18
	gnutls? ( >=net-libs/gnutls-1.3.0 )"
19
DEPEND="${RDEPEND}"
19
DEPEND="${RDEPEND}"
20
SRC_URI="mirror://sourceforge/${PN}/InspIRCd-${PV}.tar.bz2"
20
SRC_URI="mirror://sourceforge/${PN}/InspIRCd-${PV}.tar.bz2"
21
#ESVN_REPO_URI="http://svn.inspircd.org/repository/trunk/inspircd"
21
RESTRICT="mirror"
22
#ESVN_PROJECT="inspircd"
23
22
24
S="${WORKDIR}/inspircd"
23
S="${WORKDIR}/inspircd"
25
24
Lines 31-45 Link Here
31
src_compile() {
30
src_compile() {
32
	local myconf=""
31
	local myconf=""
33
32
34
	# Write a configuration file
35
	# we don't use econf.
36
	USE_SSL="$(use_enable openssl)"
33
	USE_SSL="$(use_enable openssl)"
37
	use gnutls && USE_SSL="$(use_enable gnutls)"
34
	use gnutls && USE_SSL="$(use_enable gnutls)"
38
	USE_SOCKET_ENGINE="--enable-epoll"
35
	USE_SOCKET_ENGINE="--enable-epoll"
39
	./configure $(use_enable ipv6) --enable-remote-ipv6 ${USE_SSL} \
36
	./configure $(use_enable ipv6) --enable-remote-ipv6 ${USE_SSL} \
40
	${USE_SOCKET_ENGINE} \
37
	${USE_SOCKET_ENGINE} \
41
	--prefix="/usr/$(get_libdir)/inspircd" \
38
	--prefix="/usr/$(get_libdir)/inspircd" \
42
	--config-dir="/etc/inspircd" --bin-dir="/usr/bin" \
39
	--config-dir="/etc/inspircd" --binary-dir="/usr/bin" \
43
	--library-dir="/usr/$(get_libdir)/inspircd" \
40
	--library-dir="/usr/$(get_libdir)/inspircd" \
44
	--module-dir="/usr/$(get_libdir)/inspircd/modules" \
41
	--module-dir="/usr/$(get_libdir)/inspircd/modules" \
45
	|| die "configure failed"
42
	|| die "configure failed"
Lines 48-55 Link Here
48
}
45
}
49
46
50
src_install() {
47
src_install() {
51
	# the inspircd buildsystem does not create these, it's configure script
52
	# does. so, we have to at this point to make sure they are there.
53
	dodir /usr/$(get_libdir)/inspircd
48
	dodir /usr/$(get_libdir)/inspircd
54
	dodir /usr/$(get_libdir)/inspircd/modules
49
	dodir /usr/$(get_libdir)/inspircd/modules
55
	dodir /etc/inspircd
50
	dodir /etc/inspircd
Lines 65-72 Link Here
65
60
66
	insinto /usr/include/inspircd/
61
	insinto /usr/include/inspircd/
67
	doins "${S}"/include/*
62
	doins "${S}"/include/*
68
63
	
69
	newinitd "${FILESDIR}"/init.d_inspircd inspircd
64
	newinitd "${FILESDIR}"/inspircd-initd inspircd
70
}
65
}
71
66
72
pkg_postinst() {
67
pkg_postinst() {
Lines 78-83 Link Here
78
73
79
	chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/inspircd
74
	chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/inspircd
80
	chmod -R 755 "${ROOT}"/usr/$(get_libdir)/inspircd
75
	chmod -R 755 "${ROOT}"/usr/$(get_libdir)/inspircd
76
	
77
	chmod -R 750 "${ROOT}"/usr/$(get_libdir)/inspircd/inspircd.launcher
81
78
82
	chmod -R 755 "${ROOT}"/usr/bin/inspircd
79
	chmod -R 755 "${ROOT}"/usr/bin/inspircd
83
}
80
}

Return to bug 194654