diff options
author | Jeff Horelick <jdhore@gentoo.org> | 2012-02-21 00:11:34 +0000 |
---|---|---|
committer | Jeff Horelick <jdhore@gentoo.org> | 2012-02-21 00:11:34 +0000 |
commit | 4a7a4eb47c0ffe90d6eb0ec75de750535d1953d4 (patch) | |
tree | ae5280c3eceab42718a2485860b2d42a0f88e3f0 /net-irc | |
parent | We only use libappindicator if building against gtk3. (diff) | |
download | historical-4a7a4eb47c0ffe90d6eb0ec75de750535d1953d4.tar.gz historical-4a7a4eb47c0ffe90d6eb0ec75de750535d1953d4.tar.bz2 historical-4a7a4eb47c0ffe90d6eb0ec75de750535d1953d4.zip |
Added live ebuild. So many Atheme users run from git (including myself), this way they can have a convenient way to do so.
Package-Manager: portage-2.2.0_alpha88/cvs/Linux i686
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/atheme-services/ChangeLog | 8 | ||||
-rw-r--r-- | net-irc/atheme-services/Manifest | 3 | ||||
-rw-r--r-- | net-irc/atheme-services/atheme-services-9999.ebuild | 116 |
3 files changed, 125 insertions, 2 deletions
diff --git a/net-irc/atheme-services/ChangeLog b/net-irc/atheme-services/ChangeLog index d56733a48a93..1453d941dc10 100644 --- a/net-irc/atheme-services/ChangeLog +++ b/net-irc/atheme-services/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-irc/atheme-services # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.32 2012/02/08 21:46:13 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.33 2012/02/21 00:11:34 jdhore Exp $ + +*atheme-services-9999 (21 Feb 2012) + + 21 Feb 2012; Jeff Horelick <jdhore@gentoo.org> +atheme-services-9999.ebuild: + Added live ebuild. So many Atheme users run from git (including myself), this + way they can have a convenient way to do so. 08 Feb 2012; Jeff Horelick <jdhore@gentoo.org> atheme-services-6.0.9-r1.ebuild: diff --git a/net-irc/atheme-services/Manifest b/net-irc/atheme-services/Manifest index 1bfb986e908b..e77571f443c9 100644 --- a/net-irc/atheme-services/Manifest +++ b/net-irc/atheme-services/Manifest @@ -11,5 +11,6 @@ EBUILD atheme-services-6.0.9-r1.ebuild 2851 RMD160 2d28a3d10d9f38cb90697086c457f EBUILD atheme-services-6.0.9.ebuild 2726 RMD160 0df5ce4dcaa8bf3af0b60934d4b9abb583fdff67 SHA1 ff61636a6ff27c98352550dcb7d9e7c850807cb4 SHA256 926290f55f0aaf149b54dfe8dd5f93411b77ecc9eafa6cb7e02ae68644bdaddf EBUILD atheme-services-7.0.0_alpha11.ebuild 3008 RMD160 0898d6820b4d87fa7a669e6926d29e777f58bbbb SHA1 0a747abefb2204d416df142bc265a5b6ed0c9fd8 SHA256 d514be782cf4a40758ee1535bc0420269f0fe5535d719338280138512b19fa72 EBUILD atheme-services-7.0.0_alpha9.ebuild 3143 RMD160 f7e3516110a1d2e08c03f5ee8be3900e6ebcf331 SHA1 98d527cc26f4badd1fea76562e9126cee87aca1f SHA256 a88da1225d947070a6505e309b61bf2a69ede397f0b347c69450ceb7b2115297 -MISC ChangeLog 6799 RMD160 faafe4f49f16b23f95bc7e089f9a60d0f2c6a24f SHA1 e9570767578613a05c8ec662ce056d48a8d660f5 SHA256 70d7c4fefa82193424957e054a0949aae81ee30d27f31b46d0269e3e65afae5d +EBUILD atheme-services-9999.ebuild 3034 RMD160 d03cd2e7c63d0a87af9866542de20c4d08eaf469 SHA1 1e3caa9b0a6a900abd4bb80f85fb38966a854a82 SHA256 08d88d137d85ee7c01814bbf638894705908fb4a69a13e68c25e158a0edbb203 +MISC ChangeLog 7043 RMD160 a944715ff03b4ad6d10ec344d41bd6230203350d SHA1 25f750958e4c7f08f90f686925de1acd15ef012f SHA256 33bea12c56e2890c91e7bd64a9b44fab1f0e74495978d82f6be12ea0a6b2abd1 MISC metadata.xml 771 RMD160 6681a3e8f489ae5a5b0ae882a11d423b932f0081 SHA1 07abec75deb6154fc71a3ff5cf9057d3ce713adb SHA256 a837c036193dc300db84f5539f463723abaa14e1fb15ca6314b7e850fdfac460 diff --git a/net-irc/atheme-services/atheme-services-9999.ebuild b/net-irc/atheme-services/atheme-services-9999.ebuild new file mode 100644 index 000000000000..440663628da6 --- /dev/null +++ b/net-irc/atheme-services/atheme-services-9999.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/atheme-services-9999.ebuild,v 1.1 2012/02/21 00:11:34 jdhore Exp $ + +EAPI=4 + +inherit git-2 user flag-o-matic perl-module + +MY_P=${P/_/-} + +DESCRIPTION="A portable and secure set of open-source and modular IRC services" +HOMEPAGE="http://atheme.net/" +EGIT_REPO_URI="git://git.atheme.org/atheme.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="cracklib largenet ldap nls +pcre perl profile ssl" + +RDEPEND="=dev-libs/libmowgli-9999:2 + cracklib? ( sys-libs/cracklib ) + ldap? ( net-nds/openldap ) + nls? ( sys-devel/gettext ) + perl? ( dev-lang/perl ) + pcre? ( dev-libs/libpcre ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +pkg_setup() { + # the dependency calculation puts all of the .c files together and + # overwhelms cc1 with this flag :-( + filter-flags -combine + + if use profile; then + # bug #371119 + ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag." + ewarn "Disabling PIE. Please ignore any warning messages about -nopie being invalid." + append-flags -nopie + fi + + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/atheme ${PN} +} + +# To stop perl-module overriding this function +src_unpack() { + git-2_src_unpack +} + +src_prepare() { + # fix docdir + sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die + + # basic logging config directive fix + sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die + + # QA against bundled libs. + # But comment it out in the live ebuild + # because it only contains a git submodule + # and removing it MAY break everything. + #rm -rf libmowgli-2 || die + + # Get useful information into build.log + sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die +} + +src_configure() { + econf \ + atheme_cv_c_gcc_w_error_implicit_function_declaration=no \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --localstatedir="${EPREFIX}"/var \ + --enable-fhs-paths \ + --disable-warnings \ + --enable-contrib \ + $(use_enable largenet large-net) \ + $(use_with cracklib) \ + $(use_with ldap) \ + $(use_with nls) \ + $(use_enable profile) \ + $(use_with perl) \ + $(use_with pcre) \ + $(use_enable ssl) +} + +src_install() { + emake DESTDIR="${D}" install + + insinto /etc/${PN} + for conf in dist/*.example; do + # The .cron file isn't meant to live in /etc/${PN}, so only + # install a .example version. + [[ ${conf} == *cron* ]] && continue + + newins ${conf} $(basename ${conf} .example) + done + + fowners -R 0:${PN} /etc/${PN} + keepdir /var/{lib,log}/atheme + fowners ${PN}:${PN} /var/{lib,log,run}/atheme + fperms -R go-w,o-rx /etc/${PN} + fperms 750 /etc/${PN} /var/{lib,log,run}/atheme + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + + # contributed scripts and such: + insinto /usr/share/doc/${PF}/contrib + doins contrib/*.{c,pl,php,py,rb} + + if use perl; then + perlinfo + insinto "${VENDOR_LIB#${EPREFIX}}" + doins -r contrib/Atheme{,.pm} + fi +} |