| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- ##
- ## ecartis.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://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.
- ##
- # package version
- %define V_main 1.0.0
- %define V_snap 20050909
- %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
- Distribution: OpenPKG
- Class: EVAL
- Group: Mail
- License: GPL
- Version: %{V_here}
- Release: 20050911
- # 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
|