/[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.9 - (show annotations) (download)
Wed Jan 8 06:28:17 2014 UTC (8 months, 1 week ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 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.8 2007/05/24 19:47:06 opfer Exp $
4
5 inherit eutils libtool user
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 ~ppc 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 newconfd ${FILESDIR}/gift.confd gift
44 newinitd ${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 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 echo
59 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 echo
64 }

  ViewVC Help
Powered by ViewVC 1.1.20