Re: postfix connection

2004-03-16 Thread Mike's List

On Tue, 16 Mar 2004, Michael Schloh von Bennewitz wrote:

 I tried out pine for the first time today. It seems to connect to whatever
 is listening to port 25 (postfix, netcat, etcetera), but only if its
 configuration is correct.
 
Now I'm wondering if it's postfix, I can telnet to port 25 but I can't send
any commands.  Shouldn't I be able to type EHLO or HELP, etc. once
connected via telnet to port 25?

 To configure pine, enter its mail menu and select the 'SETUP' submenu.
 Choose 'C' for 'Config:'. Edit the 'smtp-server' item to your SMTP server so
 that it reads 'localhost' and try to send an email with pine again.

Yes, I tried localhost, actual IP, full domain name.
 
 As long as your postfix server is listening correctly (try telnet again to
 check this), then I think pine will send correctly.

I might remove the binary package and reinstall the binary package.
I'm using mainly binary packages now instead compiling from source.

Regards,


- Mike

__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


rpm -e

2004-03-16 Thread Mike's List
bash-2.05b# openpkg rpm --erase postfix
error: Failed dependencies:
MTA is needed by (installed) qpopper-4.0.5-2.0.0
MTA is needed by (installed) pine-4.58L-2.0.0

I've added --force, but rpm -e doesn't seems to work.  Is there a way to
remove a package (force) even when dependencies failed?  I want to remove
postfix binary package and rebuild it from source.


- Mike


__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: rpm -e

2004-03-16 Thread Steffen Weinreich


--On Dienstag, 16. März 2004 13:26 -0600 Mike's List [EMAIL PROTECTED] 
wrote:

bash-2.05b# openpkg rpm --erase postfix
error: Failed dependencies:
MTA is needed by (installed) qpopper-4.0.5-2.0.0
MTA is needed by (installed) pine-4.58L-2.0.0
I've added --force, but rpm -e doesn't seems to work.  Is there a way to
remove a package (force) even when dependencies failed?  I want to remove
postfix binary package and rebuild it from source.


openpkg rpm --erase --nodeps postfix

should work...

cheerio
  Steve
--
Steh auf wenn Du am Boden bist! Steh auf auch wenn Du unten liegst !
Steh auf, es wird schon irgendwie weitergeh'n. -- DtH, 2002
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: postfix connection

2004-03-16 Thread Steffen Weinreich


--On Dienstag, 16. März 2004 12:36 -0600 Mike's List [EMAIL PROTECTED] 
wrote:

I tried out pine for the first time today. It seems to connect to
whatever is listening to port 25 (postfix, netcat, etcetera), but only
if its configuration is correct.
Now I'm wondering if it's postfix, I can telnet to port 25 but I can't
send any commands.  Shouldn't I be able to type EHLO or HELP, etc. once
connected via telnet to port 25?
Yes, you should... did you try to bind the postfix on 0.0.0.0? I´m not sure 
but I think a I had an similar issue which has been solved not to bind to a 
specific IP but on all IP´s...

cheerio
  Steve
--
Steh auf wenn Du am Boden bist! Steh auf auch wenn Du unten liegst !
Steh auf, es wird schon irgendwie weitergeh'n. -- DtH, 2002
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


SUMMARY: rpm -e

2004-03-16 Thread Mike's List

Thanks to: Bill Campbell, Steffen Weinreich, and Thomas Lotterer for
the quick replies.  The below command works.

In addition, you can rebuild the package and do an rpm -U --force to
do the new installation.  I decided to remove/reinstall to be safe.

openpkg rpm --erase --nodeps postfix

Regards,


- Mike

-- original message --

bash-2.05b# openpkg rpm --erase postfix
error: Failed dependencies:
MTA is needed by (installed) qpopper-4.0.5-2.0.0
MTA is needed by (installed) pine-4.58L-2.0.0

I've added --force, but rpm -e doesn't seems to work.  Is there a way to
remove a package (force) even when dependencies failed?  I want to remove
postfix binary package and rebuild it from source.


- Mike



__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


how to keep rpm-tmp.*

2004-03-16 Thread David M. Fetter
How do I get the rpm rebuilds to keep the rpm-tmp.* file around so I can
look for information on why something failed?  It looks like when I do a
rebuild even if it fails the rpm-tmp.* file is automatically removed
before I have a chance to review it.

-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu

__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: postfix connection

2004-03-16 Thread Mike's List

On Tue, 16 Mar 2004, Steffen Weinreich wrote:

 --On Dienstag, 16. März 2004 12:36 -0600 Mike's List [EMAIL PROTECTED] 
 wrote:
 
  I tried out pine for the first time today. It seems to connect to
  whatever is listening to port 25 (postfix, netcat, etcetera), but only
  if its configuration is correct.
 
  Now I'm wondering if it's postfix, I can telnet to port 25 but I can't
  send any commands.  Shouldn't I be able to type EHLO or HELP, etc. once
  connected via telnet to port 25?
 
 Yes, you should... did you try to bind the postfix on 0.0.0.0? I´m not sure 
 but I think a I had an similar issue which has been solved not to bind to a 
 specific IP but on all IP´s...

Are you referring to the smtp_bind_address = 192.168.2.3 parameter?
It seems to be a bit better, PINE/MUTT seems to send e-mail but the
local recipient never gets it.  mailq displays list of mails but it's
not delivered, something along the line of:

825ACCF46   422 Tue Mar 16 09:46:11  [EMAIL PROTECTED]
(connect to 192.168.2.3[192.168.2.3]: read timeout)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

I'm attempting to get mail to work locally w/in the server 192.168.2.3
and not outside onto the Net or such.

Regards,


- Mike

__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: how to keep rpm-tmp.*

2004-03-16 Thread Thomas Lotterer
On Tue, Mar 16, 2004, David M. Fetter wrote:

 How do I get the rpm rebuilds to keep the rpm-tmp.* file around so I can
 look for information on why something failed?  It looks like when I do a
 rebuild even if it fails the rpm-tmp.* file is automatically removed
 before I have a chance to review it.
 
David,
the --rebuild is essentially a fetch (--fetch foo.src.rpm), install
SRPM into %{l_prefix}/RPM/PKG/foo (-Uvh foo.src.rpm), cd to that
directory and build binary (-bb foo.spec). You can do these steps
manually and (re)gain control over the build process between each
step. The build binary instruction is even a whole bunch of steps
which can be executed individually. See package life cycle at
http://www.openpkg.org/doc/slideset/openpkg.html/slide-015-l.html

Having the SRPM installed aka unpacked you can do the %prep (usually
tar and patch) and %build (usually configure and make) step executing
a rpm -bc foo.spec. If you change something in the temp directory to
give it a try and want to repeat the %build step without executing the
(destructive!) %prep step again, use rpm -bc --short-circuit foo.spec.

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: how to keep rpm-tmp.*

2004-03-16 Thread Tres Seaver
David M. Fetter wrote:
How do I get the rpm rebuilds to keep the rpm-tmp.* file around so I can
look for information on why something failed?  It looks like when I do a
rebuild even if it fails the rpm-tmp.* file is automatically removed
before I have a chance to review it.
Don't use --rebuild;  instead, install the src.rpm and then build from 
it directly.  E.g.:

 $ bin/openpkg rpm -Uvh 
http://repo.example.com/openpkg/release/2.0/SRC/foo-1.0-2.0.0.src.rpm
 $ bin/openpkg rpm -ba RPM/SRC/foo/foo.spec
Tres.
--
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


gettext problem on rhel3

2004-03-16 Thread David M. Fetter
I'm getting an error when attempting to rebuild gettext and I'm not sure
why it's failing.  At this point, I have done an RPM comparison between
my server and the OS requirements listed on
http://cvs.openpkg.org/getfile?f=openpkg-re/osprereq.txt.  At first I
had many more packages so I trimmed them down and now the system is an
exact match as far as the rpm's that are installed.  I removed and
rebuilt all of the packages to be sure none of them came up with any
system libraries that I may have removed as well.  Yet, I'm still
getting this error:

/bin/sh ../libtool --mode=link /usr/local/bin/cc  -O2 -pipe   -o
gettext  gettext-gettext.o ../lib/libgrt.a ../intl/libintl.la
mkdir .libs
chmod 777 .libs
/usr/local/bin/cc -O2 -pipe -o gettext gettext-gettext.o 
../lib/libgrt.a ../intl/.libs/libintl.a -lc
../intl/.libs/libintl.a(loadmsgcat.o)(.text+0x427): In function
`_nl_init_domain_conv':
: undefined reference to `locale_charset'
collect2: ld returned 1 exit status
make[3]: *** [gettext] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
error: Bad exit status from /usr/local/RPM/TMP/rpm-tmp.98434 (%build)

Also, if I install the source package and try to rebuild it using
`openpkg rpm -bc gettext.spec` it still removes the rpm-tmp.* file so I
can't look at it.  It doesn't remove it when I just execute the '-bp'
but that succeeds.  The failure is at the '-bc'.  Can anyone give me
some assistance please?  Thanks in advance.

-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu

__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Rebuild Apache with options

2004-03-16 Thread Mike's List
How do I build Apache with support for PHP/MySQL/IMAP and so on?
Currently, I'm doing the following to install packages:

openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build

But I need more options for some of the software, my server platform
is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail
system.

Some of the instructions for Apache are as follows:

./configure --with-apache=source/apache1.3.12 \
--with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then

./configure --activate-module=src/modules/php4/libphp4.a

I need some of references and howtos for openpkg advance build features.
I've installed Apache binary package, but there's no PHP support built in?
as Squirrelmail does not displays the .php extension.

Regards,


- Mike



__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Rebuild Apache with options

2004-03-16 Thread David M. Fetter
Do this:

1. openpkg rpm -ivh apache*src.rpm
2. vi %prefix/RPM/SRC/apache/apache.spec
3. make appropriate configure changes/additions
4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec
5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm
Mike's List wrote:
How do I build Apache with support for PHP/MySQL/IMAP and so on?
Currently, I'm doing the following to install packages:
openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build

But I need more options for some of the software, my server platform
is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail
system.
Some of the instructions for Apache are as follows:

./configure --with-apache=source/apache1.3.12 \
--with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then
./configure --activate-module=src/modules/php4/libphp4.a

I need some of references and howtos for openpkg advance build features.
I've installed Apache binary package, but there's no PHP support built in?
as Squirrelmail does not displays the .php extension.
Regards,

- Mike



__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]
--
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Rebuild Apache with options

2004-03-16 Thread David M. Fetter
Oh, and if you want more detail you can look at this doc I wrote on 
building RPM's.  It wasn't originally meant for OpenPKG specifically but 
it still is the same concept.

http://www.fetterconsulting.com/index.php?name=solarisrpm

Mike's List wrote:
How do I build Apache with support for PHP/MySQL/IMAP and so on?
Currently, I'm doing the following to install packages:
openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build

But I need more options for some of the software, my server platform
is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail
system.
Some of the instructions for Apache are as follows:

./configure --with-apache=source/apache1.3.12 \
--with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then
./configure --activate-module=src/modules/php4/libphp4.a

I need some of references and howtos for openpkg advance build features.
I've installed Apache binary package, but there's no PHP support built in?
as Squirrelmail does not displays the .php extension.
Regards,

- Mike



__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]
--
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Rebuild Apache with options

2004-03-16 Thread Mike's List

On Tue, 16 Mar 2004, David M. Fetter wrote:

 Do this:
 
 1. openpkg rpm -ivh apache*src.rpm

done

 2. vi %prefix/RPM/SRC/apache/apache.spec

I'm green with this options stuff but there are tons of lines with
#   packages options and many more lines of code, note, I'm not a
programmer/developer.

#   package options (suexec related)
#   package options (suphp related)
#   package options (additionally used Apache modules; can be enabled
without thinking)
#   package options (additionally used Apache modules; you have to know
what you do)
#   fixing implicit inter-module dependencies and correlations

 3. make appropriate configure changes/additions

I guess I need to know where to make the appropriate configurations.
I attempted to get to your website for reference but browser just hang.

 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec
 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm
 
 
 Mike's List wrote:
  How do I build Apache with support for PHP/MySQL/IMAP and so on?
  Currently, I'm doing the following to install packages:
  
  openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build
  
  But I need more options for some of the software, my server platform
  is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail
  system.
  
  Some of the instructions for Apache are as follows:
  
  ./configure --with-apache=source/apache1.3.12 \
  --with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then
  
  ./configure --activate-module=src/modules/php4/libphp4.a
  
  I need some of references and howtos for openpkg advance build features.
  I've installed Apache binary package, but there's no PHP support built in?
  as Squirrelmail does not displays the .php extension.
  
  Regards,
  
  
  - Mike
  
  
  
  __
  The OpenPKG Projectwww.openpkg.org
  User Communication List  [EMAIL PROTECTED]
  
 
 -- 
 David M. Fetter - UNIX Systems Administrator
 Portland State University - www.oit.pdx.edu
 
 __
 The OpenPKG Projectwww.openpkg.org
 User Communication List  [EMAIL PROTECTED]
 


__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Rebuild Apache with options

2004-03-16 Thread Michael van Elst
On Tue, Mar 16, 2004 at 07:35:12PM -0800, David M. Fetter wrote:
 Do this:
 
 1. openpkg rpm -ivh apache*src.rpm
 2. vi %prefix/RPM/SRC/apache/apache.spec
 3. make appropriate configure changes/additions
 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec
 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm

Not with OpenPKG.

The OpenPKG spec files have conditional support for many additions
that are activated by defining a macro. E.g.

rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache

will build the apache package with both options included.

-- 
Michael van Elst
Internet: [EMAIL PROTECTED]
A potential Snark may lurk in every tree.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]