Re: How do I install ports hands-off?

2007-01-04 Thread Andy Greenwood

On 1/4/07, Atom Powers <[EMAIL PROTECTED]> wrote:

For most ports I can pkg_add them to get them installed without
prompts. But for some ports I special make configurations that require
me to build the port from source. Usually I use portinstall for this,
but this causes problems if the make process requires additional
input.

How can I build a port using the default options, except those defined
in make.conf, without requiring me to confirm the option for each
port?


If you're refering to the port dependancy configs, you can try

# make config-recursive

which will present you with all the config options for all the
dependancies, then you can

# make && make install



--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




--
I'm nerdy in the extreme and whiter than sour cream
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I install ports hands-off?

2007-01-04 Thread Matthew Seaman
Atom Powers wrote:
> For most ports I can pkg_add them to get them installed without
> prompts. But for some ports I special make configurations that require
> me to build the port from source. Usually I use portinstall for this,
> but this causes problems if the make process requires additional
> input.
> 
> How can I build a port using the default options, except those defined
> in make.conf, without requiring me to confirm the option for each
> port?

Add BATCH=yes to /etc/make.conf, or set it in your environment.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: How do I install ports hands-off?

2007-01-04 Thread Michael P. Soulier

On 1/4/07, Atom Powers <[EMAIL PROTECTED]> wrote:

For most ports I can pkg_add them to get them installed without
prompts. But for some ports I special make configurations that require
me to build the port from source. Usually I use portinstall for this,
but this causes problems if the make process requires additional
input.

How can I build a port using the default options, except those defined
in make.conf, without requiring me to confirm the option for each
port?


This seems to suggest "batch mode".

http://lists.freebsd.org/pipermail/freebsd-ports/2003-August/003694.html

Mike
--
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How do I install ports hands-off?

2007-01-04 Thread Atom Powers

For most ports I can pkg_add them to get them installed without
prompts. But for some ports I special make configurations that require
me to build the port from source. Usually I use portinstall for this,
but this causes problems if the make process requires additional
input.

How can I build a port using the default options, except those defined
in make.conf, without requiring me to confirm the option for each
port?

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Protocol error trying to install ports

2006-12-23 Thread Robert Fitzpatrick
I walked someone through setup of a FreeBSD 6.1 install over the phone 
and now when I try to install any ports, I get the same protocol error. 
I assume something went wrong with the install, is there something I can 
check or fix remotely? Sorry for the wrapping below, I can't seem to 
find how to avoid in my temporary mailer Thunderbird.


unix# cd /usr/ports/sysutils/portupgrade/
unix# make all install clean
===> Installing for portupgrade-2.0.1_1,1
===> portupgrade-2.0.1_1,1 depends on file:
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb1.so - not found
===> Verifying install for
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb1.so in
/usr/ports/databases/ruby-bdb1
===> Vulnerability check disabled, database not found
=> bdb1-0.2.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/ruby.
=> Attempting to fetch from ftp://moulon.inra.fr/pub/ruby/.
fetch: ftp://moulon.inra.fr/pub/ruby/bdb1-0.2.2.tar.gz: Protocol error
=> Attempting to fetch from
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ruby/.
fetch:
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ruby/bdb1-0.2.2.tar.gz:
Protocol error
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ruby and try again.
*** Error code 1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


what's the best way to re-install ports as packages?

2006-09-09 Thread Gary Kline
People, 

In trying to restore my original main box, since I'm running
6.1, packages are now available.  A few days ago I began
portupgradingg stuff.  kde-lite and gnome2-lite among them.
Turns out that several packages were 'not available' and 
my build-state  was/is askew.  I've gone back to compiling
everything from src.  I tried building only just the missing 
packages, but got errs and the portupgrade -fkPP was not
happy.

rsync capabilities and auto tar'ing of major config files
is undergoing.  (In fact, if 6.1 has a fatal trap, I'm
prepared for it.)   But having a strategy of upgrading ports
on my other [5.x] servers, and on my new 6.1 would be 
*beyond* nice.  Is there any consensus?

gary


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Install ports as non-root user?

2005-06-28 Thread Bob Bomar
On Tue, Jun 28, 2005 at 02:45:59PM -0400, [EMAIL PROTECTED] wrote:
> Title should have read: Install ports collection as non-root user
> 
> [EMAIL PROTECTED] wrote:
> > Hi all. I'm looking to make a non-privileged user the owner of all my
> > software so I don't have to act as root when installing, configuring,
> > and updating software. Furthermore, I won't have to give out the root
> > password to others who need rights to configure software. I noticed
> > my ports collection is entirely owned by root and requires root to
> > install. Is there a way to install ports as a non-root user or allow
> > non-root users to install ports?
> > 
> > Thanks,
> > Brian
> 
> I want to ports collection to be owned by a non-root user. 
> 
> Someone suggested sudo. Using sudo will install the app as root, will it
> not? Thusly requiring root to configure it?

In order to install the port, you have to be root yes, sudo will
allow a command to be run as root, i.e. make install clean.  You 
can configure sudo to only allow the command to be run in a specific
directory.

-- 
Bob Bomar
[EMAIL PROTECTED]
-
FreeBSD: The Power to Serve
http://www.freebsd.org



pgpYFWLSM11Ei.pgp
Description: PGP signature


Re: Install ports as non-root user?

2005-06-28 Thread Chuck Swiger

[EMAIL PROTECTED] wrote:

Hi all. I'm looking to make a non-privileged user the owner of all my
software so I don't have to act as root when installing, configuring, and
updating software. Furthermore, I won't have to give out the root password
to others who need rights to configure software. I noticed my ports
collection is entirely owned by root and requires root to install. Is there
a way to install ports as a non-root user or allow non-root users to install
ports?


You can checkout the ports collection as a normal user (via CVS or CVSup, or 
copy or chown a /usr/ports owned by root).  You will need to set $PORTSDIR 
appropriately, and you can also set $LOCALBASE to point to a place owned by the 
user where the ports should be installed to.


However, a fair number of important ports require root access to create users 
or setuid binaries, and some ports have bugs when the paths are changed from 
the defaults, so be prepared for problems.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Install ports as non-root user?

2005-06-28 Thread brian . barto
Title should have read: Install ports collection as non-root user

[EMAIL PROTECTED] wrote:
> Hi all. I'm looking to make a non-privileged user the owner of all my
> software so I don't have to act as root when installing, configuring,
> and updating software. Furthermore, I won't have to give out the root
> password to others who need rights to configure software. I noticed
> my ports collection is entirely owned by root and requires root to
> install. Is there a way to install ports as a non-root user or allow
> non-root users to install ports?
> 
> Thanks,
> Brian

I want to ports collection to be owned by a non-root user. 

Someone suggested sudo. Using sudo will install the app as root, will it
not? Thusly requiring root to configure it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Install ports as non-root user?

2005-06-28 Thread Bob Bomar
On Tue, Jun 28, 2005 at 02:37:17PM -0400, [EMAIL PROTECTED] wrote:
> Hi all. I'm looking to make a non-privileged user the owner of all my
> software so I don't have to act as root when installing, configuring, and
> updating software. Furthermore, I won't have to give out the root password
> to others who need rights to configure software. I noticed my ports
> collection is entirely owned by root and requires root to install. Is there
> a way to install ports as a non-root user or allow non-root users to install
> ports?
> 

security/sudo, been using it for years, you can specify
which users can use what commands.

-- 
Bob Bomar
[EMAIL PROTECTED]
-
FreeBSD: The Power to Serve
http://www.freebsd.org



pgpOcMHqpyNL5.pgp
Description: PGP signature


Install ports as non-root user?

2005-06-28 Thread brian . barto
Hi all. I'm looking to make a non-privileged user the owner of all my
software so I don't have to act as root when installing, configuring, and
updating software. Furthermore, I won't have to give out the root password
to others who need rights to configure software. I noticed my ports
collection is entirely owned by root and requires root to install. Is there
a way to install ports as a non-root user or allow non-root users to install
ports?
 
Thanks,
Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do you know how to install ports? (like vmware3)

2004-10-09 Thread Alex de Kruijff
On Thu, Sep 30, 2004 at 08:09:21PM +0530, Subhro wrote:
> On Thu, 30 Sep 2004 02:03:15 -0400, bsdfsse <[EMAIL PROTECTED]> wrote:
> > 
> > For example, I have been trying to install the vmware3 port - and I find
> > all kinds of tidbits all over the web about little things that need to
> > be done to get it to work.  The information sometimes covers version
> > 2.0, sometimes 3.2, and sometimes 4.5. If someone just goes in to
> > /usr/ports/emulators/vmware3 and does a "make install", how would they
> > know what else to do?
> 
> The best part of the FreeBSD port collection is, you dont need to know
> what else to do. The port tree is designed in such a way that if you
> try to install a particular port, then the system would fetch all the
> dependancies automatically unless you specifically ask it not to do
> so. Just go through the vmware manual to get an idea about how to
> configure vmware. You need not worry about the installation.

To get apps to work you sometimes most do some configuration. Apache,
php, samba, ect. are all examples of this. Usaly its all about editing
one or more configuration files in /usr/local/etc/ and some times /etc/
and getting startup scripts to work at /usr/local/ect/rc.d/. Vmware is a
exception to this in my book.

-- 
Alex

Please copy the original recipients, otherwise I may not read your reply.
WWW: http://www.kruijff.org/alex/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do you know how to install ports? (like vmware3)

2004-09-30 Thread Christian Hiris
On Thursday 30 September 2004 21:51, bsdfsse wrote:
> >>I'm new to FreeBSD, maybe I am missing something obvious?
> >
> > You probably missed the pkg-message display. In your terminal session,
> > simply scroll back a view lines after the install target has been
> > completed or type 'cat /usr/ports/emulators/vmware3/pkg-message' to view
> > it again.
>
> Indeed, I was missing those messages, and was able to incorporate that
> information once I was aware of it.  If you're not running X, is there a
> way to get the screen to scroll upwards?

Scroll-lock - Page-up - Page-down

> When I was running XFCE4, the terminal also did not have scroll bars.

xterm -sb

>
> I will be doing a fresh install after I get something to eat.  I will
> start over from scratch.  Currently I have a lot more info, but now my
> FBSD machine simply reboots when I run VMWARE.
>
> thx!

In case you still in the need of some detailed VMware setup instuctions, I 
attached some quick and dirty notes I made short time ago. Maybe there is 
something useful for you.  

-- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
Vmware3-3.2.1.2242_9,1 on  FreeBSD 5.3-BETA6

1. Check Kernel options:
options VFS_AIO (or load aio.ko via /boot/loader.conf)
options HZ=1000 (should also work w/o)

2. Check /etc/sysctl:
kern.ipc.shm_allow_removed=1

3. Prepare Firewalls and DNS on host-OS/network

4. Install VMware Port

rm /usr/local/etc/vmware/config
(if there already exists an old non-working config file)

cd /usr/ports/emulators/vmware3
make install
Do you want to configure vmnet interface?   --> Yes
Do you want to use netgraph bridging?   --> Yes
To which interface ...? --> xl0


5. Read pkg-message and docs.

6. Place your license file under ~/.vmware/license.ws.3.0

7. Check vmnet1 interface, ip-address/mask in /usr/local/etc/vmware/config:

[...]
vmnet1.Bridged = "YES"
vmnet1.BridgeInterface = "xl0"
vmnet1.HostOnlyAddress = "192.168.0.1"
vmnet1.HostOnlyNetMask = "255.255.255.0"

(ip-address/mask should not conflict with your network settings) 

8. Reboot

9. Start vmware
> vmware

10. --> Settings --> Memory Settings
Enable Memory Limits:   --> on
Memory size:--> use recommend value

11. --> File --> New
Enter filename  --> YourConfig
--> OK

12. --> File --> Open -->
Select Filename --> YourConfig
--> OK

13. --> Settings --> Configuration Editor

* Misc
Display Name--> any name you like
Guest OS--> select your guest os
 
* Harddisk
IDE drive 0:0 (P-M)
Device Type:--> Viriual Disk
Mode:   --> Persistent
Name:   --> IDE0-0
Size:   --> 3999
--> Create
--> Install

* CD-ROM - installation media
IDE drive 1:0 (S-M)
Device Type:--> CD-ROM Image
Mode:   --> Persistent
Name:   --> /path/to/your/guest-install.iso
--> Start connected
--> Install

* CD-ROM - vmware-tools
IDE drive 1:1 (S-S)
Device Type:--> CD-ROM Image
Mode:   --> Persistent
Name:   --> /usr/local/lib/vmware/isoimages/freebsd.iso
--> Start connected
--> Install

* Ethernet Adapters
Connection Type:--> Custom
Vmnet:  --> /dev/vmnet1
--> Install
[Connection Type:   --> HostOnlyshould work too]

* Mouse
Host Mouse Type:--> autodedect
Host Mouse Device:  --> autodedect

(worked for me, even for an usb mouse. got a warning message about
fullscreen vga mode will not work - which is true)

* Sound (if you have a soundcard installed)
Device: --> /dev/dsp0.1 (any free snd device) 
--> Start connected
--> Install

* Memory
Guest size: --> enter recommend value
--> OK

14. --> Power on 
To chec

Re: How do you know how to install ports? (like vmware3)

2004-09-30 Thread bsdfsse
I'm new to FreeBSD, maybe I am missing something obvious?
You probably missed the pkg-message display. In your terminal session, simply 
scroll back a view lines after the install target has been completed or type 
'cat /usr/ports/emulators/vmware3/pkg-message' to view it again.
Indeed, I was missing those messages, and was able to incorporate that 
information once I was aware of it.  If you're not running X, is there a 
way to get the screen to scroll upwards?  When I was running XFCE4, the 
 terminal also did not have scroll bars.

I will be doing a fresh install after I get something to eat.  I will 
start over from scratch.  Currently I have a lot more info, but now my 
FBSD machine simply reboots when I run VMWARE.

thx!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do you know how to install ports? (like vmware3)

2004-09-30 Thread Christian Hiris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 30 September 2004 08:03, bsdfsse wrote:
> For example, I have been trying to install the vmware3 port - and I find
> all kinds of tidbits all over the web about little things that need to
> be done to get it to work.  The information sometimes covers version
> 2.0, sometimes 3.2, and sometimes 4.5. If someone just goes in to
> /usr/ports/emulators/vmware3 and does a "make install", how would they
> know what else to do?
>
> I'm new to FreeBSD, maybe I am missing something obvious?

You probably missed the pkg-message display. In your terminal session, simply 
scroll back a view lines after the install target has been completed or type 
'cat /usr/ports/emulators/vmware3/pkg-message' to view it again.

Cheers,
ch

- -- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)

iD4DBQFBXGFF09WjGjvKU74RAqaLAJj3ZwnEzL9UCxsGAVeeEmQUrZFvAJ4z8ZOr
bDDv3kkNq9PMl48iusnd4w==
=kpjd
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do you know how to install ports? (like vmware3)

2004-09-30 Thread Subhro
On Thu, 30 Sep 2004 02:03:15 -0400, bsdfsse <[EMAIL PROTECTED]> wrote:
> 
> For example, I have been trying to install the vmware3 port - and I find
> all kinds of tidbits all over the web about little things that need to
> be done to get it to work.  The information sometimes covers version
> 2.0, sometimes 3.2, and sometimes 4.5. If someone just goes in to
> /usr/ports/emulators/vmware3 and does a "make install", how would they
> know what else to do?

The best part of the FreeBSD port collection is, you dont need to know
what else to do. The port tree is designed in such a way that if you
try to install a particular port, then the system would fetch all the
dependancies automatically unless you specifically ask it not to do
so. Just go through the vmware manual to get an idea about how to
configure vmware. You need not worry about the installation.

Regards
S.

-- 
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How do you know how to install ports? (like vmware3)

2004-09-29 Thread bsdfsse
For example, I have been trying to install the vmware3 port - and I find 
all kinds of tidbits all over the web about little things that need to 
be done to get it to work.  The information sometimes covers version 
2.0, sometimes 3.2, and sometimes 4.5. If someone just goes in to 
/usr/ports/emulators/vmware3 and does a "make install", how would they 
know what else to do?

I'm new to FreeBSD, maybe I am missing something obvious?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Howto install ports collection?

2003-09-10 Thread Nagy László Zsolt

 Hi gurus!

I have a remote FreeBSD computer (RELEASE 4.7 stable). It is on the 
other side of Earth. I can access it only with ssh.
It is really a base system. The ports collection (/usr/ports) is 
entirely missing. I'm familiar with installing ports. But I have
no idea how to install the ports collection using only an ssh shell. 
Please give me a direction.

Thanks in advance,

   Laci 1.0


The easiest way (if you have root access) is to use the CVSUP system. 
It is well described in the handbook, and the handbook is available 
online on www.freebsd.org . If you do not have the cvsup util already 
installed, you need to find it and compile it yourself, after you 
fetch it from the web. Or better, get a .tgz version which is a 
precompiled package. Search for the source of it on 
www.freebsd.org/ports/
Thanks for all your help. I'm currently installing apache2. :-)

  Laci 1.0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Howto install ports collection?

2003-09-10 Thread Rob Lahaye

Nagy L?szl? Zsolt wrote:
> 
>  Hi gurus!
> 
> I have a remote FreeBSD computer (RELEASE 4.7 stable). It is on the 
> other side of Earth. I can access it only with ssh.
> It is really a base system. The ports collection (/usr/ports) is 
> entirely missing. I'm familiar with installing ports. But I have
> no idea how to install the ports collection using only an ssh shell. 
> Please give me a direction.

See the handbook
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html
chapter "Using the Ports Collection".

It says:

   1. As root, run /stand/sysinstall
   2. Scroll down and select Configure, press Enter.
   3. Scroll down and select Distributions, press Enter.
   4. Scroll down to ports, press Space.
   5. Scroll up to Exit, press Enter.
   6. Select your desired installation media, such as CDROM, FTP, and so on.
   7. Scroll up to Exit and press Enter.
   8. Press X to exit sysinstall.

After that, use cvsup, to bring them up-to-date.
I suppose you know how to do the cvsup stuff.

Rob.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Howto install ports collection?

2003-09-10 Thread Alin-Adrian Anton
Nagy László Zsolt wrote:

 Hi gurus!

I have a remote FreeBSD computer (RELEASE 4.7 stable). It is on the 
other side of Earth. I can access it only with ssh.
It is really a base system. The ports collection (/usr/ports) is 
entirely missing. I'm familiar with installing ports. But I have
no idea how to install the ports collection using only an ssh shell. 
Please give me a direction.

Thanks in advance,

   Laci 1.0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


The easiest way (if you have root access) is to use the CVSUP system. It 
is well described in the handbook, and the handbook is available online 
on www.freebsd.org . If you do not have the cvsup util already 
installed, you need to find it and compile it yourself, after you fetch 
it from the web. Or better, get a .tgz version which is a precompiled 
package. Search for the source of it on www.freebsd.org/ports/

A very simple CVSUP config file to get the ports collection looks like this:


*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs
*default delete use-rel-suffix
*default compress
#tag=. means FreeBSD-CURRENT
*default tag=.
#src-all
ports-all

Then just load 'cvsup file.sup', will do it.
Check the man pages of all the mentioned tools before.

Alin.



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Howto install ports collection?

2003-09-10 Thread Nagy László Zsolt
 Hi gurus!

I have a remote FreeBSD computer (RELEASE 4.7 stable). It is on the 
other side of Earth. I can access it only with ssh.
It is really a base system. The ports collection (/usr/ports) is 
entirely missing. I'm familiar with installing ports. But I have
no idea how to install the ports collection using only an ssh shell. 
Please give me a direction.

Thanks in advance,

   Laci 1.0

Here is my own answer:

ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/ports/ports.tar.gz

I'm not sure if this is the correct solution but I'll extract this under 
/usr.
Any thoughts welcome.

  Laci 1.0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Howto install ports collection?

2003-09-10 Thread Nagy László Zsolt
 Hi gurus!

I have a remote FreeBSD computer (RELEASE 4.7 stable). It is on the 
other side of Earth. I can access it only with ssh.
It is really a base system. The ports collection (/usr/ports) is 
entirely missing. I'm familiar with installing ports. But I have
no idea how to install the ports collection using only an ssh shell. 
Please give me a direction.

Thanks in advance,

   Laci 1.0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How an arbitrary user can install ports in own home dir?

2003-07-21 Thread Andrey Simonenko
On Wed, 16 Jul 2003 13:46:34 + (UTC) in lucky.freebsd.questions, Daniel Bye wrote:

First of all thank you for your help, all what you said is correct.

Next see below.

> 
> On Wed, Jul 16, 2003 at 03:03:04PM +0300, Andrey Simonenko wrote:
>> Hello all,
>> 
>> How an arbitrary user (without root credentials) can install ports
>> in own home dir?
>> 
>> How I tried to do this:
>> 
>> I created ~/local/ports, place Mk, Tools, Templates there.
> 
> This step isn't necessary.  Well, it might be, but only if you don't have
> r-x access on /usr/ports and descendents.
> 

I have to maintain own ports collection, because /usr/ports on
target server is very outdated.

>> But when I install any ports I'm asked to enter root password.
>> This is from the bsd.port.mk:
>> 
>> .if ${UID} != 0 && defined(_${target:U}_SUSEQ)
>> [skip]
>>   @echo "===>  Switching to root credentials for '${target}' target"
>>   @cd ${.CURDIR} && \
>>   ${SU} root -c "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}"
>>   @echo "===>  Returning to user credentials"
>> 
>> If I give correct root's password, then a port is installed to ~/local
>> and a package is registered in ~/local/var/db.
> 
> Hmm, don't know what this means.  With the correct set of variables defined,
> I have not yet been asked to provide the root password...

I think that something is broken in bsd.port.mk, because on another
machine with old /usr/ports I _can_ install ports under in my home
directory (using the method I described in my original message and
additionally defining NO_MTREE=yes in environment).

But with current ports collection that error about ``Switching to
root...'' always appeared.  On my system bsd.port.mk has 1.456 version.

I suppose that this error was introduced in bsd.port.mk version 1.455.

Which version of bsd.port.mk is installed on your system?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How an arbitrary user can install ports in own home dir?

2003-07-16 Thread Daniel Bye
On Wed, Jul 16, 2003 at 03:03:04PM +0300, Andrey Simonenko wrote:
> Hello all,
> 
> How an arbitrary user (without root credentials) can install ports
> in own home dir?
> 
> How I tried to do this:
> 
> I created ~/local/ports, place Mk, Tools, Templates there.

This step isn't necessary.  Well, it might be, but only if you don't have
r-x access on /usr/ports and descendents.

> I defined in .cshrc:
> 
> setenvPORTSDIR~/local/ports

Don't bother with setting PORTSDIR, unless you don't have r-x access on the
ports tree.  All the framework is there already, so there is little value in
duplicating it.

> setenvPREFIX  ~/local
> setenvPKG_DBDIR   ~/local/var/db

You also need to define:

DISTDIR - where to find/download distfiles (if you don't have write access
on the system-wide ports distfiles directory)

DESTDIR - where to install the port, once built (relative to ${PREFIX})

WRKDIR - where the distfiles are unpacked, if you don't have write access to
the port's directory under /usr/ports/*

With these variables defined, either in your shell's environment (from, as
you have done, your login dotfiles) of on the make commandline, ports can be
installed exaclty as normal (i.e. cd /usr/ports/ftp/wget && make all install
clean)

For more options, read the variable definitions in
/usr/ports/Mk/bsd.ports.mk.

> But when I install any ports I'm asked to enter root password.
> This is from the bsd.port.mk:
> 
> .if ${UID} != 0 && defined(_${target:U}_SUSEQ)
> [skip]
>   @echo "===>  Switching to root credentials for '${target}' target"
>   @cd ${.CURDIR} && \
>   ${SU} root -c "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}"
>   @echo "===>  Returning to user credentials"
> 
> If I give correct root's password, then a port is installed to ~/local
> and a package is registered in ~/local/var/db.

Hmm, don't know what this means.  With the correct set of variables defined,
I have not yet been asked to provide the root password...

> 
> Questions:
> 
> 1.Is there any way to tell ports system not to ask me root's
>   password?  I guess that there should be a way to do it,
>   whithout patching Mk/* files.

I guess by defining the right environment for the build to happen in.

> 2.How to tell make(1) to use ~/local/etc/make.conf file
>   (use another file, than /etc/make.conf)?

It seems (from `man 5 make.conf') that make.conf is included from the
Makefile of the target you are building.  If you want to use a different
one, I guess you will need to edit the part of the Makefile that pulls in
/etc/make.conf.  Can't find a way to specify an alternative.

Of course, none of this is guaranteed to be "correct", but "it works for
me", so naturally, YMMV  ;-)

HTH

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature


How an arbitrary user can install ports in own home dir?

2003-07-16 Thread Andrey Simonenko
Hello all,

How an arbitrary user (without root credentials) can install ports
in own home dir?

How I tried to do this:

I created ~/local/ports, place Mk, Tools, Templates there.

I defined in .cshrc:

setenv  PORTSDIR~/local/ports
setenv  PREFIX  ~/local
setenv  PKG_DBDIR   ~/local/var/db

But when I install any ports I'm asked to enter root password.
This is from the bsd.port.mk:

.if ${UID} != 0 && defined(_${target:U}_SUSEQ)
[skip]
@echo "===>  Switching to root credentials for '${target}' target"
@cd ${.CURDIR} && \
${SU} root -c "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}"
@echo "===>  Returning to user credentials"

If I give correct root's password, then a port is installed to ~/local
and a package is registered in ~/local/var/db.

Questions:

1.  Is there any way to tell ports system not to ask me root's
password?  I guess that there should be a way to do it,
whithout patching Mk/* files.

2.  How to tell make(1) to use ~/local/etc/make.conf file
(use another file, than /etc/make.conf)?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can no longer install ports

2003-07-11 Thread Kris Kennaway
On Sat, Jul 12, 2003 at 06:14:39AM +0800, Ariff Abdullah wrote:
> 
> 
> Your /usr/sbin/pkg_info is old, recent bsd.port.mk require
> '-O' option which is not supported by your pkg_info (perhaps
> 4.6.x release or older). Try to fetch the recent pkg_install
> ( /usr/src/usr.sbin/pkg_install ) sources and rebuild it.
> By the way, the ports tree maintainer should aware about this.

He is, but old releases are not supported.  That said, I have a patch
will I'll be committing in a few days.

Kris


pgp0.pgp
Description: PGP signature


Re: Can no longer install ports

2003-07-11 Thread Ariff Abdullah


Your /usr/sbin/pkg_info is old, recent bsd.port.mk require
'-O' option which is not supported by your pkg_info (perhaps
4.6.x release or older). Try to fetch the recent pkg_install
( /usr/src/usr.sbin/pkg_install ) sources and rebuild it.
By the way, the ports tree maintainer should aware about this.

On Fri, 11 Jul 2003 17:58:51 -0400
"Dragoncrest" <[EMAIL PROTECTED]> wrote:
> Ya know, that's kinda funny.  I had this EXACT same issue not even a
> week ago.  Could this be a bug that we don't know about?  What's the fix
> for it...if any?
> 
> > In the last episode (Jul 11), Adam said:
> > > On Tue, 2003-07-08 at 05:41, Jim Hatfield wrote:
> > > > When I do a make install in any ports dir, I now get this:
> > > > 
> > > > >speyburn# cd /usr/ports/graphics/tiff
> > > > >speyburn# make
> > > > >speyburn# make install
> > > > >===>  Installing for tiff-3.5.7_1
> > > > >===>   tiff-3.5.7_1 depends on shared library: jpeg.9 - found
> > > > >===>   Generating temporary packing list
> > > > >===>  Checking if graphics/tiff already installed
> > > > >*** Error code 1
> 

-- 
Ariff Abdullah
MyBSD
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can no longer install ports

2003-07-11 Thread Dragoncrest
Ya know, that's kinda funny.  I had this EXACT same issue not even a
week ago.  Could this be a bug that we don't know about?  What's the fix
for it...if any?

> In the last episode (Jul 11), Adam said:
> > On Tue, 2003-07-08 at 05:41, Jim Hatfield wrote:
> > > When I do a make install in any ports dir, I now get this:
> > > 
> > > >speyburn# cd /usr/ports/graphics/tiff
> > > >speyburn# make
> > > >speyburn# make install
> > > >===>  Installing for tiff-3.5.7_1
> > > >===>   tiff-3.5.7_1 depends on shared library: jpeg.9 - found
> > > >===>   Generating temporary packing list
> > > >===>  Checking if graphics/tiff already installed
> > > >*** Error code 1


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can no longer install ports

2003-07-11 Thread Dan Nelson
In the last episode (Jul 11), Adam said:
> On Tue, 2003-07-08 at 05:41, Jim Hatfield wrote:
> > When I do a make install in any ports dir, I now get this:
> > 
> > >speyburn# cd /usr/ports/graphics/tiff
> > >speyburn# make
> > >speyburn# make install
> > >===>  Installing for tiff-3.5.7_1
> > >===>   tiff-3.5.7_1 depends on shared library: jpeg.9 - found
> > >===>   Generating temporary packing list
> > >===>  Checking if graphics/tiff already installed
> > >*** Error code 1
> > >
> > >Stop in /usr/ports/graphics/tiff.
> > 
> > make deinstall generates the same error.

I believe this particular problem is due to a too-old pkg_info command.
Try running "ktrace -di make install", then kdump and see the exact
error message.  Rebuild from /usr/src/usr.sbin/pkg_install .
 
> There was a guy in #freebsd on FreeNode (IRC) yesterday describing the
> exact same problem, but it was crashing when installing python. After
> talking with him a while, we decided that either:
> a) his ruby was broken and needed to be reinstalled
> b) his portupgrade was broken and needed to be reinstalled
> c) his pkgdb was broken (he tried running 'pkgdb -F' and it crashed)
> 
> Anyhow, I would suggest looking into reinstalling your ruby and
> portupgrade. Hopefully that helps.

Neither ruby nor portupgrade are used in a stock "make install".

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can no longer install ports

2003-07-11 Thread Adam
On Tue, 2003-07-08 at 05:41, Jim Hatfield wrote:
> When I do a make install in any ports dir, I now get this:
> 
> >speyburn# cd /usr/ports/graphics/tiff
> >speyburn# make
> >speyburn# make install
> >===>  Installing for tiff-3.5.7_1
> >===>   tiff-3.5.7_1 depends on shared library: jpeg.9 - found
> >===>   Generating temporary packing list
> >===>  Checking if graphics/tiff already installed
> >*** Error code 1
> >
> >Stop in /usr/ports/graphics/tiff.
> 
> make deinstall generates the same error.

There was a guy in #freebsd on FreeNode (IRC) yesterday describing the
exact same problem, but it was crashing when installing python. After
talking with him a while, we decided that either:
a) his ruby was broken and needed to be reinstalled
b) his portupgrade was broken and needed to be reinstalled
c) his pkgdb was broken (he tried running 'pkgdb -F' and it crashed)

Anyhow, I would suggest looking into reinstalling your ruby and
portupgrade. Hopefully that helps.

-- 
Adam <[EMAIL PROTECTED]>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can no longer install ports

2003-07-10 Thread Kris Kennaway
On Tue, Jul 08, 2003 at 10:41:33AM +0100, Jim Hatfield wrote:
> When I do a make install in any ports dir, I now get this:

You forgot to mention what version you're running.

Kris

pgp0.pgp
Description: PGP signature


Can no longer install ports

2003-07-08 Thread Jim Hatfield
When I do a make install in any ports dir, I now get this:

>speyburn# cd /usr/ports/graphics/tiff
>speyburn# make
>speyburn# make install
>===>  Installing for tiff-3.5.7_1
>===>   tiff-3.5.7_1 depends on shared library: jpeg.9 - found
>===>   Generating temporary packing list
>===>  Checking if graphics/tiff already installed
>*** Error code 1
>
>Stop in /usr/ports/graphics/tiff.

make deinstall generates the same error.

I tried make -d A but the output was voluminous, to say
the least.

This coincided with strange problems doing portupgrades, 
where I would end up with duplicate directories in /var/db/pkg,
the duplicate having .tbz or .tgz attached to the directory
name.

A clue as to where to look would be appreciated.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Install Ports

2002-07-23 Thread Daniel Bye

On Tue, Jul 23, 2002 at 12:27:27AM -0400, Christopher J. Umina wrote:
> Hi,
> 
>   I was just wondering if there were any way to install every port
> in a given ports directory.  For instance I want to install all of the
> things in the /usr/ports/Perl5 directory without doing a huge thing in
> sysinstall.  Is there a better way?

It goes something like this:

$ su
# cd /usr/ports/perl5
# make all install clean

/usr/ports and each subdirectory immediately under it has its own Makefile,
enabling you to simply install whole chunks of the ports collection with
one command.  You could equally, for example, "cd /usr/ports; make all 
install clean" and build the whole shebang.

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Install Ports

2002-07-22 Thread Christopher J. Umina

Hi,

I was just wondering if there were any way to install every port
in a given ports directory.  For instance I want to install all of the
things in the /usr/ports/Perl5 directory without doing a huge thing in
sysinstall.  Is there a better way?

Thanks,
Christopher J. Umina


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message