OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 29-Dec-2006 16:40:52
Branch: HEAD Handle: 2006122915405100
Added files:
openpkg-src/peep peep.patch peep.spec
Log:
new package: peep 0.5.7 (Network/File/StdIO Connectivity Utility)
Summary:
Revision Changes Path
1.1 +33 -0 openpkg-src/peep/peep.patch
1.1 +90 -0 openpkg-src/peep/peep.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/peep/peep.patch
============================================================================
$ cvs diff -u -r0 -r1.1 peep.patch
--- /dev/null 2006-12-29 16:40:27 +0100
+++ peep.patch 2006-12-29 16:40:51 +0100
@@ -0,0 +1,33 @@
+Index: peep-0.5.7.c
+--- peep-0.5.7.c.orig 2002-06-26 21:30:17 +0200
++++ peep-0.5.7.c 2006-12-29 16:34:27 +0100
+@@ -478,9 +478,11 @@
+ setsockopt (con[cons]->lsock, SOL_SOCKET, SO_BROADCAST,
+ (const void *) &k, sizeof(k));
+
++#if defined(SOL_TCP)
+ k=1024;
+ setsockopt (con[cons]->lsock, SOL_TCP, TCP_MAXSEG,
+ (const void *) &k, sizeof(k));
++#endif
+ }
+ udp_flag=0;
+ con[cons]->listen_flag = 1;
+@@ -1527,7 +1529,7 @@
+ unsigned long bw;
+
+ bw = (bytes-oldbytes)/interval;
+- fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", getpid(), bw, bytes,
oldbytes, interval);
++ fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", (int)getpid(), bw,
bytes, oldbytes, interval);
+ oldbytes = bytes;
+
+ alarm(interval);
+@@ -1536,7 +1538,7 @@
+ }
+
+ void peep_exit(int ret) {
+- if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n", getpid(),
bytes);
++ if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n",
(int)getpid(), bytes);
+ exit(ret);
+ }
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/peep/peep.spec
============================================================================
$ cvs diff -u -r0 -r1.1 peep.spec
--- /dev/null 2006-12-29 16:40:27 +0100
+++ peep.spec 2006-12-29 16:40:52 +0100
@@ -0,0 +1,90 @@
+##
+## peep.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
+##
+## 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: peep
+Summary: Network/File/StdIO Connectivity Utility
+URL: http://www.cslab.ece.ntua.gr/~gtsouk/peep/
+Vendor: Georgios D. Tsoukalas
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Network
+License: GPL?
+Version: 0.5.7
+Release: 20061229
+
+# list of sources
+Source0:
http://www.cslab.ece.ntua.gr/~gtsouk/peep/peep-%{version}.tar.gz
+Patch0: peep.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823, gcc
+PreReq: OpenPKG, openpkg >= 20060823
+AutoReq: no
+AutoReqProv: no
+
+%description
+ PEEP is an ultra-flexible utility for general purpose
+ routing/redirecting of data among local files, network connections
+ and the standard I/O.
+
+%track
+ prog peep = {
+ version = %{version}
+ url = http://www.cslab.ece.ntua.gr/~gtsouk/peep/
+ regex = peep-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ case "%{l_platform -t}" in
+ *-freebsd* ) platform="freebsd-gcc-dynamic" ;;
+ *-linux* ) platform="linux-gcc-dynamic" ;;
+ *-sunos* ) platform="solaris-gcc-dynamic" ;;
+ * ) platform="freebsd-gcc-dynamic" ;;
+ esac
+ %{l_make} %{l_mflags} $platform
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/man/cat1
+ %{l_shtool} install -c -s -m 755 \
+ peep $RPM_BUILD_ROOT%{l_prefix}/bin/
+ %{l_shtool} install -c -m 644 \
+ peep-*.ReadMe $RPM_BUILD_ROOT%{l_prefix}/man/cat1/peep.1
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]