OBS User unknown 2007-02-15 17:15:34 +00:00 committed by Git OBS Bridge
parent afe8a98648
commit 1239c51977
3 changed files with 40 additions and 6 deletions

27
thttpd-2.25b-chown.diff Normal file
View File

@ -0,0 +1,27 @@
--- Makefile.in
+++ Makefile.in
@@ -111,11 +111,11 @@
installthis:
-mkdir -p $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 555 -o bin -g bin thttpd $(DESTDIR)$(SBINDIR)
+ $(INSTALL) -m 555 thttpd $(DESTDIR)$(SBINDIR)
install-man:
-mkdir -p $(DESTDIR)$(MANDIR)/man8
- $(INSTALL) -m 444 -o bin -g bin thttpd.8 $(DESTDIR)$(MANDIR)/man8
+ $(INSTALL) -m 444 thttpd.8 $(DESTDIR)$(MANDIR)/man8
installsubdirs:
for i in $(SUBDIRS) ; do ( \
--- extras/Makefile.in
+++ extras/Makefile.in
@@ -69,7 +69,7 @@
install: all
rm -f $(SBINDIR)/makeweb $(SBINDIR)/htpasswd $(SBINDIR)/syslogtocern
cp makeweb $(BINDIR)/makeweb
- chgrp $(WEBGROUP) $(BINDIR)/makeweb
+ -chgrp $(WEBGROUP) $(BINDIR)/makeweb
chmod 2755 $(BINDIR)/makeweb
cp htpasswd $(BINDIR)/htpasswd
cp syslogtocern $(SBINDIR)/syslogtocern

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 14 15:04:06 CET 2007 - schwab@suse.de
- Fix building as non-root.
-------------------------------------------------------------------
Fri Mar 10 17:14:09 CET 2006 - anicka@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package thttpd (Version 2.25b)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@ -10,13 +10,13 @@
Name: thttpd
License: Other License(s), see package, X11/MIT
License: X11/MIT
Group: Productivity/Networking/Web/Servers
Provides: http_daemon
PreReq: %fillup_prereq %insserv_prereq permissions
Autoreqprov: on
Version: 2.25b
Release: 38
Release: 68
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-SuSE.tar.bz2
Patch0: %{name}-%{version}-configure.patch
@ -28,6 +28,7 @@ Patch5: %{name}-%{version}-static.patch
Patch6: %{name}-%{version}-pie.patch
Patch7: %{name}-%{version}-syslogtocern.diff
Patch8: %{name}-%{version}-overflow.diff
Patch9: %{name}-%{version}-chown.diff
URL: http://www.acme.com/software/thttpd/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Small and very simple webserver
@ -60,11 +61,11 @@ Authors:
%patch6
%patch7
%patch8
%patch9
%build
for i in README.SuSE SuSE/etc/init.d/thttpd; do
sed "s @SRVROOT@ %{serverroot}/htdocs " $i >$i.new
mv $i.new $i
sed -i "s @SRVROOT@ %{serverroot}/htdocs " $i
done
chmod 744 SuSE/etc/init.d/thttpd
%{suse_update_config}
@ -85,7 +86,6 @@ make F_PIE="-fpie"
%endif
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/bin \
$RPM_BUILD_ROOT/usr/sbin \
$RPM_BUILD_ROOT/%{_mandir}/man1 \
@ -129,6 +129,8 @@ rm -rf $RPM_BUILD_ROOT
%config /etc/init.d/thttpd
%changelog -n thttpd
* Wed Feb 14 2007 - schwab@suse.de
- Fix building as non-root.
* Fri Mar 10 2006 - anicka@suse.cz
- fix buffer overflows in htpasswd (#156978)
* Wed Jan 25 2006 - mls@suse.de