Slashdot Mirror


Cleaning and Customizing Your FreeBSD Ports

BSD Forums writes "One of FreeBSD's biggest benefits is its ports collection. It seems like magic, but a little maintenance can make it work even better for your system. Dru Lavigne explains how to keep your ports collection clean and how to customize individual ports."

32 comments

  1. Do not use soapy sponges by Dancin_Santa · · Score: 0, Offtopic

    I don't know what they were talking about there.

    Now my BSD cluster smells like Dove moisturizing body wash. This is going to linger...

  2. Similie (Socre:5, Informative) by cerskine · · Score: -1

    Browsing through the source code of *BSD is a little bit like reading the diary of a dead man.

  3. Tip by Anonymous Coward · · Score: -1, Offtopic
    always clean your porthole with soap and water before your boyfriend tosses salad. Nobody likes a grainy asshole!


    CmdrTaco, I'm talking to you!


    Jeff "Hemos" Bates.

  4. portsclean by Dukebytes · · Score: 4, Informative
    Good article on this. I checked and had a pile of stuff in dist files....

    That portsclean -DC works really well! Very through, updated the database and cleaned out a bunch of stuff. It seems like everything that the BSD people do is very stable and does exactly what they say it will do.

    I really don't understand why the BSD's don't get more involvement... Maybe I just haven't been invited into that L33t crowd - yet...
    Duke

    --

    FreeBSD: Nothing runs like a daemon with a pitch fork.
    1. Re:portsclean by Anonymous Coward · · Score: -1, Offtopic
      Fact: *BSD is dying

      It is common knowledge that *BSD is dying, that ever hapless *BSD is mired in an irrecoverable and mortifying tangle of fatal trouble. It is perhaps anybody's guess as to which *BSD is the worst off of an admittedly suffering *BSD community. The numbers continue to decline for *BSD but FreeBSD may be hurting the most. Look at the numbers. The erosion of user base for FreeBSD continues in a head spinning downward spiral.

      OpenBSD leader Theo states that there are 7000 users of OpenBSD. How many users of BSD are there? Let's see. The number of OpenBSD versus NetBSD posts on Usenet is roughly in ratio of 5 to 1. Therefore there are about 7000/5 = 1400 NetBSD users. BSD/OS posts on Usenet are about half of the volume of NetBSD posts. Therefore there are about 700 users of BSD/OS. A recent article put FreeBSD at about 80 percent of the *BSD market. Therefore there are (7000+1400+700)*4 = 36400 FreeBSD users. This is consistent with the number of FreeBSD Usenet posts.

      Due to the troubles of Walnut Creek, abysmal sales and so on, FreeBSD went out of business and was taken over by BSDI who sell another troubled OS. Now BSDI is also dead, its corpse turned over to yet another charnel house.

      All major marketing surveys show that *BSD has steadily declined in market share. *BSD is very sick and its long term survival prospects are very dim. If *BSD is to survive at all it will be among hobbyist dilettante dabblers. In truth, for all practical purposes *BSD is already dead. It is a dead man walking.

      Fact: *BSD is dying

    2. Re:portsclean by Brandybuck · · Score: 1

      Maybe I just haven't been invited into that L33t crowd - yet...

      You waiting for an invitation? Hey, this isn't Linux, you don't need one! Just come on.

      --
      Don't blame me, I didn't vote for either of them!
    3. Re:portsclean by Anonymous Coward · · Score: -1, Troll

      Who doesn't know that *BSD is dying? Why, it is a given that if you are a tuned in to professional IT trends, the cold hard facts of this shark tank are inescapable: *BSD is dying.

    4. Re:portsclean by Z4rd0Z · · Score: 3, Informative

      My method has always been
      # find /usr/ports -type d -name work |xargs rm -rf
      # cd /usr/ports/distfiles
      # rm everything except_big_stuff_like_X

      --
      You had me at "dicks fuck assholes".
    5. Re:portsclean by Anonymous Coward · · Score: 0

      Who doesn't know that *BSD is dying? Why, it is a given that if you are tuned in to professional IT trends, the cold hard facts of this shark tank are inescapable: *BSD is dying.

  5. Developer laments: What Killed FreeBSD by Anonymous Coward · · Score: -1, Offtopic
    The End of FreeBSD

    [ed. note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. It

  6. *BSD is dying by Anonymous Coward · · Score: -1, Offtopic
    Fact: *BSD is dying

    It is common knowledge that *BSD is dying, that ever hapless *BSD is mired in an irrecoverable and mortifying tangle of fatal trouble. It is perhaps anybody's guess as to which *BSD is the worst off of an admittedly suffering *BSD community. The numbers continue to decline for *BSD but FreeBSD may be hurting the most. Look at the numbers. The loss of user base for FreeBSD continues in a head spinning downward spiral.

    OpenBSD leader Theo states that there are 7000 users of OpenBSD. How many users of BSD are there? Let's see. The number of OpenBSD versus NetBSD posts on Usenet is roughly in ratio of 5 to 1. Therefore there are about 7000/5 = 1400 NetBSD users. BSD/OS posts on Usenet are about half of the volume of NetBSD posts. Therefore there are about 700 users of BSD/OS. A recent article put FreeBSD at about 80 percent of the *BSD market. Therefore there are (7000+1400+700)*4 = 36400 FreeBSD users. This is consistent with the number of FreeBSD Usenet posts.

    Due to the troubles of Walnut Creek, abysmal sales and so on, FreeBSD went out of business and was taken over by BSDI who sell another troubled OS. Now BSDI is also dead, its corpse turned over to yet another charnel house.

    All major marketing surveys show that *BSD has steadily declined in market share. *BSD is very sick and its long term survival prospects are very dim. If *BSD is to survive at all it will be among hobbyist dilettante dabblers. In truth, for all practical purposes *BSD is already dead. It is a dead man walking.

    Fact: *BSD is dying

  7. the BSD ghetto by Anonymous Coward · · Score: -1, Offtopic
    BSD you grow in the ghetto, living second rate
    And your eyes will sing a song of deep hate.
    The places you play and where you stay
    Looks like one great big alley way.
    You'll admire all the numberbook takers,
    Thugs, BSD pimps and pushers, and the big money makers.
  8. What's that smell? by Anonymous Coward · · Score: -1, Offtopic
    Did something die?

    It smells like something's dead in here.

    1. Re:What's that smell? by Anonymous Coward · · Score: 0

      Its now been over a month.

      Havn't you used some Linux and gotten cleaned up?

    2. Re:What's that smell? by Anonymous Coward · · Score: 0

      Uh oh, gotta spread some quick lime and shovel dirt over it.

  9. Elegy For *BSD by Anonymous Coward · · Score: -1, Troll

    Elegy for *BSD

    I am a *BSD user
    and I try hard to be brave
    That is a tall order
    *BSD's foot is in the grave.

    I tap at my toy keyboard
    and whistle a happy tune
    but keeping happy's so hard,
    *BSD died so soon.

    Each day I wake and softly sob
    Nightfall finds me crying
    Not only am I a zit faced slob
    but *BSD is dying.

  10. Speaking of getting cleaned . . . by Anonymous Coward · · Score: -1, Offtopic
    Young BSD man, are you listening to me?
    It's fun to stay at the Y-M-C-A.

    They have everything for you men to enjoy,
    You can hang out with all the BSD boys ...

    It's fun to stay at the Y-M-C-A.
    It's fun to stay at the Y-M-C-A.

    You can get yourself cleaned, you can have a good meal,
    You can do whatever you feel ...

    Young BSD man, are you listening to me?
    It's fun to stay at the Y-M-C-A.

  11. Also a disk space saver is... by horcy · · Score: 2, Informative

    ... cd /usr/ports/distfiles then rm -rf *

    --
    Check my site: http://pixel.pagina.nl
  12. Important information by Anonymous Coward · · Score: -1, Flamebait

    this Bitch iS Dead
  13. What I Know About *BSD by Anonymous Coward · · Score: -1, Flamebait
    1. You can not play games on it.
    2. It cannot be used by my grandma.
    3. It lacks a GUI of any note.
    4. There is no support available for it.
    5. It is an assortment of fragmented OSes.
    6. It cannot be run on the x86 platform.
    7. You have to compile everything and know C.
    8. Support for the latest hardware is always poor.
    9. It is incompatiable with GNU/Linux.
    10. It is dying.
    1. Re:What I Know About *BSD by Z4rd0Z · · Score: 1, Funny

      1. You can not play games on it.
      BSD is for work, NOT PLAY.

      2. It cannot be used by my grandma.
      Because your grandma is farting dust six feet under.

      3. It lacks a GUI of any note.
      Real Men don't use GUIs.

      4. There is no support available for it.
      Again, Real Men don't need support.

      5. It is an assortment of fragmented OSes.
      Um, this article is about BSD, not Linux. Learn to read.

      6. It cannot be run on the x86 platform.
      Everyone on Slashdot knows x86 is dead, where have you been?.

      7. You have to compile everything and know C.
      This feature helps to keep people like you out of the loop.

      8. Support for the latest hardware is always poor.
      The latest hardware is unstable so there is no use supporting it.

      9. It is incompatiable with GNU/Linux.
      GNU/Linux is incompatible with reality.

      10. It is dying.
      Eventually, decades from now, no one will be using BSD anymore because things will have advanced to the point where current tech is irrelevant. Yes, this means one day even Java will no longer be cutting edge.

      --
      You had me at "dicks fuck assholes".
    2. Re:What I Know About *BSD by Anonymous Coward · · Score: 0

      Feeding the trolls, because someone has to or they'll starve to death...

      You can not play games on it.

      I'm not a big game player, and I certainly don't play fps types, but there are many many games for FreeBSD. If it runs on Linux, it will run on FreeBSD. If it runs on Windows, a lot will still run on FreeBSD with WINE. I played CivIII on mine.

      It cannot be used by my grandma.

      So? Your grandma can't program her VCR either.

      It lacks a GUI of any note.

      KDE, GNOME, Xfce, Windowmaker, Blackbox, etc, etc. Native NVidia drivers. DRI. Just like Linux.

      There is no support available for it.

      DaemonNews, FreeBSDMall, Iron Systems, etc, etc. That's if you want paid support through a company. There's also tens of thousands of contractors for hire, several dozen mailing lists and forums, and unlike Linux, complete documentation.

      It is an assortment of fragmented OSes.

      Like Linux is not? FreeBSD is a single integrated operating system in a single source tree. Linux on the other hand is a welding together of many diverse projects, from the kernel to the various GNU projects, to distro supplied script-glue, to filesystems, to even BSD daemons and utilities.

      It cannot be run on the x86 platform.

      Don't bogart that dooby man! Pass it around, cause it must be good stuff.

      You have to compile everything and know C.

      No and no. Get a clue.

      Support for the latest hardware is always poor.

      Funny, I can't even install Linux on my current system. Because it's a Serial ATA only system. So far no Linux distro comes with SATA support in the install kernel. I could get it installed, but it would be a major pain in the butt, having to create a custom boot floppy on another system first.

      But FreeBSD had absolutely no problem with it. Native drivers for everything on the system, including the NVidia card. Everything worked out of the box with no hiccups. Hardware support under FreeBSD is catching up to Linux very very quickly.

      It is incompatiable with GNU/Linux.

      FreeBSD runs *ALL* userland Linux and GNU software that isn't pathologically dependent upon a kernel driver.

      It is dying.

      Aren't we all. I expect to keel over myself sometime in the next forty to fifty years.

    3. Re:What I Know About *BSD by __aafkqj3628 · · Score: 1

      You can not play games on it.
      Is Quake 3 not good enough for you?

      It cannot be used by my grandma.
      Grandma can't use a toaster, what's your point?

      It lacks a GUI of any note.
      *looks over to freebsd box and sees KDE running*

      There is no support available for it.
      No support for wimps.

      It is an assortment of fragmented OSes.
      You must have it confused with Red Hat. The colours are similar and those might confuse you.

      It cannot be run on the x86 platform.
      *looks at Cyrix 6x86 PR-200 for the second time today*

      You have to compile everything and know C.
      *wonders why my install took less than 2 hours on a 486*

      Support for the latest hardware is always poor.
      *looks at nVidia drivers*

      It is incompatiable with GNU/Linux.
      Has the Linux-compat broken again?

      It is dying.
      Luckily, so are you.

  14. Nice by __aafkqj3628 · · Score: 1

    Good article there, now I can finally remove all of the crap from my file server that I don't need (good timing too since I just got it up).

    Now, if I can only work out why sendmail (or at least the mailqueue) still insists on running *sigh*

    1. Re:Nice by atrus · · Score: 3, Informative

      You need to set sendmail_enable to NONE, not NO. NO simply disables the actual port 25 server, but not the mail queue.

    2. Re:Nice by __aafkqj3628 · · Score: 1

      Thanks, but WTF?!? Am I asking too much for a list of these options somewhere (or am I totally bind to have missed it?) or it a few dives through the source-code for me?

    3. Re:Nice by atrus · · Score: 1

      There was a big controversy on freebsd-stable awhile back on the evilness of the tri-state option. I think its an ugly fix, but nothing else seemed any prettier.

      You can always check /etc/defaults/rc.conf. I believe it is noted in there.

    4. Re:Nice by __aafkqj3628 · · Score: 2, Interesting

      What about having two -
      SENDMAIL_ENABLE
      SENDMAIL_INBOUND_ENABLE
      ?

      It is noted in there, was it not good enough for the doc guys?

      It's times like these, where I sliently swear that I'll fix it some day.

    5. Re:Nice by frankmanowar · · Score: 3, Informative

      It's in the freebsd handbook, in the sendmail section. it tells you to set sendmail_enable to none if you want to turn it off completely, or no if you want to just disable the daemon, but still wish to be able to send outgoing mail... you can find most basic stuff listed in the freebsd handbook, you really should be using it a lot in the beginning!

      http://www.freebsd.org/doc/en_US.ISO8859-1/books/h andbook/mail-changingmta.html

      -Frank
      --

      "Other bands play, but Manowar KILLS"
    6. Re:Nice by __aafkqj3628 · · Score: 1

      I know, but I'm not going to read through the whole thing before I get started (I usually want to use the system to find out how to use and configure it).
      But I guess I can't have everything (but grouped configuration settings should maybe in in an appendix somewhere?)

  15. Bob Hope joins the BSD team by Anonymous Coward · · Score: -1, Troll
    We must report with a heavy heart that Bob "I'm still dead" Hope has gone on to join the "B" team. As you all may know, BSD has been part of the "B" team for quite some time.

    The Year of Our Lord 2003 has been a particularly bad year for the "B"s,

    • Bob Hope
    • Buddy Ebsen
    • Buddy Hackett
    • Barry White
    • BSD
    This honored list of dead is but a small token of adieu from the many fans of the deceased.
    These dead were truly some American Icons. They will be missed.
  16. Coping with failure by Anonymous Coward · · Score: 0
    Although it is true that BSD is dying, there are some helpful steps you can take ease your sorrow,
    • deal with the inevitable.
    • grieve for your loss.
    • move on.
    Never let your emotions get mixed up with something as silly as a computer operating system. It isn't healthy. So BSD fails. Big whoop. Deal with it and move on.

    Hope this helps.