Commit 7a7174a3 authored by Carlo Landmeter's avatar Carlo Landmeter

main/dansguardian: fix build with eglibc and gcc 4.6

parent 214e43f4
......@@ -16,12 +16,13 @@ source="http://dansguardian.org/downloads/2/Stable/$pkgname-$pkgver.tar.gz
dansguardian.logrotate
ftp-credential.patch
dansguardian-2.10.1.1-gcc44.patch
"
gcc4.6.patch"
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../ftp-credential.patch || return 1
patch -p1 -i ../dansguardian-2.10.1.1-gcc44.patch || return 1
patch -p1 -i ../gcc4.6.patch || return 1
# do not block "microsoft...clustimg=..." and similar
sed -e 's:\.\*:.{1,10}:g' configs/lists/bannedregexpurllist
......@@ -46,4 +47,5 @@ md5sums="0987a1c9bfbdf398118386f10279611a dansguardian-2.10.1.1.tar.gz
feaa8582f8c0251a4bff76b5e05c9369 dansguardian.initd
85b6de01c9508e8ceff5ebb55752f8d3 dansguardian.logrotate
475c46026e8553181d293d5a4feaf6d9 ftp-credential.patch
2c78b5c7346b8fcb3dee352e0c53cb5a dansguardian-2.10.1.1-gcc44.patch"
2c78b5c7346b8fcb3dee352e0c53cb5a dansguardian-2.10.1.1-gcc44.patch
858ea94750a9b32e7715f3da8ef4ae3c gcc4.6.patch"
#! /bin/sh /usr/share/dpatch/dpatch-run
## 70-gcc4.6.dpatch by Daniel T Chen <crimsun@ubuntu.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix FTBFS by including cstddef for size_t
@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dansguardian-2.10.1.1~/src/authplugins/ntlm.cpp dansguardian-2.10.1.1/src/authplugins/ntlm.cpp
--- dansguardian-2.10.1.1~/src/authplugins/ntlm.cpp 2008-11-18 06:27:04.000000000 -0500
+++ dansguardian-2.10.1.1/src/authplugins/ntlm.cpp 2011-08-25 16:37:38.000000000 -0400
@@ -27,6 +27,8 @@
#include "../FDTunnel.hpp"
#include "../OptionContainer.hpp"
+#include <cstddef>
+
#include <syslog.h>
#include <iconv.h>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment