Changeset - f204c84a7e3f
[Not reviewed]
default
0 0 7
Nathan Brink (binki) - 15 years ago 2010-02-15 21:35:53
ohnobinki@ohnopublishing.net
net-irc/atheme: Add atheme stable release 5.0.1 with various build-time patches (which are already upstreamed).
7 files changed with 157 insertions and 0 deletions:
0 comments (0 inline, 0 general)
net-irc/atheme/ChangeLog
Show inline comments
 
new file 100644
 
# 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-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
 
new file 100644
 
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
 
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
 
MISC metadata.xml 248 RMD160 529d56c0d04b30a5cec5675e3104bd26911a7666 SHA1 f4fabea23c086a1f70709f74e2f4eb083e2c78aa SHA256 f3c501f041eb7ea6edcd5adfe691133e8c9070f0d7cf7edb4774fce9d496b16e
net-irc/atheme/atheme-5.0.1.ebuild
Show inline comments
 
new file 100644
 
# 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
 

	
 
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"
 

	
 
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
 

	
 
	eaclocal -I m4
 
	eautoheader
 
	eautoconf
 
}
 

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

	
 
src_install() {
 
	emake DESTDIR="${D}" 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
 
}
 
\ No newline at end of file
net-irc/atheme/files/atheme-5.0.1-depend-parallel.patch
Show inline comments
 
new file 100644
 
diff -r 6d373ecb8815 Makefile.in
 
--- a/Makefile.in	Mon Feb 15 16:46:04 2010 -0600
 
+++ b/Makefile.in	Mon Feb 15 20:57:33 2010 -0500
 
@@ -35,11 +35,11 @@
 
 SUBDIRS=@LIBMOWGLI@ modules src po
 
 CLEANDIRS = ${SUBDIRS}
 
 
 
-.PHONY: dist
 
+.PHONY: dist depend
 
 
 
-all: depend build
 
+all: build
 
 
 
-build: include/hooktypes.h
 
+build: depend
 
 	-@if [ ! -f include/sysconf.h ] ; then \
 
 		echo "Hmm...doesn't look like you've run configure..."; \
 
 		echo "Doing so now."; \
net-irc/atheme/files/atheme-5.0.1-ldap-as-needed.patch
Show inline comments
 
new file 100644
 
diff -r 9c03559fc03c -r c3d4cd2b81d3 modules/auth/Makefile.in
 
--- a/modules/auth/Makefile.in	Sun Feb 14 00:24:45 2010 +0100
 
+++ b/modules/auth/Makefile.in	Sat Feb 13 21:30:00 2010 -0500
 
@@ -22,5 +22,5 @@
 
 
 
 include ../Makefile.common
 
 
 
-ldap.so: ldap.c
 
-	${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LDAP_CFLAGS} ${LDAP_LIBS} ${SRCDIR}/ldap.c -o ldap.so
 
+ldap.so: $(SRCDIR)/ldap.c
 
+	${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${SRCDIR}/ldap.c ${LDAP_CFLAGS} ${LDAP_LIBS}
net-irc/atheme/files/atheme-5.0.1-with-ldap.patch
Show inline comments
 
new file 100644
 
diff -r 75af206b48cc -r 7c91655f0352 configure.ac
 
--- a/configure.ac	Thu Feb 11 23:13:59 2010 -0500
 
+++ b/configure.ac	Thu Feb 11 23:35:12 2010 -0500
 
@@ -86,6 +86,13 @@
 
 
 
 AC_SUBST(POSIX_CRYPTC)
 
 
 
+AC_ARG_WITH([ldap],
 
+	[AS_HELP_STRING([--without-ldap],[Disable building ldap auth module.])],
 
+	[],
 
+	[with_ldap="auto"])
 
+
 
+AS_IF([test "x$with_ldap" != "xno"],
 
+[
 
 # Thank autoconf and openldap developers for making me do all this stuff.
 
 LDAP_CFLAGS=""
 
 LDAP_LIBS=""
 
@@ -108,6 +115,11 @@
 
 	CFLAGS="$saveCFLAGS"
 
 	LIBS="$saveLIBS"
 
 ])
 
+dnl with_ldap != no
 
+])
 
+
 
+AS_IF([test "x$with_ldap" = "xyes" && test "x$LDAP_AUTHC" = "x"],
 
+[AC_MSG_ERROR([LDAP support was explicitly requested but could not be found.])])
 
 
 
 AC_SUBST(LDAP_CFLAGS)
 
 AC_SUBST(LDAP_LIBS)
net-irc/atheme/metadata.xml
Show inline comments
 
new file 100644
 
<?xml version="1.0" encoding="utf-8"?>
 
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 
<pkgmetadata>
 
	<herd>net-irc</herd>
 
	<use>
 
		<flag name='largenet'>Enable support/tweaks for large networks</flag>
 
	</use>
 
</pkgmetadata>
0 comments (0 inline, 0 general)