Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@66 | 1 | ## |
michael@66 | 2 | ## sproxy.spec -- OpenPKG RPM Specification |
michael@66 | 3 | ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@66 | 4 | ## |
michael@66 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@66 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@66 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@66 | 8 | ## copies. |
michael@66 | 9 | ## |
michael@66 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@66 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@66 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@66 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@66 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@66 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@66 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@66 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@66 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@66 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@66 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@66 | 21 | ## SUCH DAMAGE. |
michael@66 | 22 | ## |
michael@66 | 23 | |
michael@66 | 24 | |
michael@66 | 25 | # package information |
michael@66 | 26 | Name: sproxy |
michael@66 | 27 | Summary: URL Harvesting HTTP Proxy |
michael@594 | 28 | URL: http://www.joedog.org/sproxy-home/ |
michael@66 | 29 | Vendor: Jeffrey Fulmer |
michael@66 | 30 | Packager: Michael Schloh von Bennewitz |
michael@594 | 31 | Distribution: Europalab Networks Production |
michael@66 | 32 | Class: EVAL |
michael@66 | 33 | Group: Network |
michael@66 | 34 | License: GPL |
michael@594 | 35 | Version: 1.02 |
michael@594 | 36 | Release: 20120800 |
michael@66 | 37 | |
michael@66 | 38 | # list of sources |
michael@594 | 39 | Source0: http://www.joedog.org/pub/sproxy/sproxy-%{version}.tar.gz |
michael@66 | 40 | |
michael@66 | 41 | # build information |
michael@594 | 42 | BuildPreReq: OpenPKG, openpkg >= 20100101, perl, make |
michael@594 | 43 | PreReq: OpenPKG, openpkg >= 20100101, perl, perl-www |
michael@66 | 44 | |
michael@66 | 45 | %description |
michael@66 | 46 | Sproxy is a tool designed to harvest URLs for a HTTP/HTTPS test tool |
michael@66 | 47 | such as Siege. Sproxy is designed to work like a regular HTTP proxy. |
michael@66 | 48 | It listens for HTTP requests on port 9001 (default) and it returns |
michael@66 | 49 | requested content to the web browser while writing the URL along |
michael@66 | 50 | with any GET or POST data to a file. |
michael@66 | 51 | |
michael@66 | 52 | %track |
michael@66 | 53 | prog sproxy = { |
michael@66 | 54 | version = %{version} |
michael@66 | 55 | url = ftp://sid.joedog.org/pub/sproxy/ |
michael@66 | 56 | regex = sproxy-(__VER__)\.tar\.gz |
michael@66 | 57 | } |
michael@66 | 58 | |
michael@66 | 59 | %prep |
michael@66 | 60 | %setup -q |
michael@66 | 61 | %{l_shtool} subst \ |
michael@66 | 62 | -e 's; \(\$(bindir)\); $(DESTDIR)\1;' \ |
michael@66 | 63 | -e 's; \(\$(prefix)\); $(DESTDIR)\1;' \ |
michael@66 | 64 | -e 's;\$(prefix)/etc;$(sysconfdir);' \ |
michael@66 | 65 | doc/Makefile.in \ |
michael@66 | 66 | src/Makefile.in |
michael@66 | 67 | |
michael@66 | 68 | %build |
michael@66 | 69 | ./configure \ |
michael@66 | 70 | --prefix=%{l_prefix} \ |
michael@66 | 71 | --sysconfdir=%{l_prefix}/etc/sproxy |
michael@594 | 72 | %{l_make} %{l_mflags -O} |
michael@66 | 73 | |
michael@66 | 74 | %install |
michael@66 | 75 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
michael@66 | 76 | rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/sproxy |
michael@66 | 77 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@66 | 78 | |
michael@66 | 79 | %files -f files |
michael@66 | 80 | |
michael@594 | 81 | %clean |
michael@594 | 82 |