Adventurer assistance needed OPENBSD/toaster install (easy)

Started by markbnj, February 20, 2004, 02:41:18 PM

Previous topic - Next topic

markbnj

Hi folks. Not a TOTAL linux/unix newbie, I have over 15 yrs on solaris/systemV experience, but new (6 months) to OPENBSD.

SIMPLE question, long winded pre-amble...

OK... So now I'm stuck (haha) on OPENBSD, 3.4 (latest/greatest).
I've  gone Successfully thru step 1(PERL), step 2 (Matt Bundle), and SUCCESSFULLY made the install (as root) for MAIL::Toaster.

Problem comes when I do a make newconf, I get  the following error:
(I am documenting the steps for a OPENBSD install.. hopefully matt will think it good enough to post at some point...)
PS: i get the error as user OR root)
install -d /usr/local/etc
install -b -m 0644 toaster.conf-dist /usr/local/etc/toaster.conf
install: rename: /usr/local/etc/toaster.conf to /usr/local/etc/toaster.conf.old (errno 20): Not a directory
*** Error code 71

Stop in /usr/local/src/Mail-Toaster-3.33 (line 867 of Makefile)
which  shows as the following lines:
859 conf:
   860         install -d /usr/local/etc
   861         install toaster.conf-dist /usr/local/etc
   862         install toaster-watcher.conf-dist /usr/local/etc
   863         install -d /usr/local/etc/apache2
   864         install -b -m 0640 contrib/httpd.conf-2.0.patch /usr/local/etc/apache2
   865
   866 newconf:
   867         install toaster.conf-dist /usr/local/etc
   868         install toaster-watcher.conf-dist /usr/local/etc
   869         install -d /usr/local/etc
   870         install -b -m 0644 toaster.conf-dist /usr/local/etc/toaster.conf
   871         install -b -m 0640 toaster-watcher.conf-dist /usr/local/etc/toaster-watcher.conf
   872         install -d /usr/local/etc/apache2
   873         install -b -m 0640 contrib/httpd.conf-2.0.patch /usr/local/etc/apache2

OK..  NOW HERE"S my SIMPLE?? questions:

A) Can someone tell me /verify that the first occurance of /usr/local/etc
occurs at line 869??  
B) (and that line 869 just executes a "mkdir  -p /usr/local/etc" ??

IF Not, can someone with more perl experience than I have , perhaps point me in the right direction to see what I need to troubleshoot?

(I am looking at another (clean) openbsd system ,and it only has a total of 10 files in the /usr/local directory...

Thanks in advance, and thanks again MATT..

Markbnj @ excite.com [/b]
Note: I also do: Openbsd/nocat.net, as well as Solaris, Mandrake, <no newmandrake  machines anymore> and even (yuch: windoze)

davidcl

I think you're right, and so that's an error in the makefile.

This issue would never come up on FreeBSD, because /usr/local/etc is pretty much guaranteed to exist-- it is the default location for locally installed configuration files, and is created by the OS when you build the system for the first time.

For now, I'd hack the makefile by moving line 869 above line 867, and move on from there.

markbnj

davidcl

I think you're right, and so that's an error in the makefile.


For now, I'd hack the makefile by moving line 869 above line 867, and move on from there.

Matt, will this be something you can note for your next update?

(Is) It is possible that the mkdir -P option (make intermediate directories too, if necessary) may help here?
Mark
Note: I also do: Openbsd/nocat.net, as well as Solaris, Mandrake, <no newmandrake  machines anymore> and even (yuch: windoze)

markbnj

I've been browsing the freebsd site, but havent been able to find the right executable (a gz file?) as the frebsd package for
the mySQL40client and server package.

I've been looking at ftp://ftp.freebsd.org/pub/FreeBSD/" target="_blank">ftp://ftp.freebsd.org/pub/FreeBSD/
and I found the CVS tree, but not where the packages are.

so:
(In openbsd we have a packages tree, and a ports tree,
the packages would be under
ftp://openbsd.secsup.org/pub/openbsd/3.4/packages/" target="_blank">ftp://openbsd.secsup.org/pub/openbsd/3.4/packages/
=

anyway, sorry to be such a prolific composer/imposer here.
Thanks again Mark
Note: I also do: Openbsd/nocat.net, as well as Solaris, Mandrake, <no newmandrake  machines anymore> and even (yuch: windoze)

davidcl


markbnj

Thanks Dave.(is that ok, or onlyDavid?)

Got the links, and downloading now.
Will also start to reformat the "OpenBSD idiot's guide to implemting the FREE-BSD Mail::toaster"
Or.  

So, it says use FreeBSD, are you BRAIN dead? or are you just doing this in a place where you already ONLY run LOTS of OPENBSD boxes...

MarkB
Note: I also do: Openbsd/nocat.net, as well as Solaris, Mandrake, <no newmandrake  machines anymore> and even (yuch: windoze)

markbnj

Where in the config  (toaster-watcher.conf)
is it SPECIFIED on MYSQL version

CAN I use (easlily I might add)  3.23.57??

Mark


Right Now I think I'm going  to try and TRASH it all, and attempt reinstallation.

Of course I'll sleep on it first..

\--and--it appears that since I did most of install NOT as root, that (I wonder)  MIGHT be problem... nah too easy..
Note: I also do: Openbsd/nocat.net, as well as Solaris, Mandrake, <no newmandrake  machines anymore> and even (yuch: windoze)