]> git.pld-linux.org Git - packages/cgiwrap.git/commitdiff
- almost finished, new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 7 Mar 2004 08:37:03 +0000 (08:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cgiwrap.spec -> 1.1

cgiwrap.spec [new file with mode: 0644]

diff --git a/cgiwrap.spec b/cgiwrap.spec
new file mode 100644 (file)
index 0000000..66558c1
--- /dev/null
@@ -0,0 +1,57 @@
+Summary:       A gateway for more secure user access to CGI scripts
+Name:          cgiwrap
+Version:       3.9
+Release:       1
+License:       GPL
+Group:         Utilities
+Source0:       http://dl.sourceforge.net/cgiwrap/%{name}-%{version}.tar.gz
+# Source0-md5: 0f9c88802658f45231ee463c351bd2a7
+URL:           http://cgilib.sourceforge.net/
+BuildRequires: automake
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A gateway that allows more secure user access to CGI programs on an
+HTTPd server than is provided by the http server itself. The primary
+function of CGIwrap is to make certain that any CGI script runs with
+the permissions of the user who installed it, and not those of the
+server.
+
+%prep
+%setup -q
+
+%build
+install %{_datadir}/automake/config.* .
+%configure \
+       --with-perl=%{_bindir}/perl \
+       --with-php=%{_bindir}/php \
+       --with-local-contact-email=root@localhost \
+       --with-httpd-user=http \
+       --with-minimum-uid=500 \
+       --with-minimum-gid=500 \
+--with-allow-file=%{_sysconfdir}/cgiwrap/cgiwrap.allow \
+--with-deny-file=%{_sysconfdir}/cgiwrap/cgiwrap.deny
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
+
+install cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/cgiwrapd
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/nph-cgiwrap
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/nph-cgiwrapd
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/php-cgiwrap
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/cgiwrapd
+ln -s cgiwrap $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/php-cgiwrapd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc htdocs/*
+%attr(4755,root,root) $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/*
This page took 0.044755 seconds and 4 git commands to generate.