Installing from PORTS, No internet
Hi,
I want to install Apache 2, PHP and MySQL on my local FreeBSD. Now i am running Apache on linux for local testing, but like to move it to FreeBSD as my servers are FreeBSD, so i can do local testing much better. My problem is slow internet, i can just go to /usr/ports/www/apache2 && make install clean as it takes lot of time to get the distro files downloaded, i don't think i can ever do this with my slow internet, it get disconnected at times. With Linux, i can download Apache or any software in tar.gz and install it on server, how can i do similar in FreeBSD, that is downloading required files manually to /usr/ports/distfiles Where can i get list of required files ? on http://www.freebsd.org/cgi/ports.cgi...-STABLE%2Fi386 the source link says Quote:
Regards, Yujin |
Hi ,
In the apache2 ports and other ports, you usually find these files : *Makefile which contains the build mecanism *distinfo which contains the filenames and their md5 sums. *pkg-descr which contains the description of the package *pkg-plist which contains the list of the files installed by the port Have a look at distinfo file to determine the apache version needed and the filename. At the top of the makefile, you will probably find the sites to download from. Most of the time you have to put files in /usr/ports/distfiles. Sometimes you have to put it in a subdirectory like gnome, etc. When you type make install clean, it will tell you the directory it wants and you just have to create it if it is not just /usr/ports/distfiles but /usr/ports/distfiles/subdirectory. regards. |
Thanks for the info, i have following in Makefile of Apache2.
Quote:
httpd-2.1.4-alpha.tar.gz to install Apache, but i can't find where to download it. From where port system get this fine ? Is this file is available from some FreeBSD mirror or its just downloaded from apache.org ? If i know from where port system get the download url, i can download it myself. I can't find any URL with apache.org in the port file i downloaded. Regards, Yujin |
I downloaded this ports tarball from
http://www.freebsd.org/cgi/cvsweb.cg...r.gz?tarball=1 The required version of Apache (httpd-2.1.4-alpha.tar.gz) is not available for download from Apache Mirror http://www.tux.org/pub/net/apache/dist/httpd/ How do i find out where the ports get this file ? Also port need powerlogo.gif, i know its not important, but from where port system fetch these files ? |
In the apache21 ports directory try typing
Code:
make fetch To ensure that you have all dependencies, try after : Code:
make fetch-recursive |
Thanks mrcheeks, i will try that.
|
I found how to find the location of distro files.
Distfiles are available for download at ftp://ftp.FreeBSD.org/pub/FreeBSD/po...cal-distfiles/ Each port maintainer have a folder with his distfiles on that FTP server. To know the name of port maintainer, check the Makefile of the port. For example Apache Makefile have MAINTAINER?= clement@FreeBSD.org So change to the folder "clement" That is ftp://ftp.FreeBSD.org/pub/FreeBSD/po...files/clement/ |
All times are GMT -5. The time now is 12:48 AM. |