diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-irc/ultimate/ultimate-3.0.2-r2.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-irc/ultimate/ultimate-3.0.2-r2.ebuild')
-rw-r--r-- | net-irc/ultimate/ultimate-3.0.2-r2.ebuild | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/net-irc/ultimate/ultimate-3.0.2-r2.ebuild b/net-irc/ultimate/ultimate-3.0.2-r2.ebuild new file mode 100644 index 00000000000..a4af21bff23 --- /dev/null +++ b/net-irc/ultimate/ultimate-3.0.2-r2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +AT_M4DIR=autoconf +inherit autotools eutils fixheadtails prefix ssl-cert user + +MY_P=Ultimate${PV/_/.} + +DESCRIPTION="An IRCd server based on DALnet's DreamForge IRCd" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" +HOMEPAGE="http://www.shadow-realm.org/" + +KEYWORDS="~amd64 ~ppc ~sparc x86 ~amd64-linux" +SLOT="0" +LICENSE="GPL-2" +IUSE="ssl" + +RDEPEND="sys-libs/zlib + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + rm -rf zlib || die + + cp "${FILESDIR}"/${P}-config.patch.in "${T}"/${P}-config.patch || die + eprefixify "${T}"/${P}-config.patch + epatch "${T}"/${P}-config.patch + + epatch "${FILESDIR}"/${P}-system-zlib-r1.patch + epatch "${FILESDIR}"/${P}-make-failfast.patch + epatch "${FILESDIR}"/${P}-open-mode.patch + epatch "${FILESDIR}"/${P}-entropy-path.patch + + mv autoconf/configure.in ./ || die + ht_fix_file configure.in + eautoreconf +} + +src_configure() { + econf \ + --sysconfdir="${EPREFIX}"/etc/ultimateircd \ + --localstatedir="${EPREFIX}"/var/lib/ultimateircd \ + --disable-ccdv \ + $(use_enable ssl openssl) +} + +src_compile() { + # Must rerun the depend stage because we removed the zlib/ dir to + # which the stale dependencies still refer. + emake depend + emake +} + +src_install() { + dodir /etc/ultimateircd + keepdir /var/{lib,log,run}/ultimateircd + + einstall \ + sysconfdir="${ED}"/etc/ultimateircd \ + localstatedir="${ED}"/var/lib/ultimateircd \ + networksubdir='$(sysconfdir)/networks' + + rm -rf "${ED}"/usr/{{ircd,kill,rehash},bin/{ircdchk,ssl-{cert,search}.sh}} "${ED}"/var/lib/ultimateircd/logs || die + dosym /var/log/ultimateircd /var/lib/ultimateircd/logs + + mv "${ED}"/usr/bin/ircd "${ED}"/usr/bin/ultimateircd || die + mv "${ED}"/usr/bin/mkpasswd "${ED}"/usr/bin/ultimateircd-mkpasswd || die + + newinitd "${FILESDIR}"/ultimateircd.rc.2 ultimateircd + newconfd "${FILESDIR}"/ultimateircd.conf.2 ultimateircd +} + +pkg_preinst() { + if ! use prefix; then + enewuser ultimateircd + fowners ultimateircd /var/{lib,log,run}/ultimateircd + fowners -R ultimateircd /etc/ultimateircd + fi + + fperms -R go-rwx /etc/ultimateircd + fperms 0700 /var/{lib,log,run}/ultimateircd +} + +pkg_postinst() { + if use ssl && [[ ! -e ${EROOT}etc/ultimateircd/ircd.crt ]]; then + install_cert /etc/ultimateircd/ircd + use prefix || chown ultimateircd "${EROOT}"etc/ultimateircd/ircd.{key,crt,pem} + fi +} |