10caa
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How do I install a specific version using ports?
|
|
#2
|
||||
|
||||
|
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. <--- |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
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)
|
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
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 "installing... " section. Typos or errors or not-applicable maybe... |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
Did you try portdowngrade? I think you can then easily downgrade from apache-2.2.14 to any older version you like.
|
|
#9
|
||||
|
||||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |