Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Peerguardian2 (P2P IP Blocker): Ebuild and scripts
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Thu Jun 09, 2005 7:06 pm    Post subject: Peerguardian2 (P2P IP Blocker): Ebuild and scripts Reply with quote

Hi there.

I have made an ebuild and a few scripts to get this pretty cool little app to work.

In its original state, I didin't like the way a few of the files and things were set out, they were almost strewn across the file system, so this ebuild gets the app onto your system and keeps it organised. I have created a patch which completes this process.

Basically, files are placed in /usr/share/peerguardian instead of just randomly placing them in /etc/

The scripts are, an init script (Created by foruim member iainel) and a blocklist updating script (Created by myself)

The files can be located at this bug entry: - https://bugs.gentoo.org/show_bug.cgi?id=93982

To install the app, do the following: -

1.
Code:

# mkdir -p /usr/local/portage/net-misc/pglinux/files
# cd /usr/local/portage/net-misc/pglinux


2. Download the ebuild (pglinux-1.5.ebuild) and place it in
Code:
/usr/local/portage/net-misc/pglinux


3. Download "peerguardianrc" and place it in
Code:
/usr/local/portage/net-misc/pglinux/files


4. Download "pgupdate" and place it in
Code:
/usr/local/portage/net-misc/pglinux/files


5. Download "pglinux-gentoo.patch" and place it in
Code:
/usr/local/portage/net-misc/pglinux/files


6. Unmask the package
Code:
echo "=net-misc/pglinux-1.5 ~x86" >> /etc/portage/package.keywords


7. Ebuild/Digest

Code:
ebuild /usr/local/portage/net-misc/pglinux/pglinux-1.5.ebuild digest


8. Emerge it!
Code:
emerge =pglinux


To run the update script, simply type "pgupdate"

The initscript can be added to boot by typing

Code:
rc-update add peerguardian default


Enjoy!
_________________
djh-solutions :: freelance web design | solution provider


Last edited by djh-world on Sat Jul 30, 2005 11:26 am; edited 4 times in total
Back to top
View user's profile Send private message
cato`
Guru
Guru


Joined: 03 Jun 2002
Posts: 430
Location: Norway, Trondheim

PostPosted: Thu Jun 09, 2005 9:11 pm    Post subject: Reply with quote

Shouldn't "/usr/local/portage/net-misc/files" be "/usr/local/portage/net-misc/pglinux/files" ?
_________________
Don't mess with the Penguin.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 396
Location: Galiza

PostPosted: Thu Jun 09, 2005 10:19 pm    Post subject: Reply with quote

good, thanks ;)
_________________
O coração, se pudesse pensar, pararia. Fernando Pessoa
If heart could think, it would stop
Back to top
View user's profile Send private message
hpestilence
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2004
Posts: 82

PostPosted: Thu Jun 09, 2005 10:49 pm    Post subject: Reply with quote

I've been using this program for a few months now and it works good. Glad to see someone make an ebuild for it.
_________________
When the plague descends from Heaven above only Darkness will be your one true ally.
Back to top
View user's profile Send private message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Fri Jun 10, 2005 10:17 am    Post subject: Reply with quote

cato` wrote:
Shouldn't "/usr/local/portage/net-misc/files" be "/usr/local/portage/net-misc/pglinux/files" ?


Oops! Yes, this is right.

Sorry, I was in a rush at the time.

Post edited.
_________________
djh-solutions :: freelance web design | solution provider
Back to top
View user's profile Send private message
nunogt
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2004
Posts: 134
Location: Lisbon, Portugal

PostPosted: Fri Jul 29, 2005 9:37 pm    Post subject: Reply with quote

I followed the instructions and i'm getting this error:

Quote:
!!! No package manifest found: /usr/local/portage/net-misc/pglinux/Manifest


I created a portage overlay at '/usr/local/portage'. How can I fix this problem?

EDIT: Nevermind, I think I fixed it myself using "ebuild pglinux-1.5.ebuild digest".
Back to top
View user's profile Send private message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Sat Jul 30, 2005 11:27 am    Post subject: Reply with quote

Cheers for pointing that out.

Post edited.
_________________
djh-solutions :: freelance web design | solution provider
Back to top
View user's profile Send private message
ScArE2100
n00b
n00b


Joined: 09 Mar 2003
Posts: 20
Location: Washington State

PostPosted: Wed Aug 03, 2005 5:45 am    Post subject: Reply with quote

excellent work, I'm using it now. I tar'd up the /usr/local/portage/net-misc/pglinux directory to illiminate steps 1-7 :)

http://xijio.com/files/pglinux-1.5.tar.bz2
_________________
School, bored, sleep. My life in 3 words 2 commas and 1 period.
Back to top
View user's profile Send private message
nunogt
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2004
Posts: 134
Location: Lisbon, Portugal

PostPosted: Thu Aug 18, 2005 2:24 am    Post subject: Reply with quote

It's been working perfectly since installation, doing its job flawlessly. Shouldn't this be an official portage package?
Anyway, thanks for your work porting this to gentoo djh-world, greatly appreciated.
Back to top
View user's profile Send private message
SmOkyS2006
n00b
n00b


Joined: 14 Oct 2005
Posts: 1

PostPosted: Fri Oct 14, 2005 8:49 am    Post subject: Reply with quote

I have little customize the Linux PeerGuardian update script for bluetack.co.uk,
now it´s works perfecktly on Gentoo with your ebuild ;)

Can you integrate and optimize this Script in the pglinux ebuild ?


About the Script:
http://forums.phoenixlabs.org/showthread.php?t=37

Gentoo ebuild Version - PG update script for bluetack.co.uk

Greetz SmOkyS


Code:
# version for bluetack.co.uk lists!
#!/bin/sh
# Update new blocklists and start/stop/restart PeerGuardian
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# testdescription
#
#CONFIGURATION
# Make sure PG_ETC points to the directory where
# you want to put your downloaded blocklists.
PG_ETC=/usr/share/peerguardian/
# Remove the lists you don't want to download and
# use from BLOCKLISTS.
BLOCKLISTS="ads-trackers-and-bad-pr0n edu level1 level2 Microsoft spider spyware"
PG_CONF=/usr/share/peerguardian/PG.conf
PG_LOG=/var/log/PG.log
PG_LIST=/usr/share/peerguardian/p2p.p2b.p2p
#The URL where the blocklists reside
URL=http://www.bluetack.co.uk/config
#The format of the lists to download
SUFFIX=gz
#The format after unpacking
SUFFIX2=txt

endscript () {
date +"------------ "%F" "%X" "%Z" End PeerGuardian Script"
exit $1
}
date +"------------ "%F" "%X" "%Z" Begin PeerGuardian $1"


case "$1" in
'start')
   cd "$PG_ETC"
   # check if blockfiles were updated:
   UPDATED=""
   for i in $BLOCKLISTS ; do
   TIMESTAMP=0
   if [ -e $i.$SUFFIX ] ; then
   TIMESTAMP=`stat --format=%y $i.$SUFFIX`
   echo "File $i.$SUFFIX last updated $TIMESTAMP"
   TIMESTAMP=`stat --format=%Y $i.$SUFFIX`
   fi
   wget -N $URL/$i.$SUFFIX
   if [ `stat --format=%Y $i.$SUFFIX` -gt $TIMESTAMP ] ; then
   UPDATED=$i
   fi
   done
   
   # if none of the blockfiles were updated:
   if [ -z $UPDATED ] ; then
   echo "No blocklists needed updating."
   echo "Starting PeerGuardian"
   mv $PG_LOG $PG_LOG.backup
   peerguardnf -d -c "$PG_CONF" -l "$PG_LOG" -h -m
   endscript 0
   fi
   
   # if any blockfiles were updated:
   for i in $BLOCKLISTS ; do
   gunzip -c $i.$SUFFIX > $i.$SUFFIX2
   BLOCKLISTSCAT="$BLOCKLISTSCAT $i.$SUFFIX2"
   done
   cat $BLOCKLISTSCAT | peerguardnf -f merged.p2b.p2p
   for i in $BLOCKLISTS ; do
   rm $i.$SUFFIX2
   done
   # uncomment below to unblock Yahoo! Mail and whatever
   # else needs unblocking here. Do this also in the
   # restart section.
   #grep -v -i "yahoo\!" merged.p2b.p2p | grep -v -i "spite media" | grep -v "Trendstep Ltd" > merged.p2b.p2p.tmp
   #mv merged.p2b.p2p.tmp merged.p2b.p2p
   mv $PG_LIST $PG_LIST.backup
   mv merged.p2b.p2p $PG_LIST
   mv $PG_LOG $PG_LOG.backup
   echo "Starting PeerGuardian"
   peerguardnf -d -c "$PG_CONF" -l "$PG_LOG" -h -m
   endscript 0
   ;;

'stop')
   echo "Stopping PeerGuardian"
   killall peerguardnf > /dev/null 2>&1
   endscript 0
   ;;

'restart')
   cd "$PG_ETC"
   # check if blockfiles were updated:
   UPDATED=""
   for i in $BLOCKLISTS ; do
   TIMESTAMP=0
   if [ -e $i.$SUFFIX ] ; then
   TIMESTAMP=`stat --format=%y $i.$SUFFIX`
   echo "File $i.$SUFFIX last updated $TIMESTAMP"
   TIMESTAMP=`stat --format=%Y $i.$SUFFIX`
   fi
   wget -N $URL/$i.$SUFFIX
   if [ `stat --format=%Y $i.$SUFFIX` -gt $TIMESTAMP ] ; then
   UPDATED=$i
   fi
   done
   
   # if none of the blockfiles were updated:
   if [ -z $UPDATED ] ; then
   echo "No blocklists needed updating."
   echo "Stopping PeerGuardian"
   killall peerguardnf > /dev/null 2>&1
   mv $PG_LOG $PG_LOG.backup
   sleep 4
   echo "Starting PeerGuardian"
   peerguardnf -d -c "$PG_CONF" -l "$PG_LOG" -h -m
   endscript 0
   fi
   
   # if any blockfiles were updated:
   for i in $BLOCKLISTS ; do
   gunzip -c $i.$SUFFIX > $i.$SUFFIX2
   BLOCKLISTSCAT="$BLOCKLISTSCAT $i.$SUFFIX2"
   done
   cat $BLOCKLISTSCAT | peerguardnf -f merged.p2b.p2p
   for i in $BLOCKLISTS ; do
   rm $i.$SUFFIX2
   done
   # uncomment below to unblock Yahoo! Mail and whatever
   # else needs unblocking here. Do this also in the
   # restart section.
   #grep -v -i "yahoo\!" merged.p2b.p2p | grep -v -i "spite media" | grep -v "Trendstep Ltd" > merged.p2b.p2p.tmp
   #mv merged.p2b.p2p.tmp merged.p2b.p2p
   echo "Stopping PeerGuardian"
   killall peerguardnf > /dev/null 2>&1
   mv $PG_LIST $PG_LIST.backup
   mv merged.p2b.p2p $PG_LIST
   mv $PG_LOG $PG_LOG.backup
   sleep 4
   echo "Starting PeerGuardian"
   peerguardnf -d -c "$PG_CONF" -l "$PG_LOG" -h -m
   endscript 0
   ;;

*)
   echo "Usage: $0 { start | stop | restart }"
   ;;
esac
exit 0
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Oct 27, 2005 10:42 pm    Post subject: Reply with quote

Hey guys!
When i noticed there finally was a proper linux version of PeerGuardian i was like W00T!

Thanks for you work djh! I really appriciate you doing this.
However there were a couple of aspects i wasnt completely happy with :)

I changed quite a bit:

* Modified ebuild, based on original.
* File structure changed (again), config is located in /etc/peerguardian
* Blocklists are downloaded to /etc/peerguardian
* complete rewrite of pgupdate, now supports multiple blocklists
* Modified initscript to use /etc/conf.d/peerguardian
* PG.conf renamed for peerguardian.conf
* added variable for bluetack blocklists in peerguardian.conf

That's what i added to the ChangeLog

EDIT: Something i forgot to mention is that this also installs the manpage now

This was my first ebuild ever (well even if the base work was done by djh!)
so please be kind :)

You can get all files at:
http://130.232.30.60:3800/pglinux/

peerguardian.conf:
Code:
+# Check on www.bluetack.co.uk for available blocklists
+BLOCKLISTS="ads-trackers-and-bad-pr0n level1 level2 Microsoft spider spyware"


pgupdate:
Code:
#!/bin/bash
#
# Copyright (C) 2005  Mathias Fredriksson
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. 

PGDIR="/etc/peerguardian"
source "${PGDIR}/peerguardian.conf"

URL="http://www.bluetack.co.uk/config"
TYPE=gz

cd $PGDIR

if /etc/init.d/peerguardian status | grep -q "started"; then
        /etc/init.d/peerguardian stop
        RUNNING=true
fi

echo " * Backing up and resetting blacklist"
cp "$BLOCKFILE" "$BLOCKFILE.old"
echo " * Fetching and updating blacklist"
>$BLOCKFILE
for i in $BLOCKLISTS; do
   echo -n "    - Updating $i... "
   wget -Nnv $URL/$i.$TYPE &&
   gunzip -c $i.$TYPE >> $BLOCKFILE &&
   echo "done!"
done
echo " * Sorting entries in the blacklist"
sort $BLOCKFILE -o $BLOCKFILE

if [ $RUNNING ]; then
   /etc/init.d/peerguardian start
else
   echo " * You might want to start peerguardian: /etc/init.d/peerguardian start"
fi


/etc/conf.d/peerguardian:
Code:
CONFIG="/etc/peerguardian/peerguardian.conf"
LOG="/var/log/peerguardian.log"

OPTS="-d -c ${CONFIG} -l ${LOG} -h -m"

Basically i just felt like this increased readability.


There are the biggest changes i suppose, if you want to try it out i recomend you download _ALL_ files!!

Big creds goto djh-world and iainel, also for the creators of pglinux (bitrot, nullcontext and JFM)
(hope i got it all right)


A little footnote: If you add edu to the blocklist then you will be blocking me, and thus you will not be able to access my server ;)..
If you do use it i would appriciate it if you removed the university of turku
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Fri Oct 28, 2005 5:16 am    Post subject: Reply with quote

No matter which ebuild I try, it keeps failing to start. /var/log/messages gives me this:
Code:
Oct 28 00:11:51 thor modprobe: FATAL: Module ip_tables not found.
Oct 28 00:11:51 thor modprobe: FATAL: Module iptable_filter not found.
Oct 28 00:11:51 thor modprobe: FATAL: Module ip_queue not found.
Oct 28 00:11:52 thor rc-scripts: Failed to start PeerGuardian


Perhaps the init script is trying to modprobe those modules, but i have them compiled into the kernel. Anyway around this?
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Fri Oct 28, 2005 10:08 am    Post subject: Reply with quote

I get that too, or well all but one
Code:
Oct 28 02:22:31 xbox-linux modprobe: FATAL: Module ip_tables not found.
Oct 28 02:22:31 xbox-linux modprobe: FATAL: Module iptable_filter not found.

It shouldn't matter, but if you are SURE you have them compiled into the kernel try editing /etc/conf.d/peerguardian
and in OPTS you remove "-m"
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Fri Oct 28, 2005 12:42 pm    Post subject: Reply with quote

I made a new release..
pglinux1.5_beta-r2

http://130.232.30.60:3800/pglinux/

Changes:
Code:
28/10/2005:
Release: pglinux-1.5_beta-r2

* Some more changes to the ebuild
* Updated manpage to reflect new locations
* Some changes in HttpRequest.cpp to stop users from having to log in
  all the time
* Fixed some other minor stuff


Probably something i forgot to mention but, ah well.. :)
Hope you like it

Updated files are: pglinux-1.5_beta-r2.ebuild and pglinux-gentoo.patch


Last edited by Taily on Sun Jul 20, 2008 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Fri Oct 28, 2005 12:45 pm    Post subject: Reply with quote

Taily wrote:
I get that too, or well all but one
Code:
Oct 28 02:22:31 xbox-linux modprobe: FATAL: Module ip_tables not found.
Oct 28 02:22:31 xbox-linux modprobe: FATAL: Module iptable_filter not found.

It shouldn't matter, but if you are SURE you have them compiled into the kernel try editing /etc/conf.d/peerguardian
and in OPTS you remove "-m"


hmmm....That didn't work either, but I think I found the problem. My kernel doesn't have ip_tables. They all now have "_nf_" in the middle of them. So instead of "IP_TABLES" I have "IP_NF_TABLES" or "IP_NF_QUEUE." Perhaps this is due to it being the 2.6.14 kernel? Anyone else seen this?
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Fri Oct 28, 2005 2:14 pm    Post subject: Reply with quote

This is my configuration in the kernel:
Code:
#
CONFIG_IP_NF_CONNTRACK=y
CONFIG_IP_NF_CT_ACCT=y
CONFIG_IP_NF_CONNTRACK_MARK=y
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IRC=m
CONFIG_IP_NF_TFTP=m
CONFIG_IP_NF_QUEUE=m
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_PKTTYPE=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_DSCP=m
CONFIG_IP_NF_MATCH_AH_ESP=m
CONFIG_IP_NF_MATCH_LENGTH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_TCPMSS=m
CONFIG_IP_NF_MATCH_HELPER=m
CONFIG_IP_NF_MATCH_STATE=y
CONFIG_IP_NF_MATCH_CONNTRACK=y
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_MATCH_REALM=m
CONFIG_IP_NF_MATCH_SCTP=m
CONFIG_IP_NF_MATCH_COMMENT=m
CONFIG_IP_NF_MATCH_CONNMARK=m
CONFIG_IP_NF_MATCH_HASHLIMIT=m
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_NAT=y
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_TARGET_NETMAP=m
CONFIG_IP_NF_TARGET_SAME=m
CONFIG_IP_NF_NAT_IRC=m
CONFIG_IP_NF_NAT_FTP=m
CONFIG_IP_NF_NAT_TFTP=m
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_DSCP=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_CLASSIFY=m
CONFIG_IP_NF_TARGET_CONNMARK=m

From there what you need is
CONFIG_IP_NF_QUEUE=m
CONFIG_IP_NF_IPTABLES=y (or m)
CONFIG_IP_NF_FILTER=y (or m)

Some other's might also be needed, i would recomend putting almost all as modules, and those that you know you always need you can keep compiled in
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Mon Oct 31, 2005 4:12 am    Post subject: Reply with quote

Thanks so much for you work Taily. If I were pimp, I'd hook you up with the best, free of charge :).
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Mon Oct 31, 2005 6:48 pm    Post subject: Reply with quote

Ma3oxuct:
Thanks alot! I really appriciate that :)

Hey, was bored again so i did some updates..
* Updated the ebuild
* Modified pgupdate, works a bit better now :)
* Applied a patch by kev vance for loading v3 blocklists

If you want it grab the latest ebuild (and files) at httP://130.232.30.60:3800/pglinux/
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Mon Oct 31, 2005 7:29 pm    Post subject: Reply with quote

I'm not quite sure what I might be doing wrong:

Code:
Cago-Ma3oxuct pglinux # emerge pglinux
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/pglinux-1.5_beta-r3 to /
>>> md5 files   ;-) pglinux-1.5_beta-r2.ebuild
>>> md5 files   ;-) pglinux-1.5_beta.ebuild
>>> md5 files   ;-) pglinux-1.5_beta-r3.ebuild
>>> md5 files   ;-) files/peerguardian.conf
>>> md5 files   ;-) files/digest-pglinux-1.5_beta-r2
>>> md5 files   ;-) files/digest-pglinux-1.5_beta-r3
>>> md5 files   ;-) files/pglinux-v3loader.patch
>>> md5 files   ;-) files/pglinux-gentoo.patch
>>> md5 files   ;-) files/pgupdate
>>> md5 files   ;-) files/digest-pglinux-1.5_beta
>>> md5 files   ;-) files/peerguardian.rc
>>> md5 src_uri ;-) pglinux-1.5beta.tar.gz
>>> Unpacking source...
>>> Unpacking pglinux-1.5beta.tar.gz to /var/tmp/portage/pglinux-1.5_beta-r3/work
 * Applying pglinux-gentoo.patch ...                                      [ ok ]
 * Applying pglinux-v3loader.patch ...

 * Failed Patch: pglinux-v3loader.patch !
 *  ( /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/pglinux-1.5_beta-r3/temp/pglinux-v3loader.patch-29689.out


!!! ERROR: net-misc/pglinux-1.5_beta-r3 failed.
!!! Function epatch, Line 363, Exitcode 0
!!! Failed Patch: pglinux-v3loader.patch!
!!! If you need support, post the topmost build error, NOT this status message.


Code:
 cat /var/tmp/portage/pglinux-1.5_beta-r3/temp/pglinux-v3loader.patch-29689.out
***** pglinux-v3loader.patch *****

==================================

PATCH COMMAND:  patch -p0 -g0 --no-backup-if-mismatch < /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch

==================================
patching file AUTHORS
Hunk #1 succeeded at 1 with fuzz 1.
patching file BlockList.cpp
Hunk #1 FAILED at 182.
1 out of 1 hunk FAILED -- saving rejects to file BlockList.cpp.rej
patching file BlockList.h
Hunk #1 succeeded at 145 with fuzz 2 (offset 3 lines).
==================================

PATCH COMMAND:  patch -p1 -g0 --no-backup-if-mismatch < /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch

==================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- AUTHORS    2005-04-01 13:09:45.000000000 -0500








|+++ AUTHORS    2005-08-26 20:12:59.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.cpp      2005-03-31 00:55:36.000000000 -0500
|+++ BlockList.cpp      2005-08-26 20:15:26.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 110 of patch
can't find file to patch at input line 110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.h        2005-03-31 00:55:39.000000000 -0500
|+++ BlockList.h        2005-08-26 19:36:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================

PATCH COMMAND:  patch -p2 -g0 --no-backup-if-mismatch < /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch

==================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- AUTHORS    2005-04-01 13:09:45.000000000 -0500
|+++ AUTHORS    2005-08-26 20:12:59.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.cpp      2005-03-31 00:55:36.000000000 -0500















|+++ BlockList.cpp      2005-08-26 20:15:26.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 110 of patch
can't find file to patch at input line 110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.h        2005-03-31 00:55:39.000000000 -0500
|+++ BlockList.h        2005-08-26 19:36:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================

PATCH COMMAND:  patch -p3 -g0 --no-backup-if-mismatch < /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch

==================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- AUTHORS    2005-04-01 13:09:45.000000000 -0500
|+++ AUTHORS    2005-08-26 20:12:59.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.cpp      2005-03-31 00:55:36.000000000 -0500
|+++ BlockList.cpp      2005-08-26 20:15:26.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 110 of patch
can't find file to patch at input line 110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.h        2005-03-31 00:55:39.000000000 -0500
















|+++ BlockList.h        2005-08-26 19:36:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================

PATCH COMMAND:  patch -p4 -g0 --no-backup-if-mismatch < /usr/local/portage/net-misc/pglinux/files/pglinux-v3loader.patch

==================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- AUTHORS    2005-04-01 13:09:45.000000000 -0500
|+++ AUTHORS    2005-08-26 20:12:59.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.cpp      2005-03-31 00:55:36.000000000 -0500
|+++ BlockList.cpp      2005-08-26 20:15:26.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 110 of patch
can't find file to patch at input line 110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- BlockList.h        2005-03-31 00:55:39.000000000 -0500
|+++ BlockList.h        2005-08-26 19:36:25.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Mon Oct 31, 2005 7:38 pm    Post subject: Reply with quote

Hmm.. I don't see why you should get this error, the only thing i left kind of sloppy about his patch was adding him to authors..
Did you do ebuild pglinux-1.5_beta-r3.ebuild digest
after updating all files?

I'll try to see if i can reproduce this error

EDIT:
Can you try removing:
Code:
--- AUTHORS     2005-04-01 13:09:45.000000000 -0500
+++ AUTHORS     2005-08-26 20:12:59.000000000 -0400
@@ -1 +1,2 @@
 peerguardian for linux was created by bitrot, nullcontext and JFM.
+v3 loader by kev vance <kvance@kvance.com>

from the top of the v3loader patch? After that save it and run digest
This could very well be causing the error for you

Also you can try doing rm -rf /var/tmp/portage/pglinux-1.5* before trying again

SIDE NOTE:
Just so you know, unless you actually need to use the version3 blocklists this patch is pretty useless as blocklists are available as version2.
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Mon Oct 31, 2005 8:16 pm    Post subject: Reply with quote

Niether of those things did the trick...Its not a big problem....so long as I have some level of protection I'm happy.

Once again: Thanks.
Back to top
View user's profile Send private message
DarkWeaver
n00b
n00b


Joined: 07 Jan 2004
Posts: 32

PostPosted: Tue Nov 01, 2005 9:58 pm    Post subject: Reply with quote

I just tried accessing the site you said to use Taily, but it seems down. Well, it times out, which I assume means it's borked.

Any chance you could fix this or put the ebuilds up somewhere else?

Cheers, DarkWeaver.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Wed Nov 02, 2005 1:29 pm    Post subject: Reply with quote

Well my server is working just fine and dandy (even from outside my network). The only thing i could think of was PeerGuardian blocking your ip? Anyway i changed my PG configs to allow everything on port 3800 (where i run the httpd).

Hope it works now :)!
Back to top
View user's profile Send private message
DarkWeaver
n00b
n00b


Joined: 07 Jan 2004
Posts: 32

PostPosted: Thu Nov 03, 2005 10:58 am    Post subject: Reply with quote

lol, maybe that's it, as the site is still not working at my end.

I'm at uni, so maybe PeerGuardian has blocked me. No matter anyway, I can't get any p2p programs running (damn port blocking), so I spose PG'd be a bit excessive.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Thu Nov 03, 2005 4:15 pm    Post subject: Reply with quote

I doubt my peerguardian is blocking you, because I'm allowing all activity on port 3800 (webserver) and i don't use the edu blocklist as my ip is blacklisted in it ;)..

What on the other hand might be happening is that your uni blocking access to port 3800.
I uploaded all files to http://mbnet.fi/taily/pglinux now.. It should work, but i don't know how frequently I'll update the files there, so if i release any updates they'll probably just be on my server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum