2 changed files with 147 additions and 0 deletions
@ -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@
|
||||
bindir=@bindir@
|
||||
|
||||
@@ -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
|
||||
@ -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 |
||||
|
||||
Loading…
Reference in new issue