Re: porting userland ppp to kfreebsd

2010-03-23 Thread Werner Koch
On Sun, 21 Mar 2010 20:22, anar...@koumbit.org said:

 Could you clarify this? Are you saying I duplicated existing work and
 that you already had userland ppp working? Is it with upstream's
 usr.sbin/ppp?

Yeah, I have userland ppp working as a client.  It was a mere

 mkdir /var/spool/lock

 How about PPPoE? Anybody managed to do some of that?

I have not tested it.  From my experience with OpenBSD I suggest to use
kernel ppp to connect to a fast DSL line.  On a slow box the userland
ppp is a severe bottleneck.  I have no idea whether this works on
kfreebsd.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87wrx3osai@vigenere.g10code.de



Re: porting userland ppp to kfreebsd

2010-03-22 Thread Petr Salinger
 Oh I see... Hum. Seems to me that mixes up way too many things, and it
 would be useful to separate some of those in individual packages.
...
 Seems to me we should separate those things in multiple packages. Does
 that make sense to you guys?

There is already pppctl in binary package freebsd-net-tools 
(from source package freebsd-utils).

From my (non-DD) POV, the best current solution is to create new binary 
package freebsd-ppp in source package freebsd-utils, provide usr.sbin/ppp 
and also move pppctl to it.  
The split into separate source packages can be performed any time later.

Petr



-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/pine.lnx.4.44.1003220820170.4584-100...@enigma.ys.cz



Re: porting userland ppp to kfreebsd

2010-03-21 Thread Petr Salinger
 As far as I know, there's currently no possibility of doing PPP or PPPoE
 in Debian GNU/kFreeBSD. I'd like to see that fixed.

 So I've started trying to port the userland ppp daemon from FreeBSD 8.0:
...

 I guess the next step is to make a package out of this thing... Any
 suggestions on how I should proceed? I'm generally familiar with Debian
 packaging, but I wonder if there are any kfreebsd-specific tricks,
 especially since here there's no upstream tarball and a good few patches
 (I'm not used to the new quilt stuff...)

 I would also appreciate help on how to manage a package through SVN or
 SVK.

We have shared SVN on alioth, see
http://svn.debian.org/wsvn/glibc-bsd/trunk/?op=log

In the case of ppp, the source is already included
in freebsd-utils source package ;-)

You could start with apt-get get source freebsd-utils,
add your patch, alter debian/rules, ...

The r/w access to our SVN can be obtained by joining via
https://alioth.debian.org/projects/glibc-bsd/

Petr




-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/pine.lnx.4.44.1003210904370.3081-100...@enigma.ys.cz



Re: porting userland ppp to kfreebsd

2010-03-21 Thread Werner Koch
On Sun, 21 Mar 2010 01:28, anar...@koumbit.org said:
 As far as I know, there's currently no possibility of doing PPP or PPPoE
 in Debian GNU/kFreeBSD. I'd like to see that fixed.

I am using PPP for quite some time now with my UMTS stick.  The gotcha
is that the lock directory is a different one and thus you need to
create it first.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87634pyamd@vigenere.g10code.de



Re: porting userland ppp to kfreebsd

2010-03-21 Thread The Anarcat
On Sun, Mar 21, 2010 at 04:09:46PM +0100, Werner Koch wrote:
 On Sun, 21 Mar 2010 01:28, anar...@koumbit.org said:
  As far as I know, there's currently no possibility of doing PPP or PPPoE
  in Debian GNU/kFreeBSD. I'd like to see that fixed.
 
 I am using PPP for quite some time now with my UMTS stick.  The gotcha
 is that the lock directory is a different one and thus you need to
 create it first.

Could you clarify this? Are you saying I duplicated existing work and
that you already had userland ppp working? Is it with upstream's
usr.sbin/ppp?

How about PPPoE? Anybody managed to do some of that?

A.

-- 
Antoine Beaupré
Réseau Koumbit Networks
+1.514.387.6262


signature.asc
Description: Digital signature


Re: porting userland ppp to kfreebsd

2010-03-21 Thread The Anarcat
On Sun, Mar 21, 2010 at 09:05:23AM +0100, Petr Salinger wrote:
  As far as I know, there's currently no possibility of doing PPP or PPPoE
  in Debian GNU/kFreeBSD. I'd like to see that fixed.
 
  So I've started trying to port the userland ppp daemon from FreeBSD 8.0:
 ...
 
  I guess the next step is to make a package out of this thing... Any
  suggestions on how I should proceed? I'm generally familiar with Debian
  packaging, but I wonder if there are any kfreebsd-specific tricks,
  especially since here there's no upstream tarball and a good few patches
  (I'm not used to the new quilt stuff...)
 
  I would also appreciate help on how to manage a package through SVN or
  SVK.
 
 We have shared SVN on alioth, see
 http://svn.debian.org/wsvn/glibc-bsd/trunk/?op=log
 
 In the case of ppp, the source is already included
 in freebsd-utils source package ;-)

I don't see it here:

http://svn.debian.org/wsvn/glibc-bsd/trunk/freebsd-utils/#_trunk_freebsd-utils_

... am I missing something?

 You could start with apt-get get source freebsd-utils,
 add your patch, alter debian/rules, ...
 
 The r/w access to our SVN can be obtained by joining via
 https://alioth.debian.org/projects/glibc-bsd/

Oh I see... Hum. Seems to me that mixes up way too many things, and it
would be useful to separate some of those in individual packages.

I have filed an ITP for ppp before seeing your response:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574789

I have also started working on an individual debian package, again
before learning about this repository.

Seems to me we should separate those things in multiple packages. Does
that make sense to you guys?

Thanks for the feedback,

A.

-- 
Antoine Beaupré
Réseau Koumbit Networks
+1.514.387.6262


signature.asc
Description: Digital signature


Re: porting userland ppp to kfreebsd

2010-03-20 Thread Ludovic Courtès
Hi,

The Anarcat anar...@koumbit.org writes:

 +#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)

Only the last one makes sense: ‘__linux__’ is for the Linux kernel and
‘__GNU__’ is for GNU (aka. GNU/Hurd).

Thanks,
Ludo’.


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87ociisdg6@gnu.org