LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-16-2005, 12:34 AM   #1
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Rep: Reputation: 15
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
 
Old 05-16-2005, 01:22 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
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.

Last edited by mrcheeks; 05-16-2005 at 01:32 AM.
 
Old 05-16-2005, 01:50 AM   #3
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
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
 
Old 05-16-2005, 01:57 AM   #4
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
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 ?
 
Old 05-16-2005, 01:57 AM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
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.
 
Old 05-16-2005, 02:14 AM   #6
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks mrcheeks, i will try that.
 
Old 05-17-2005, 04:42 AM   #7
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet-Process Id,ports related jared78 Linux - Networking 6 05-19-2005 02:44 AM
Problem on installing kdebase3 from ports satimis *BSD 10 05-26-2004 09:40 PM
Installing Java from FreeBSD ports. darksky *BSD 4 11-13-2003 10:38 AM
Ports open on internal network, closed to the internet. powerloony Linux - Security 11 10-25-2003 02:42 PM
Installing XFree86 from BSD ports JHuizingh Linux - Software 2 02-14-2002 02:25 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration