LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Installing from PORTS, No internet (https://www.linuxquestions.org/questions/%2Absd-17/installing-from-ports-no-internet-323888/)

BizHat.com 05-16-2005 12:34 AM

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:

Sources for ports/www/apache21
Sorry, did not find the sources for ports/www/apache21
How do i find the required files for a port ?

Regards,

Yujin

mrcheeks 05-16-2005 01:22 AM

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.

BizHat.com 05-16-2005 01:50 AM

Thanks for the info, i have following in Makefile of Apache2.

Quote:

PORTNAME= apache
PORTVERSION= 2.1.4
DISTNAME= httpd-${PORTVERSION}-alpha
DISTFILES= ${DISTNAME}.tar.bz2 powerlogo.gif
So i need

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

BizHat.com 05-16-2005 01:57 AM

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 ?

mrcheeks 05-16-2005 01:57 AM

In the apache21 ports directory try typing
Code:

make fetch
. It will give you the complete url of the file(s) to download.

To ensure that you have all dependencies, try after :
Code:

make fetch-recursive
Hit Control-C to prevent the files from being downloaded.

BizHat.com 05-16-2005 02:14 AM

Thanks mrcheeks, i will try that.

BizHat.com 05-17-2005 04:42 AM

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.