]> git.pld-linux.org Git - packages/apache-mod_fcgid.git/commitdiff
- initial pld release
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 23 May 2004 14:34:34 +0000 (14:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_fcgid.spec -> 1.1

apache-mod_fcgid.spec [new file with mode: 0644]

diff --git a/apache-mod_fcgid.spec b/apache-mod_fcgid.spec
new file mode 100644 (file)
index 0000000..92f0232
--- /dev/null
@@ -0,0 +1,64 @@
+%define        apxs    /usr/sbin/apxs
+%define                _apache1        %(rpm -q apache-devel 2> /dev/null | grep -Eq '\\-2\\.[0-9]+\\.' && echo 0 || echo 1)
+Summary:       A binary compatibility alternative to Apache module mod_fastcgi
+Name:          apache-mod_fcgid
+Version:       0.7
+Release:       1
+License:       distributable
+Group:         Networking/Daemons
+Source0:       http://fastcgi.coremail.cn/mod_fcgid.%{version}.tar.gz
+# Source0-md5: 1bfdf0274caf9ecaee089e4b3f70326e
+Source1:       70_mod_fastcgi.conf
+URL:           http://fastcgi.coremail.cn/
+BuildRequires: %{apxs}
+BuildRequires: apache-devel
+BuildRequires: libtool
+Requires(post,preun):  %{apxs}
+Requires:      apache >= 1.3.1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define         _libexecdir     %{_libdir}/apache
+
+%description
+A binary compatibility alternative to Apache module mod_fastcgi.
+mod_fcgid has a new process management strategy, which concentrates on
+reducing the number of fastcgi server, and kick out the corrupt
+fastcgi server as soon as possible.
+
+%prep
+%setup -q -n mod_fcgid
+
+%build
+sed -i -e 's#top_dir.*=.*#top_dir = %{_libexecdir}#g' Makefile
+echo "INCLUDES=`apr-config --includes` `apu-config --includes` -I%{_includedir}/apache" >> Makefile
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf
+
+libtool --mode=install install mod_fcgid.la $RPM_BUILD_ROOT%{_libexecdir}
+install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/httpd.conf/70_mod_fcgid.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+        /etc/rc.d/init.d/httpd restart 1>&2
+else
+        echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+        if [ -f /var/lock/subsys/httpd ]; then
+                /etc/rc.d/init.d/httpd restart 1>&2
+        fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHOR ChangeLog
+%attr(755,root,root) %{_libexecdir}/*.so
This page took 0.096192 seconds and 4 git commands to generate.