SPECS: switchboard.spec (NEW) - initial

glen glen at pld-linux.org
Tue Oct 7 13:43:35 CEST 2008


Author: glen                         Date: Tue Oct  7 11:43:35 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   switchboard.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/switchboard.spec
diff -u /dev/null SPECS/switchboard.spec:1.1
--- /dev/null	Tue Oct  7 13:43:35 2008
+++ SPECS/switchboard.spec	Tue Oct  7 13:43:30 2008
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+Summary:	FastCGI proxy that starts setuid FastCGI processes on demand
+Name:		switchboard
+Version:	2.0.16
+Release:	0.1
+License:	BSD
+Group:		Applications
+Source0:	https://confluence.toolserver.org/download/attachments/5931011/%{name}-%{version}.tar.gz?version=1
+# Source0-md5:	4cb514bc04c6913d309cbb330362574d
+Patch0:		%{name}-overquote.patch
+URL:		https://confluence.toolserver.org/display/switchboard/Home
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+switchboard is a FastCGI proxy that starts setuid FastCGI processes on
+demand, in a similar manner to Apache suexec. switchboard allows mass
+web hosting environments to improve security by running FastCGI
+scripts as the script owner instead of the web server user, without
+the extra overhead that suexec adds. Its PHP support allows PHP
+scripts to run as FastCGI processes transparently, without the
+overhead of other solutions like mod_suphp.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+# not autoconf configure
+CC="%{__cc}" \
+CXX="%{__cxx}" \
+CFLAGS="%{rpmcflags}" \
+CXXFLAGS="%{rpmcxxflags}" \
+./configure \
+	--prefix=%{_prefix} \
+	--confdir=%{_sysconfdir} \
+	--log-exec=/var/log/%{name}/suexec.log \
+	--uid-min=50 \
+	--gid-min=50 \
+	--user=http \
+	--group=http
+	--safe-path="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" \
+%ifarch %{x8664}
+	--atomic=amd64_gcc \
+%endif
+%ifarch %{ix86}
+	--atomic=i386_gcc \
+%endif
+%ifnarch %{ix86} %{x8664}
+	--atomic=pthread \
+%endif
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/10/07 11:43:30  glen
+- initial
================================================================


More information about the pld-cvs-commit mailing list