Explorar o código

initial submit, not yet usuable

Michael van Elst %!s(int64=23) %!d(string=hai) anos
pai
achega
a28f0b7b40
Modificáronse 4 ficheiros con 295 adicións e 0 borrados
  1. 91 0
      poweradmin/poweradmin.spec
  2. 16 0
      powerdns/fsl.powerdns
  3. 171 0
      powerdns/powerdns.spec
  4. 17 0
      powerdns/rc.powerdns

+ 91 - 0
poweradmin/poweradmin.spec

@@ -0,0 +1,91 @@
+##
+##  poweradmin.spec -- OpenPKG RPM Specification
+##  Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
+##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
+##
+##  Permission to use, copy, modify, and distribute this software for
+##  any purpose with or without fee is hereby granted, provided that
+##  the above copyright notice and this permission notice appear in all
+##  copies.
+##
+##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+##  SUCH DAMAGE.
+##
+
+# FIXME mlelstv - JUNK because no apache config
+
+#   package information
+Name:         poweradmin
+Summary:      Web-based front-end for the PowerDNS
+URL:          http://www.poweradmin.org/
+Vendor:       The PowerAdmin Team
+Packager:     The OpenPKG Project
+Distribution: OpenPKG [JUNK]
+Group:        Network
+License:      QPL
+Version:      1.2.4
+Release:      20030227
+
+#   list of sources
+Source0:      http://osdn.dl.sourceforge.net/poweradmin/poweradmin-%{version}.tar.bz2
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20030103
+PreReq:       OpenPKG, openpkg >= 20030103, apache, apache::with_php = yes
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    This project is a web-based front-end for the PowerDNS
+    (www.powerdns.com) DNS server. The goal is to create a web-based
+    administration system that is more comprehensive in features and
+    support than any other administration system currently existing. We
+    aim to surpass the simplicity of webmin and keep the usability of
+    phpMyAdmin.
+
+%prep
+    %setup -q
+
+%build
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+
+    %{l_shtool} mkdir -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/inc \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/images \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/style \
+        $RPM_BUILD_ROOT%{l_prefix}/share/poweradmin
+    %{l_shtool} install -c -m 644 \
+        inc/*.php \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/inc
+    %{l_shtool} install -c -m 644 \
+        images/* \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/images
+    %{l_shtool} install -c -m 644 \
+        style/*.php \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/poweradmin/style
+    %{l_shtool} install -c -m 644 \
+        docs/* \
+        $RPM_BUILD_ROOT%{l_prefix}/share/poweradmin
+
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+

+ 16 - 0
powerdns/fsl.powerdns

@@ -0,0 +1,16 @@
+##
+##  fsl.powerdns -- OSSP fsl configuration for PowerDNS DNS-Server
+##
+
+ident (powerdns)/.+ q{
+    prefix(
+        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
+    ) 
+    -> {
+        debug: file(
+            path="@l_prefix@/var/powerdns/powerdns.log",
+            append=1, perm=0600
+        )
+    }
+};
+

+ 171 - 0
powerdns/powerdns.spec

@@ -0,0 +1,171 @@
+##
+##  powerdns.spec -- OpenPKG RPM Specification
+##  Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
+##  Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
+##  Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
+##
+##  Permission to use, copy, modify, and distribute this software for
+##  any purpose with or without fee is hereby granted, provided that
+##  the above copyright notice and this permission notice appear in all
+##  copies.
+##
+##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+##  SUCH DAMAGE.
+##
+
+# FIXME mlelstv - JUNK because not well tested and no config
+
+#   package information
+Name:         powerdns
+Summary:      PowerDNS high performance authoritative-only name server
+URL:          http://www.powerdns.com/products/powerdns/
+Vendor:       PowerDNS.COM BV
+Packager:     The OpenPKG Project
+Distribution: OpenPKG [JUNK]
+Group:        unknown
+License:      GPL
+Version:      2.9.6
+Release:      20030227
+
+#   list of sources
+Source0:      http://downloads.powerdns.com/releases/pdns-%{version}.tar.gz
+Source1:      rc.powerdns
+Source2:      fsl.powerdns
+
+#   package options
+%option       with_pipe  no
+%option       with_mysql no
+%option       with_pgsql no
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20021204
+%if "%{with_mysql}" == "yes"
+BuildPreReq:  MYSQL
+%endif
+%if "%{with_pgsql}" == "yes"
+BuildPreReq:  postgresql
+%endif
+PreReq:       OpenPKG, openpkg >= 20021204
+%if "%{with_mysql}" == "yes"
+PreReq:       MYSQL
+%endif
+%if "%{with_pgsql}" == "yes"
+PreReq:       postgresql
+%endif
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    The PowerDNS name server is a modern, advanced and high performance
+    authoritative-only nameserver. It is written from scratch and conforms
+    to all the relevant DNS standards documents.
+
+    The PowerDNS name server utilizes a flexible backend architecture which
+    can access DNS information from any data source. This includes file
+    formats, Bind zone files, relational databases or LDAP directories.
+
+    By connecting directly to a database, no 'reloading' is needed. Changes 
+    committed to the database are effective immediately.
+
+    If you have specific needs for your DNS infrastructure then you can use
+    the Backend Developers Kit to write the 'glue' between PowerDNS and your
+    data or logic.
+
+    Since version 2.9, PowerDNS is licensed under GNU General Public License
+    version 2. 
+
+%prep
+    %setup -q -n pdns-%{version}
+
+%build
+    MODULES=""
+%if "%{with_pipe}" == "yes"
+    MODULES="$MODULES pipe"
+%endif
+%if "%{with_mysql}" == "yes"
+    MODULES="$MODULES gmysql"
+%endif
+%if "%{with_pgsql}" == "yes"
+    MODULES="$MODULES gpgsql"
+%endif
+    MODULES=`echo "$MODULES" | sed 's;^ ;;'`
+    CC="%{l_cc}" \
+    CXX="%{l_cxx}" \
+    CFLAGS="%{l_cflags -O} -g" \
+    CXXFLAGS="%{l_cxxflags -O} -g -DDLLIMPORT=" \
+    CPPFLAGS="%{l_cppflags} -DDLLIMPORT=" \
+    LDFLAGS="%{l_ldflags}" \
+    ./configure \
+        --prefix=%{l_prefix} \
+        --sysconfdir=%{l_prefix}/etc/powerdns \
+%if "%{with_mysql}" == "yes"
+        --enable-mysql \
+        --with-mysql=%{l_prefix} \
+%else
+        --disable-mysql \
+%endif
+%if "%{with_pgsql}" == "yes"
+        --enable-pgsql \
+        --with-pgsql=%{l_prefix} \
+        --with-pgsql-includes=%{l_prefix}/include/libpq++ \
+        --with-pgsql-lib=%{l_prefix}/lib \
+%else
+        --disable-pgsql \
+%endif
+        --with-modules="$MODULES" \
+        --with-dynmodules="" \
+        --disable-shared \
+        --enable-verbose-logging
+    CXXFLAGS="%{l_cxxflags -O} -DDLLIMPORT= -DHAVE_NAMESPACE_STD" \
+    CPPFLAGS="%{l_cppflags} -DDLLIMPORT= -DHAVE_NAMESPACE_STD" \
+         %{l_make} %{l_mflags -O}
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+
+    #   Clean up installation
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
+
+    #   Setup config file
+    mv  $RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf-dist \
+        $RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
+
+    #   Creating run-command script
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
+    %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
+        -e 's;@l_susr@;%{l_susr};g' -e 's;@l_sgrp@;%{l_sgrp};g' \
+        -e 's;@l_musr@;%{l_musr};g' -e 's;@l_mgrp@;%{l_mgrp};g' \
+        %{SOURCE rc.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+    #   Creating fsl directory
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
+    %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
+        %{SOURCE fsl.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
+
+    strip $RPM_BUILD_ROOT%{l_prefix}/bin/*  >/dev/null 2>&1 || true
+    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
+        '%config %attr(0600,root,%{l_mgrp}) %{l_prefix}/etc/powerdns/*' \
+        '%config %{l_prefix}/etc/fsl/fsl.powerdns' \
+        '%not %dir %{l_prefix}/etc/fsl'
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+

+ 17 - 0
powerdns/rc.powerdns

@@ -0,0 +1,17 @@
+#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+##  rc.powerdns -- Run-Commands for PowerDNS DNS-Server
+##
+
+%config
+    powerdns_enable="yes"
+
+%start -p 200 -u root
+    opServiceEnabled powerdns || exit 0
+
+%stop -p 200 -u root
+    opServiceEnabled powerdns || exit 0
+
+%restart -u root
+    opServiceEnabled powerdns || exit 0
+