]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/pdns/pdns.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / pdns / pdns.nm
index 4e572858ddc18030d68dd8e85ce57bd8efb465c0..39d3edc823d6a6b1f277bb32e5efbfba05b3338f 100644 (file)
@@ -1,69 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pdns
-PKG_VER        = 3.0
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/DNS
-PKG_URL        = http://powerdns.com/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A modern, advanced and high performance authoritative-only nameserver.
+name       = pdns
+version    = 3.0
+release    = 1
 
-PKG_BUILD_DEPS+= boost-devel chrpath gcc-c++ lua-devel openldap-devel \
-       sqlite-devel zlib-devel
+groups     = Networking/DNS
+url        = http://powerdns.com/
+license    = GPLv2
+summary    = A modern, advanced and high performance authoritative-only nameserver.
 
-define PKG_DESCRIPTION
-       The PowerDNS Nameserver is a modern, advanced and high performance \
-       authoritative-only nameserver. It is written from scratch and conforms \
-       to all relevant DNS standards documents. \
+description
+       The PowerDNS Nameserver is a modern, advanced and high performance
+       authoritative-only nameserver. It is written from scratch and conforms
+       to all relevant DNS standards documents.
        Furthermore, PowerDNS interfaces with almost any database.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-export CPPFLAGS = -DLDAP_DEPRECATED
-
-PARALLELISMFLAGS =
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc/pdns \
-       --libdir=/usr/lib/powerdns \
-       --with-modules="" \
-       --with-dynmodules="pipe geo ldap gsqlite3" \
-       --with-lua \
-       --disable-static
-
-define STAGE_INSTALL_CMDS
-       chrpath --delete $(BUILDROOT)/usr/bin/pdns_control
-       chrpath --delete $(BUILDROOT)/usr/bin/zone2ldap
-       chrpath --delete $(BUILDROOT)/usr/bin/zone2sql
-       chrpath --delete $(BUILDROOT)/usr/sbin/pdns_server
-       chrpath --delete $(BUILDROOT)/usr/lib/powerdns/*.so
-       chrpath --delete $(BUILDROOT)/usr/bin/dnsreplay
-       chrpath --delete $(BUILDROOT)//usr/bin/pdnssec
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               boost-devel
+               chrpath
+               gcc-c++
+               lua-devel
+               openldap-devel
+               sqlite-devel
+               zlib-devel
+       end
+
+       CPPFLAGS = -DLDAP_DEPRECATED
+
+       PARALLELISMFLAGS =
+
+       configure_options += \
+               --sysconfdir=/etc/pdns \
+               --libdir=/usr/lib/powerdns \
+               --with-modules="" \
+               --with-dynmodules="pipe geo ldap gsqlite3" \
+               --with-lua \
+               --disable-static
+
+       install_cmds
+               chrpath --delete %{BUILDROOT}/usr/bin/pdns_control
+               chrpath --delete %{BUILDROOT}/usr/bin/zone2ldap
+               chrpath --delete %{BUILDROOT}/usr/bin/zone2sql
+               chrpath --delete %{BUILDROOT}/usr/sbin/pdns_server
+               chrpath --delete %{BUILDROOT}/usr/lib/powerdns/*.so
+               chrpath --delete %{BUILDROOT}/usr/bin/dnsreplay
+               chrpath --delete %{BUILDROOT}//usr/bin/pdnssec
+       end
+end
+
+packages
+       package %{name}
+end