# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231628911 -3600 # Node ID ffb537ebcb0a31eba4b92fdba2d76efec50c8c31 # Parent caa04e02b103451eafa4620cc2af42d81de64fed Import new package spec for introduction into repository. diff -r caa04e02b103 -r ffb537ebcb0a sproxy/sproxy.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sproxy/sproxy.spec Sun Jan 11 00:08:31 2009 +0100 @@ -0,0 +1,85 @@ +## +## sproxy.spec -- OpenPKG RPM Specification +## Copyright (c) 2009 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + + +# package information +Name: sproxy +Summary: URL Harvesting HTTP Proxy +URL: http://www.joedog.org/index/sproxy-home/ +Vendor: Jeffrey Fulmer +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Production +Class: EVAL +Group: Network +License: GPL +Version: 1.01 +Release: 20090106 + +# list of sources +Source0: ftp://sid.joedog.org/pub/sproxy/sproxy-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, perl +PreReq: OpenPKG, openpkg >= 20040130, perl, perl-www +AutoReq: no +AutoReqProv: no + +%description + Sproxy is a tool designed to harvest URLs for a HTTP/HTTPS test tool + such as Siege. Sproxy is designed to work like a regular HTTP proxy. + It listens for HTTP requests on port 9001 (default) and it returns + requested content to the web browser while writing the URL along + with any GET or POST data to a file. + +%track + prog sproxy = { + version = %{version} + url = ftp://sid.joedog.org/pub/sproxy/ + regex = sproxy-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %{l_shtool} subst \ + -e 's; \(\$(bindir)\); $(DESTDIR)\1;' \ + -e 's; \(\$(prefix)\); $(DESTDIR)\1;' \ + -e 's;\$(prefix)/etc;$(sysconfdir);' \ + doc/Makefile.in \ + src/Makefile.in + +%build + ./configure \ + --prefix=%{l_prefix} \ + --sysconfdir=%{l_prefix}/etc/sproxy + %{l_make} %{l_mflags} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/sproxy + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files +