Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/bitflu: ChangeLog bitflu-1.37.ebuild metadata.xml
Date: Thu, 30 Jun 2011 16:02:54
Message-Id: 20110630160244.9BABD20057@flycatcher.gentoo.org
1 blueness 11/06/30 16:02:44
2
3 Added: ChangeLog bitflu-1.37.ebuild metadata.xml
4 Log:
5 Initial commit
6
7 (Portage version: 2.1.9.42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-p2p/bitflu/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/ChangeLog?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/ChangeLog?rev=1.1&content-type=text/plain
14
15 Index: ChangeLog
16 ===================================================================
17
18
19 30 Jun 2011; Anthony G. Basile <blueness@g.o> bitflu-1.37.ebuild,
20 +files/bitflu-add-pidfile.patch, files/bitflu.config, files/bitflu.initd:
21 Added patch to produce a pid file
22
23 *bitflu-1.37 (30 Jun 2011)
24
25 30 Jun 2011; Anthony G. Basile <blueness@g.o> +bitflu-1.37.ebuild,
26 +files/bitflu.config, +files/bitflu.initd, +metadata.xml:
27 Initial commit
28
29
30
31
32 1.1 net-p2p/bitflu/bitflu-1.37.ebuild
33
34 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/bitflu-1.37.ebuild?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/bitflu-1.37.ebuild?rev=1.1&content-type=text/plain
36
37 Index: bitflu-1.37.ebuild
38 ===================================================================
39 # Copyright 1999-2011 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41 # $Header: /var/cvsroot/gentoo-x86/net-p2p/bitflu/bitflu-1.37.ebuild,v 1.1 2011/06/30 16:02:44 blueness Exp $
42
43 EAPI=3
44
45 inherit eutils
46
47 DESCRIPTION="Bitflu is a BitTorrent client, written in Perl and is designed to run as a daemon"
48 HOMEPAGE="http://bitflu.workaround.ch"
49 SRC_URI="http://bitflu.workaround.ch/bitflu/${P}.tgz"
50
51 LICENSE="Artistic-2"
52 SLOT="0"
53 KEYWORDS="~amd64 ~x86"
54 IUSE=""
55
56 DEPEND="dev-perl/Danga-Socket"
57 RDEPEND="${DEPEND}"
58
59 pkg_setup() {
60 enewgroup bitflu
61 enewuser bitflu -1 -1 /var/lib/bitflu bitflu
62 }
63
64 src_prepare() {
65 epatch "${FILESDIR}/${PN}-add-pidfile.patch"
66 }
67
68 src_compile() {
69 :
70 }
71
72 PLUGINS="/usr/lib/bitflu"
73 HOMEDIR="/var/lib/bitflu"
74 CONFDIR="/etc/bitflu"
75 LOGDIR="/var/log/bitflu"
76
77 src_install() {
78 # executable daemon
79 exeinto /usr/sbin
80 doexe bitflu.pl
81
82 # plugins
83 dodir "${PLUGINS}"
84 insinto "${PLUGINS}"
85 doins -r plugins
86
87 # working dir
88 dodir "${HOMEDIR}"
89 fowners bitflu:bitflu "${HOMEDIR}"
90 fperms 775 "${HOMEDIR}"
91
92 # config file
93 dodir "${CONFDIR}"
94 fowners bitflu:bitflu "${CONFDIR}"
95 fperms 775 "${CONFDIR}"
96 insinto "${CONFDIR}"
97 doins "${FILESDIR}"/bitflu.config
98 fowners bitflu:bitflu "${CONFDIR}"/bitflu.config
99 fperms 664 "${CONFDIR}"/bitflu.config
100
101 # log file
102 dodir "${LOGDIR}"
103 fowners bitflu:bitflu "${LOGDIR}"
104 fperms 775 "${LOGDIR}"
105
106 # docs
107 dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
108 README.txt Documentation/bitflu-internals.txt
109
110 newinitd "${FILESDIR}"/bitflu.initd bitflu
111 }
112
113 pkg_postinst() {
114 ewarn "Note: At startup, or at the user's request, ${PN} (re)reads its"
115 ewarn "configuration file and overwrites it with its own sanitized"
116 ewarn "version. A backup is created in the configuration directory,"
117 ewarn "/etc/${PN}, but that file will subseqently be overwritten if"
118 ewarn "a further backup is made. You may want to keep your own backup."
119 ewarn "A prestine example with comments may be found in /usr/share/doc/${P}."
120 }
121
122
123
124 1.1 net-p2p/bitflu/metadata.xml
125
126 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/metadata.xml?rev=1.1&view=markup
127 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitflu/metadata.xml?rev=1.1&content-type=text/plain
128
129 Index: metadata.xml
130 ===================================================================
131 <?xml version="1.0" encoding="UTF-8"?>
132 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
133 <pkgmetadata>
134 <herd>no-herd</herd>
135 <maintainer>
136 <email>blueness@g.o</email>
137 <name>Anthony G. Basile</name>
138 </maintainer>
139 <longdescription lang="en">
140 Bitflu is a free BitTorrent client. The client was written in Perl and
141 is designed to run as a daemon (7x24h , like mlnet) on Linux, *BSD and
142 maybe even OSX.
143 </longdescription>
144 </pkgmetadata>