Gentoo Archives: gentoo-commits

From: "Christoph Mende (angelos)" <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/btg/files: btgd-confd btgd-init digest-btg-0.9.6-r1
Date: Wed, 28 Nov 2007 13:34:21
Message-Id: E1IxN3Q-0007gt-3U@stork.gentoo.org
1 angelos 07/11/28 13:34:16
2
3 Modified: btgd-confd btgd-init
4 Added: digest-btg-0.9.6-r1
5 Log:
6 Added make_desktop_entry for the gtk+ client and fixed the init script to work by default, thanks to Fabio Bonfante (Bug 200581)
7 (Portage version: 2.1.4_rc4)
8
9 Revision Changes Path
10 1.2 net-p2p/btg/files/btgd-confd
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-confd?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-confd?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-confd?r1=1.1&r2=1.2
15
16 Index: btgd-confd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-confd,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- btgd-confd 14 Oct 2007 23:37:14 -0000 1.1
23 +++ btgd-confd 28 Nov 2007 13:34:15 -0000 1.2
24 @@ -1,6 +1,9 @@
25 # Copyright 1999-2007 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-confd,v 1.1 2007/10/14 23:37:14 angelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-confd,v 1.2 2007/11/28 13:34:15 angelos Exp $
29
30 # User that runs btgd
31 BTG_USER="p2p"
32 +
33 +# Full path to daemon.ini (default /home/p2p/.btg/daemon.ini)
34 +BTG_CONFIG_FILE="/home/p2p/.btg/daemon.ini"
35
36
37
38 1.2 net-p2p/btg/files/btgd-init
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-init?rev=1.2&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-init?rev=1.2&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-init?r1=1.1&r2=1.2
43
44 Index: btgd-init
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-init,v
47 retrieving revision 1.1
48 retrieving revision 1.2
49 diff -u -r1.1 -r1.2
50 --- btgd-init 14 Oct 2007 23:37:14 -0000 1.1
51 +++ btgd-init 28 Nov 2007 13:34:15 -0000 1.2
52 @@ -1,9 +1,7 @@
53 #!/sbin/runscript
54 # Copyright 1999-2007 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-init,v 1.1 2007/10/14 23:37:14 angelos Exp $
57 -
58 -BTG_HOME="$(getent passwd ${BTG_USER} | cut -d : -f 6)"
59 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-init,v 1.2 2007/11/28 13:34:15 angelos Exp $
60
61 depend() {
62 need net
63 @@ -13,12 +11,15 @@
64 if [ -z ${BTG_USER} ]; then
65 eerror "BTG_USER unset, please edit /etc/conf.d/btgd first"
66 return 1
67 + elif [ -z ${BTG_CONFIG_FILE} ]; then
68 + eerror "BTG_CONFIG_FILE unset, please edit /etc/conf.d/btgd first"
69 + return 1
70 elif [ ! -d "${BTG_HOME}" ]; then
71 eerror "The home for ${BTG_USER} does not exist"
72 eerror "Please check /etc/conf.d/btgd"
73 return 1
74 - elif [ ! -f "${BTG_HOME}/.btg/daemon.ini" ]; then
75 - eerror "Unable to find daemon.ini in ${BTG_HOME}/.btg"
76 + elif [ ! -f "${BTG_CONFIG_FILE}" ]; then
77 + eerror "Unable to find ${BTG_CONFIG_FILE}"
78 eerror "Please run btg-config first"
79 return 1
80 fi
81 @@ -31,7 +32,7 @@
82 start-stop-daemon --start \
83 -c ${BTG_USER} --quiet -b --make-pidfile \
84 --pidfile /var/run/btgdaemon.pid \
85 - -x /usr/bin/btgdaemon -- -n
86 + -x /usr/bin/btgdaemon -- -n -c ${BTG_CONFIG_FILE}
87 eend $?
88 }
89
90
91
92
93 1.1 net-p2p/btg/files/digest-btg-0.9.6-r1
94
95 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/digest-btg-0.9.6-r1?rev=1.1&view=markup
96 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/digest-btg-0.9.6-r1?rev=1.1&content-type=text/plain
97
98 Index: digest-btg-0.9.6-r1
99 ===================================================================
100 MD5 364111ab4a98b5a97bd0beca7cf41ab3 btg-0.9.6-p1.tar.gz 1073862
101 RMD160 4b3d9f96481eafd4115cdef3047f1d4f80ca7bb8 btg-0.9.6-p1.tar.gz 1073862
102 SHA256 862b670aff709762be2c8ec6b79d2d7d40268061660e5d3a4fa3db76a02af60c btg-0.9.6-p1.tar.gz 1073862
103
104
105
106 --
107 gentoo-commits@g.o mailing list