Re: Ports Base
Wondering if you could copy the ports base of a FreeBSD server to a CD, then copy the CD to another FreeBSD server of the same version. I searched through many docs on CVSUP, but didn't find the answer to this question. I simply want to streamline the constant building and rebuilding of FreeBSD 4.10 servers. Each time I build one, I have to run the CVSUP to update several ports, etc. This really extends the build time of a server. I figured if I could simply copy the ports tree structure to CD, then copy that to the other servers, I'd save some time. I don't have enough hardware to keep a constant CVSUP mirror locally, I already looked into that. I don't see any reason why this would not work. If the machines are all running the same version of FreeBSD I don't think there will be any problem. This doesn't seem to me to be any different than building/installing ports on host A and then mounting /usr/ports on host B from host A via NFS and doing a make install of the already built ports. - Mike ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ports Base
That's a good point, but I don't make a practice of running NFS, and often the servers are at different locations - not connected via any network. So would I be correct in assuming that I would copy the entire contents beginning at the /usr/ports level and all subdirectories? Thanks again, Lonnie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ports Base
Lonnie Santella wrote to [EMAIL PROTECTED]: That's a good point, but I don't make a practice of running NFS, and often the servers are at different locations - not connected via any network. So would I be correct in assuming that I would copy the entire contents beginning at the /usr/ports level and all subdirectories? Sure. That will gain you the benefits of an up-to-date ports tree. It's important that you do this before any ports are installed on the system, though, or you'll likely have consistency and dependency issues. Once you start installing ports, you have the pkgdb to deal with. Personally, I would just use once fast/well-connected machine to keep everything up to date and build packages for all of the ports you need. Then, just copy those packages and their recursive dependencies (via CD, or ftp/sftp/scp). It's a *lot* less to transfer and maintain. I use something like this to rapidly deploy new FreeBSD servers. Within about 40 minutes from an empty RAID array, I can have a fully-configured environment, the latest RELENG_4_9 (or 4_10 now), up-to-date ports, with our own base ports already installed. We do use NFS and a cvsup server to make life easy, but, in cases where I've done this remotely, I only had to modify a few processes to make it work over SSH. Due to network and system speeds, it took longer than 40 minutes (2-3 hours the last time I tried. The client bought me steak and a pint of beer at a local restaurant while we waited), but it was still just one make all once I got the first root prompt after the FTP install. - Ryan -- Ryan Thompson [EMAIL PROTECTED] SaskNow Technologies - http://www.sasknow.com 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ports base? [hear my $500]
On Mon, Dec 02, 2002 at 09:28:07PM -0500, Peter Leftwich wrote: On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? Boggle. Do you mean something like this ? #!/bin/sh -- /bin/echo -n Hello, which port would you like? : read PORT portinstall $PORT $500 is pretty steep, even if it IS for a priceless utility! Negotiable? One item from my amazon.co.uk wishlist ;) Ceri -- By my forefathers, I shall avenge the end of my bold warriors! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear my $500] ..improvement
On Tue, Dec 03, 2002 at 10:09:24AM +, Ceri Davies wrote: On Mon, Dec 02, 2002 at 09:28:07PM -0500, Peter Leftwich wrote: On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? Boggle. Do you mean something like this ? #!/bin/sh -- while : do /bin/echo -n Hello, which port would you like? : read PORT [ $PORT = ] { echo Toodle Pip; exit 0; } portinstall $PORT done $500 is pretty steep, even if it IS for a priceless utility! Negotiable? Price just went up :) -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear me roar Cliff]
On Mon, Dec 02, 2002 at 09:37:00PM -0500, Peter Leftwich wrote: On Tue, 26 Nov 2002, Cliff Sarginson wrote: Took the words right out of my mouth. Peter, these things get done by people doing them. That is the tautology of the situation. You might find your name in lights if you become that someone who does it. Does the producer (i.e. purse bearer) get a credit next to the programmer? Could be. I will quote you something. Years ago I worked next to a programmer who was building at the time a very interesting information system for a bunch of book cataloguers (programmers may bitch aboiyt each other .. it ain;t nothing compared to what cataloguers do). Anyway I didn't write anything for this program but he put the following attribute to me in the main code file header: Many thanks to Cliff Sarginson for suggesting so many fine ideas. I suspect however he suggested so many because he didn't have to write them. Btw you might consider the use of the refuse file if you wish to not download certain ports or categories of ports. I suppose if you put everything in the refuse file you may still get the ports framework, for whatever that is worth. My refuse file eliminates all the ports for the languages I don't speak, anything to do with palms, the new financial category and some others. I have considered that but that was 1.33 seconds ago then I decided to come to my senses and realize that your suggestion is a bottom-up approach. preferred cvsup path for me would be a top-down approach (starting at the tip of the pyramid with just what I want, rather than starting at the base of the pyramid and eliminating 99.% of my choices). Well it isn't that much work with Unix tools to hand. What you want is the opposite of the refuse file, you want an accept file. Well, as the man said, write it yourself, or pay the cost :) I would settle for 2*512MB of DDR 333 Memory...as the first sweetener. That would be for the ground work, feasibility study etc. Implementation would cost a bit more. Seriously, it will impress all your friends and neighbours here on the list :). You might get a nickname Lefty the Hacker. -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear me roar]
I could be convinced, for say... Three cases of beer. Canadian beer... None of that American hard water... :) - Original Message - From: Lowell Gilbert [EMAIL PROTECTED] To: Kris Kennaway [EMAIL PROTECTED] Cc: Peter Leftwich [EMAIL PROTECTED]; FreeBSD Questions LIST [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:07 PM Subject: Re: Ports base? [hear me roar] Kris Kennaway [EMAIL PROTECTED] writes: On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: You dunderheads :) are all missing the point. Why isn't there something a few notches above pkg_add -r and a few notches below knowing how to cvsup and downloading a massive, obscenely extravagant ports tree? Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? No reason. Progress happens when someone sits down and does the work. Perhaps this would be a good project for you to learn more about the workings of FreeBSD. Alternatively, he could convince someone else to do it. I could be convinced for, say $500, but other people might be influenced by other forms of persuasion. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base?
Greg 'groggy' Lehey [EMAIL PROTECTED] writes: Those were the days. I've just checked out the ports tree, and it's 314 MB! This is probably partially a consequence of the larger file system block size on modern systems, and also of course because of the CVS directories (each of which takes up 16 kB), for a total of 128 MB. Even without them, though, that leaves 186 MB. That agrees with the message from /usr/src/release/sysinstall/dist.c which says around 180MB. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear me roar]
On Mon, 25 Nov 2002, Greg 'groggy' Lehey wrote: On Sunday, 24 November 2002 at 16:51:07 -0800, Kris Kennaway wrote: On Mon, Nov 25, 2002 at 10:48:31AM +1030, Greg 'groggy' Lehey wrote: On Sunday, 24 November 2002 at 0:12:51 -0800, Kris Kennaway wrote: On Sun, Nov 24, 2002 at 12:03:46AM -0800, Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. I didn't think that sysinstall allowed you to install parts of the ports collection, only the entire collection (which is about 9MB). Those were the days. I've just checked out the ports tree, and it's 314 MB! This is probably partially a consequence of the larger file system block size on modern systems, and also of course because of the CVS directories (each of which takes up 16 kB), for a total of 128 MB. Even without them, though, that leaves 186 MB. You're correct I was underestimating (I was thinking of the compressed ports.tar.gz file), but my CVS ports tree is only 204MB including CVS directories, so I think you're overestimating (perhaps you included the distfiles/ directory?) Nope, as I said, I checked out a completely new tree from the repository. FWIW, my real ports tree (including distfiles) runs to 3.1 GB. I'd guess that your file system block size is smaller than mine. The default for new file systems is now 16 kB block and 2 kB fragments, and since nearly every file in the Ports Collection is smaller than the old 512 bytes fragment size, this means that they are now 1.5 kB larger. My ports tree currently has 170,000 files in it (including distfiles, admittedly; I don't want to check out again), so that's in the right ball park. -Greg -- See complete headers for address and phone numbers You dunderheads :) are all missing the point. Why isn't there something a few notches above pkg_add -r and a few notches below knowing how to cvsup and downloading a massive, obscenely extravagant ports tree? Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? User enters something like this at that point: /usr/ports/java/jdk13/ Then the script would fetch ftp://ftp.freebsd.org/something/current/ports/java/jdk13.tgz and set to work untarring then changing to that directory and running make install clean and if there were a dependency or problem, offer the user some feedback such as java/jdk13 requires the following (not found): javabeans.jvm user.jvm jvmlib Would you like to install these too (y/n/interactive)? The same script or binary would be aware to the point that if the ports base was not even present, it would prompt the user (who most likely is running the script or binary for the first time) would you like to download and install the minimal ports base (13.3mb)? or whatever... Or am I just crazy, impossible to please, and cursed to be ever dissatisfied and relegated to the land between sysinstall and the valley of hard core programmers?? -- Peter Leftwich President Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear me roar]
On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: You dunderheads :) are all missing the point. Why isn't there something a few notches above pkg_add -r and a few notches below knowing how to cvsup and downloading a massive, obscenely extravagant ports tree? Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? No reason. Progress happens when someone sits down and does the work. Perhaps this would be a good project for you to learn more about the workings of FreeBSD. Kris msg10160/pgp0.pgp Description: PGP signature
Re: Ports base? [hear me roar]
On Mon, Nov 25, 2002 at 06:59:10PM -0800, Kris Kennaway wrote: On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: You dunderheads :) are all missing the point. Why isn't there something a few notches above pkg_add -r and a few notches below knowing how to cvsup and downloading a massive, obscenely extravagant ports tree? Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? No reason. Progress happens when someone sits down and does the work. Perhaps this would be a good project for you to learn more about the workings of FreeBSD. Kris Took the words right out of my mouth. Peter, these things get done by people doing them. That is the tautology of the situation. You might find your name in lights if you become that someone who does it. Btw you might consider the use of the refuse file if you wish to not download certain ports or categories of ports. I suppose if you put everything in the refuse file you may still get the ports framework, for whatever that is worth. My refuse file eliminates all the ports for the languages I don't speak, anything to do with palms, the new financial category and some others. Remember one of the advantages of having the tree is that by browsing the README's you may find just the program you are looking for without having to ask for it. If you are so tight on disk space you may have a problem building anything anyway. Get someone to buy you a bigger disk for Christmas :). -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base? [hear me roar]
Cliff Sarginson wrote: On Mon, Nov 25, 2002 at 06:59:10PM -0800, Kris Kennaway wrote: On Mon, Nov 25, 2002 at 09:53:29PM -0500, Peter Leftwich wrote: You dunderheads :) are all missing the point. Why isn't there something a few notches above pkg_add -r and a few notches below knowing how to cvsup and downloading a massive, obscenely extravagant ports tree? Why can't someone write a shell script or binary that would prompt the user with: Hello, which port would you like? No reason. Progress happens when someone sits down and does the work. Perhaps this would be a good project for you to learn more about the workings of FreeBSD. Kris Took the words right out of my mouth. Peter, these things get done by people doing them. That is the tautology of the situation. You might find your name in lights if you become that someone who does it. Btw you might consider the use of the refuse file if you wish to not download certain ports or categories of ports. I suppose if you put everything in the refuse file you may still get the ports framework, for whatever that is worth. My refuse file eliminates all the ports for the languages I don't speak, anything to do with palms, the new financial category and some others. Ah! But this breaks making /usr/ports/INDEX, which you are supposed to do everytime you cvsup the ports. Portsdb -U is still broken or at least it still generates many, many spurious messages. Remember one of the advantages of having the tree is that by browsing the README's you may find just the program you are looking for without having to ask for it. If you are so tight on disk space you may have a problem building anything anyway. Get someone to buy you a bigger disk for Christmas :). I have at least one system with a partition called ports that I mount as /usr/ports. I do the same thing to /usr/src and /usr/obj for speed. -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base?
Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. Is there a part of the handbook that explains how to do this? Or is there a single command line I can use to cvsup the ports base? I'm overdue. Copy /usr/share/examples/cvsup/ports-supfile to someplace convienent. Edit it and comment the ports-all and uncomment #ports-base and use it as the command argument to cvsup. It still sounds like you are trying to install the transmission and ignore the rest of the car. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base?
On Sun, Nov 24, 2002 at 12:03:46AM -0800, Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. I didn't think that sysinstall allowed you to install parts of the ports collection, only the entire collection (which is about 9MB). Kris msg09960/pgp0.pgp Description: PGP signature
Re: Ports base?
On Sunday, 24 November 2002 at 0:12:51 -0800, Kris Kennaway wrote: On Sun, Nov 24, 2002 at 12:03:46AM -0800, Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. I didn't think that sysinstall allowed you to install parts of the ports collection, only the entire collection (which is about 9MB). Those were the days. I've just checked out the ports tree, and it's 314 MB! This is probably partially a consequence of the larger file system block size on modern systems, and also of course because of the CVS directories (each of which takes up 16 kB), for a total of 128 MB. Even without them, though, that leaves 186 MB. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Ports base?
On Mon, Nov 25, 2002 at 10:48:31AM +1030, Greg 'groggy' Lehey wrote: On Sunday, 24 November 2002 at 0:12:51 -0800, Kris Kennaway wrote: On Sun, Nov 24, 2002 at 12:03:46AM -0800, Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. I didn't think that sysinstall allowed you to install parts of the ports collection, only the entire collection (which is about 9MB). Those were the days. I've just checked out the ports tree, and it's 314 MB! This is probably partially a consequence of the larger file system block size on modern systems, and also of course because of the CVS directories (each of which takes up 16 kB), for a total of 128 MB. Even without them, though, that leaves 186 MB. You're correct I was underestimating (I was thinking of the compressed ports.tar.gz file), but my CVS ports tree is only 204MB including CVS directories, so I think you're overestimating (perhaps you included the distfiles/ directory?) Kris msg10044/pgp0.pgp Description: PGP signature
Re: Ports base?
On Sunday, 24 November 2002 at 16:51:07 -0800, Kris Kennaway wrote: On Mon, Nov 25, 2002 at 10:48:31AM +1030, Greg 'groggy' Lehey wrote: On Sunday, 24 November 2002 at 0:12:51 -0800, Kris Kennaway wrote: On Sun, Nov 24, 2002 at 12:03:46AM -0800, Peter Leftwich wrote: I tried to install just the ports base using sysinstall but it started to download the entire ports collection, and my HD space is limited. I didn't think that sysinstall allowed you to install parts of the ports collection, only the entire collection (which is about 9MB). Those were the days. I've just checked out the ports tree, and it's 314 MB! This is probably partially a consequence of the larger file system block size on modern systems, and also of course because of the CVS directories (each of which takes up 16 kB), for a total of 128 MB. Even without them, though, that leaves 186 MB. You're correct I was underestimating (I was thinking of the compressed ports.tar.gz file), but my CVS ports tree is only 204MB including CVS directories, so I think you're overestimating (perhaps you included the distfiles/ directory?) Nope, as I said, I checked out a completely new tree from the repository. FWIW, my real ports tree (including distfiles) runs to 3.1 GB. I'd guess that your file system block size is smaller than mine. The default for new file systems is now 16 kB block and 2 kB fragments, and since nearly every file in the Ports Collection is smaller than the old 512 bytes fragment size, this means that they are now 1.5 kB larger. My ports tree currently has 170,000 files in it (including distfiles, admittedly; I don't want to check out again), so that's in the right ball park. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message