Changeset 2018 for trunk/lighttpd.spec.in
- Timestamp:
- 11/05/2007 09:07:17 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/lighttpd.spec.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lighttpd.spec.in
r1349 r2018 7 7 License: BSD 8 8 Group: Networking/Daemons 9 URL: http:// jan.kneschke.de/projects/lighttpd/10 Requires: pcre >= 3.1 zlib 11 Build Prereq: libtool zlib-devel9 URL: http://www.lighttpd.net/ 10 Requires: pcre >= 3.1 zlib 11 BuildRequires: libtool zlib-devel 12 12 BuildRoot: %{_tmppath}/%{name}-root 13 14 13 15 14 %description … … 17 16 small files concurrently to many connections. 18 17 19 Available rpmbuild rebuild options :20 --with : ssl mysql lua memcache18 Available rpmbuild rebuild options: 19 --with: ssl mysql lua memcache 21 20 22 21 %prep 23 24 22 %setup -q 25 23 … … 34 32 35 33 %install 36 37 34 %makeinstall 38 35 39 36 mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig} 40 if test -f /etc/redhat-release -o -f /etc/fedora-release; then41 install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd37 if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then 38 install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd 42 39 else 43 install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd40 install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd 44 41 fi 45 42 install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd … … 50 47 %post 51 48 ## read http://www.fedora.us/docs/spec.html next time :) 52 if test "$1" = "1"; then53 # real install, not upgrade54 /sbin/chkconfig --add lighttpd49 if [ "$1" = "1" ]; then 50 # real install, not upgrade 51 /sbin/chkconfig --add lighttpd 55 52 fi 56 53 57 54 %preun 58 if test "$1" = "0"; then59 # real uninstall, not upgrade60 %{_sysconfdir}/init.d/lighttpd stop61 /sbin/chkconfig --del lighttpd55 if [ "$1" = "0"]; then 56 # real uninstall, not upgrade 57 %{_sysconfdir}/init.d/lighttpd stop 58 /sbin/chkconfig --del lighttpd 62 59 fi 63 60 64 61 %files 65 62 %defattr(-,root,root) 66 %doc doc/lighttpd.conf doc/lighttpd.user README INSTALL ChangeLog COPYING AUTHORS 63 %doc doc/lighttpd.conf doc/lighttpd.user README INSTALL ChangeLog COPYING AUTHORS 67 64 %doc doc/*.txt 68 65 %config(noreplace) %attr(0755,root,root) %{_sysconfdir}/init.d/lighttpd

