Skip to content

Instantly share code, notes, and snippets.

@wiedi
wiedi / seafile-server-and-deps.diff
Created August 11, 2014 16:15
seafile for pkgsrc first steps...
diff --git a/databases/libzdb/DESCR b/databases/libzdb/DESCR
new file mode 100644
index 0000000..0049f7a
--- /dev/null
+++ b/databases/libzdb/DESCR
@@ -0,0 +1,4 @@
+The Zild Database Library implements a small, fast, and easy to use database
+API with thread-safe connection pooling. The library can connect transparently
+to multiple database systems, has zero configuration and connections are
+specified via a standard URL scheme
.ifdef BSD_PKG_MK # begin pkgsrc settings
ABI= 64
PKGSRC_COMPILER= gcc
GCCBASE= /opt/local/gcc47
PKG_DBDIR= /opt/local/pkg
LOCALBASE= /opt/local
VARBASE= /var
PKG_TOOLS_BIN= /opt/local/sbin
#!/usr/bin/python
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
@wiedi
wiedi / exim-4.84nb1-skylime-with-redis-proxy-and-queueruns-fixed.diff
Created October 20, 2014 14:17
skylime pkgsrc exim changes october 14q2
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 3705b5e..c9dd297 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.133 2014/06/14 10:18:05 wiedi Exp $
-DISTNAME= exim-4.82.1
+DISTNAME= exim-4.84
PKGREVISION= 1
core.spamd.23758
libperl.so`Perl_leave_scope+0x1f8()
libperl.so`Perl_call_sv+0x2d3()
libperl.so`Perl_sighandler+0x21b()
libc.so.1`__sighndlr+6()
libc.so.1`call_user_handler+0x1db(e, 0, fffffd7fffdff150)
libc.so.1`sigacthandler+0x10e(e, 0, fffffd7fffdff150)
libc.so.1`memcpy+0x196f()
libperl.so`Perl_safesysrealloc+0x18()
libperl.so`Perl_savestack_grow_cnt+0x3e()
@wiedi
wiedi / gist:1ab3fe57646cc73eb9e0
Created October 21, 2014 22:11
pkgsrc: apache mod_ssl memory leak fix
diff --git a/www/apache24/Makefile b/www/apache24/Makefile
index 9a27c27..28af70e 100644
--- a/www/apache24/Makefile
+++ b/www/apache24/Makefile
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.29.2.1 2014/07/27 06:12:47 spz Exp $
DISTNAME= httpd-2.4.10
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/httpd/apache/}
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
REPO=$(pwd)
if [ $# -eq 1 ]; then
REPO="$1"
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
REPO=$(pwd)
if [ $# -eq 1 ]; then
REPO="$1"
fi
vmdiff() {
if [ $# -ne 1 ]; then
echo "vmdiff <uuid>"
return
fi
VM_ZFS=zones/$1
zfs diff $(zfs get -Ho value origin $VM_ZFS) $VM_ZFS
}
dladm set-linkprop -p adv_autoneg_cap=0,adv_1000fdx_cap=0,adv_1000hdx_cap=0,adv_100fdx_cap=1,adv_100hdx_cap=0,adv_10fdx_cap=0,adv_10hdx_cap=0 e1000g0
ndd -set /dev/e1000g0 adv_autoneg_cap 0
ndd -set /dev/e1000g0 adv_1000fdx_cap 0
ndd -set /dev/e1000g0 adv_1000hdx_cap 0
ndd -set /dev/e1000g0 adv_100fdx_cap 1
ndd -set /dev/e1000g0 adv_100hdx_cap 0
ndd -set /dev/e1000g0 adv_10fdx_cap 0
ndd -set /dev/e1000g0 adv_10hdx_cap 0