Skip to content

Instantly share code, notes, and snippets.

@matthiasr
matthiasr / autokernconf_profile.patch
Created March 15, 2011 15:27
DragonFly build system: set KERNCONF environment variable by default
commit 318bc983b7cb89a6a7058690ea7b76eb1e89f26b
Author: Matthias Rampke <matthias@rampke.de>
Date: Tue Mar 15 14:09:19 2011 +0100
set KERNCONF environment variable by default
to the currently running kernel's config name (uname -i).
A straightforward kernel upgrade thus reduces to
@matthiasr
matthiasr / logstat.awk
Created May 20, 2011 17:34
Smiley statistics for IRC log files
#!/usr/bin/awk -f
# usage:
# ARGV[0] <user 1> <user 2> {-|<files>}
BEGIN {
print ARGC;
if ( ARGC <= 3 ) {
print "Usage:\n\t"ARGV[0]" <user 1> <user 2> <files>";
@matthiasr
matthiasr / Makefile
Created June 13, 2011 13:24
2pktfkt.de breach post-mortem
MARKDOWN?= markdown
all: report.html
%.html: %.md
echo "<!doctype html>" > $@
echo "<html><body>" >> $@
$(MARKDOWN) $< >> $@
echo "</body></html>" >> $@
@matthiasr
matthiasr / presale-check.sh
Created October 23, 2011 20:52
check if 28C3 presale is online. add this as a cronjob.
#!/bin/sh
URLS="http://presale.events.ccc.de/ https://presale.events.ccc.de/"
MAILTO="foo@example.com bar@example.org"
TIMEOUT=10
for URL in $URLS; do
DONEFILE=${PWD}/.urlcheckdone.$(echo ${URL} | sed -e 's/[^-[:alnum:]_]/_/g')
[ -f ${DONEFILE} ] && continue
diff --git a/lang/python24/distinfo b/lang/python24/distinfo
index 30450c6..4c49933 100644
--- a/lang/python24/distinfo
+++ b/lang/python24/distinfo
@@ -15,7 +15,7 @@ SHA1 (patch-ai) = 6435c5a7269c14d94eab6fb9777b9d059507e7b8
SHA1 (patch-aj) = e471737ade95423039661b475f2dd0fc27aa9dac
SHA1 (patch-ak) = 4c6708eb29757179e6855d8fbe78cab92c5a18d5
SHA1 (patch-al) = 3bcbdcacc451c8a354ea2d9e9887e61edaabfa41
-SHA1 (patch-am) = ffa0c2c37bdcfe121d4bb10be6c76d06b77fcca6
+SHA1 (patch-am) = 5d7ab2469887f9308698d2ef7f136cc528467bdf
diff --git a/lang/python24/patches/patch-am b/lang/python24/patches/patch-am
index 44d081f..ef1605d 100644
--- a/lang/python24/patches/patch-am
+++ b/lang/python24/patches/patch-am
@@ -271,7 +271,7 @@ $NetBSD: patch-am,v 1.8 2011/10/31 06:50:53 sbd Exp $
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
VAR1?= without quotes
VAR2?="with quotes"
a:
.if !empty(VAR1:Mquotes)
@echo ${VAR1}
.endif
.if !empty(VAR2:Mquotes)
@echo ${VAR2}
.endif
commit 9411b77d8f638afa71ab12c5ed9f1eb0bc887cb4
Author: Matthias Rampke <matthias@rampke.de>
Date: Sat Dec 3 20:56:57 2011 +0100
pkgtools/pkglint: recognise FETCH_USING
TODO does not check for usable fetch tool
diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map
index 156ebfd..5381819 100644
diff --git a/doc/TODO b/doc/TODO
index 0619674..693c816 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -1031,7 +1031,6 @@ For possible perl packages updates, see http://www.pkgbox.org/p2c/
o ocamlnet-2.2.4
o ocsigen-1.1.0 [pkg/40761]
o octave-3.4.3
- o offlineimap-6.4.2
o olvwm-4.5
@matthiasr
matthiasr / pkgsrc-libaudiofile.patch
Created December 29, 2011 14:34
pkgsrc patch for libaudiofile not checking for libm
commit 4ed7ddf1e3a30f65f8b5d4a63bcffe8317c42b10
Author: Matthias Rampke <matthias@rampke.de>
Date: Thu Dec 29 14:41:31 2011 +0100
audio/libaudiofile: add configure check for libm
diff --git a/audio/libaudiofile/distinfo b/audio/libaudiofile/distinfo
index e19de6b..86c54e0 100644
--- a/audio/libaudiofile/distinfo
+++ b/audio/libaudiofile/distinfo