/[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.8 - (hide annotations) (download)
Thu May 24 19:47:06 2007 UTC (7 years, 3 months ago) by opfer
Branch: MAIN
Changes since 1.7: +2 -2 lines
amd64 stable, bug 174858
(Portage version: 2.1.2.7)

1 armin76 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 opfer 1.8 # $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/gift-0.11.8.1-r1.ebuild,v 1.7 2007/05/23 20:44:59 gustavoz Exp $
4 armin76 1.1
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 opfer 1.8 KEYWORDS="alpha amd64 ia64 ~ppc sparc x86 ~x86-fbsd"
15 armin76 1.1
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 armin76 1.5 newconfd ${FILESDIR}/gift.confd gift
44     newinitd ${FILESDIR}/gift.initd gift
45 armin76 1.1
46     touch ${D}/usr/share/giFT/giftd.log
47     chown ${GIFTUSER}:root ${D}/usr/share/giFT/giftd.log
48     }
49    
50     pkg_postinst() {
51 armin76 1.3 elog "Configure gift in /usr/share/giFT/ or run gift-setup"
52     elog "as normal user and make:"
53     elog 'cp -R $HOME/.giFT/* /usr/share/giFT/'
54     elog "chown -R p2p:root /usr/share/giFT/*"
55     elog "(be carefull while specyfing directories in gift-setup;"
56     elog "keep in mind that giFT will run as process of user "
57     elog 'specified in /etc/conf.d/gift with his $HOME directory)'
58 armin76 1.1 echo
59 armin76 1.3 elog "Also, if you will be using the giFT init script, you"
60     elog "will need to create /usr/share/giFT/giftd.conf"
61     elog "This method is only recommended for users with a"
62     elog "central giFT server."
63 armin76 1.1 echo
64     }

  ViewVC Help
Powered by ViewVC 1.1.20