How to install ports using old distfiles

I have a FreeBSD 7.1 system with a lot of outdated packages on it. I need to replicate it in a test environment and I don't know what the best way of doing that is. I have installed 7.1 on a new machine and copied the contents of /usr/ports/distfiles from the existing system to it but I'm not sure how to compile all the old software along with the dependencies. Any suggestions would be greatly appreciated.

Thanks! :D

J.
 
FreeBSD 7.1 went End-of-Life in February 2011. It's not supported anymore.

The best way would be to install 7.4 and migrate.
 
SirDice said:
FreeBSD 7.1 went End-of-Life in February 2011. It's not supported anymore.

The best way would be to install 7.4 and migrate.

I understand that 7.1 is not supported anymore but I can't really upgrade the system at this time so I'm wondering if there is a way to use the old distfiles to compile the software.

Thank you! :D

J.
 
If you need a 1:1 copy, try dd.

If not, get a list of installed ports and ... well, start with 1 and work your way down.
 
Iterate through /var/db/pkg/, use pkg_create(1) to create packages from existing (installed) ports/packages. Move those to your "new" server.

When that's done plan the upgrade to 7.4.
 
Back
Top