head	1.28;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.26
	OPENPKG_E1_MP:1.26
	OPENPKG_E1_MP_2_STABLE:1.23.2.2
	OPENPKG_E1_FP:1.23.2.2
	OPENPKG_2_STABLE_MP:1.25
	OPENPKG_2_STABLE_20061018:1.23.2.2
	OPENPKG_2_STABLE_20060622:1.23.2.1
	OPENPKG_2_STABLE:1.23.0.2
	OPENPKG_2_STABLE_BP:1.23
	OPENPKG_2_5_RELEASE:1.19.2.1
	OPENPKG_2_5_SOLID:1.19.0.2
	OPENPKG_2_5_SOLID_BP:1.19
	OPENPKG_CW_FP:1.12;
locks; strict;
comment	@-- @;


1.28
date	2009.04.18.13.10.04;	author rse;	state Exp;
branches;
next	1.27;
commitid	4pHXU27WTIGCZuKt;

1.27
date	2008.01.01.14.53.24;	author rse;	state Exp;
branches;
next	1.26;
commitid	B8esaHJHoduuKILs;

1.26
date	2007.01.01.17.37.38;	author rse;	state Exp;
branches;
next	1.25;
commitid	BicZD6VUl7GuqP0s;

1.25
date	2006.10.13.17.27.51;	author thl;	state Exp;
branches;
next	1.24;
commitid	q5GSxzsSDX29XxQr;

1.24
date	2006.08.13.15.51.17;	author rse;	state Exp;
branches;
next	1.23;
commitid	bIVTDf0j0xzipHIr;

1.23
date	2006.01.30.18.16.44;	author rse;	state Exp;
branches
	1.23.2.1;
next	1.22;
commitid	8R49QXRpXRGNtEjr;

1.22
date	2006.01.01.13.13.20;	author rse;	state Exp;
branches;
next	1.21;
commitid	otZG8yKMCw1JFTfr;

1.21
date	2005.11.15.07.11.47;	author rse;	state Exp;
branches;
next	1.20;
commitid	1Do05Wicusp9fP9r;

1.20
date	2005.10.22.10.34.53;	author rse;	state Exp;
branches;
next	1.19;

1.19
date	2005.10.10.17.58.15;	author rse;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2005.10.05.18.43.00;	author steve;	state Exp;
branches;
next	1.17;

1.17
date	2005.09.21.18.11.30;	author rse;	state Exp;
branches;
next	1.16;

1.16
date	2005.09.20.06.14.49;	author rse;	state Exp;
branches;
next	1.15;

1.15
date	2005.09.18.10.46.35;	author mk;	state Exp;
branches;
next	1.14;

1.14
date	2005.09.11.07.35.55;	author rse;	state Exp;
branches;
next	1.13;

1.13
date	2005.03.24.11.18.43;	author rse;	state Exp;
branches;
next	1.12;

1.12
date	2005.02.16.21.46.15;	author rse;	state Exp;
branches;
next	1.11;

1.11
date	2005.01.02.09.17.54;	author rse;	state Exp;
branches;
next	1.10;

1.10
date	2005.01.01.10.48.54;	author rse;	state Exp;
branches;
next	1.9;

1.9
date	2004.04.27.18.14.35;	author rse;	state Exp;
branches;
next	1.8;

1.8
date	2004.02.07.17.54.40;	author rse;	state Exp;
branches;
next	1.7;

1.7
date	2004.02.03.20.00.52;	author rse;	state Exp;
branches;
next	1.6;

1.6
date	2004.01.23.13.08.33;	author rse;	state Exp;
branches;
next	1.5;

1.5
date	2003.12.29.11.48.40;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2003.12.03.19.03.53;	author rse;	state Exp;
branches;
next	1.3;

1.3
date	2003.10.24.14.40.23;	author rse;	state Exp;
branches;
next	1.2;

1.2
date	2003.10.24.14.33.53;	author cs;	state Exp;
branches;
next	1.1;

1.1
date	2003.10.24.13.15.47;	author cs;	state Exp;
branches;
next	;

1.23.2.1
date	2006.06.20.15.16.28;	author rse;	state Exp;
branches;
next	1.23.2.2;
commitid	P9b9BoNafLYTTKBr;

1.23.2.2
date	2006.10.16.14.49.47;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;

1.19.2.1
date	2005.10.11.12.49.49;	author rse;	state Exp;
branches;
next	;


desc
@@


1.28
log
@bump years in copyright messages
@
text
@##
##  ecartis.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_main    1.0.0
%define       V_snap    20060813
%define       V_here    %{V_main}.%{V_snap}

#   package information
Name:         ecartis
Summary:      Ecartis Mailing List Manager
URL:          http://www.ecartis.org/
Vendor:       Noderunner Computing
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        PLUS
Group:        Mail
License:      GPL
Version:      %{V_here}
Release:      20080101

#   list of sources
Source0:      ftp://ftp.ecartis.org/pub/ecartis/snapshots/tar/ecartis-%{V_main}-snap%{V_snap}.tar.gz
Source1:      ecartis.cfg
Source2:      ecartis.aliases
Source3:      banned
Patch0:       ecartis.patch

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

%description
    Ecartis is a open-source software package that administers mailing
    lists similar to Majordomo and Listserv. Ecartis' feature list
    includes anti-spam hooks, ability to strip down MIME messages and
    remove their attachments, virtual hosts, just to name a few).
    Ecartis was formerly known as Listar.

%track
    prog ecartis = {
        version   = %{V_main}-snap%{V_snap}
        url       = ftp://ftp.ecartis.org/pub/ecartis/snapshots/tar
        regex     = ecartis-((\d+\.)*\d+(-snap\d{8})?)\.tar\.gz
    }

%prep
    %setup -q -n ecartis-%{V_main}
    %patch -p0
    ( cd src
      %{l_shtool} install -c -m 644 Makefile.dist Makefile
      %{l_shtool} subst \
          -e 's;^\(DYNMOD=.*\)$;#\1;' \
          -e 's;^\(CC=\).*$;\1%{l_cc};' \
          -e 's;^\(	\{1,\}\)chmod \(.*\)$;\1-chmod \2;' \
          -e 's;^\(WFLAGS *=.*\)$;#\1;' \
          Makefile
      case "%{l_platform -t}" in
          *-sunos5* )
              %{l_shtool} subst \
                  -e 's;^\#\(SUNOS_5 *=\).*$;\1 1;' \
                  -e 's;^\#\(NEED_FLOCK *=.*\)$;\1;' \
                  -e 's;^\#\(NEED_STRERROR *=.*\)$;\1;' \
                  Makefile
              ;;
      esac
    ) || exit $?

%build
    ( cd src
      #   we call 'make' twice intentionally since the dependencies described
      #   in the Makefile are not sufficient and one could end up in a broken
      #   or incomplete build -- sigh
      %{l_make} %{l_mflags} make_modules
      %{l_make} %{l_mflags} ecartis
    ) || exit $?

%install
    rm -rf $RPM_BUILD_ROOT

    #   create directory structure
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/ecartis
    %{l_shtool} mkdir -f -p -m 711 \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis
    %{l_shtool} mkdir -f -p -m 751 \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/lists
    %{l_shtool} mkdir -f -p -m 750 \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/modules \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/queue \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/scripts \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/templates \
        $RPM_BUILD_ROOT%{l_prefix}/var/ecartis/log

    #   install Ecartis executable
    %{l_shtool} install -c -s -m 755 \
        src/build/ecartis \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/

    #   install Ecartis configuration file
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE ecartis.cfg} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/ecartis/
    ln -s ../../etc/ecartis/ecartis.cfg \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/ecartis.cfg

    #   install alias configuration file
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE ecartis.aliases} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/ecartis/
    ln -s ../../etc/ecartis/ecartis.aliases \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/ecartis.aliases

    #   install global blacklist configuration file
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE banned} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/ecartis/
    ln -s ../../etc/ecartis/banned \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/banned

    #   install additional files
    %{l_shtool} install -c -m 644 \
        ecartis.hlp \
        spam-regexp.sample \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/
    %{l_shtool} install -c -m 644 \
        scripts/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/scripts/
    %{l_shtool} install -c -m 644 \
        templates/* \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/ecartis/templates/

    #   determine file list
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
        '%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/ecartis/*' \
        '%attr(4711,%{l_rgrp},%{l_rgrp}) %{l_prefix}/libexec/ecartis/ecartis' \
        '%dir %attr(0750,%{l_rgrp},%{l_rgrp}) %{l_prefix}/libexec/ecartis/lists' \
        '%dir %attr(0750,%{l_rgrp},%{l_rgrp}) %{l_prefix}/libexec/ecartis/queue'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.27
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.26
log
@Welcome Year 2007!
@
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/>
d40 1
a40 1
Release:      20061013
@


1.25
log
@new world order for "Packager" and "Distribution" headers
@
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.24
log
@upgrading package: ecartis 1.0.0.20060130 -> 1.0.0.20060813
@
text
@d35 2
a36 2
Packager:     OpenPKG
Distribution: OpenPKG
d41 1
a41 1
Release:      20060813
@


1.23
log
@upgrading package: ecartis 1.0.0.20051114 -> 1.0.0.20060130
@
text
@d27 1
a27 1
%define       V_snap    20060130
d41 1
a41 1
Release:      20060130
@


1.23.2.1
log
@bump release numbers for OpenPKG 2.20060622 in advance
@
text
@d41 1
a41 1
Release:      2.20060622
d53 2
a54 2
BuildPreReq:  OpenPKG, openpkg >= 2.20060622, gcc, make
PreReq:       OpenPKG, openpkg >= 2.20060622, MTA
@


1.23.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@d27 1
a27 1
%define       V_snap    20060813
d35 2
a36 2
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
d41 1
a41 1
Release:      2.20061018
d53 2
a54 2
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, gcc, make
PreReq:       OpenPKG, openpkg >= 2.20061018, MTA
@


1.22
log
@adjust copyrights for new year 2006
@
text
@d27 1
a27 1
%define       V_snap    20051114
d41 1
a41 1
Release:      20051115
@


1.21
log
@upgrading package: ecartis 1.0.0.20051021 -> 1.0.0.20051114
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
@


1.20
log
@upgrading package: ecartis 1.0.0.20051004 -> 1.0.0.20051021
@
text
@d27 1
a27 1
%define       V_snap    20051021
d41 1
a41 1
Release:      20051022
@


1.19
log
@bless for PLUS class
@
text
@d27 1
a27 1
%define       V_snap    20051004
d41 1
a41 1
Release:      20051010
@


1.19.2.1
log
@bump release numbers for OpenPKG 2.5
@
text
@d41 1
a41 1
Release:      2.5.0
d53 2
a54 2
BuildPreReq:  OpenPKG, openpkg >= 2.5.0, gcc, make
PreReq:       OpenPKG, openpkg >= 2.5.0, MTA
@


1.18
log
@upgrading package: ecartis 1.0.0.20050921 -> 1.0.0.20051004
@
text
@d37 1
a37 1
Class:        EVAL
d41 1
a41 1
Release:      20051005
@


1.17
log
@upgrading package: ecartis 1.0.0.20050919 -> 1.0.0.20050921
@
text
@d27 1
a27 1
%define       V_snap    20050921
d41 1
a41 1
Release:      20050921
@


1.16
log
@upgrading package: ecartis 1.0.0.20050917 -> 1.0.0.20050919
@
text
@d27 1
a27 1
%define       V_snap    20050919
d41 1
a41 1
Release:      20050920
@


1.15
log
@upgrading package: ecartis 1.0.0.20050909 -> 1.0.0.20050917
@
text
@d27 1
a27 1
%define       V_snap    20050917
d41 1
a41 1
Release:      20050918
@


1.14
log
@upgrading package: ecartis 1.0.0.20050101 -> 1.0.0.20050909
@
text
@d27 1
a27 1
%define       V_snap    20050909
d41 1
a41 1
Release:      20050911
@


1.13
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d27 1
a27 1
%define       V_snap    20050101
d41 1
a41 1
Release:      20050216
@


1.12
log
@seems to require GNU make
@
text
@d2 3
a4 4
##  ecartis.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
d35 1
a35 1
Packager:     The OpenPKG Project
@


1.11
log
@upgrading package: ecartis 1.0.0.20040426 -> 1.0.0.20050101
@
text
@d42 1
a42 1
Release:      20050102
d54 1
a54 1
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
@


1.10
log
@Happy New Year 2005
@
text
@d28 1
a28 1
%define       V_snap    20040426
d42 1
a42 1
Release:      20040427
@


1.9
log
@upgrading package: ecartis 1.0.0.20031228 -> 1.0.0.20040426
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2004 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
@


1.8
log
@Mass Commit:
reduce redundancy within .spec files by referencing
macros defining vendor source versions whenever possible.
This was half-way automated and half-way manually edited.
As a result the PMOD activity in 95% of all cases
just means editing the version in one single place, only.
@
text
@d28 1
a28 1
%define       V_snap    20031228
d42 1
a42 1
Release:      20040207
@


1.7
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
  (new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
  new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
  and "%track" section are only supported by our latest bootstrap version.
@
text
@d42 1
a42 1
Release:      20040203
d68 1
a68 1
        version   = 1.0.0-snap20031228
@


1.6
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d37 2
a38 1
Distribution: OpenPKG [EVAL]
d42 1
a42 1
Release:      20031229
d54 2
a55 2
BuildPreReq:  OpenPKG, openpkg >= 20030716, gcc
PreReq:       OpenPKG, openpkg >= 20030716, MTA
d65 7
@


1.5
log
@upgrading package: ecartis 1.0.0.20031203 -> 1.0.0.20031228
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
@


1.4
log
@upgrading package: ecartis 1.0.0.20030814 -> 1.0.0.20031203
@
text
@d28 1
a28 1
%define       V_snap    20031203
d41 1
a41 1
Release:      20031203
@


1.3
log
@some cosmetics and bless into EVAL
@
text
@d28 1
a28 1
%define       V_snap    20030814
d41 1
a41 1
Release:      20031024
@


1.2
log
@modifying package: ecartis-1.0.0.20030814 20031024 again
@
text
@d26 4
a29 3
%define       V_main            1.0.0
%define       V_snap            20030814
%define       V_here            %{V_main}.%{V_snap}
d37 1
a37 1
Distribution: OpenPKG [JUNK]
d91 1
a91 1
      #   or incomplete build - sigh
d139 1
a143 1

a146 1

@


1.1
log
@new package: ecartis 1.0.0.20030814 (Ecartis Mailling List Manager)
@
text
@d32 1
a32 1
Summary:      Ecartis Mailling List Manager
@

