summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gentoo.org>2010-04-20 22:45:58 +0200
committerStanislav Ochotnicky <sochotnicky@gentoo.org>2010-04-20 22:45:58 +0200
commit0a7b79fa006b62dc745e3c3c33386dbe049ada11 (patch)
tree1859f92f5ead72d463ae2024dfd8a67ed9979cf2 /net-p2p/gift/gift-0.11.8.1-r2.ebuild
parentAdded net-p2p/gift (diff)
downloadsochotnicky-0a7b79fa006b62dc745e3c3c33386dbe049ada11.tar.gz
sochotnicky-0a7b79fa006b62dc745e3c3c33386dbe049ada11.tar.bz2
sochotnicky-0a7b79fa006b62dc745e3c3c33386dbe049ada11.zip
Revbump to enable alternative imagemagick dep
Diffstat (limited to 'net-p2p/gift/gift-0.11.8.1-r2.ebuild')
-rw-r--r--net-p2p/gift/gift-0.11.8.1-r2.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/net-p2p/gift/gift-0.11.8.1-r2.ebuild b/net-p2p/gift/gift-0.11.8.1-r2.ebuild
new file mode 100644
index 0000000..4b6969b
--- /dev/null
+++ b/net-p2p/gift/gift-0.11.8.1-r2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/gift-0.11.8.1-r1.ebuild,v 1.8 2007/05/24 19:47:06 opfer Exp $
+
+EAPI="2"
+inherit eutils libtool
+
+DESCRIPTION="A OpenFT, Gnutella and FastTrack p2p network daemon"
+HOMEPAGE="http://gift.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+IUSE="ares fasttrack gnutella imagemagick openft vorbis"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
+
+
+DEPEND=">=sys-libs/zlib-1.1.4
+ sys-apps/file
+ imagemagick? ( || ( >=media-gfx/imagemagick-5.5.7.15
+ media-gfx/graphicsmagick[imagemagick] ) )
+ vorbis? ( >=media-libs/libvorbis-1 )"
+PDEPEND="ares? ( net-p2p/gift-ares )
+ fasttrack? ( net-p2p/gift-fasttrack )
+ gnutella? ( net-p2p/gift-gnutella )
+ openft? ( net-p2p/gift-openft )"
+
+GIFTUSER="p2p"
+
+pkg_preinst() {
+ # Add a new user
+ enewuser ${GIFTUSER} -1 /bin/bash /home/p2p users
+}
+
+src_compile() {
+ econf --enable-libmagic \
+ `use_enable imagemagick` \
+ `use_enable vorbis libvorbis` || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "Install failed"
+
+ # init scripts for users who want a central server
+ newconfd ${FILESDIR}/gift.confd gift
+ newinitd ${FILESDIR}/gift.initd gift
+
+ touch ${D}/usr/share/giFT/giftd.log
+ chown ${GIFTUSER}:root ${D}/usr/share/giFT/giftd.log
+}
+
+pkg_postinst() {
+ elog "Configure gift in /usr/share/giFT/ or run gift-setup"
+ elog "as normal user and make:"
+ elog 'cp -R $HOME/.giFT/* /usr/share/giFT/'
+ elog "chown -R p2p:root /usr/share/giFT/*"
+ elog "(be carefull while specyfing directories in gift-setup;"
+ elog "keep in mind that giFT will run as process of user "
+ elog 'specified in /etc/conf.d/gift with his $HOME directory)'
+ echo
+ elog "Also, if you will be using the giFT init script, you"
+ elog "will need to create /usr/share/giFT/giftd.conf"
+ elog "This method is only recommended for users with a"
+ elog "central giFT server."
+ echo
+}