Local slave port for emulators/virtualbox-ose-additions without OpenGL and X11

I have a bunch of FreeBSD VMs running in VirtualBox. They all share a number of virtual harddrives, and among them are a virtual harddrive with the common contents of /var/db/ports.

My ports configuration of emulators/virtualbox-ose-additions have the OPENGL and X11 options set. This is useless on some of my simpler VMs, as those VMs have no need for any X11 ports, but they could sure benefit from having the VirtualBox additions installed. These simpler VMs are usually used only to test ZFS in FreeBSD in various configurations.

I could juggle the settings for emulators/virtualbox-ose-additions for each time I’m updating the VirtualBox additions port on my VMs, but I decided to create a local slave port disabling the OPENGL and X11 options. Maybe this port, with the necessary tweaking, could sit among its siblings in the official emulators category.


MASTERDIR=	${.CURDIR}/../../emulators/virtualbox-ose-additions
.include "${MASTERDIR}/Makefile"


COMMENT=	VirtualBox additions for FreeBSD guests without OPENGL and X11


PKGNAMESUFFIX=	-additions-nox11



For now you must copy the /var/db/ports/local_virtualbox-ose-additions-additions-nox11/options file to /var/db/ports/emulators_virtualbox-ose-additions-additions-nox11/options, or else dialog4ports(1) will keep nagging you until kingdom come.

I guess this problem stems from early processing of bsd.port.mk as done by the master Makefile at a time when the CATEGORIES variable was set to emulators.

oinkmaster, wget, and HTTPS download of snort rules

oinkmaster started complaining like this the other day:

root@enterprise:~>oinkmaster -Q -b /usr/local/etc/snort/backup -o /usr/local/etc/snort/rules

/usr/local/bin/oinkmaster: Error: could not download from https://www.snort.org/pub-bin/oinkmaster.cgi/*oinkcode*/snortrules-snapshot-2961.tar.gz. Output from wget follows:

 https://www.snort.org/pub-bin/oinkmaster.cgi/*oinkcode*/snortrules-snapshot-2961.tar.gzResolving www.snort.org (www.snort.org)...,,
Connecting to www.snort.org (www.snort.org)||:443... connected.
ERROR: cannot verify www.snort.org's certificate, issued by '/C=US/O=Thawte, Inc./CN=Thawte SSL CA':
  Self-signed certificate encountered.
To connect to www.snort.org insecurely, use `--no-check-certificate'.

Oink, oink. Exiting...

Order was restored once again by adding the following line to .wgetrc in roots home directory:

check_certificate = off

This is not the proper way of handling HTTPS security, but it gets the job done. Previously we used HTTP access for downloading our snort rules, and it’s only recently we were redirected to use HTTPS access.

A private conversation is now a terrorist act!

Welcome to the United States of Earth. It is now a terrorist act to have a private conversation! And if saying so will get us arrested, pick me first! It will not change my participation level until my computer is forcefully taken away from me.

(In Norwegian also known as “Amerikas forenklete stater.” (“The Simplified States of America.”))

From: https://www.schneier.com/blog/archives/2014/07/nsa_targets_pri.html#c6673575.

Feedback forms on the web and stupid web programming

I filled out a feedback form on the web only to realise what a terrible job the web programmers had done. After I clicked on the submit button, the webserver was kind enough to send a copy of my complaint to my email address.

The sad thing is that the email address I’d entered in the feedback form was used both as the sender’s address and as the recipient’s address. With strict SPF records enforced for my DNS domain, my MTA refused to deliver me the emailed copy. However, I did in a way receive the emailed copy, but only because I run my own SMTP service and thus receive any diagnostically generated messages.

The morale of this story is simply to use an email address based on your own valid DNS domain as the sender’s address, e.g. noreply@example.net. Never ever impose as the complainer. How hard can this be?

Yet another technical oriented blog, more or less