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

Collapse All | Expand All

(-)inspircd-2.0.20.ebuild (-23 / +13 lines)
Lines 2-10 Link Here
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
# $Id$
3
# $Id$
4
4
5
EAPI=5
5
EAPI=6
6
6
7
inherit eutils multilib toolchain-funcs user
7
inherit toolchain-funcs user
8
8
9
DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
9
DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
10
HOMEPAGE="https://inspircd.github.com/"
10
HOMEPAGE="https://inspircd.github.com/"
Lines 12-18 Link Here
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 x86"
15
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
16
IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre"
16
IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre"
17
17
18
RDEPEND="
18
RDEPEND="
Lines 28-33 Link Here
28
	tre? ( dev-libs/tre )"
28
	tre? ( dev-libs/tre )"
29
DEPEND="${RDEPEND}"
29
DEPEND="${RDEPEND}"
30
30
31
PATCHES=( "${FILESDIR}"/${P}-fix-path-builds.patch )
32
31
pkg_setup() {
33
pkg_setup() {
32
	enewgroup ${PN}
34
	enewgroup ${PN}
33
	enewuser ${PN} -1 -1 -1 ${PN}
35
	enewuser ${PN} -1 -1 -1 ${PN}
Lines 37-57 Link Here
37
	# Patch the inspircd launcher with the inspircd user
39
	# Patch the inspircd launcher with the inspircd user
38
	sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
40
	sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
39
41
40
	epatch "${FILESDIR}"/${P}-fix-path-builds.patch
42
	default_src_prepare
41
	epatch "${FILESDIR}"/${P}-deprecated-tmpnam-560362.patch
42
43
	epatch_user
44
}
43
}
45
44
46
src_configure() {
45
src_configure() {
47
	local extras=""
46
	local extras=""
48
	local essl="--enable-openssl"
49
	local egnutls="--enable-gnutls"
50
	local dipv6="--disable-ipv6"
51
47
52
	use geoip && extras="${extras}m_geoip.cpp,"
48
	use geoip && extras="${extras}m_geoip.cpp,"
53
	use gnutls && extras="${extras}m_ssl_gnutls.cpp,"
49
	use gnutls && extras="${extras}m_ssl_gnutls.cpp,"
54
	use ipv6 && dipv6=""
55
	use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp,"
50
	use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp,"
56
	use mysql && extras="${extras}m_mysql.cpp,"
51
	use mysql && extras="${extras}m_mysql.cpp,"
57
	use pcre && extras="${extras}m_regex_pcre.cpp,"
52
	use pcre && extras="${extras}m_regex_pcre.cpp,"
Lines 61-74 Link Here
61
	use ssl && extras="${extras}m_ssl_openssl.cpp,"
56
	use ssl && extras="${extras}m_ssl_openssl.cpp,"
62
	use tre && extras="${extras}m_regex_tre.cpp,"
57
	use tre && extras="${extras}m_regex_tre.cpp,"
63
58
64
	use !ssl && essl=""
65
	use !gnutls && egnutls=""
66
67
	if [ -n "${extras}" ]; then
59
	if [ -n "${extras}" ]; then
68
		./configure --disable-interactive --enable-extras=${extras}
60
		econf --disable-interactive --enable-extras=${extras}
69
	fi
61
	fi
70
62
71
	./configure \
63
	econf \
72
		--with-cc="$(tc-getCXX)" \
64
		--with-cc="$(tc-getCXX)" \
73
		--disable-interactive \
65
		--disable-interactive \
74
		--prefix="/usr/$(get_libdir)/${PN}" \
66
		--prefix="/usr/$(get_libdir)/${PN}" \
Lines 77-83 Link Here
77
		--log-dir="/var/log/${PN}" \
69
		--log-dir="/var/log/${PN}" \
78
		--binary-dir="/usr/bin" \
70
		--binary-dir="/usr/bin" \
79
		--module-dir="/usr/$(get_libdir)/${PN}/modules" \
71
		--module-dir="/usr/$(get_libdir)/${PN}/modules" \
80
		${essl} ${egnutls} ${dipv6} || die
72
		$(use_enable ipv6) \
73
		$(use_enable gnutls) \
74
		$(use_enable ssl openssl)
81
}
75
}
82
76
83
src_compile() {
77
src_compile() {
Lines 85-95 Link Here
85
}
79
}
86
80
87
src_install() {
81
src_install() {
88
	emake INSTUID=${PN} \
82
	emake INSTUID=${PN} DESTDIR="${D}" install
89
		BINPATH="${D}/usr/bin" \
90
		BASE="${D}/usr/$(get_libdir)/${PN}/inspircd.launcher" \
91
		MODPATH="${D}/usr/$(get_libdir)/${PN}/modules/" \
92
		CONPATH="${D}/etc/${PN}" install
93
83
94
	insinto "/usr/include/${PN}"
84
	insinto "/usr/include/${PN}"
95
	doins include/*
85
	doins include/*
Lines 98-104 Link Here
98
	dodir "/var/lib/${PN}"
88
	dodir "/var/lib/${PN}"
99
	dodir "/var/lib/${PN}/data"
89
	dodir "/var/lib/${PN}/data"
100
90
101
	newinitd "${FILESDIR}/${PN}-init" "${PN}"
91
	newinitd "${FILESDIR}/${P}-init" "${PN}"
102
	keepdir "/var/log/${PN}"/
92
	keepdir "/var/log/${PN}"/
103
}
93
}
104
94

Return to bug 575956