Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 593290
Collapse All | Expand All

(-)a/net-irc/inspircd/Manifest (+1 lines)
Lines 1-2 Link Here
1
DIST inspircd-2.0.20.tar.gz 728970 SHA256 5156e2da5da4cfa377705ecd633aee41cdcd785d12627497d55cab5f70dd686f SHA512 85463f7df379e5c7e190b4cc7ea67a80d5c4e5799c68abf2329e8204239dbed7258d11c97e5138039a8002f18ca0bd75ffc5c362b02cc27170adaf8cda6acc7e WHIRLPOOL 7eb8d3ca23c203431794ac18e65037e696638f54a0df8f2efbf590e87017e31f7a4f37926352cb4a613e6d58fb0d76ebf44a78ca6d39d093d66b46b57330b541
1
DIST inspircd-2.0.20.tar.gz 728970 SHA256 5156e2da5da4cfa377705ecd633aee41cdcd785d12627497d55cab5f70dd686f SHA512 85463f7df379e5c7e190b4cc7ea67a80d5c4e5799c68abf2329e8204239dbed7258d11c97e5138039a8002f18ca0bd75ffc5c362b02cc27170adaf8cda6acc7e WHIRLPOOL 7eb8d3ca23c203431794ac18e65037e696638f54a0df8f2efbf590e87017e31f7a4f37926352cb4a613e6d58fb0d76ebf44a78ca6d39d093d66b46b57330b541
2
DIST inspircd-2.0.21.tar.gz 730417 SHA256 bc2f861d754754a108797699319186130ef7d909204eb56ab2c3b1ae80c9d6c5 SHA512 28f38e8195d5cb6e7c7f2c4bcff2f0fcc13fb462a26975269faf899af7228c3ece2002ee819d0d5e2242ae5687a8e198e82cace8b3ff75521a44f12ac29ade0f WHIRLPOOL e1d7ee44a4900a26c2307d431fd62e0b13a8ba56388fa3e2edb10754c6bea5426625b4008162adc203c984e36b9e99ed656622bc21aae4195574514edc9b678e
2
DIST inspircd-2.0.21.tar.gz 730417 SHA256 bc2f861d754754a108797699319186130ef7d909204eb56ab2c3b1ae80c9d6c5 SHA512 28f38e8195d5cb6e7c7f2c4bcff2f0fcc13fb462a26975269faf899af7228c3ece2002ee819d0d5e2242ae5687a8e198e82cace8b3ff75521a44f12ac29ade0f WHIRLPOOL e1d7ee44a4900a26c2307d431fd62e0b13a8ba56388fa3e2edb10754c6bea5426625b4008162adc203c984e36b9e99ed656622bc21aae4195574514edc9b678e
3
DIST inspircd-2.0.23.tar.gz 731695 SHA256 522b31fc80e8fd90b66837bf50f8a941233709d5b1fc9c0b3c47a413fb69f162 SHA512 93a3dab04e797cfde158de8c2e959d1bb5df115aa3fe5a4066cdf9f56cb0c548fd2664a12d61bf2dbdb45549577974be99a0d6ffc6114c72cf0697f5ca4f85bb WHIRLPOOL 9ac288624835e8cf97cf3634df47c4310c6929691b4bfb39139cb0a6c45a7503e1c73addf7f6eaef03d77e52d53a78f8efd648ddb3b5ee9023c4bdee045ac4a1
(-)a/net-irc/inspircd/files/inspircd-2.0.23-init (+41 lines)
Line 0 Link Here
1
diff -Nuar a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example
2
--- a/docs/conf/inspircd.conf.example	2015-05-10 00:24:10.000000000 -0500
Line 0 Link Here
1
#!/sbin/openrc-run
2
# Copyright 1999-2017 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Id$
5
6
extra_commands="rehash version"
7
8
depend() {
9
	need net
10
	provide ircd
11
}
12
13
start() {
14
	ebegin "Starting InspIRCd"
15
	checkpath -d -m 0750 -o inspircd:inspircd /var/run/inspircd
16
	start-stop-daemon --start --quiet --user inspircd \
17
		--exec /usr/bin/inspircd -- \
18
		--config /etc/inspircd/inspircd.conf \
19
		--logfile /var/log/inspircd/ircd.log
20
	eend $?
21
}
22
23
stop() {
24
	ebegin "Stopping InspIRCd"
25
	start-stop-daemon --stop --quiet --exec /usr/bin/inspircd
26
	eend $?
27
}
28
29
rehash() {
30
	ebegin "Rehashing InspIRCd"
31
	/usr/lib/inspircd/inspircd rehash
32
	eend $?
33
}
34
35
version() {
36
	ebegin "Retrieve InspIRCd version"
37
	/usr/lib/inspircd/inspircd version
38
	eend $?
39
}
(-)a/net-irc/inspircd/inspircd-2.0.23.ebuild (-1 / +102 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
5
EAPI=6
6
7
inherit toolchain-funcs user
8
9
DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
10
HOMEPAGE="https://inspircd.github.com/"
11
SRC_URI="https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12
13
LICENSE="GPL-2"
14
SLOT="0"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre"
17
18
RDEPEND="
19
	dev-lang/perl
20
	ssl? ( dev-libs/openssl:= )
21
	geoip? ( dev-libs/geoip )
22
	gnutls? ( net-libs/gnutls dev-libs/libgcrypt:0 )
23
	ldap? ( net-nds/openldap )
24
	mysql? ( virtual/mysql )
25
	postgres? ( dev-db/postgresql:= )
26
	pcre? ( dev-libs/libpcre )
27
	sqlite? ( >=dev-db/sqlite-3.0 )
28
	tre? ( dev-libs/tre )"
29
DEPEND="${RDEPEND}"
30
31
PATCHES=( "${FILESDIR}"/${P}-fix-path-builds.patch )
32
33
pkg_setup() {
34
	enewgroup ${PN}
35
	enewuser ${PN} -1 -1 -1 ${PN}
36
}
37
38
src_prepare() {
39
	# Patch the inspircd launcher with the inspircd user
40
	sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
41
42
	default_src_prepare
43
}
44
45
src_configure() {
46
	local extras=""
47
48
	use geoip && extras="${extras}m_geoip.cpp,"
49
	use gnutls && extras="${extras}m_ssl_gnutls.cpp,"
50
	use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp,"
51
	use mysql && extras="${extras}m_mysql.cpp,"
52
	use pcre && extras="${extras}m_regex_pcre.cpp,"
53
	use posix && extras="${extras}m_regex_posix.cpp,"
54
	use postgres && extras="${extras}m_pgsql.cpp,"
55
	use sqlite && extras="${extras}m_sqlite3.cpp,"
56
	use ssl && extras="${extras}m_ssl_openssl.cpp,"
57
	use tre && extras="${extras}m_regex_tre.cpp,"
58
59
	if [ -n "${extras}" ]; then
60
		econf --disable-interactive --enable-extras=${extras}
61
	fi
62
63
	econf \
64
		--with-cc="$(tc-getCXX)" \
65
		--disable-interactive \
66
		--prefix="/usr/$(get_libdir)/${PN}" \
67
		--config-dir="/etc/${PN}" \
68
		--data-dir="/var/lib/${PN}/data" \
69
		--log-dir="/var/log/${PN}" \
70
		--binary-dir="/usr/bin" \
71
		--module-dir="/usr/$(get_libdir)/${PN}/modules" \
72
		$(use_enable ipv6) \
73
		$(use_enable gnutls) \
74
		$(use_enable ssl openssl)
75
}
76
77
src_compile() {
78
	emake V=1 LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}"
79
}
80
81
src_install() {
82
	emake INSTUID=${PN} DESTDIR="${D}" install
83
84
	insinto "/usr/include/${PN}"
85
	doins include/*
86
87
	diropts -o"${PN}" -g"${PN}" -m0700
88
	dodir "/var/lib/${PN}"
89
	dodir "/var/lib/${PN}/data"
90
91
	newinitd "${FILESDIR}/${P}-init" "${PN}"
92
	keepdir "/var/log/${PN}"/
93
}
94
95
pkg_postinst() {
96
	elog "Before starting ${PN} the first time, you should create"
97
	elog "the /etc/${PN}/${PN}.conf file."
98
	elog "You can find example configuration files under /etc/${PN}"
99
	elog "Read the ${PN}.conf.example file carefully before "
100
	elog "(re)starting the service."
101
	elog
102
}

Return to bug 593290