head	1.50;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.32
	OPENPKG_E1_MP:1.32
	OPENPKG_E1_MP_2_STABLE:1.30.2.2
	OPENPKG_E1_FP:1.30.2.2
	OPENPKG_2_STABLE_MP:1.33
	OPENPKG_2_STABLE_20061018:1.30.2.2
	OPENPKG_2_STABLE:1.30.0.2
	OPENPKG_CW_FP:1.2;
locks; strict;
comment	@-- @;


1.50
date	2009.11.22.22.24.10;	author rse;	state Exp;
branches;
next	1.49;
commitid	kl24TeBiEKmA6zcu;

1.49
date	2009.10.26.18.27.56;	author rse;	state Exp;
branches;
next	1.48;
commitid	j5eMaRiK9UglF49u;

1.48
date	2009.06.19.21.04.41;	author rse;	state Exp;
branches;
next	1.47;
commitid	FAiIEqgDWjJcGvSt;

1.47
date	2009.04.18.13.12.20;	author rse;	state Exp;
branches;
next	1.46;
commitid	4pHXU27WTIGCZuKt;

1.46
date	2009.03.08.09.45.10;	author rse;	state Exp;
branches;
next	1.45;
commitid	gQunIQm2s46medFt;

1.45
date	2009.02.17.20.37.47;	author rse;	state Exp;
branches;
next	1.44;
commitid	QWwAJTGxjP17sPCt;

1.44
date	2008.09.30.05.57.58;	author rse;	state Exp;
branches;
next	1.43;
commitid	7Ep48HsfCWmh5Lkt;

1.43
date	2008.03.11.06.56.34;	author rse;	state Exp;
branches;
next	1.42;
commitid	3pmmXyt7hAJWVFUs;

1.42
date	2008.01.01.14.57.30;	author rse;	state Exp;
branches;
next	1.41;
commitid	B8esaHJHoduuKILs;

1.41
date	2007.10.27.11.59.33;	author cs;	state Exp;
branches;
next	1.40;
commitid	XKMxflRJ6S7CYdDs;

1.40
date	2007.09.10.05.39.27;	author rse;	state Exp;
branches;
next	1.39;
commitid	Jj2HUtU5I2oco9xs;

1.39
date	2007.08.29.07.08.50;	author rse;	state Exp;
branches;
next	1.38;
commitid	QLSoq6ZXusvLgCvs;

1.38
date	2007.07.25.05.13.46;	author cs;	state Exp;
branches;
next	1.37;
commitid	g6KgjLACJlI2L6rs;

1.37
date	2007.07.20.20.17.21;	author thl;	state Exp;
branches;
next	1.36;
commitid	yCyWfcoNSNOaUxqs;

1.36
date	2007.04.14.08.03.58;	author rse;	state Exp;
branches;
next	1.35;
commitid	6bunVmuLLUmIY0es;

1.35
date	2007.03.26.07.55.45;	author rse;	state Exp;
branches;
next	1.34;
commitid	yqdwy3c6ox6Lxzbs;

1.34
date	2007.03.26.07.46.03;	author rse;	state Exp;
branches;
next	1.33;
commitid	o488rnWtF5gquzbs;

1.33
date	2007.02.04.15.31.27;	author rse;	state Exp;
branches;
next	1.32;
commitid	7KNJx1ih3o4JFb5s;

1.32
date	2007.01.01.17.39.26;	author rse;	state Exp;
branches;
next	1.31;
commitid	BicZD6VUl7GuqP0s;

1.31
date	2006.12.11.07.53.23;	author rse;	state Exp;
branches;
next	1.30;
commitid	Z963zQ4oZ2McU4Yr;

1.30
date	2006.10.16.11.15.32;	author rse;	state Exp;
branches
	1.30.2.1;
next	1.29;
commitid	nFX3qCpvE1s9PTQr;

1.29
date	2006.10.13.17.29.37;	author thl;	state Exp;
branches;
next	1.28;
commitid	q5GSxzsSDX29XxQr;

1.28
date	2006.10.12.19.56.04;	author rse;	state Exp;
branches;
next	1.27;
commitid	LX032lIW5GeHPqQr;

1.27
date	2006.10.10.05.53.59;	author rse;	state Exp;
branches;
next	1.26;
commitid	DAaEwwOdKupNe6Qr;

1.26
date	2006.09.23.17.08.29;	author rse;	state Exp;
branches;
next	1.25;
commitid	b5TOS3rmFHZ4wYNr;

1.25
date	2006.08.25.19.17.14;	author rse;	state Exp;
branches;
next	1.24;
commitid	Tvsj1UyQ8rQ89gKr;

1.24
date	2006.06.22.08.51.11;	author rse;	state Exp;
branches;
next	1.23;
commitid	esq11mwTN8DKKYBr;

1.23
date	2006.03.10.07.43.46;	author rse;	state Exp;
branches;
next	1.22;
commitid	AzQJnKfhmEdWIBor;

1.22
date	2006.02.24.09.12.18;	author rse;	state Exp;
branches;
next	1.21;
commitid	f8dwa0xkVohdFOmr;

1.21
date	2006.02.23.20.41.39;	author rse;	state Exp;
branches;
next	1.20;
commitid	zewI0idszK7HvKmr;

1.20
date	2006.01.15.09.20.15;	author rse;	state Exp;
branches;
next	1.19;
commitid	byy2w3I2wOGEZFhr;

1.19
date	2006.01.09.14.09.35;	author cs;	state Exp;
branches;
next	1.18;
commitid	vSRuDJZgFsgRMVgr;

1.18
date	2006.01.01.13.16.09;	author rse;	state Exp;
branches;
next	1.17;
commitid	otZG8yKMCw1JFTfr;

1.17
date	2005.11.29.12.05.03;	author cs;	state Exp;
branches;
next	1.16;
commitid	nw8GJcEvMEaRpEbr;

1.16
date	2005.11.24.09.20.42;	author thl;	state Exp;
branches;
next	1.15;
commitid	8rArgZTb6yorFZar;

1.15
date	2005.11.03.07.08.52;	author rse;	state Exp;
branches;
next	1.14;
commitid	VtSa5x4Ts2f4Ch8r;

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

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

1.12
date	2005.09.16.18.23.05;	author cs;	state Exp;
branches;
next	1.11;

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

1.10
date	2005.08.31.07.46.50;	author cs;	state Exp;
branches;
next	1.9;

1.9
date	2005.08.31.06.28.43;	author cs;	state Exp;
branches;
next	1.8;

1.8
date	2005.08.22.17.26.15;	author cs;	state Exp;
branches;
next	1.7;

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

1.6
date	2005.08.01.09.28.59;	author thl;	state Exp;
branches;
next	1.5;

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

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

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

1.2
date	2005.03.23.14.14.17;	author rse;	state Exp;
branches;
next	1.1;

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

1.30.2.1
date	2006.10.16.11.15.32;	author rse;	state dead;
branches;
next	1.30.2.2;
commitid	iZxwRSmmWscPXUQr;

1.30.2.2
date	2006.10.16.14.52.19;	author rse;	state Exp;
branches;
next	1.30.2.3;
commitid	iZxwRSmmWscPXUQr;

1.30.2.3
date	2006.12.22.19.13.25;	author thl;	state Exp;
branches;
next	1.30.2.4;
commitid	2LefOfqsS8nsjyZr;

1.30.2.4
date	2007.02.07.20.36.30;	author thl;	state Exp;
branches;
next	;
commitid	buiDpkvFRFCkgB5s;


desc
@@


1.50
log
@upgrading package: lighttpd 1.4.24 -> 1.4.25
@
text
@##
##  lighttpd.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 information
Name:         lighttpd
Summary:      Flexible High-Performance Web Server
URL:          http://www.lighttpd.net/
Vendor:       Jan Kneschke
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        BASE
Group:        Web
License:      MIT-style
Version:      1.4.25
Release:      20091122

#   package options
%option       with_fsl    yes
%option       with_pcre   yes
%option       with_bzip2  no
%option       with_ipv6   no
%option       with_mysql  no
%option       with_ldap   no
%option       with_dav    no
%option       with_ssl    no
%option       with_lua    no

#   list of sources
Source0:      http://www.lighttpd.net/download/lighttpd-%{version}.tar.gz
Source1:      lighttpd.conf
Source2:      rc.lighttpd
Source3:      fsl.lighttpd

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823, make, gcc
PreReq:       OpenPKG, openpkg >= 20060823
BuildPreReq:  zlib
PreReq:       zlib
%if "%{with_bzip2}" == "yes"
BuildPreReq:  bzip2
PreReq:       bzip2
%endif
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl
PreReq:       fsl
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq:  mysql, zlib
PreReq:       mysql, zlib
%endif
%if "%{with_ldap}" == "yes"
BuildPreReq:  openldap, openssl
PreReq:       openldap, openssl
%endif
%if "%{with_pcre}" == "yes"
BuildPreReq:  pcre
PreReq:       pcre
%endif
%if "%{with_dav}" == "yes"
BuildPreReq:  libxml, sqlite
PreReq:       libxml, sqlite
%endif
%if "%{with_ssl}" == "yes"
BuildPreReq:  openssl
PreReq:       openssl
%endif
%if "%{with_lua}" == "yes"
BuildPreReq:  lua
PreReq:       lua
%endif
AutoReq:      no
AutoReqProv:  no

%description
    lighttpd is a secure, fast, compliant and very flexible web-server
    which has been optimized for high-performance environments. It has
    a very low memory footprint compared to other webservers and takes
    care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
    output compression, URL-rewriting and many more) make lighttpd the
    perfect web-server software for every server that is suffering load
    problems. As lighttpd is hard to pronounce you might call it lighty
    instead.

%track
    prog lighttpd = {
        version   = %{version}
        url       = http://www.lighttpd.net/download/
        regex     = lighttpd-(\d+\.\d+\.\d+)\.tar\.gz
    }

%prep
    %setup -q
    %{l_shtool} subst \
        -e 's;\(/etc/lighttpd/lighttpd.conf\);%{l_prefix}\1;' \
        doc/lighttpd.1

%build
    #   configure program
    export CC="%{l_cc}"
    export CFLAGS="%{l_cflags -O}"
    export CXXFLAGS="%{l_cxxflags -O}"
    export LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}"
    export LIBS="%{l_fsl_libs}"
%if "%{with_ldap}" == "yes"
    LIBS="$LIBS -lldap -llber -lssl -lcrypto"
%endif
    ./configure \
        --prefix=%{l_prefix} \
        --sysconfdir=%{l_prefix}/etc/lighttpd \
        --libdir=%{l_prefix}/lib/lighttpd \
%if "%{with_ipv6}" == "yes"
        --enable-ipv6 \
%else
        --disable-ipv6 \
%endif
%if "%{with_ldap}" == "yes"
        --with-ldap \
%else
        --without-ldap \
%endif
%if "%{with_mysql}" == "yes"
        --with-mysql=%{l_prefix}/bin/mysql_config \
%else
        --without-mysql \
%endif
%if "%{with_dav}" == "yes"
        --with-webdav-props \
        --without-webdav-locks \
%endif
%if "%{with_pcre}" == "yes"
        --with-pcre \
%else
        --without-pcre \
%endif
%if "%{with_bzip2}" == "yes"
        --with-bzip2 \
%else
        --without-bzip2 \
%endif
%if "%{with_lua}" == "yes"
        --with-lua \
%else
        --without-lua \
%endif
%if "%{with_ssl}" == "yes"
        --with-openssl=%{l_prefix}
%else
        --without-openssl
%endif

    #   build program
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT

    #   create directories
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/lighttpd \
        $RPM_BUILD_ROOT%{l_prefix}/var/lighttpd/log

    #   install lighttpd
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"

    #   install default configuration
    %{l_shtool} install -c -m 640 %{l_value -s -a} \
        -e 's;@@l_openpkg_release@@;%{l_openpkg_release -F "OpenPKG-%%t"};' \
        %{SOURCE lighttpd.conf} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/lighttpd/

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

    #   install OSSP fsl configuration
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.lighttpd} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   strip 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

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
        '%config   %{l_prefix}/etc/fsl/fsl.lighttpd' \
        '%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/lighttpd/*' \
        '%dir    %attr(0775,%{l_mgrp},%{l_ngrp}) %{l_prefix}/var/lighttpd/log'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

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

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

@


1.49
log
@upgrading package: lighttpd 1.4.23 -> 1.4.24
@
text
@d34 2
a35 2
Version:      1.4.24
Release:      20091026
@


1.48
log
@upgrading package: lighttpd 1.4.22 -> 1.4.23
@
text
@d34 2
a35 2
Version:      1.4.23
Release:      20090619
@


1.47
log
@bump years in copyright messages
@
text
@d34 2
a35 2
Version:      1.4.22
Release:      20090308
@


1.46
log
@upgrading package: lighttpd 1.4.21 -> 1.4.22
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.45
log
@upgrading package: lighttpd 1.4.20 -> 1.4.21
@
text
@d34 2
a35 2
Version:      1.4.21
Release:      20090217
@


1.44
log
@upgrading package: lighttpd 1.4.19 -> 1.4.20
@
text
@d34 2
a35 2
Version:      1.4.20
Release:      20080930
@


1.43
log
@upgrading package: lighttpd 1.4.18 -> 1.4.19
@
text
@d34 2
a35 2
Version:      1.4.19
Release:      20080311
@


1.42
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version:      1.4.18
Release:      20080101
@


1.41
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
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/>
d35 1
a35 1
Release:      20071027
@


1.40
log
@upgrading package: lighttpd 1.4.17 -> 1.4.18
@
text
@d36 1
a36 1
Release:      20070910
d67 2
a68 2
BuildPreReq:  fsl >= 1.5.0
PreReq:       fsl >= 1.5.0
@


1.39
log
@upgrading package: lighttpd 1.4.16 -> 1.4.17
@
text
@d35 2
a36 2
Version:      1.4.17
Release:      20070829
@


1.38
log
@upgrading package: lighttpd 1.4.15 -> 1.4.16
@
text
@d35 2
a36 2
Version:      1.4.16
Release:      20070725
@


1.37
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d35 2
a36 2
Version:      1.4.15
Release:      20070720
@


1.36
log
@upgrading package: lighttpd 1.4.13 -> 1.4.15
@
text
@d36 1
a36 1
Release:      20070414
a212 1
        '%not %dir %{l_prefix}/etc/fsl' \
@


1.35
log
@add optional DAV support
@
text
@d35 2
a36 2
Version:      1.4.13
Release:      20070326
@


1.34
log
@add optional LDAP support
@
text
@d45 1
d82 4
d149 4
@


1.33
log
@track releases only
@
text
@d36 1
a36 1
Release:      20070204
d44 1
d73 4
d117 8
a124 5
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CXXFLAGS="%{l_cxxflags -O}" \
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
    LIBS="%{l_fsl_libs}" \
d134 3
d138 1
@


1.32
log
@Welcome Year 2007!
@
text
@d36 1
a36 1
Release:      20061211
d101 1
a101 1
        regex     = lighttpd-(__VER__)\.tar\.gz
@


1.31
log
@add optional bzip2 support, add missing zlib dependency, add optional LUA support for mod_cml, etc
@
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.30
log
@bless for BASE class
@
text
@d36 1
a36 1
Release:      20061016
d40 2
a43 1
%option       with_pcre   yes
d45 1
d58 6
d80 4
a111 3
    case "%{l_platform -t}" in
        *-sunos* | *-freebsd* ) %{l_shtool} subst -e 's;-D_XOPEN_SOURCE=600;;' configure ;;
    esac
d137 10
@


1.30.2.1
log
@file lighttpd.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:52:19 +0000
@
text
@d1 196
@


1.30.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 196
##
##  lighttpd.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 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 information
Name:         lighttpd
Summary:      Flexible High-Performance Web Server
URL:          http://www.lighttpd.net/
Vendor:       Jan Kneschke
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        BASE
Group:        Web
License:      MIT-style
Version:      1.4.13
Release:      2.20061018

#   package options
%option       with_fsl    yes
%option       with_ipv6   no
%option       with_mysql  no
%option       with_pcre   yes
%option       with_ssl    no

#   list of sources
Source0:      http://www.lighttpd.net/download/lighttpd-%{version}.tar.gz
Source1:      lighttpd.conf
Source2:      rc.lighttpd
Source3:      fsl.lighttpd

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, make, gcc
PreReq:       OpenPKG, openpkg >= 2.20061018
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl >= 1.5.0
PreReq:       fsl >= 1.5.0
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq:  mysql, zlib
PreReq:       mysql, zlib
%endif
%if "%{with_pcre}" == "yes"
BuildPreReq:  pcre
PreReq:       pcre
%endif
%if "%{with_ssl}" == "yes"
BuildPreReq:  openssl
PreReq:       openssl
%endif
AutoReq:      no
AutoReqProv:  no

%description
    lighttpd is a secure, fast, compliant and very flexible web-server
    which has been optimized for high-performance environments. It has
    a very low memory footprint compared to other webservers and takes
    care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
    output compression, URL-rewriting and many more) make lighttpd the
    perfect web-server software for every server that is suffering load
    problems. As lighttpd is hard to pronounce you might call it lighty
    instead.

%track
    prog lighttpd = {
        version   = %{version}
        url       = http://www.lighttpd.net/download/
        regex     = lighttpd-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %{l_shtool} subst \
        -e 's;\(/etc/lighttpd/lighttpd.conf\);%{l_prefix}\1;' \
        doc/lighttpd.1

%build
    #   configure program
    case "%{l_platform -t}" in
        *-sunos* | *-freebsd* ) %{l_shtool} subst -e 's;-D_XOPEN_SOURCE=600;;' configure ;;
    esac
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CXXFLAGS="%{l_cxxflags -O}" \
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
    LIBS="%{l_fsl_libs}" \
    ./configure \
        --prefix=%{l_prefix} \
        --sysconfdir=%{l_prefix}/etc/lighttpd \
        --libdir=%{l_prefix}/lib/lighttpd \
%if "%{with_ipv6}" == "yes"
        --enable-ipv6 \
%else
        --disable-ipv6 \
%endif
        --without-ldap \
%if "%{with_mysql}" == "yes"
        --with-mysql=%{l_prefix}/bin/mysql_config \
%else
        --without-mysql \
%endif
%if "%{with_pcre}" == "yes"
        --with-pcre \
%else
        --without-pcre \
%endif
%if "%{with_ssl}" == "yes"
        --with-openssl=%{l_prefix}
%else
        --without-openssl
%endif

    #   build program
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT

    #   create directories
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/lighttpd \
        $RPM_BUILD_ROOT%{l_prefix}/var/lighttpd/log

    #   install lighttpd
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"

    #   install default configuration
    %{l_shtool} install -c -m 640 %{l_value -s -a} \
        -e 's;@@l_openpkg_release@@;%{l_openpkg_release -F "OpenPKG-%%t"};' \
        %{SOURCE lighttpd.conf} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/lighttpd/

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

    #   install OSSP fsl configuration
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.lighttpd} \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   strip 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

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
        '%not %dir %{l_prefix}/etc/fsl' \
        '%config   %{l_prefix}/etc/fsl/fsl.lighttpd' \
        '%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/lighttpd/*' \
        '%dir    %attr(0775,%{l_mgrp},%{l_ngrp}) %{l_prefix}/var/lighttpd/log'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

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

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

@


1.30.2.3
log
@MFC: make up leeway for 2_STABLE by virtue of build-time results
@
text
@d36 1
a36 1
Release:      2.20061222
a39 2
%option       with_pcre   yes
%option       with_bzip2  no
d42 1
a43 1
%option       with_lua    no
a55 6
BuildPreReq:  zlib
PreReq:       zlib
%if "%{with_bzip2}" == "yes"
BuildPreReq:  bzip2
PreReq:       bzip2
%endif
a71 4
%if "%{with_lua}" == "yes"
BuildPreReq:  lua
PreReq:       lua
%endif
d100 3
a127 10
%if "%{with_bzip2}" == "yes"
        --with-bzip2 \
%else
        --without-bzip2 \
%endif
%if "%{with_lua}" == "yes"
        --with-lua \
%else
        --without-lua \
%endif
@


1.30.2.4
log
@MFC: make up leeway for 2_STABLE by virtue of build-time results
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d36 1
a36 1
Release:      2.20070207
d101 1
a101 1
        regex     = lighttpd-(\d+\.\d+\.\d+)\.tar\.gz
@


1.29
log
@new world order for "Packager" and "Distribution" headers
@
text
@d32 1
a32 1
Class:        PLUS
d36 1
a36 1
Release:      20061013
@


1.28
log
@bless for PLUS class
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20061012
@


1.27
log
@upgrading package: lighttpd 1.4.12 -> 1.4.13
@
text
@d32 1
a32 1
Class:        EVAL
d36 1
a36 1
Release:      20061010
@


1.26
log
@upgrading package: lighttpd 1.4.11 -> 1.4.12
@
text
@d35 2
a36 2
Version:      1.4.12
Release:      20060923
a49 1
Patch0:       lighttpd.patch
a93 1
    %patch -p0
@


1.25
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d35 2
a36 2
Version:      1.4.11
Release:      20060825
@


1.24
log
@upgrade to the newer world order of %{l_openpkg_release} macro
@
text
@d36 1
a36 1
Release:      20060622
d55 2
a56 2
BuildPreReq:  OpenPKG, openpkg >= 20060622, make, gcc
PreReq:       OpenPKG, openpkg >= 20060622
@


1.23
log
@upgrading package: lighttpd 1.4.10 -> 1.4.11
@
text
@d36 1
a36 1
Release:      20060310
d55 2
a56 2
BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc
PreReq:       OpenPKG, openpkg >= 20040130
d152 1
a152 1
        -e 's;@@l_openpkg_release@@;%{l_openpkg_release -F "OpenPKG-%s"};' \
@


1.22
log
@fix building under Solaris, too
@
text
@d35 2
a36 2
Version:      1.4.10
Release:      20060224
@


1.21
log
@upgrading package: lighttpd 1.4.9 -> 1.4.10
@
text
@d36 1
a36 1
Release:      20060223
d103 1
a103 1
        *-freebsd* ) %{l_shtool} subst -e 's;-D_XOPEN_SOURCE=600;;' configure ;;
@


1.20
log
@upgrading package: lighttpd 1.4.8 -> 1.4.9
@
text
@d35 2
a36 2
Version:      1.4.9
Release:      20060115
d50 1
d83 2
a84 3
    problems.

    As lighttpd is hard to pronounce you might call it lighty instead.
d95 1
d102 3
@


1.19
log
@modifying package: lighttpd-1.4.8 20051129 -> 20060109
@
text
@d35 2
a36 2
Version:      1.4.8
Release:      20060109
@


1.18
log
@adjust copyrights for new year 2006
@
text
@d36 1
a36 1
Release:      20051129
d42 1
d64 4
d121 5
@


1.17
log
@provide config check in rc script
@
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.16
log
@upgrading package: lighttpd 1.4.7 -> 1.4.8
@
text
@d36 1
a36 1
Release:      20051124
@


1.15
log
@upgrading package: lighttpd 1.4.6 -> 1.4.7
@
text
@d35 2
a36 2
Version:      1.4.7
Release:      20051103
@


1.14
log
@upgrading package: lighttpd 1.4.5 -> 1.4.6
@
text
@d35 2
a36 2
Version:      1.4.6
Release:      20051011
@


1.13
log
@upgrading package: lighttpd 1.4.4 -> 1.4.5
@
text
@d35 2
a36 2
Version:      1.4.5
Release:      20051003
@


1.12
log
@upgrading package: lighttpd 1.4.3 -> 1.4.4
@
text
@d35 2
a36 2
Version:      1.4.4
Release:      20050916
@


1.11
log
@upgrading package: lighttpd 1.4.2 -> 1.4.3
@
text
@d35 2
a36 2
Version:      1.4.3
Release:      20050901
@


1.10
log
@fixed build on FreeBDS 5
@
text
@d35 2
a36 2
Version:      1.4.2
Release:      20050831
a48 1
Patch0:       lighttpd.patch
a89 1
    %patch -p2
@


1.9
log
@upgrading package: lighttpd 1.4.1 -> 1.4.2
@
text
@d49 1
d91 1
@


1.8
log
@upgrading package: lighttpd 1.4.0 -> 1.4.1
@
text
@d35 2
a36 2
Version:      1.4.1
Release:      20050822
@


1.7
log
@upgrading package: lighttpd 1.3.16 -> 1.4.0
@
text
@d35 2
a36 2
Version:      1.4.0
Release:      20050820
@


1.6
log
@upgrading package: lighttpd 1.3.15 -> 1.3.16
@
text
@d35 2
a36 2
Version:      1.3.16
Release:      20050801
@


1.5
log
@upgrading package: lighttpd 1.3.14 -> 1.3.15
@
text
@d35 2
a36 2
Version:      1.3.15
Release:      20050716
@


1.4
log
@upgrading package: lighttpd 1.3.13 -> 1.3.14
@
text
@d35 2
a36 2
Version:      1.3.14
Release:      20050615
@


1.3
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
@d35 2
a36 2
Version:      1.3.13
Release:      20050323
@


1.2
log
@the usual amount of RSE cosmetics which are always required
@
text
@d2 3
a4 4
##  lighttpd.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/>
d30 1
a30 1
Packager:     The OpenPKG Project
@


1.1
log
@new package: lighttpd 1.3.13 (Fast but flexible high-performance web server)
@
text
@d28 1
a28 1
Summary:      Fast but flexible high-performance web server
d35 1
a35 1
License:      Freely distributable
d96 1
d122 2
d150 2
a151 1
    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
d183 1
a183 1
    rm -rf $RPM_INSTALL_PREFIX/var/lighttpd/log/ >/dev/null 2>&1 || true
@

