/[gentoo-x86]/net-p2p/gift/gift-0.11.8.1-r1.ebuild
Gentoo

Contents of /net-p2p/gift/gift-0.11.8.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 20 18:01:20 2007 UTC (7 years, 4 months ago) by gustavoz
Branch: MAIN
Changes since 1.1: +2 -2 lines
Keyworded ~sparc wrt #174858
(Portage version: 2.1.2.2)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/gift-0.11.8.1-r1.ebuild,v 1.1 2007/04/20 14:20:04 armin76 Exp $
4
5 inherit eutils libtool
6
7 DESCRIPTION="A OpenFT, Gnutella and FastTrack p2p network daemon"
8 HOMEPAGE="http://gift.sourceforge.net"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 IUSE="ares fasttrack gnutella imagemagick openft vorbis"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ia64 ~sparc x86 ~x86-fbsd"
15
16 DEPEND=">=sys-libs/zlib-1.1.4
17 sys-apps/file
18 imagemagick? ( >=media-gfx/imagemagick-5.5.7.15 )
19 vorbis? ( >=media-libs/libvorbis-1 )"
20 PDEPEND="ares? ( net-p2p/gift-ares )
21 fasttrack? ( net-p2p/gift-fasttrack )
22 gnutella? ( net-p2p/gift-gnutella )
23 openft? ( net-p2p/gift-openft )"
24
25 GIFTUSER="p2p"
26
27 pkg_preinst() {
28 # Add a new user
29 enewuser ${GIFTUSER} -1 /bin/bash /home/p2p users
30 }
31
32 src_compile() {
33 econf --enable-libmagic \
34 `use_enable imagemagick` \
35 `use_enable vorbis libvorbis` || die
36 emake || die
37 }
38
39 src_install() {
40 make DESTDIR=${D} install || die "Install failed"
41
42 # init scripts for users who want a central server
43 insinto /etc/conf.d; newins ${FILESDIR}/gift.confd gift
44 exeinto /etc/init.d; newexe ${FILESDIR}/gift.initd gift
45
46 touch ${D}/usr/share/giFT/giftd.log
47 chown ${GIFTUSER}:root ${D}/usr/share/giFT/giftd.log
48 }
49
50 pkg_postinst() {
51 einfo "Configure gift in /usr/share/giFT/ or run gift-setup"
52 einfo "as normal user and make:"
53 einfo 'cp -R $HOME/.giFT/* /usr/share/giFT/'
54 einfo "chown -R p2p:root /usr/share/giFT/*"
55 einfo "(be carefull while specyfing directories in gift-setup;"
56 einfo "keep in mind that giFT will run as process of user "
57 einfo 'specified in /etc/conf.d/gift with his $HOME directory)'
58 echo
59 einfo "Also, if you will be using the giFT init script, you"
60 einfo "will need to create /usr/share/giFT/giftd.conf"
61 einfo "This method is only recommended for users with a"
62 einfo "central giFT server."
63 echo
64 einfo "This package no longer contains any protocol plugins,"
65 einfo "please try gift-fasttrack, gift-openft, gift-gnutella"
66 einfo "for protocol support."
67 }

  ViewVC Help
Powered by ViewVC 1.1.20