User:Fostermarkd/FreeBSD

From ConShell

Jump to: navigation, search

This page is all about FreeBSD and is maintained by --User:Fostermarkd

Contents

Systems

My systems are running these [versions]:

Involvement & Advocacy

I have been using FreeBSD since 2000 and am an active ports maintainer. This has by and large been on the server side of things.

From 2004-2006 I helped run the Seattle BSD Users Group and I continue to maintain the website.

Ports I maintain

As of late, I have been taking on more and more port maintainenance. I maintain the following ports (software packages):

Ports under consideration or working on but not submitted/committed

These ports I am considering for possible maintainership:


See all ports I maintain and the error logs for the same. Also handy is the portscout report showing whether any ports I maintain are out-of-date. See my Applications page for other apps I tend to install.

Update process

This is how I update my systems.

  1. Run pkg_cutleaves - identify and remove any extraneous ports
  2. Run /home/mdf/myupdate - (see below for script) this brings ports and src trees up to date. It also will build kernel and world if necessary.
  3. If myupdate triggered build world... run cd /usr/src; make installkernel; reboot ... cd /usr/src; make installworld; mergemaster; reboot
  4. Now update ports... portmaster -ia

myupdate

This is a script I wrote to accelerate the update process.

# $Id: myupdate,v 1.1 2007/09/08 14:33:10 mdf Exp $
# This script is meant to be run once a day and if necessary, make world
# To do so I usually just slap an entry into the system crontab like this:
#minute hour    mday    month   wday    who     command
#30     2       *       *       *       root    /home/mdf/myupdate >> /var/log/myupdate.log 2>&1

# This is where we run our make buildworld and all that
build() {
        echo "Inside build()"
        cd /usr/src
        echo ""
        echo "!!! Running make buildkernel at `date`"
        echo ""
        time make buildkernel > make-buildkernel.log 2>&1
        echo ""
        echo "!!! Running make buildworld at `date`"
        echo ""
        time make buildworld > make-buildworld.log 2>&1
        return 0
}

if [ -f /tmp/myupdate.lock ]; then
        echo "Found /tmp/myupdate.lock - aborting"
        echo "If there really isn't another myupdate running, you can probably"
        echo "just remove the lock file and start again."
        exit 1; #errorful
fi
touch /tmp/myupdate.lock
mv -f /usr/src/UPDATING /usr/src/UPDATING.last
# Pull down the latest changes
csup /etc/supfile
/usr/bin/cmp -s /usr/src/UPDATING /usr/src/UPDATING.last
#If the files are the same, $? will be 0, otherwise 1
CHANGED=$?
#echo "CHANGED is $CHANGED"
if [ $CHANGED != 0 ]; then
        echo "UPDATING has changed, by god!"
        build 1
fi

rm -f /tmp/myupdate.lock

See Also

--fostermarkd

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox


check web page