/[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.4 - (show annotations) (download)
Sat Mar 21 21:54:33 2015 UTC (2 months, 1 week ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +8 -12 lines
use dosbin instead of exeinto /usr/sbin/ && doexe; Bump EAPI

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 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.50.ebuild,v 1.3 2012/09/18 13:31:05 johu Exp $
4
5 EAPI=4
6
7 inherit user
8
9 DESCRIPTION="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 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 DEPEND="
19 dev-perl/Danga-Socket
20 dev-perl/Sys-Syscall"
21 RDEPEND="${DEPEND}"
22
23 pkg_setup() {
24 enewgroup bitflu
25 enewuser bitflu -1 -1 /var/lib/bitflu bitflu
26 }
27
28 src_compile() { :; }
29
30 PLUGINS="/usr/lib/bitflu"
31 HOMEDIR="/var/lib/bitflu"
32 CONFDIR="/etc/bitflu"
33 LOGDIR="/var/log/bitflu"
34
35 src_install() {
36 # executable daemon
37 dosbin bitflu.pl
38
39 # plugins
40 insinto "${PLUGINS}"
41 doins -r plugins
42
43 # working dir
44 dodir "${HOMEDIR}"
45 fowners bitflu:bitflu "${HOMEDIR}"
46 fperms 775 "${HOMEDIR}"
47
48 # config file
49 insinto "${CONFDIR}"
50 fowners bitflu:bitflu "${CONFDIR}"
51 fperms 775 "${CONFDIR}"
52 doins "${FILESDIR}"/bitflu.config
53 fowners bitflu:bitflu "${CONFDIR}"/bitflu.config
54 fperms 664 "${CONFDIR}"/bitflu.config
55
56 # log file
57 dodir "${LOGDIR}"
58 fowners bitflu:bitflu "${LOGDIR}"
59 fperms 775 "${LOGDIR}"
60
61 # docs
62 dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
63 README.txt Documentation/bitflu-internals.txt
64
65 newinitd "${FILESDIR}"/bitflu.initd bitflu
66 }
67
68 pkg_postinst() {
69 ewarn "Note: At startup, or at the user's request, ${PN} (re)reads its"
70 ewarn "configuration file and overwrites it with its own sanitized"
71 ewarn "version. A backup is created in the configuration directory,"
72 ewarn "/etc/${PN}, but that file will subseqently be overwritten if"
73 ewarn "a further backup is made. You may want to keep your own backup."
74 ewarn "A prestine example with comments may be found in /usr/share/doc/${P}."
75 }

  ViewVC Help
Powered by ViewVC 1.1.20