head	1.22;
access;
symbols
	OPENPKG_E1_MP:1.3
	OPENPKG_E1_MP_HEAD:1.3;
locks; strict;
comment	@-- @;


1.22
date	2009.12.22.09.07.04;	author rse;	state Exp;
branches;
next	1.21;
commitid	c7erJZM3gAJkJlgu;

1.21
date	2009.08.10.07.18.17;	author rse;	state Exp;
branches;
next	1.20;
commitid	MtOFRuTr0iD3r7Zt;

1.20
date	2009.04.18.13.12.38;	author rse;	state Exp;
branches;
next	1.19;
commitid	4pHXU27WTIGCZuKt;

1.19
date	2009.02.13.23.13.17;	author rse;	state Exp;
branches;
next	1.18;
commitid	UNElj6BF9GpqrkCt;

1.18
date	2008.09.12.09.21.22;	author rse;	state Exp;
branches;
next	1.17;
commitid	OhBQA3uVyDbWMsit;

1.17
date	2008.03.25.07.28.07;	author rse;	state Exp;
branches;
next	1.16;
commitid	zKaiWbJzuUAREtWs;

1.16
date	2008.01.01.14.58.01;	author rse;	state Exp;
branches;
next	1.15;
commitid	B8esaHJHoduuKILs;

1.15
date	2007.11.27.10.56.02;	author cs;	state Exp;
branches;
next	1.14;
commitid	CRIvljOupD6mDcHs;

1.14
date	2007.10.20.06.25.39;	author rse;	state Exp;
branches;
next	1.13;
commitid	0ngf76FDDzDkmiCs;

1.13
date	2007.09.21.15.56.49;	author cs;	state Exp;
branches;
next	1.12;
commitid	LxAtluAdpAs4sCys;

1.12
date	2007.08.30.07.52.14;	author rse;	state Exp;
branches;
next	1.11;
commitid	KlLmdQbPRZ7FtKvs;

1.11
date	2007.08.17.14.57.55;	author cs;	state Exp;
branches;
next	1.10;
commitid	CnUPgKUwQ4UBf7us;

1.10
date	2007.06.30.07.52.19;	author rse;	state Exp;
branches;
next	1.9;
commitid	KjauZ2zTD0qgrUns;

1.9
date	2007.06.22.06.25.13;	author rse;	state Exp;
branches;
next	1.8;
commitid	OkPL6WAHb9kkdSms;

1.8
date	2007.06.20.06.27.24;	author rse;	state Exp;
branches;
next	1.7;
commitid	UokYwduf3s94iCms;

1.7
date	2007.05.25.15.06.49;	author cs;	state Exp;
branches;
next	1.6;
commitid	cpB0UxRGgIw30kjs;

1.6
date	2007.03.23.09.28.19;	author rse;	state Exp;
branches;
next	1.5;
commitid	nlOCObL98Gzu9cbs;

1.5
date	2007.02.15.06.18.24;	author cs;	state Exp;
branches;
next	1.4;
commitid	FDXu3fYMLOX4gy6s;

1.4
date	2007.01.10.07.50.16;	author rse;	state Exp;
branches;
next	1.3;
commitid	nuveh3eWIHflVV1s;

1.3
date	2007.01.01.17.39.35;	author rse;	state Exp;
branches;
next	1.2;
commitid	BicZD6VUl7GuqP0s;

1.2
date	2006.12.22.08.19.12;	author rse;	state Exp;
branches;
next	1.1;
commitid	k0jjNPn98uP8HuZr;

1.1
date	2006.11.25.11.47.57;	author rse;	state Exp;
branches;
next	;
commitid	2axfy4jTp2yyI2Wr;


desc
@@


1.22
log
@upgrading package: maradns 1.3.14 -> 1.4.01
@
text
@##
##  maradns.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  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.
##

#   package version
%define       V_major 1.4
%define       V_minor 01

#   package information
Name:         maradns
Summary:      Authoritative & Caching DNS Server
URL:          http://www.maradns.org/
Vendor:       Sam Trenholme
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        DNS
License:      MIT-style
Version:      %{V_major}.%{V_minor}
Release:      20091222

#   package options
%option       with_authonly  no

#   list of sources
Source0:      http://www.maradns.org/download/%{V_major}/%{version}/maradns-%{version}.tar.gz
Source1:      rc.maradns
Source2:      mararc

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
PreReq:       OpenPKG, openpkg >= 20040130
AutoReq:      no
AutoReqProv:  no

%description
    MaraDNS is a secure, full-featured and easy to use Domain Name
    Service (DNS) server supporting both the authoritative and recursive
    resolving and caching operations.

%track
    prog maradns = {
        version   = %{version}
        url       = http://www.maradns.org/download.html
        regex     = maradns-(__VER__)\.tar\.(gz|bz2)
    }

%prep
    %setup -q

%build
    #   configure program
%if "%{with_authonly}" == "yes"
    ./configure --authonly
%else
    ./configure
%endif

    #   build program
    %{l_make} %{l_mflags}

%install
    #   create installation hierarchy
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/bin \
        $RPM_BUILD_ROOT%{l_prefix}/sbin \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
        $RPM_BUILD_ROOT%{l_prefix}/etc/maradns \
        $RPM_BUILD_ROOT%{l_prefix}/var/maradns \
        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8

    #   install program
    %{l_shtool} subst -e 's;RPM_BUILD_ROOT;PREFIX;g' build/install.sh
    export PREFIX=$RPM_BUILD_ROOT%{l_prefix}
    export LANGUAGE=en
    %{l_make} %{l_mflags} install

    #   strip down installation
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/maradns/logger
    rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/mararc

    #   install default configuration
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE mararc} $RPM_BUILD_ROOT%{l_prefix}/etc/maradns/
    sed -e 's;net;com;' -e 's;NET;COM;' \
        <$RPM_BUILD_ROOT%{l_prefix}/etc/maradns/db.example.net \
        >$RPM_BUILD_ROOT%{l_prefix}/etc/maradns/db.example.com

    #   install run-command script
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.maradns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/maradns/*' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/maradns'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} maradns status 2>/dev/null`
    [ ".$maradns_active" = .yes ] && %{l_rc} maradns restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} maradns stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/maradns/* >/dev/null 2>&1 || true
    exit 0

@


1.21
log
@upgrading package: maradns 1.3.13 -> 1.3.14
@
text
@d25 2
a26 2
%define       V_major 1.3
%define       V_minor 14
d39 1
a39 1
Release:      20090810
@


1.20
log
@bump years in copyright messages
@
text
@d26 1
a26 1
%define       V_minor 13
d39 1
a39 1
Release:      20090214
@


1.19
log
@upgrading package: maradns 1.3.12 -> 1.3.13
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.18
log
@upgrading package: maradns 1.3.11 -> 1.3.12
@
text
@d26 1
a26 1
%define       V_minor 12
d39 1
a39 1
Release:      20080912
@


1.17
log
@upgrading package: maradns 1.3.10 -> 1.3.11
@
text
@d26 1
a26 1
%define       V_minor 11
d39 1
a39 1
Release:      20080325
@


1.16
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d26 1
a26 1
%define       V_minor 10
d39 1
a39 1
Release:      20080101
@


1.15
log
@upgrading package: maradns 1.3.09 -> 1.3.10
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d39 1
a39 1
Release:      20071127
@


1.14
log
@upgrading package: maradns 1.3.08 -> 1.3.09
@
text
@d27 1
a27 1
%define       V_minor 09
d40 1
a40 1
Release:      20071020
@


1.13
log
@upgrading package: maradns 1.3.07.04 -> 1.3.08
@
text
@d27 1
a27 1
%define       V_minor 08
d40 1
a40 1
Release:      20070921
@


1.12
log
@upgrading package: maradns 1.3.07.03 -> 1.3.07.04
@
text
@d27 1
a27 1
%define       V_minor 07.04
d40 1
a40 1
Release:      20070830
@


1.11
log
@upgrading package: maradns 1.3.07.02 -> 1.3.07.03
@
text
@d27 1
a27 1
%define       V_minor 07.03
d40 1
a40 1
Release:      20070817
@


1.10
log
@upgrading package: maradns 1.3.07.01 -> 1.3.07.02
@
text
@d27 1
a27 1
%define       V_minor 07.02
d40 1
a40 1
Release:      20070630
@


1.9
log
@upgrading package: maradns 1.3.06 -> 1.3.07.01
@
text
@d27 1
a27 1
%define       V_minor 07.01
d40 1
a40 1
Release:      20070622
@


1.8
log
@upgrading package: maradns 1.3.05 -> 1.3.06
@
text
@d27 1
a27 1
%define       V_minor 06
d40 1
a40 1
Release:      20070620
@


1.7
log
@upgrading package: maradns 1.3.04 -> 1.3.05
@
text
@d27 1
a27 1
%define       V_minor 05
d40 1
a40 1
Release:      20070525
@


1.6
log
@upgrading package: maradns 1.3.03 -> 1.3.04
@
text
@d27 1
a27 1
%define       V_minor 04
d40 1
a40 1
Release:      20070323
@


1.5
log
@upgrading package: maradns 1.3.02 -> 1.3.03
@
text
@d27 1
a27 1
%define       V_minor 03
d40 1
a40 1
Release:      20070215
@


1.4
log
@upgrading package: maradns 1.3.01 -> 1.3.02
@
text
@d27 1
a27 1
%define       V_minor 02
d40 1
a40 1
Release:      20070110
@


1.3
log
@Welcome Year 2007!
@
text
@d27 1
a27 1
%define       V_minor 01
d40 1
a40 1
Release:      20061222
@


1.2
log
@upgrading package: maradns 1.2.12.04 -> 1.3.01
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.1
log
@new package: maradns 1.2.12.04 (Authoritative & Caching DNS Server)
@
text
@d26 2
a27 2
%define       V_major 1.2
%define       V_minor 12.04
d40 1
a40 1
Release:      20061125
@

