diff options
author | Thomas Sachau <tommy@gentoo.org> | 2009-04-08 14:07:25 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2009-04-08 14:07:25 +0000 |
commit | d55643939d89209d689c062aad4912c466f0a1b6 (patch) | |
tree | f7220fa1d0ffdd8a8d3b1f85cb1e2077839b8aae /net-p2p | |
parent | Fixed plugins install location for multilib (diff) | |
download | gentoo-2-d55643939d89209d689c062aad4912c466f0a1b6.tar.gz gentoo-2-d55643939d89209d689c062aad4912c466f0a1b6.tar.bz2 gentoo-2-d55643939d89209d689c062aad4912c466f0a1b6.zip |
Version bump
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/fms/ChangeLog | 8 | ||||
-rw-r--r-- | net-p2p/fms/files/fms-use-system-libs.patch | 22 | ||||
-rw-r--r-- | net-p2p/fms/fms-0.3.35.ebuild | 74 |
3 files changed, 103 insertions, 1 deletions
diff --git a/net-p2p/fms/ChangeLog b/net-p2p/fms/ChangeLog index 151809061604..98f97876fa15 100644 --- a/net-p2p/fms/ChangeLog +++ b/net-p2p/fms/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-p2p/fms # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/fms/ChangeLog,v 1.7 2009/03/19 18:46:14 tommy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/fms/ChangeLog,v 1.8 2009/04/08 14:07:19 tommy Exp $ + +*fms-0.3.35 (08 Apr 2009) + + 08 Apr 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +files/fms-use-system-libs.patch, +fms-0.3.35.ebuild: + Version bump *fms-0.3.34 (19 Mar 2009) diff --git a/net-p2p/fms/files/fms-use-system-libs.patch b/net-p2p/fms/files/fms-use-system-libs.patch new file mode 100644 index 000000000000..3d963bd5c123 --- /dev/null +++ b/net-p2p/fms/files/fms-use-system-libs.patch @@ -0,0 +1,22 @@ +--- CMakeLists.txt 2009-04-04 16:20:16.000000000 +0200 ++++ CMakeLists.txt.new 2009-04-08 15:42:06.000000000 +0200 +@@ -294,10 +294,15 @@ + INCLUDE_DIRECTORIES(libs/libtommath)
+ ENDIF(TOMMATH_LIBRARY)
+
+- # Force use of bundled tomcrypt, as the system library may have been compiled without the features we need
+- ADD_SUBDIRECTORY(libs/libtomcrypt)
+- TARGET_LINK_LIBRARIES(fms tomcrypt)
+- INCLUDE_DIRECTORIES(libs/libtomcrypt/headers)
++ FIND_LIBRARY(TOMCRYPT_LIBRARY NAMES tomcrypt libtomcrypt)
++
++ IF(TOMCRYPT_LIBRARY)
++ TARGET_LINK_LIBRARIES(fms ${TOMCRYPT_LIBRARY})
++ ELSE(TOMCRYPT_LIBRARY)
++ ADD_SUBDIRECTORY(libs/libtomcrypt)
++ TARGET_LINK_LIBRARIES(fms tomcrypt)
++ INCLUDE_DIRECTORIES(libs/libtomcrypt/headers)
++ ENDIF(TOMCRYPT_LIBRARY)
+
+
+ ADD_DEFINITIONS(-DFROST_SUPPORT)
diff --git a/net-p2p/fms/fms-0.3.35.ebuild b/net-p2p/fms/fms-0.3.35.ebuild new file mode 100644 index 000000000000..039269584b0d --- /dev/null +++ b/net-p2p/fms/fms-0.3.35.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/fms/fms-0.3.35.ebuild,v 1.1 2009/04/08 14:07:19 tommy Exp $ + +EAPI="2" + +inherit eutils cmake-utils + +DESCRIPTION="A spam-resistant #ssage board application for Freenet" +HOMEPAGE="http://freenetproject.org/tools.html" +SRC_URI="mirror://gentoo/${PN}-src-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="frost" + +DEPEND="virtual/libiconv + frost? ( >=dev-libs/libtomcrypt-1.17-r3[libtommath] ) + >=dev-libs/poco-1.2.9 + || ( =dev-db/sqlite-3.6.6.2* >=dev-db/sqlite-3.6.11 )" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +pkg_setup() { + enewgroup freenet + enewuser freenet -1 -1 /var/freenet freenet +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-use-system-libs.patch + sed -i "s:LTC_PKCS:LTC_LTC_PKCS:g" src/freenet/frostidentity.cpp +} + +src_configure() { + local mycmakeargs="-DI_HAVE_READ_THE_README=ON \ + -DUSE_BUNDLED_SQLITE=OFF \ + -DDO_CHARSET_CONVERSION=ON \ + $(cmake-utils_use frost FROST_SUPPORT)" + use frost && append-flags -DLTM_DESC + cmake-utils_src_configure +} + +src_install() { + insinto /var/freenet/fms + dobin ${PN}_build/fms || die + doins {forum-,}template.htm || die "doinstall failed" + insinto /var/freenet/fms/fonts + doins fonts/*.bmp || die "doinstall of fonts failed" + insinto /var/freenet/fms/images + doins images/*png || die "doinstall of images failed" + fperms -R o-rwx /var/freenet/fms/ /usr/bin/fms + fowners -R freenet:freenet /var/freenet/fms/ /usr/bin/fms + doinitd "${FILESDIR}/fms" || die "installing init.d file failed" + dodoc readme.txt || die "installing doc failed" +} + +pkg_postinst() { + if ! has_version 'net-p2p/freenet' ; then + ewarn "FMS needs a freenet node to up-/download #ssages." + ewarn "Please make sure to have a node you can connect to" + ewarn "or install net-p2p/freenet to get FMS working." + fi + elog "By default, the FMS NNTP server will listen on port 1119," + elog "and the web configuration interface will be running at" + elog "http://localhost:8080. For more information, read" + elog "${ROOT}usr/share/doc/${PF}/readme.txt.bz2" + if use frost; then + elog " " + elog "You need to enable frost on the config page" + elog "and restart fms for frost support." + fi +} |