~ubuntu-branches/ubuntu/lucid/lighttpd/lucid-security

« back to all changes in this revision

Viewing changes to lighttpd.spec

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-06 15:53:28 UTC
  • mfrom: (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606155328-6pr6j08kk4rdf8rz
Tags: 1.4.22-1ubuntu1
* Merge from debian unstable (LP: #384367), remaining changes:
  - debian/control: Depend on lsb (>= 3.2-14), which has the status_of_proc() 
    function; libgamin-dev rather than libfam-dev to fix startup warning.
  - debian/init.d: Add the 'status' action, clean environment; Check syntax 
    during start/reload/restart/force-reload.
  - debian/rules: set DEB_UPDATE_RCD_PARAMS to "defaults 91 09" to not start 
    lighty before apache2 but in the same runlevel with the same priority;
    Make sure that upgrades succeed, even if we can't restart lighttpd.
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set: 
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
* debian/patches/fix-conf-doc.patch: Update headers to match package version
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Summary: A fast webserver with minimal memory-footprint (lighttpd)
2
 
Name: lighttpd
3
 
Version: 1.4.19
4
 
Release: 1
5
 
Source: http://jan.kneschke.de/projects/lighttpd/download/lighttpd-%version.tar.gz
6
 
Packager: Jan Kneschke <jan@kneschke.de>
7
 
License: BSD
8
 
Group: Networking/Daemons
9
 
URL: http://www.lighttpd.net/
10
 
Requires: pcre >= 3.1 zlib
11
 
BuildRequires: libtool zlib-devel
12
 
BuildRoot: %{_tmppath}/%{name}-root
13
 
 
14
 
%description
15
 
lighttpd is intented to be a frontend for ad-servers which have to deliver
16
 
small files concurrently to many connections.
17
 
 
18
 
Available rpmbuild rebuild options:
19
 
--with: ssl mysql lua memcache
20
 
 
21
 
%prep
22
 
%setup -q
23
 
 
24
 
%build
25
 
rm -rf %{buildroot}
26
 
%configure \
27
 
    %{?_with_mysql:       --with-mysql} \
28
 
    %{?_with_lua:         --with-lua} \
29
 
    %{?_with_memcache:    --with-memcache} \
30
 
    %{?_with_ssl:         --with-openssl}
31
 
make
32
 
 
33
 
%install
34
 
%makeinstall
35
 
 
36
 
mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig}
37
 
if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then
38
 
        install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd
39
 
else
40
 
        install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd
41
 
fi
42
 
install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd
43
 
 
44
 
%clean
45
 
rm -rf %{buildroot}
46
 
 
47
 
%post
48
 
## read http://www.fedora.us/docs/spec.html next time :)
49
 
if [ "$1" = "1" ]; then
50
 
        # real install, not upgrade
51
 
        /sbin/chkconfig --add lighttpd
52
 
fi
53
 
 
54
 
%preun
55
 
if [ "$1" = "0"]; then
56
 
        # real uninstall, not upgrade
57
 
        %{_sysconfdir}/init.d/lighttpd stop
58
 
        /sbin/chkconfig --del lighttpd
59
 
fi
60
 
 
61
 
%files
62
 
%defattr(-,root,root)
63
 
%doc doc/lighttpd.conf doc/lighttpd.user README INSTALL ChangeLog COPYING AUTHORS
64
 
%doc doc/*.txt
65
 
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/init.d/lighttpd
66
 
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/lighttpd
67
 
%{_mandir}/*
68
 
%{_libdir}/*
69
 
%{_sbindir}/*
70
 
%{_bindir}/*
71
 
 
72
 
%changelog
73
 
* Thu Sep 30 2004 12:41 <jan@kneschke.de> 1.3.1
74
 
- upgraded to 1.3.1
75
 
 
76
 
* Tue Jun 29 2004 17:26 <jan@kneschke.de> 1.2.3
77
 
- rpmlint'ed the package
78
 
- added URL
79
 
- added (noreplace) to start-script
80
 
- change group to Networking/Daemon (like apache)
81
 
 
82
 
* Sun Feb 23 2003 15:04 <jan@kneschke.de>
83
 
- initial version