summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kryczek <mkay@gentoo.org>2005-09-16 23:32:20 +0000
committerMarcin Kryczek <mkay@gentoo.org>2005-09-16 23:32:20 +0000
commit73feb1667c6412b88684277e880d16857dd46bd7 (patch)
treedab61929cd1170a711af83b2cec1a0f0e8010c50 /net-p2p/gift
parentConverted to UTF-8, fixed encoding screwups (diff)
downloadhistorical-73feb1667c6412b88684277e880d16857dd46bd7.tar.gz
historical-73feb1667c6412b88684277e880d16857dd46bd7.tar.bz2
historical-73feb1667c6412b88684277e880d16857dd46bd7.zip
Changing SHAREDIR to LOCAL_DIR in start scripts and einfo in ebuild (see bug #76278)
Package-Manager: portage-1.589-cvs
Diffstat (limited to 'net-p2p/gift')
-rw-r--r--net-p2p/gift/ChangeLog7
-rw-r--r--net-p2p/gift/Manifest24
-rw-r--r--net-p2p/gift/files/gift.confd6
-rw-r--r--net-p2p/gift/files/gift.initd18
-rw-r--r--net-p2p/gift/gift-0.11.8.1.ebuild11
5 files changed, 34 insertions, 32 deletions
diff --git a/net-p2p/gift/ChangeLog b/net-p2p/gift/ChangeLog
index 32e6b5f00491..071c5857f3c9 100644
--- a/net-p2p/gift/ChangeLog
+++ b/net-p2p/gift/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-p2p/gift
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/ChangeLog,v 1.56 2005/09/06 21:12:59 sekretarz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/ChangeLog,v 1.57 2005/09/16 23:32:20 mkay Exp $
+
+ 16 Sep 2005; <mkay@gentoo.org> files/gift.confd, files/gift.initd,
+ gift-0.11.8.1.ebuild:
+ Changing SHAREDIR to LOCAL_DIR in start scripts and einfo in ebuild
+ (see bug #76278)
06 Sep 2005; Karol Wojtaszek <sekretarz@gentoo.org> gift-0.11.7-r1.ebuild,
gift-0.11.8.1.ebuild:
diff --git a/net-p2p/gift/Manifest b/net-p2p/gift/Manifest
index c5022ee3ebec..e09a197fb98d 100644
--- a/net-p2p/gift/Manifest
+++ b/net-p2p/gift/Manifest
@@ -1,24 +1,14 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 3e67a63f5a45f17503f7fd44d03612b1 gift-0.11.7-r1.ebuild 1850
+MD5 4ab5c257e13f37b2c1e64b334714b370 ChangeLog 3980
+MD5 fa7abf5b122646184f15da253331f226 gift-0.11.6-r1.ebuild 1920
MD5 e68335e95fbd6bf9a2077a0360875a86 gift-0.11.6.ebuild 1330
-MD5 45498b742926000a56a703cdfa563b2a gift-0.11.8.1.ebuild 1712
+MD5 3e67a63f5a45f17503f7fd44d03612b1 gift-0.11.7-r1.ebuild 1850
MD5 20f38ffd20cb25188a17e8fe4a985f60 gift-0.11.7_pre20040627.ebuild 2139
-MD5 fa7abf5b122646184f15da253331f226 gift-0.11.6-r1.ebuild 1920
-MD5 f819feb806778d18d792bcf853e31dc4 ChangeLog 3802
+MD5 2ea8ab0472deb641dc55ec8b6c146a86 gift-0.11.8.1.ebuild 1963
MD5 875f23093b78af2d864a7a7ba464f126 metadata.xml 223
MD5 64b21cffd79f35db281d077303eb810b files/digest-gift-0.11.6 64
MD5 64b21cffd79f35db281d077303eb810b files/digest-gift-0.11.6-r1 64
MD5 8f91b068201aa85015f5d55ca35867d8 files/digest-gift-0.11.7-r1 64
-MD5 783b88fc3b1999d8274180380c02a82c files/digest-gift-0.11.8.1 66
-MD5 bc6445cb39701ab31230338ff7be3949 files/gift.confd 641
-MD5 5fa0c8c029d556146dbdedfd9ae8c479 files/gift.initd 710
MD5 e53b1d5024a6b4a9c59097929889cd0e files/digest-gift-0.11.7_pre20040627 76
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFDHiKvZ/iYVBmujdURAuk1AKD2dCMlcjaJffYWAAgD4+kGsF5zfQCgobA/
-Yex8Br43ENFGwKwSzgeIU8M=
-=jlj8
------END PGP SIGNATURE-----
+MD5 783b88fc3b1999d8274180380c02a82c files/digest-gift-0.11.8.1 66
+MD5 d5055758521dad61c69c27ecd493d426 files/gift.confd 637
+MD5 de822b4ec211175e809c7c93c0651cc4 files/gift.initd 814
diff --git a/net-p2p/gift/files/gift.confd b/net-p2p/gift/files/gift.confd
index 6a4167958d73..52d5a99b27f9 100644
--- a/net-p2p/gift/files/gift.confd
+++ b/net-p2p/gift/files/gift.confd
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.confd,v 1.3 2004/07/15 00:20:21 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.confd,v 1.4 2005/09/16 23:32:20 mkay Exp $
# /etc/conf.d/gift
# Config file for gift control script
@@ -12,8 +12,8 @@
# owner of giFTd process (don't change, must be existing)
USER="p2p"
-# where the shared directory is
-SHAREDIR="/usr/share/giFT"
+# directory with configuration
+LOCAL_DIR="/usr/share/giFT"
# logfile (/dev/null for nowhere)
LOG="/var/log/giftd.log"
diff --git a/net-p2p/gift/files/gift.initd b/net-p2p/gift/files/gift.initd
index 8607c59c5559..4e624bc21035 100644
--- a/net-p2p/gift/files/gift.initd
+++ b/net-p2p/gift/files/gift.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.5 2004/08/05 21:23:53 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/files/gift.initd,v 1.6 2005/09/16 23:32:20 mkay Exp $
depend() {
need net
@@ -10,13 +10,15 @@ depend() {
start() {
ebegin "Starting giFTd"
start-stop-daemon --quiet --start -c ${USER} --make-pidfile \
- --pidfile /var/run/giftd.pid --exec /usr/bin/giftd -- \
- --local-dir=${SHAREDIR} &>${LOG} &
- for i in `pgrep -u ${USER} giftd`
- do
- renice ${NICE} -p $i > /dev/null
- done
- eend $?
+ --pidfile /var/run/giftd.pid --exec /usr/bin/giftd \
+ --nicelevel ${NICE} -- \
+ --local-dir=${LOCAL_DIR} &>${LOG} &
+ result=$?
+ [ -z "`pgrep -u ${USER} giftd`" ] && result=1
+ if [ $result -eq 1 ]; then
+ eerror "Failed to start gift. Check ${LOG} for more information"
+ fi;
+ eend $result
}
stop() {
diff --git a/net-p2p/gift/gift-0.11.8.1.ebuild b/net-p2p/gift/gift-0.11.8.1.ebuild
index 91131f5bd3e4..7ddff1ea61f0 100644
--- a/net-p2p/gift/gift-0.11.8.1.ebuild
+++ b/net-p2p/gift/gift-0.11.8.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/gift-0.11.8.1.ebuild,v 1.2 2005/09/06 21:12:59 sekretarz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift/gift-0.11.8.1.ebuild,v 1.3 2005/09/16 23:32:20 mkay Exp $
inherit eutils libtool
@@ -44,8 +44,13 @@ src_install() {
}
pkg_postinst() {
- einfo "First, you need to run gift-setup with your normal"
- einfo "user account to create the giFT configuration files."
+ einfo "Configure gift in /usr/share/giFT/ or run gift-setup"
+ einfo "as normal user and make:"
+ einfo 'cp -R $HOME/.giFT/* /usr/share/giFT/'
+ einfo "chown -R p2p:root /usr/share/giFT/*"
+ einfo "(be carefull while specyfing directories in gift-setup;"
+ einfo "keep in mind that giFT will run as process of user "
+ einfo 'specified in /etc/conf.d/gift with his $HOME directory)'
echo
einfo "Also, if you will be using the giFT init script, you"
einfo "will need to create /usr/share/giFT/giftd.conf"