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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 19 19:44:21 2012 UTC (2 years, 6 months ago) by ago
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for amd64, wrt bug #422151

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitflu/bitflu-1.43.ebuild,v 1.1 2012/05/02 10:20:39 blueness Exp $
4
5 EAPI=4
6
7 inherit eutils
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"
14 SLOT="0"
15 KEYWORDS="amd64 ~x86"
16 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