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