OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   24-Mar-2009 19:33:20
  Branch: HEAD                             Handle: 2009032418332000

  Added files:
    openpkg-src/libtelnet   libtelnet.patch libtelnet.spec

  Log:
    new package: libtelnet 0.9 (Telnet Protocol Library)

  Summary:
    Revision    Changes     Path
    1.1         +25 -0      openpkg-src/libtelnet/libtelnet.patch
    1.1         +93 -0      openpkg-src/libtelnet/libtelnet.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/libtelnet/libtelnet.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libtelnet.patch
  --- /dev/null 2009-03-24 19:33:15 +0100
  +++ libtelnet.patch   2009-03-24 19:33:20 +0100
  @@ -0,0 +1,25 @@
  +Index: Makefile
  +--- Makefile.orig    2009-03-23 04:05:31 +0100
  ++++ Makefile 2009-03-24 19:26:58 +0100
  +@@ -1,6 +1,7 @@
  + VERSION = 0.9
  +-CFLAGS = -Wall -g -O0 -DHAVE_ZLIB -DHAVE_ALLOCA -DENABLE_COLOR
  +-LFLAGS = -L. -ltelnet -lz
  ++CC = gcc
  ++CFLAGS = $(CFLAGS) $(CPPFLAGS)
  ++LFLAGS = $(LDFLAGS) -L. -ltelnet -lz
  + 
  + all: telnet-proxy telnet-client telnet-chatd
  + 
  +Index: libtelnet.c
  +--- libtelnet.c.orig 2009-03-23 04:05:31 +0100
  ++++ libtelnet.c      2009-03-24 19:26:28 +0100
  +@@ -11,7 +11,7 @@
  +  * all present and future rights to this code under copyright law. 
  +  */
  + 
  +-#include <malloc.h>
  ++#include <stdlib.h>
  + #include <string.h>
  + #include <stdio.h>
  + #include <errno.h>
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/libtelnet/libtelnet.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libtelnet.spec
  --- /dev/null 2009-03-24 19:33:15 +0100
  +++ libtelnet.spec    2009-03-24 19:33:20 +0100
  @@ -0,0 +1,93 @@
  +##
  +##  libtelnet.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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:         libtelnet
  +Summary:      Telnet Protocol Library
  +URL:          http://github.com/elanthis/libtelnet/tree/master
  +Vendor:       Sean Middleditch
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Network
  +License:      Public Domain
  +Version:      0.9
  +Release:      20090324
  +
  +#   list of sources
  +Source0:      
http://cloud.github.com/downloads/elanthis/libtelnet/libtelnet-%{version}.tar.gz
  +Patch0:       libtelnet.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, make
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  zlib
  +PreReq:       zlib
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Libtelnet provides safe and correct handling of the core TELNET
  +    protocol. In addition to the base TELNET protocol, libtelnet also
  +    implements the "Q" method of TELNET option negotiation. Libtelnet
  +    can be used for writing servers, clients, or proxies.
  +
  +%track
  +    prog libtelnet = {
  +        version   = %{version}
  +        url       = http://github.com/elanthis/libtelnet/tree/master
  +        regex     = libtelnet\s+(\d+\.\d+(\.\d+)?)
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    %{l_make} %{l_mflags} \
  +        CC="%{l_cc}" \
  +        CFLAGS="%{l_cflags -O}" \
  +        CPPFLAGS="%{l_cppflags} -DHAVE_ZLIB -DENABLE_COLOR" \
  +        LDFLAGS="%{l_ldflags}"
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/include \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/cat3
  +    %{l_shtool} install -c -m 644 \
  +        libtelnet.h $RPM_BUILD_ROOT%{l_prefix}/include/
  +    %{l_shtool} install -c -m 644 \
  +        libtelnet.a $RPM_BUILD_ROOT%{l_prefix}/lib/
  +    %{l_shtool} install -c -m 644 \
  +        README $RPM_BUILD_ROOT%{l_prefix}/man/cat3/libtelnet.3
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to