Hello !
I had so much pleasure building this .. that i think
it would have been selfish not to share it :-)
Below are a patch to the spec file and one to the
patch itself. Indeed, configure includes gmysql module by
default, that causes problems when building via openpkg and
no mysql.
[EMAIL PROTECTED] powerdns]# diff -Naur powerdns.spec.orig powerdns.spec
--- powerdns.spec.orig 2007-02-15 21:55:41.213476424 +0100
+++ powerdns.spec 2007-02-16 01:20:58.433011976 +0100
@@ -40,6 +40,7 @@
%option with_pipe no
%option with_mysql no
%option with_pgsql no
+%option with_sqlite no
# list of sources
Source0:
http://downloads.powerdns.com/releases/pdns-%{version}.tar.gz
@@ -66,6 +67,10 @@
%if "%{with_pgsql}" == "yes"
BuildPreReq: postgresql, postgresql::with_cxx = yes
PreReq: postgresql, postgresql::with_cxx = yes
+%if "%{with_sqlite}" == "yes"
+BuildPreReq: sqlite
+PreReq: sqlite
+%endif
%endif
AutoReq: no
AutoReqProv: no
@@ -115,6 +120,9 @@
%if "%{with_pgsql}" == "yes"
MODULES="$MODULES gpgsql"
%endif
+%if "%{with_sqlite}" == "yes"
+ MODULES="$MODULES gsqlite"
+%endif
MODULES=`echo "$MODULES" | sed 's;^ ;;'`
CC="%{l_cc}" \
CXX="%{l_cxx}" \
@@ -139,6 +147,12 @@
%else
--disable-pgsql \
%endif
+%if "%{with_sqlite}" == "yes"
+ --enable-sqlite \
+ --with-sqlite=%{l_prefix} \
+ --with-sqlite-includes=%{l_prefix}/include \
+ --with-sqlite-lib=%{l_prefix}/lib \
+%endif
--with-modules="$MODULES" \
--with-dynmodules="" \
--disable-shared
[EMAIL PROTECTED] powerdns]# diff -Naur powerdns.patch.orig powerdns.patch
--- powerdns.patch.orig 2007-02-16 01:08:33.430269608 +0100
+++ powerdns.patch 2007-02-16 01:10:28.640754952 +0100
@@ -92,3 +92,15 @@
/* FIRST PART */
class RandomBackend : public DNSBackend
{
+diff -Naur configure.orig configure
+--- configure.orig 2007-02-16 01:07:07.059399976 +0100
++++ configure 2007-02-16 01:07:19.887449816 +0100
+@@ -22154,7 +22154,7 @@
+
+
+
+-modules="gmysql geo"
++modules="geo"
+
+ # Check whether --with-modules was given.
+ if test "${with_modules+set}" = set; then
Olivier Kaloudoff
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List openpkg-users@openpkg.org