summaryrefslogtreecommitdiff
path: root/lighttpd.spec.in
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-02-20 14:27:00 +0000
committerJan Kneschke <jan@kneschke.de>2005-02-20 14:27:00 +0000
commitbcdc6a3bbcde8e66da41aa2311642e53f4fc7c9b (patch)
treea0536d23ba17a40c236fc3cd2a4a133110ae7501 /lighttpd.spec.in
downloadlighttpd-git-bcdc6a3bbcde8e66da41aa2311642e53f4fc7c9b.tar.gz
moved everything below trunk/ and added branches/ and tags/
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'lighttpd.spec.in')
-rw-r--r--lighttpd.spec.in84
1 files changed, 84 insertions, 0 deletions
diff --git a/lighttpd.spec.in b/lighttpd.spec.in
new file mode 100644
index 00000000..aaed41a8
--- /dev/null
+++ b/lighttpd.spec.in
@@ -0,0 +1,84 @@
+Summary: A fast webserver with minimal memory-footprint (lighttpd)
+Name: lighttpd
+Version: @VERSION@
+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
+
+%prep
+
+%setup -q
+
+%build
+rm -rf %{buildroot}
+%configure \
+ %{?_with_mysql: --with-mysql} \
+ %{?_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
+
+if test "$1" = "0"; 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