Changeset - d0d4d2b649c9
[Not reviewed]
default
0 3 1
Nathan Brink (binki) - 15 years ago 2010-02-16 11:25:35
ohnobinki@ohnopublishing.net
net-irc/atheme: Support installing some stuff form contrib, such as a perl module and a few database conversion C programs/modules. Added initscript. QA against bundled libmowgli. Fixed /var paths.
4 files changed with 66 insertions and 8 deletions:
0 comments (0 inline, 0 general)
net-irc/atheme/ChangeLog
Show inline comments
 
# ChangeLog for net-irc/atheme
 
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 
# $Header: $
 

	
 
  16 Feb 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> atheme-5.0.1.ebuild, +files/atheme.initd:
 
  Support installing some stuff form contrib, such as a perl module and a
 
  few database conversion C programs/modules. Added initscript. QA against
 
  bundled libmowgli. Fixed /var paths.
 

	
 
  16 Feb 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> +atheme-5.0.1.ebuild,
 
  +files/atheme-5.0.1-depend-parallel.patch,
 
  +files/atheme-5.0.1-ldap-as-needed.patch,
 
  +files/atheme-5.0.1-with-ldap.patch, +metadata.xml:
 
  Add atheme stable release 5.0.1 with various build-time patches (which are
 
  already upstreamed).
 

	
net-irc/atheme/Manifest
Show inline comments
 
AUX atheme-5.0.1-depend-parallel.patch 457 RMD160 32c03cad4e1b3432b97370961f5d402006f6f404 SHA1 bbff9d88d95496aa750578012a25ba392627a889 SHA256 abbb351d50baf483bd37e2c2ad5eaa2dcf7a483cb5bda4f25910af8b9dd11305
 
AUX atheme-5.0.1-ldap-as-needed.patch 493 RMD160 3894b824bb6848695b63eae569fa2c6826c60a2e SHA1 ad15750f9c0a952fef7d595dd035e351800a3517 SHA256 da31b6a830860914d160bc0436a20a37f1fbce2c73ed2b8234ab46791e6e376f
 
AUX atheme-5.0.1-with-ldap.patch 758 RMD160 28831504041ba3ec47cede827027e609f0f51d84 SHA1 1abd522ddc6cdb735347afc9013f6c9b8446cc7f SHA256 f65bccd4df149f6e1205a803dc0da29805bc864cb988a75c4ffaee4267db5901
 
AUX atheme.initd 475 RMD160 c30e6093c4a95d3524e2ee3dacdad8638d58d253 SHA1 3f8ab87b47796a77f658641200018a36f210c091 SHA256 19cdf77845f765c2fef2e152de2f688f3eea2e675d92345d45bcd28462641df4
 
DIST atheme-services-5.0.1.tar.bz2 694093 RMD160 c97f6a36f628f7d31d88aeb8247645aab2f8c469 SHA1 e351af2a53bd08ed38c25dd601cae026ed4ace29 SHA256 db749339a88fb80397163ddbad219dca857b5a28e7a9bde6e456b769be0491b7
 
EBUILD atheme-5.0.1.ebuild 1723 RMD160 214eefa2ae734f6187889b172987c19e1ff87e0e SHA1 73a8560ab62c02f6b30320841c60994e86ae9507 SHA256 8b50456da208d88930e366b2606795bf2b6435ff2edb82dcf6f20f01bb4c59d8
 
MISC ChangeLog 462 RMD160 1e0604caefa79c122fa34fb6f34e7b984d946eb0 SHA1 84df47c4bf0ac4f219a078d45366aa4b4cc09bb2 SHA256 5991d55d714bc3c03711b8fb0ccdfda2a2515fe4c42e6dbbd642b78f929b4961
 
EBUILD atheme-5.0.1.ebuild 2500 RMD160 192536e72d77cb6b90a37c99514c24e27a3e7a4d SHA1 3763c7f0aae9d7cae4a31611d7857315e5e8d747 SHA256 edfeb5bd1c50a8092f72d0690960a7c789a775957a6380ce9ae5105d0ecc731a
 
MISC ChangeLog 774 RMD160 42ec74582ef255712c8259543210e02ef39b8357 SHA1 ca6b577c68d032f0f89bc6f0fa3bd0af20a75137 SHA256 75218c039ff125853971600b5fda70f70e45ce6d229fb963f2ea6c093980ca55
 
MISC metadata.xml 248 RMD160 529d56c0d04b30a5cec5675e3104bd26911a7666 SHA1 f4fabea23c086a1f70709f74e2f4eb083e2c78aa SHA256 f3c501f041eb7ea6edcd5adfe691133e8c9070f0d7cf7edb4774fce9d496b16e
net-irc/atheme/atheme-5.0.1.ebuild
Show inline comments
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: $
 

	
 
EAPI="3"
 

	
 
inherit autotools base eutils flag-o-matic
 
inherit autotools eutils flag-o-matic perl-module
 

	
 
MY_P=${PN}-services-${PV}
 
DESCRIPTION="A portable and secure set of open-source and modular IRC services"
 
HOMEPAGE="http://atheme.net/"
 
SRC_URI="http://atheme.net/downloads/${MY_P}.tar.bz2"
 

	
 
LICENSE="BSD"
 
SLOT="0"
 
KEYWORDS="~amd64 ~x86"
 
IUSE="debug largenet ldap pcre profile ssl"
 
IUSE="debug largenet ldap pcre perl profile ssl"
 

	
 
RDEPEND="dev-libs/libmowgli
 
	ldap? ( net-nds/openldap )
 
	pcre? ( dev-libs/libpcre )
 
	ssl? ( dev-libs/openssl )"
 
DEPEND="${DEPEND}
 
	dev-util/pkgconfig"
 

	
 
S=${WORKDIR}/${MY_P}
 

	
 
pkg_setup() {
 
	# the dependency calculation puts all of the .c files together and
 
	# overwhelms cc1 with this flag :-(
 
	filter-flags -combine
 

	
 
	enewgroup ${PN}
 
	enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
 
}
 

	
 
src_prepare() {
 
	epatch "${FILESDIR}"/${P}-with-ldap.patch
 
	epatch "${FILESDIR}"/${P}-ldap-as-needed.patch
 
	epatch "${FILESDIR}"/${P}-depend-parallel.patch
 

	
 
	# fix atheme's sorry attempt at ``FHS paths'':
 
	sed -i -e 's;\(DATADIR=.*\)lib/;\1;' configure.ac || die
 
	# fix docdir
 
	find -regex '.*/Makefile\..*in' \
 
		| xargs sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' \
 
		|| die
 

	
 
	# basic logging config directive fix
 
	sed -i -e 's;var/\(.*\.log\);\1;g' dist/* || die
 

	
 
	eaclocal -I m4
 
	eautoheader
 
	eautoconf
 

	
 
	# QA against bundled libs
 
	rm -rf libmowgli || die
 
}
 

	
 
src_configure() {
 
	econf --enable-fhs-paths \
 
		--sysconfdir="${EPREFIX}"/etc/${PN} \
 
		--docdir="${EPREFIX}"/usr/share/doc/${PF} \
 
		--localstatedir="${EPREFIX}"/var \
 
		$(use debug || echo --enable-propolice) \
 
		$(use_enable largenet large-net) \
 
		$(use_with ldap) \
 
		$(use_enable profile) \
 
		$(use_with pcre) \
 
		$(use_enable ssl)
 
}
 

	
 
src_compile() {
 
	emake || die
 
	emake -C contrib || die
 
}
 

	
 
src_install() {
 
	emake DESTDIR="${D}" install || die
 
	emake DESTDIR="${D}" -C contrib install || die
 

	
 
	insinto /etc/${PN}
 
	for conf in dist/*.example; do
 
		newins ${conf} $(basename ${conf} .example)  || die "installing ${conf/.example//}"
 
	done
 

	
 
	fowners -R root:atheme /etc/atheme/ \
 
		/var/lib/{run/,log/,}${PN} || die
 
	fowners -R root:atheme /etc/atheme || die
 
	fowners atheme:atheme /var/{lib,run,log}/${PN} || die
 
	fperms -R 640 /etc/atheme || die
 
	fperms 750 /etc/atheme /var/{lib,run,log}/${PN} || die
 

	
 
	newinitd "${FILESDIR}"/${PN}.initd atheme || die
 

	
 
	# contributed scripts and such:
 
	insinto /usr/share/doc/${PF}/contrib
 
	doins contrib/*.{pl,php,py,rb} || die
 
	# various conversion programs
 
	doins contrib/{anope_convert.c,ircs_crypto_trans.c} || die
 

	
 
	if use perl; then
 
		perlinfo
 
		insinto "${VENDOR_LIB}"
 
		doins -r contrib/Atheme{,.pm} || die
 
	fi
 
}
 
\ No newline at end of file
net-irc/atheme/files/atheme.initd
Show inline comments
 
new file 100644
 
#!/sbin/runscript
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: $
 

	
 
depend() {
 
	need net
 
}
 

	
 
start() {
 
	ebegin "Starting ${SVSNAME}"
 
	start-stop-daemon --start --quiet --chuid atheme --exec /usr/bin/atheme-services
 
	eend $? "Failed to start ${SVSNAME}"
 
}
 

	
 
stop() {
 
	ebegin "Stopping ${SVSNAME}"
 
	start-stop-daemon --stop --quiet --pidfile /var/run/atheme/atheme.pid
 
	eend $? "Failed to stop ${SVSNAME}"
 
}
0 comments (0 inline, 0 general)