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: 13-Dec-2007 09:11:40
Branch: HEAD Handle: 2007121308113900
Added files:
openpkg-src/wput wput.patch wput.spec
Log:
new package: wput 0.6.1 (Batch Client for FTP Uploads)
Summary:
Revision Changes Path
1.1 +51 -0 openpkg-src/wput/wput.patch
1.1 +96 -0 openpkg-src/wput/wput.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/wput/wput.patch
============================================================================
$ cvs diff -u -r0 -r1.1 wput.patch
--- /dev/null 2007-12-13 09:11:00 +0100
+++ wput.patch 2007-12-13 09:11:40 +0100
@@ -0,0 +1,51 @@
+Index: Makefile.in
+--- Makefile.in.orig 2007-12-12 18:30:04 +0100
++++ Makefile.in 2007-12-13 09:09:03 +0100
+@@ -2,7 +2,7 @@
+ PACKAGE = @PACKAGE@
+ prefix = @prefix@
+ datadir = $(prefix)/share
+-mandir = $(datadir)/man/man1
++mandir = $(prefix)/man/man1
+ exec_prefix = @exec_prefix@
+ [EMAIL PROTECTED]@
+
+@@ -17,7 +17,7 @@
+ install: all
+ cd po && $(MAKE) $(MAKEDEFS) $@
+ install -m0755 wput $(bindir)
+- install -m0644 doc/wput.1.gz $(mandir)
++ install -m0644 doc/wput.1 $(mandir)
+ @echo "----------------"
+ @echo "Wput installed. See 'wput -h' or 'man wput' for usage
information."
+ @echo "Further documentation is located in the doc/USAGE.* files."
+Index: doc/Makefile
+--- doc/Makefile.orig 2007-12-12 18:30:04 +0100
++++ doc/Makefile 2007-12-13 09:09:09 +0100
+@@ -1,4 +1,2 @@
+ all:
+- gzip < wput.1 > wput.1.gz
+ clean:
+- rm -f wput.1.gz
+Index: src/memdbg.c
+--- src/memdbg.c.orig 2007-12-12 18:30:04 +0100
++++ src/memdbg.c 2007-12-13 09:08:03 +0100
+@@ -1,5 +1,5 @@
+ #include <stdio.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+ #ifndef WIN32
+ #include <sys/socket.h>
+Index: src/socketlib.c
+--- src/socketlib.c.orig 2007-12-12 18:30:04 +0100
++++ src/socketlib.c 2007-12-13 09:08:03 +0100
+@@ -20,7 +20,7 @@
+ * It is meant to provide some library functions. The only required
external depency
+ * the printip function that is provided in utils.c */
+
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <fcntl.h>
+ #ifndef WIN32
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/wput/wput.spec
============================================================================
$ cvs diff -u -r0 -r1.1 wput.spec
--- /dev/null 2007-12-13 09:11:00 +0100
+++ wput.spec 2007-12-13 09:11:40 +0100
@@ -0,0 +1,96 @@
+##
+## wput.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2007 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: wput
+Summary: Batch Client for FTP Uploads
+URL: http://wput.sourceforge.net/
+Vendor: Hagen Fritsch
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Web
+License: GPL
+Version: 0.6.1
+Release: 20071213
+
+# list of sources
+Source0: http://switch.dl.sourceforge.net/wput/wput-%{version}.tgz
+Patch0: wput.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823
+PreReq: OpenPKG, openpkg >= 20060823
+BuildPreReq: gnutls
+PreReq: gnutls
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Wput is a command-line FTP client that looks like wget(1) but
+ instead of downloading, uploads files or whole directories to remote
+ FTP servers.
+
+%track
+ prog wput = {
+ version = %{version}
+ url = http://wput.sourceforge.net/
+ regex = wput-(__VER__)\.tgz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --mandir=%{l_prefix}/man \
+ --without-libiconv-prefix \
+ --without-libintl-prefix \
+ --disable-nls
+ %{l_make} %{l_mflags -O}
+
+%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/man1
+ %{l_make} %{l_mflags} install \
+ prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{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 [email protected]