Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93982 - New ebuild: net-misc/pglinux
Summary: New ebuild: net-misc/pglinux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
: 152011 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-25 12:06 UTC by Daniel Harper
Modified: 2012-05-03 00:46 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pglinux-1.5.ebuild (pglinux-1.5.ebuild,1.81 KB, text/plain)
2005-06-09 11:52 UTC, Daniel Harper
Details
pglinux-gentoo.patch (pglinux-gentoo.patch,2.21 KB, patch)
2005-06-09 11:52 UTC, Daniel Harper
Details | Diff
peerguardianrc (peerguardianrc,423 bytes, text/plain)
2005-06-09 11:52 UTC, Daniel Harper
Details
pgupdate (pgupdate,1.43 KB, text/plain)
2005-06-09 11:53 UTC, Daniel Harper
Details
pglinux-1.5.ebuild (pglinux-1.5.ebuild,1.82 KB, text/plain)
2005-06-10 13:02 UTC, Daniel Harper
Details
pgupdate (pgupdate,1.45 KB, text/plain)
2005-06-14 09:28 UTC, Daniel Harper
Details
pgupdate (pgupdate,1.24 KB, text/plain)
2005-07-30 04:39 UTC, Daniel Harper
Details
pgupdate (pgupdate,1.02 KB, text/plain)
2005-10-13 10:47 UTC, Iain Elderkin
Details
New ebuild (pglinux-1.5_beta.ebuild,997 bytes, text/plain)
2005-10-30 04:03 UTC, Alexander Wigen
Details
pglinux-1.5_beta.ebuild (pglinux-1.5_beta.ebuild,1.16 KB, text/plain)
2005-10-30 04:40 UTC, Alexander Wigen
Details
pglinux-1.5_beta.ebuild (pglinux-1.5_beta.ebuild,1005 bytes, text/plain)
2005-10-30 21:08 UTC, Alexander Wigen
Details
pgupdate (pgupdate,730 bytes, text/plain)
2005-10-31 00:30 UTC, Alexander Wigen
Details
pglinux-2.1.3.ebuild (pglinux-2.1.3.ebuild,1.91 KB, text/plain)
2012-01-17 21:01 UTC, Julian Ospald
Details
pgl-2.1.3-makefile.patch (pgl-2.1.3-makefile.patch,3.31 KB, patch)
2012-01-17 21:01 UTC, Julian Ospald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harper 2005-05-25 12:06:01 UTC
I wouldn't mind seeing the ever popular peerguardian application in portage. 

The sources can be obtained from here: -

http://methlabs.org/projects/peerguardian-linuxosx/

Reproducible: Always
Steps to Reproduce:
1. emerge peerguardian
2.
3.

Actual Results:  
No ebuild found. 

Expected Results:  
Found an ebuild.
Comment 1 Daniel Harper 2005-06-09 11:52:01 UTC
Created attachment 60933 [details]
pglinux-1.5.ebuild
Comment 2 Daniel Harper 2005-06-09 11:52:37 UTC
Created attachment 60934 [details, diff]
pglinux-gentoo.patch
Comment 3 Daniel Harper 2005-06-09 11:52:56 UTC
Created attachment 60935 [details]
peerguardianrc
Comment 4 Daniel Harper 2005-06-09 11:53:35 UTC
Created attachment 60936 [details]
pgupdate
Comment 5 Daniel Harper 2005-06-09 12:07:36 UTC
Installation instructions are located here: -

http://forums.gentoo.org/viewtopic-p-2482148.html#2482148
Comment 6 Daniel Harper 2005-06-10 13:02:14 UTC
Created attachment 61020 [details]
pglinux-1.5.ebuild
Comment 7 Daniel Harper 2005-06-14 09:28:22 UTC
Created attachment 61214 [details]
pgupdate
Comment 8 Daniel Harper 2005-07-30 04:39:52 UTC
Created attachment 64726 [details]
pgupdate
Comment 9 Daniel Harper 2005-07-30 04:40:23 UTC
Comment on attachment 64726 [details]
pgupdate

PeerGuardian update script.
Comment 10 Christopher Covington 2005-09-23 05:10:34 UTC
I too would very much like to see this in portage. I fails to compile by hand 
and I have definite use for it...
Comment 11 Iain Elderkin 2005-10-13 10:47:50 UTC
Created attachment 70582 [details]
pgupdate

Modified original pgupdate script to work with changed blocklists.
Comment 12 Iain Elderkin 2005-10-13 10:51:46 UTC
Comment on attachment 70582 [details]
pgupdate

#!/bin/bash
#Copyright (C) 2005  Daniel Harper
#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.  

#Modified by Iain Elderkin (iainel) for blocklist changes

PGDIR=/usr/share/peerguardian

cd $PGDIR

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

if [ -f $PGDIR/level1.gz ] 
then
	rm level1.gz
fi 

if [ -f $PGDIR/level1 ]
then
	rm level1
fi

echo -e "* Fetching new blocklist"

wget http://dialspace.dial.pipex.com/town/pipexdsl/s/ashu56/bluetack/level1.gz

if [ ! -f $PGDIR/level1.gz ] 
then
	echo -e "* Error: Blocklist not found.	Try re-running the script."
	exit
fi 

gunzip level1.gz
cp level1 p2p.p2b.p2p

/etc/init.d/peerguardian start
Comment 13 Iain Elderkin 2005-10-13 10:53:13 UTC
Comment on attachment 70582 [details]
pgupdate

#!/bin/bash
#Copyright (C) 2005  Daniel Harper
#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.  

#Modified by Iain Elderkin (iainel) for blocklist changes

PGDIR=/usr/share/peerguardian

cd $PGDIR

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

if [ -f $PGDIR/level1.gz ] 
then
	rm level1.gz
fi 

if [ -f $PGDIR/level1 ]
then
	rm level1
fi

echo -e "* Fetching new blocklist"

wget http://dialspace.dial.pipex.com/town/pipexdsl/s/ashu56/bluetack/level1.gz

if [ ! -f $PGDIR/level1.gz ] 
then
	echo -e "* Error: Blocklist not found.	Try re-running the script."
	exit
fi 

gunzip level1.gz
cp level1 p2p.p2b.p2p

/etc/init.d/peerguardian start
Comment 14 Bob Bell 2005-10-20 21:31:25 UTC
I tried out this ebuild, and it works great (with the URL in the latest
pgupdate).  Could this be added to ~x86?
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-24 16:00:22 UTC
Um, the ebuild is quite ugly:

- the ebuild filename should be pglinux-1.5_beta. Add and refer to MY_P=${P/_/},
S="${WORKDIR}/${MY_P}," instead hardcoding the version everywhere and cd'ing
into $WORKDIR
- SRC_URI="mirror://sourceforge/<foo>/..."
- license ? does not exist
- src_unpack() is superfluous
- there's no reason to do chmod +rx /etc/init.d/peerguardian in pkg_postinst(),
prefix the path with ${D} and do that in the install phase
- the einfo and ewarn lines are unnecessary
- proper indenting, please
Comment 16 Alexander Wigen 2005-10-30 04:03:06 UTC
Created attachment 71716 [details]
New ebuild
Comment 17 Alexander Wigen 2005-10-30 04:40:33 UTC
Created attachment 71719 [details]
pglinux-1.5_beta.ebuild

Some more changes to the ebuild
Comment 18 Alexander Wigen 2005-10-30 21:08:42 UTC
Created attachment 71772 [details]
pglinux-1.5_beta.ebuild

New ebuild after good comments from Carsten Lohrke
Comment 19 Alexander Wigen 2005-10-31 00:30:44 UTC
Created attachment 71776 [details]
pgupdate

A cleaned up version of pgupdate. Now uses
http://peerguardian.sourceforge.net/lists/p2p.php to fetch block list.
Comment 20 Jacob Braun 2005-12-14 10:11:27 UTC
Any news on this? This is a great utility that I would love to see officially in
portage. The ebuilds posted here and the pgupdate utility work great for me.
Comment 21 Harold Aling 2005-12-15 01:31:34 UTC
Running peerguardian breaks fail2ban and svn checkout over ssh. It might
break/block/bork more, but I stopped using it after I got these faillures...
Comment 22 Jacob Braun 2005-12-15 14:23:13 UTC
You might try editing your PG.conf file in /usr/share/peerguardian and
unblocking the ports you need. I'm not sure if your problem was a port issue or
not...
Comment 23 Harold Aling 2005-12-16 00:01:28 UTC
I already unblocked port 22 (ssh), but to no avail. I've set fail2ban to email
me when an 'intruder' is detected. When I run PG, I get 100-200 emails per
attack because fail2ban is unable to add a correct rule to the firewall...

SVN checkout over ssh just sits and waits until I stop PG...
Comment 24 Scott Van Der Wall 2006-10-19 16:30:54 UTC
*** Bug 152011 has been marked as a duplicate of this bug. ***
Comment 25 Scott Van Der Wall 2006-10-19 16:34:58 UTC
So what's new with this ebuild?  why isn't it in portage yet?
Comment 26 Jacob Braun 2006-10-19 17:21:19 UTC
I haven't heard anything about it in a long time. Still working great on my system though.
Comment 27 Kalidarn 2006-11-08 01:20:08 UTC
actually, im tempted to say do not add this. The reason being is Moblock the third party tool http://bugs.gentoo.org/show_bug.cgi?id=143535 is already in sunrise and could be ported.

The second reason is PeerGuardian for Linux or PGLinux is likely to be depreciated for Moblock anyway as the Moblock developer is working with Phoenix Labs now.

"There is a plan to make MoBlock become the official peerguardian linux client, you can read something about it at the Phoenixlabs forum  ( http://forums.phoenixlabs.org/t11376-introducing-moblock.html ) so feel free to ask for support there." http://moblock.berlios.de/
Comment 28 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-21 15:03:26 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 29 jannis 2011-06-09 15:24:45 UTC
Seems to be still active:
http://sourceforge.net/projects/peerguardian/files/PeerGuardian%20Linux/
Comment 30 Julian Ospald 2012-01-17 21:01:07 UTC
Created attachment 299179 [details]
pglinux-2.1.3.ebuild
Comment 31 Julian Ospald 2012-01-17 21:01:42 UTC
Created attachment 299181 [details, diff]
pgl-2.1.3-makefile.patch
Comment 32 Julian Ospald 2012-01-22 22:13:08 UTC
committed to sunrise-overlay!

https://overlays.gentoo.org/svn/proj/sunrise/reviewed/net-misc/pglinux/
Comment 33 Julian Ospald 2012-05-03 00:46:51 UTC
+*pglinux-2.1.3_p20120503 (03 May 2012)
+
+  03 May 2012; Julian Ospald <hasufell@gentoo.org>
+  +pglinux-2.1.3_p20120503.ebuild, +metadata.xml:
+  initial commit wrt #93982
+