/[gentoo-x86]/net-p2p/bitflu/bitflu-1.50.ebuild
Gentoo

Contents of /net-p2p/bitflu/bitflu-1.50.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Sep 18 13:31:05 2012 UTC (2 years, 1 month ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #433345

(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 johu 1.3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitflu/bitflu-1.50.ebuild,v 1.2 2012/09/14 14:13:55 ago Exp $
4 blueness 1.1
5     EAPI=4
6    
7     inherit user
8    
9     DESCRIPTION="Bitflu is a BitTorrent client, written in Perl and is designed to run as a daemon"
10     HOMEPAGE="http://bitflu.workaround.ch"
11     SRC_URI="http://bitflu.workaround.ch/bitflu/${P}.tgz"
12    
13     LICENSE="Artistic-2 GPL-2"
14     SLOT="0"
15 johu 1.3 KEYWORDS="amd64 x86"
16 blueness 1.1 IUSE=""
17    
18     DEPEND="dev-perl/Danga-Socket
19     dev-perl/Sys-Syscall"
20     RDEPEND="${DEPEND}"
21    
22     pkg_setup() {
23     enewgroup bitflu
24     enewuser bitflu -1 -1 /var/lib/bitflu bitflu
25     }
26    
27     src_compile() {
28     :
29     }
30    
31     PLUGINS="/usr/lib/bitflu"
32     HOMEDIR="/var/lib/bitflu"
33     CONFDIR="/etc/bitflu"
34     LOGDIR="/var/log/bitflu"
35    
36     src_install() {
37     # executable daemon
38     exeinto /usr/sbin
39     doexe bitflu.pl
40    
41     # plugins
42     dodir "${PLUGINS}"
43     insinto "${PLUGINS}"
44     doins -r plugins
45    
46     # working dir
47     dodir "${HOMEDIR}"
48     fowners bitflu:bitflu "${HOMEDIR}"
49     fperms 775 "${HOMEDIR}"
50    
51     # config file
52     dodir "${CONFDIR}"
53     fowners bitflu:bitflu "${CONFDIR}"
54     fperms 775 "${CONFDIR}"
55     insinto "${CONFDIR}"
56     doins "${FILESDIR}"/bitflu.config
57     fowners bitflu:bitflu "${CONFDIR}"/bitflu.config
58     fperms 664 "${CONFDIR}"/bitflu.config
59    
60     # log file
61     dodir "${LOGDIR}"
62     fowners bitflu:bitflu "${LOGDIR}"
63     fperms 775 "${LOGDIR}"
64    
65     # docs
66     dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
67     README.txt Documentation/bitflu-internals.txt
68    
69     newinitd "${FILESDIR}"/bitflu.initd bitflu
70     }
71    
72     pkg_postinst() {
73     ewarn "Note: At startup, or at the user's request, ${PN} (re)reads its"
74     ewarn "configuration file and overwrites it with its own sanitized"
75     ewarn "version. A backup is created in the configuration directory,"
76     ewarn "/etc/${PN}, but that file will subseqently be overwritten if"
77     ewarn "a further backup is made. You may want to keep your own backup."
78     ewarn "A prestine example with comments may be found in /usr/share/doc/${P}."
79     }

  ViewVC Help
Powered by ViewVC 1.1.20