10caa How do I install a specific version using ports - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old February 22nd, 2010, 15:46
osax osax is offline
Junior Member
 
Join Date: Feb 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I install a specific version using ports

How do I install a specific version using ports?
Reply With Quote
  #2  
Old February 22nd, 2010, 15:51
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,824
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

That depends on whether the specific version is in the current ports tree or not.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old February 24th, 2010, 13:02
sverreh's Avatar
sverreh sverreh is offline
Member
 
Join Date: Nov 2008
Location: Norway
Posts: 124
Thanks: 25
Thanked 14 Times in 13 Posts
Default

If you don't want the latest version from ports, try portdowngrade. It is in ports:

/usr/ports/ports-mgmt/portdowngrade

This program will present a list of older versions of the port you specify, and you can select the version you prefer.
Reply With Quote
  #4  
Old February 24th, 2010, 16:07
achix's Avatar
achix achix is offline
Member
 
Join Date: Nov 2008
Location: Greece, Balkan Federation
Posts: 223
Thanks: 4
Thanked 14 Times in 13 Posts
Default

Quote:
Originally Posted by osax View Post
How do I install a specific version using ports?
Just edit the Makefile and maybe adjust distinfo. You might consider dealing with the various patches in files as well. In the end you might make a port of your own, or just download and compile the source by your own. (like in the old linux days, download, ./configure, make, make install)
Reply With Quote
  #5  
Old February 25th, 2010, 08:06
osax osax is offline
Junior Member
 
Join Date: Feb 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ye old fasion way...

Compiling from source is a good idea,


I'm trying to setup puppet, but puppet only supports
pkg but without version-ing.

Puppet works great on RPM & Deb system, but is proving more
difficult on freebsd.

Any puppet guru's around here, that would like to shed some light
on the subject?
Reply With Quote
  #6  
Old February 25th, 2010, 14:45
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,386
Thanks: 60
Thanked 145 Times in 130 Posts
Default

If you are referring to some "--versioning" type
parameter not supported by a port, *once* (this
is vague, maybe incorrect, but I think it is in
another post...
the general idea:
Code:
make extract
make patch
cd work
touch .configure_done.puppet.usr_local
cd puppet-[number]
sh ./configure --help
#write them all down
sh ./configure --this --that # etc per Makefile etc
cd /usr/ports/[somewhere]/puppet
make build
cd work/src #or...
ldd ./puppet #if applicable
# tests okay?
cd /usr/ports/[somewhere]/puppet
make install
Retyped from another thread I made in
"installing... " section. Typos or
errors or not-applicable maybe...
Reply With Quote
  #7  
Old February 26th, 2010, 09:29
osax osax is offline
Junior Member
 
Join Date: Feb 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not exactly what I had in mind.

Puppet is running fine & have no problem getting it working.

I want to tell puppet to install apache-2.2.1 for example, but the ports tree only holds apache-2.2.14

Pkg won't work, because, well I guess we all know pkg sucks.
Reply With Quote
  #8  
Old February 26th, 2010, 13:06
sverreh's Avatar
sverreh sverreh is offline
Member
 
Join Date: Nov 2008
Location: Norway
Posts: 124
Thanks: 25
Thanked 14 Times in 13 Posts
Default

Did you try portdowngrade? I think you can then easily downgrade from apache-2.2.14 to any older version you like.
Reply With Quote
  #9  
Old February 26th, 2010, 13:17
achix's Avatar
achix achix is offline
Member
 
Join Date: Nov 2008
Location: Greece, Balkan Federation
Posts: 223
Thanks: 4
Thanked 14 Times in 13 Posts
Default

In that case, you should hack Puppet to go and look for the Makefile in question all the past CVS (or SVN) entries to see in which version/date/tag does the particular requested version (e.g. 2.2.1 in the above example) exist in.
E.g. take a look at http://www.freebsd.org/cgi/cvsweb.cg...che22/Makefile
(in your case you will be using e.g. CVS protocol inside of Puppet)
you see that the Makefile that comes close to what you want (there is no 2.2.1 port) is:
http://www.freebsd.org/cgi/cvsweb.cg...e=text%2Fplain
You then grab the date "Wed May 10 19:47:15 2006 UTC" and you do a CVS update or checkout according to this date.
This logic will make your Puppet travel back in time when apache-2.2.2 was just released.

PS
What do you mean pkg sucks?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] cyrus-sasl-2.1.23 cannot install: unknown LIBTOOL version: 22. farooqhussain Installation and Maintenance of FreeBSD Ports or Packages 12 August 9th, 2011 12:28
Deny specific hosts in a pf ruleset? flx- Firewalls 5 December 16th, 2009 02:14
Which version to install? shawnb Installing & Upgrading 2 May 16th, 2009 22:32
Ports install - not from local ports collection Stamps Installation and Maintenance of FreeBSD Ports or Packages 7 May 15th, 2009 15:19
Throttling specific users behind nat with PF Pushrod Firewalls 2 February 6th, 2009 03:38


All times are GMT +1. The time now is 09:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0