Re: Follow a port of a specific major verion

2011-02-08 Thread Mikael Bak
Hi Paul,

Paul Macdonald wrote:
 On 07/02/2011 16:44, Mikael Bak wrote:
 So my question is: How can I make the ports system act as if I had
 installed Postfix like this?:

 cd /usr/ports/mail/postfix27
 make install clean

 Is there a way to tell the ports database to follow and older version
 of Postfix without rebuild the entire port again?

 
 I'm pretty sure you can't do this, *unless* there's someone actually
 tracking  a seperate port on that version. ( i didn't check but it
 doesn't sound like it from your post).
 
 To stop ports tree updates from clobbering your v27, you'd need to
 exclude this from your cvssup or whatever you use to update your tree.
 
 portdowngrade will get you back to an arbitrary older version if your
 tree already has the newer version.
 

I realize I perhaps should have told you how I keep my ports tree
up-to-date.

I have this in my /etc/crontab
# Update Portsnap INDEX
0   3   *   *   *   rootportsnap -I cron update  
pkg_version -vIl ''

This sends me an email if a port has been updated.
If I want to upgrade my ports I do:

# portsnap fetch update
# portmaster -aD  portmaster --clean-distfiles-all

This is why I *need* to tell my ports database to use/track an earlier
version of Postfix (in this case /usr/ports/mail/postfix27).

After reading the description of portdowngrade I don't think that's the
tool I want. Correct me if I'm wrong.

 Paul.
 

TIA,
Mikael

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Mikael Bak
Hi Lowell,

Lowell Gilbert wrote:
 Mikael Bak m...@inbox.lv writes:
 
 Hi list,

 I searched for this in the handbook, but without any hits. Google gave
 me nada too.

 I have a machine running FreeBSD 7.3 and Postfix 2.7.2 installed from
 ports. Unfortunately when I installed Postfix I did this:

 cd /usr/ports/mail/postfix
 make install clean

 Now when Postfix 2.8.0 is released the above path in the ports tree
 points to a Postfix version I do not yet want to install. I would like
 to follow Postfix 2.7.x for a while.

 So my question is: How can I make the ports system act as if I had
 installed Postfix like this?:

 cd /usr/ports/mail/postfix27
 make install clean

 Is there a way to tell the ports database to follow and older version
 of Postfix without rebuild the entire port again?
 
 You can edit the package database by hand, but it will probably take a
 lot less of your time to build the whole port again.  [More of the
 computer's time, but that's generally a much cheaper resource.]
 

Thanks for the info.
I was not aware I could just install the same software over the other
without first removing it. Shouldn't I do that? I would not want to end
up with a broken software or a broken ports database.

If I would set my mind on editing the ports database by hand, where
should I look for it?

TIA,
Mikael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Paul Macdonald

On 08/02/2011 10:33, Mikael Bak wrote:

Hi Paul,

Paul Macdonald wrote:

On 07/02/2011 16:44, Mikael Bak wrote:

So my question is: How can I make the ports system act as if I had
installed Postfix like this?:

cd /usr/ports/mail/postfix27
make install clean

Is there a way to tell the ports database to follow and older version
of Postfix without rebuild the entire port again?


I'm pretty sure you can't do this, *unless* there's someone actually
tracking  a seperate port on that version. ( i didn't check but it
doesn't sound like it from your post).

Aplogies, i'd misread your question, and there is a seperate branch in 
/usr/ports/mail/postfix27,


I'm not sure how you'd fool the ports mgt tools in the way you want, 
would it not be easier just to deinstall the port and do a make install 
in postfix27?

(others may know a 'better' way)

Paul.
-

Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07534206249
e: p...@ifdnrg.com
w: http://www.ifdnrg.com
-
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Mike Clarke
On Tuesday 08 February 2011, Mikael Bak wrote:

 I was not aware I could just install the same software over the other
 without first removing it. Shouldn't I do that? I would not want to
 end up with a broken software or a broken ports database.

If in doubt you could create a backup package first with pkg_create -b 
pkg-name. That would give you a fair chance of rolling back to the 
previous version if things went pear-shaped.

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Mikael Bak
Paul Macdonald wrote:
 On 08/02/2011 10:33, Mikael Bak wrote:
 Hi Paul,

 Paul Macdonald wrote:
 On 07/02/2011 16:44, Mikael Bak wrote:
 So my question is: How can I make the ports system act as if I had
 installed Postfix like this?:

 cd /usr/ports/mail/postfix27
 make install clean

 Is there a way to tell the ports database to follow and older version
 of Postfix without rebuild the entire port again?

 I'm pretty sure you can't do this, *unless* there's someone actually
 tracking  a seperate port on that version. ( i didn't check but it
 doesn't sound like it from your post).

 Aplogies, i'd misread your question, and there is a seperate branch in
 /usr/ports/mail/postfix27,
 
 I'm not sure how you'd fool the ports mgt tools in the way you want,
 would it not be easier just to deinstall the port and do a make install
 in postfix27?
 (others may know a 'better' way)
 

Hi Paul,

Yep, it seem like that's the way to go. I was just absolutely sure that
there is some better/faster/easier way than just remove the port and
reinstall it.

This *should* be a quite common case. It's is not always possible to
install the newest versions of a software.

Thanks all for the suggestions!

Mikael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Lowell Gilbert
Mikael Bak m...@inbox.lv writes:

 I was not aware I could just install the same software over the other
 without first removing it. Shouldn't I do that? I would not want to end
 up with a broken software or a broken ports database.

No, you want to remove the old port before installing the new one.  But
you can *build* the new port before removing the old one.

 If I would set my mind on editing the ports database by hand, where
 should I look for it?

/var/db/pkg (but as I said earlier, it's not worthwhile)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Mikael Bak
Lowell Gilbert wrote:
 Mikael Bak m...@inbox.lv writes:
 
 I was not aware I could just install the same software over the other
 without first removing it. Shouldn't I do that? I would not want to end
 up with a broken software or a broken ports database.
 
 No, you want to remove the old port before installing the new one.  But
 you can *build* the new port before removing the old one.
 

Thanks for the clarification!
That will obviously minimize the downtime. Much appreciated!


 If I would set my mind on editing the ports database by hand, where
 should I look for it?
 
 /var/db/pkg (but as I said earlier, it's not worthwhile)
 

Ok. I will probably remove the port and reinstall it, as suggested by
you and by others.

Thanks to everyone who answered. Problem solved. Thread closed.

Mikael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-08 Thread Marco Steinbach

Lowell Gilbert wrote on 08.02.2011 12:59:

Mikael Bak m...@inbox.lv writes:


I was not aware I could just install the same software over the other
without first removing it. Shouldn't I do that? I would not want to end
up with a broken software or a broken ports database.


No, you want to remove the old port before installing the new one.  But
you can *build* the new port before removing the old one.


The OP should keep an eye on dependencies, though.  A good foot-shooter 
is updating one port, and then, during updating a different port having 
to install a newer version of a port they both depend on.


Which might require a rebuild of the original port, resulting in having, 
at best, double-downtime of a service.


Incidentially, I ran into this just right now, so I felt compelled to 
state what might seem obious :)


[...]

MfG CoCo
PS: I seem to remember devel/pcre being a good candidate for that with 
postfix and some other ports.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Follow a port of a specific major verion

2011-02-07 Thread Mikael Bak
Hi list,

I searched for this in the handbook, but without any hits. Google gave
me nada too.

I have a machine running FreeBSD 7.3 and Postfix 2.7.2 installed from
ports. Unfortunately when I installed Postfix I did this:

cd /usr/ports/mail/postfix
make install clean

Now when Postfix 2.8.0 is released the above path in the ports tree
points to a Postfix version I do not yet want to install. I would like
to follow Postfix 2.7.x for a while.

So my question is: How can I make the ports system act as if I had
installed Postfix like this?:

cd /usr/ports/mail/postfix27
make install clean

Is there a way to tell the ports database to follow and older version
of Postfix without rebuild the entire port again?

TIA,
Mikael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-07 Thread Paul Macdonald

On 07/02/2011 16:44, Mikael Bak wrote:

So my question is: How can I make the ports system act as if I had
installed Postfix like this?:

cd /usr/ports/mail/postfix27
make install clean

Is there a way to tell the ports database to follow and older version
of Postfix without rebuild the entire port again?



I'm pretty sure you can't do this, *unless* there's someone actually 
tracking  a seperate port on that version. ( i didn't check but it 
doesn't sound like it from your post).


To stop ports tree updates from clobbering your v27, you'd need to 
exclude this from your cvssup or whatever you use to update your tree.


portdowngrade will get you back to an arbitrary older version if your 
tree already has the newer version.


Paul.



TIA,
Mikael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



--
-
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07534206249
e: p...@ifdnrg.com
w: http://www.ifdnrg.com
-
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
-


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Follow a port of a specific major verion

2011-02-07 Thread Lowell Gilbert
Mikael Bak m...@inbox.lv writes:

 Hi list,

 I searched for this in the handbook, but without any hits. Google gave
 me nada too.

 I have a machine running FreeBSD 7.3 and Postfix 2.7.2 installed from
 ports. Unfortunately when I installed Postfix I did this:

 cd /usr/ports/mail/postfix
 make install clean

 Now when Postfix 2.8.0 is released the above path in the ports tree
 points to a Postfix version I do not yet want to install. I would like
 to follow Postfix 2.7.x for a while.

 So my question is: How can I make the ports system act as if I had
 installed Postfix like this?:

 cd /usr/ports/mail/postfix27
 make install clean

 Is there a way to tell the ports database to follow and older version
 of Postfix without rebuild the entire port again?

You can edit the package database by hand, but it will probably take a
lot less of your time to build the whole port again.  [More of the
computer's time, but that's generally a much cheaper resource.]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org