[csw-devel] SF.net SVN: gar:[17937] csw/mgar/pkg/powerdns/trunk/Makefile
wilbury at users.sourceforge.net
wilbury at users.sourceforge.net
Sat May 5 11:55:11 CEST 2012
Revision: 17937
http://gar.svn.sourceforge.net/gar/?rev=17937&view=rev
Author: wilbury
Date: 2012-05-05 09:55:11 +0000 (Sat, 05 May 2012)
Log Message:
-----------
powerdns/trunk: Update to 3.1, work in progress
Modified Paths:
--------------
csw/mgar/pkg/powerdns/trunk/Makefile
Modified: csw/mgar/pkg/powerdns/trunk/Makefile
===================================================================
--- csw/mgar/pkg/powerdns/trunk/Makefile 2012-05-04 21:30:59 UTC (rev 17936)
+++ csw/mgar/pkg/powerdns/trunk/Makefile 2012-05-05 09:55:11 UTC (rev 17937)
@@ -2,7 +2,7 @@
# $Id$
#
NAME = pdns
-VERSION = 3.0.1
+VERSION = 3.1
CATEGORIES = server
GARTYPE = v2
@@ -12,30 +12,31 @@
backends. Current backends include MySQL, PostgreSQL, bind, etc.
endef
+# Open issues:
+# -llber
+# timegm() in utils.hh ldapbackend
+# endian.h net.c
+#
+# AR libpolarssl.a
+# ar: creating libpolarssl.a
+# RL libpolarssl.a
+# ar: one of [drqtpmx] must be specified
+# gmake[5]: *** [libpolarssl.a] Error 1
+# ^^^ treba pouzit ranlib
+#
+# @@SYSCONFDIR@@
+# asprintf http://blogs.everycity.co.uk/alasdair/2011/07/vasprintf-and-asprintf-on-solaris-10/
+#
MASTER_SITES = http://downloads.powerdns.com/releases/
SPKG_SOURCEURL = http://www.powerdns.com/
DISTFILES = $(NAME)-$(VERSION).tar.gz
DISTFILES += LICENSE
DISTFILES += cswpdns
-PATCHFILES += 0001-Make-checking-for-LUA-behave-correctly.patch
-PATCHFILES += 0002-Use-sys-isa_defs.h-instead-of-endian.h.patch
-PATCHFILES += 0003-Include-correct-sys-ethernet.h.patch
-PATCHFILES += 0004-Build-only-stub-LUA-pdns-recursor-implementation.-Do.patch
-PATCHFILES += 0005-Use-correct-namespace-for-timegm.patch
-PATCHFILES += 0006-Use-also-llber-with-lldap.patch
-PATCHFILES += 0009-Expand-SYSCONFDIR-properly.patch
-WORKSRC = $(WORKDIR)/$(NAME)-$(VERSION)
+WORKSRC = $(WORKDIR)/$(NAME)
-# File name regex to get notifications about upstream software releases
-UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
-
-# If the url used to check for software update is different of MASTER_SITES, then
-# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
-# UPSTREAM_MASTER_SITES =
-
LICENSE = $(FILEDIR)/LICENSE
-PACKAGING_PLATFORMS += solaris10-i386 solaris10-sparc
+PACKAGING_PLATFORMS = solaris10-i386
GARCOMPILER = GNU
NORUNPATH = 1
@@ -53,14 +54,21 @@
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --sysconfdir=/etc/$(prefix)/pdns
CONFIGURE_ARGS += --libdir=$(prefix)/lib/pdns
-CONFIGURE_ARGS += --disable-recursor
+CONFIGURE_ARGS += --enable-recursor
CONFIGURE_ARGS += --with-lua=no
CONFIGURE_ARGS += --with-boost=/opt/csw/gxx
CONFIGURE_ARGS += --with-mysql=$(prefix)
CONFIGURE_ARGS += --with-mysql-lib=$(prefix)/lib
CONFIGURE_ARGS += --with-mysql-includes=$(prefix)/include
-CONFIGURE_ARGS += --with-modules="ldap geo gmysql"
+CONFIGURE_ARGS += --with-sqlite3
+CONFIGURE_ARGS += --with-sqlite=$(prefix)
+CONFIGURE_ARGS += --with-sqlite-lib=$(prefix)/lib
+CONFIGURE_ARGS += --with-sqlite-includes=$(prefix)/include
+CONFIGURE_ARGS += --with-modules="ldap geo gmysql gsqlite3"
+EXTRA_CONFIGURE_ENV += "PKG_CONFIG=/opt/csw/bin/pkg-config"
+EXTRA_CONFIGURE_ENV += "PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig"
+
# Prepend Boost 1.49 installation in paths so we pick up the correct one
EXTRA_INC = /opt/csw/gxx/include
LDFLAGS += -L/opt/csw/gxx/lib
@@ -79,7 +87,8 @@
RUNTIME_DEP_PKGS_CSWpdns += CSWlibboost-s13n1-49-0-gxx
RUNTIME_DEP_PKGS_CSWpdns += CSWliblber2-4-2
RUNTIME_DEP_PKGS_CSWpdns += CSWlibldap-r2-4-2
-BUILD_DEP_PKGS = CSWmysql-dev CSWboostdevel
+RUNTIME_DEP_PKGS_CSWpdns += CSWlibsqlite3-0
+BUILD_DEP_PKGS = CSWmysql-dev CSWboostdevel CSWlibsqlite3-dev CSWopenldap-dev CSWlibz-dev
# These are not errors!
CHECKPKG_OVERRIDES_CSWpdns += catalogname-does-not-match-pkgname|pkgname=CSWpdns|catalogname=powerdns|expected-catalogname=pdns
@@ -87,6 +96,10 @@
INITSMF = /etc/opt/csw/init.d/cswpdns
PRESERVECONF = /etc/opt/csw/pdns/pdns.conf
+pre-configure-modulated:
+ (cd $(WORKSRC) && autoreconf -i && ./bootstrap)
+ @$(MAKECOOKIE)
+
post-install-modulated:
@echo " ==> Installing Init Script"
@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list