Why BSD's pmake is the best

Simplicity :) I strongly dislike autotools after dealing with it for a few years now. I shan’t go into the reasons why here though. But suffice to say that the whole build system required autotools. dhcpcd-3 supported BSD based systems, so it was only fair that we strive to support their base install. This means no autotools. So I set about discovering what I could do that worked on pmake and gmake.
Read full post

Gentoo starts to cut the cord

OK, so my readership probably just went down the tubes as my blog is no longer on Planet Gentoo. So let me say “Hi!” to the two readers I have left ;) Well, OpenRC/URC is pretty much done for a first release in terms of the software. All I’m doing now is writing man pages for everything as we relied a bit on the Gentoo Handbook. The userland applications have been done, including a very long one for runscript.
Read full post

OpenRC is Terminal

Sorry, that was meant to be goes terminal ;) Or more specifically, it can now query the termcap library to find out if your terminal supports the codes we need to do colour, boldness and cursor movement. We just use tgetent, tgetstr and tgoto, so just a standard libtermcap is all that is needed, but we optionally build against the more popular ncurses as well.Some BSDs termcap database is found on /usr, which is no good for us as we bring the system up, so we do have hardcoded escape codes for cons25 if querying the termcap database fails.
Read full post

Toying with ideas

Whilst forking OpenRC from baselayout and tying it into a vanilla FreeBSD I found myself asking “Why the need to mount a memory disk?” Well, we need an area to save service states, lock files, the dependency tree and a few other goodies even if no physical disks are mounted read-write. This is a little more challenging for BSD as we can only create disks of a fixed size, which is hardly at the cutting edge of efficiency.
Read full post

smaller init scripts again

#!/sbin/runscript command=/usr/sbin/ntpd pidfile=/var/run/ntpd.pid command_args="-p ${pidfile}${NTPD_OPTS}" required_files=/etc/ntp.conf depend() { need net use dns logger after ntp-client } OK, you don’t get the comment about where the example is, but heh.