commit:     2b3b816f48221612ef3ca0def29ce808d140e443
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 18 19:23:49 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jul 20 19:03:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b3b816f

net-p2p/bitflu: migrate to GLEP 81

Bug: https://bugs.gentoo.org/781443
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-p2p/bitflu/bitflu-1.52-r1.ebuild | 63 ++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/net-p2p/bitflu/bitflu-1.52-r1.ebuild 
b/net-p2p/bitflu/bitflu-1.52-r1.ebuild
new file mode 100644
index 00000000000..f6d0d7367da
--- /dev/null
+++ b/net-p2p/bitflu/bitflu-1.52-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="BitTorrent client, written in Perl and is designed to run as a 
daemon"
+HOMEPAGE="http://bitflu.workaround.ch";
+SRC_URI="http://bitflu.workaround.ch/bitflu/${P}.tgz";
+
+LICENSE="Artistic-2 GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DEPEND="
+       acct-group/bitflu
+       acct-user/bitflu
+       dev-perl/Danga-Socket
+       dev-perl/Sys-Syscall
+"
+RDEPEND="${DEPEND}"
+
+src_compile() { :; }
+
+src_install() {
+       local PLUGINS="/usr/lib/bitflu"
+       local CONFDIR="/etc/bitflu"
+       local LOGDIR="/var/log/bitflu"
+
+       # executable daemon
+       dosbin bitflu.pl
+
+       # plugins
+       insinto "${PLUGINS}"
+       doins -r plugins
+
+       # config file
+       insinto "${CONFDIR}"
+       fowners bitflu:bitflu "${CONFDIR}"
+       fperms 775 "${CONFDIR}"
+       doins "${FILESDIR}"/bitflu.config
+       fowners bitflu:bitflu "${CONFDIR}"/bitflu.config
+       fperms 664 "${CONFDIR}"/bitflu.config
+
+       # log file
+       keepdir "${LOGDIR}"
+       fowners bitflu:bitflu "${LOGDIR}"
+       fperms 775 "${LOGDIR}"
+
+       # docs
+       dodoc bitflu.config.example ChangeLog.txt CONTRIBUTING README_IPv6.txt \
+               README.txt Documentation/bitflu-internals.txt
+
+       newinitd "${FILESDIR}"/bitflu.initd bitflu
+}
+
+pkg_postinst() {
+       ewarn "Note: At startup, or at the user's request, ${PN} (re)reads its"
+       ewarn "configuration file and overwrites it with its own sanitized"
+       ewarn "version.  A backup is created in the configuration directory,"
+       ewarn "/etc/${PN}, but that file will subseqently be overwritten if"
+       ewarn "a further backup is made.  You may want to keep your own backup."
+       ewarn "A prestine example with comments may be found in 
/usr/share/doc/${P}."
+}

Reply via email to