From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Tue, 26 Nov 2002 04:41:16 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 380 ************************************************** Monday 25 November 2002 Number 380 ************************************************** Subjects for today 1 Re: Pine 4.50 : John Poltorak 2 RANLIB.exe : IanM" 3 Re: RANLIB.exe : IanM" 4 Re: Pine 4.50 : Nicholas Sheppard 5 Re: Ghoscript - Russels's answer : Adrian Gschwend" 6 Re: Pine 4.50 : John Poltorak 7 Re: Pine 4.50 : Nicholas Sheppard 8 New Squid : John Poltorak **= Email 1 ==========================** Date: Tue, 26 Nov 2002 00:04:30 +0000 From: John Poltorak Subject: Re: Pine 4.50 On Tue, Nov 26, 2002 at 08:23:57AM +1100, Nicholas Sheppard wrote: > On Mon, 25 Nov 2002, John Poltorak wrote: > > > > * The IMAP and POP servers now compile, but getting them to do > > > anything useful is still an adventure. > > > > I'd love to get an IMAP server working. Has anyone tried this out yet? > > Most of the testing I did was using the POP3 server since I know the > POP3 protocol a lot better than I know IMAP. It seems to work as far as > it goes but there is a problem in that the servers expect to be launched > from a Unix-style inetd and I haven't found any way to simulate this > under OS/2; Have you tried the OS/2 port of BSD INETD availabable from Hobbes? IMV it's much better than IBM's version. I use it to launch POP3D with the following line in inetd.cnf:- pop3 stream tcp nowait root c:\usr\sbin\pop3d -i -s %s > until I do they can't be made to listen for connections. If > anyone knows how to do it, I'd love to hear from them, otherwise I might > have to resort to some ugly #ifdefs. > > Nicholas S. > > > |\ Location: Wollongong, Australia | Nothing astonishes people so much as > |\ E-mail: nps at zeta.org.au | common sense and plain dealing. > | WWW: http://www.zeta.org.au/~nps | > | ---> Cynicism & Negativity | -- John **= Email 2 ==========================** Date: Tue, 26 Nov 2002 00:10:41 +1100 (EDT) From: "IanM" Subject: RANLIB.exe Hi Anyone know where ranlib.exe was from ? Antonio uses it in his port of BIND, which I'm setting up to try to update the package to v8.2.7 Cheers IanM http://www.os2site.com/ WINERR 026 - REMOVING YOUR LEAST-FAVORITE DATA TO MAKE ROOM FOR COOL ICONS **= Email 3 ==========================** Date: Tue, 26 Nov 2002 00:33:55 +1100 (EDT) From: "IanM" Subject: Re: RANLIB.exe >Anyone know where ranlib.exe was from ? Typical isnt it, as soon as you press send, you remember were it is, its part of gnuutils. Cheers IanM http://www.os2site.com/ Never play leapfrog with a unicorn. **= Email 4 ==========================** Date: Tue, 26 Nov 2002 08:23:57 +1100 (EST) From: Nicholas Sheppard Subject: Re: Pine 4.50 On Mon, 25 Nov 2002, John Poltorak wrote: > > * The IMAP and POP servers now compile, but getting them to do > > anything useful is still an adventure. > > I'd love to get an IMAP server working. Has anyone tried this out yet? Most of the testing I did was using the POP3 server since I know the POP3 protocol a lot better than I know IMAP. It seems to work as far as it goes but there is a problem in that the servers expect to be launched from a Unix-style inetd and I haven't found any way to simulate this under OS/2; until I do they can't be made to listen for connections. If anyone knows how to do it, I'd love to hear from them, otherwise I might have to resort to some ugly #ifdefs. Nicholas S. |\ Location: Wollongong, Australia | Nothing astonishes people so much as |\ E-mail: nps at zeta.org.au | common sense and plain dealing. | WWW: http://www.zeta.org.au/~nps | | ---> Cynicism & Negativity | **= Email 5 ==========================** Date: Tue, 26 Nov 2002 10:40:04 +0100 (CET) From: "Adrian Gschwend" Subject: Re: Ghoscript - Russels's answer On Mon, 25 Nov 2002 17:08:13 +0000, John Poltorak wrote: >Sounds great! > >I'm looking forward to your port :-).... hehe I won't do that alone :-) Plenty of other important stuff on my todo list but if someone joins and Russel released MFC code we might have a look at it cu Adrian -- Adrian Gschwend at netlabs.org ktk [a t] netlabs.org ------- Free Software for OS/2 and eCS http://www.netlabs.org **= Email 6 ==========================** Date: Tue, 26 Nov 2002 11:10:23 +0000 From: John Poltorak Subject: Re: Pine 4.50 On Tue, Nov 26, 2002 at 11:52:40AM +1100, Nicholas Sheppard wrote: > On Tue, 26 Nov 2002, John Poltorak wrote: > > > > it goes but there is a problem in that the servers expect to be launched > > > from a Unix-style inetd and I haven't found any way to simulate this > > > under OS/2; > > > > Have you tried the OS/2 port of BSD INETD availabable from Hobbes? > > > > IMV it's much better than IBM's version. I use it to launch POP3D with the > > following line in inetd.cnf:- > > > > pop3 stream tcp nowait root c:\usr\sbin\pop3d -i -s %s > > It's been a while since I looked at that port but I believe the %s here > represents the socket number? Passing the socket number on the command > line like this is an OS/2-ism. The Unix method is to dup() the socket > to standard input and output, and this is what the University of Washington > servers expect. I'm not sure how they do it under Windows but I'll have > a look over the next week to see if there is a solution there. The pop3d above is from:- http://hobbes.nmsu.edu/pub/os2/apps/internet/mail/server/ipop3d10.zip and it is derived from Linux sources. The OS/2 source is included. The socket handling seems to be done in main.c which contains:- int main( int argc, char *argv[]) { int svr_state = SVR_LISTEN_STATE; /* State of POP3 server */ char cli_buf[CLI_BUFSIZ]; /* Buffer for client cmds */ int socket_fd; socket_fd = parse_opts(argc, argv); if(socket_fd > 0) { socket_fd = _impsockhandle(socket_fd, 0); if (socket_fd < 0) fail(FAIL_SOCKET_ERROR); dup2(socket_fd, 0); dup2(socket_fd, 1); close(socket_fd); } Is this the relevant part for interfacing with INETD? > Nicholas S. > > -- John **= Email 7 ==========================** Date: Tue, 26 Nov 2002 11:52:40 +1100 (EST) From: Nicholas Sheppard Subject: Re: Pine 4.50 On Tue, 26 Nov 2002, John Poltorak wrote: > > it goes but there is a problem in that the servers expect to be launched > > from a Unix-style inetd and I haven't found any way to simulate this > > under OS/2; > > Have you tried the OS/2 port of BSD INETD availabable from Hobbes? > > IMV it's much better than IBM's version. I use it to launch POP3D with the > following line in inetd.cnf:- > > pop3 stream tcp nowait root c:\usr\sbin\pop3d -i -s %s It's been a while since I looked at that port but I believe the %s here represents the socket number? Passing the socket number on the command line like this is an OS/2-ism. The Unix method is to dup() the socket to standard input and output, and this is what the University of Washington servers expect. I'm not sure how they do it under Windows but I'll have a look over the next week to see if there is a solution there. Nicholas S. **= Email 8 ==========================** Date: Tue, 26 Nov 2002 21:15:12 +0000 From: John Poltorak Subject: New Squid There's a new release of SQUID (v2.5 STABLE1) at Hobbes. -- John