[packages/ftpproxy] Rel 2

arekm arekm at pld-linux.org
Thu May 21 15:59:10 CEST 2026


commit 8ef26516dcfbd55212afdbd1e94f6ee5a324da9a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:58:54 2026 +0200

    Rel 2

 ftpproxy-modern-c.patch | 35 +++++++++++++++++++++++++++++++++++
 ftpproxy.spec           |  7 +++++--
 2 files changed, 40 insertions(+), 2 deletions(-)
---
diff --git a/ftpproxy.spec b/ftpproxy.spec
index 4376d1b..daada4a 100644
--- a/ftpproxy.spec
+++ b/ftpproxy.spec
@@ -2,12 +2,13 @@ Summary:	ftpproxy is an application level gateway for the FTP protocol
 Summary(pl.UTF-8):	ftpproxy jest aplikacyjną bramką dla protokołu FTP
 Name:		ftpproxy
 Version:	1.2.3
-Release:	1
+Release:	2
 License:	GPL
 Group:		Applications/Networking
 Source0:	http://ftp.daemons.de/download/%{name}-%{version}.tgz
 # Source0-md5:	c2068bc452e1d7554d3bda08030aa433
 Source1:	%{name}.inetd
+Patch0:		%{name}-modern-c.patch
 URL:		http://ftp.daemons.de/
 BuildRequires:	ctags
 BuildRequires:	rpmbuild(macros) >= 1.268
@@ -30,11 +31,13 @@ serwerami FTP.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -DVERSION=\\\"%{version}\\\""
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -DVERSION=\\\"%{version}\\\"" \
+	LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/ftpproxy-modern-c.patch b/ftpproxy-modern-c.patch
new file mode 100644
index 0000000..e676e15
--- /dev/null
+++ b/ftpproxy-modern-c.patch
@@ -0,0 +1,35 @@
+diff -urN ftpproxy-1.2.3.orig/src/ip-lib.c ftpproxy-1.2.3/src/ip-lib.c
+--- ftpproxy-1.2.3.orig/src/ip-lib.c	2026-05-21 01:36:16.980388238 +0200
++++ ftpproxy-1.2.3/src/ip-lib.c	2026-05-21 01:38:04.126219023 +0200
+@@ -42,8 +42,9 @@
+ #include "ip-lib.h"
+ 
+ 
+-static void alarm_handler()
++static void alarm_handler(int sig)
+ {
++	(void)sig;
+ 	return;
+ }
+ 
+@@ -52,7 +53,7 @@
+ {
+ 	int	socketd;
+ 	struct sockaddr_in server;
+-	struct hostent *hostp, *gethostbyname();
++	struct hostent *hostp;
+ 
+ 	socketd = socket(AF_INET, SOCK_STREAM, 0);
+ 	if (socketd < 0)
+diff -urN ftpproxy-1.2.3.orig/src/Makefile ftpproxy-1.2.3/src/Makefile
+--- ftpproxy-1.2.3.orig/src/Makefile	2026-05-21 01:36:16.980138007 +0200
++++ ftpproxy-1.2.3/src/Makefile	2026-05-21 01:36:20.987413232 +0200
+@@ -18,7 +18,7 @@
+ 	-ctags *.[ch]
+ 
+ ftp.proxy:	$(FTPPROXY)
+-	$(CC) -o $@ $(FTPPROXY) ${OSLIB}
++	$(CC) $(LDFLAGS) -o $@ $(FTPPROXY) ${OSLIB}
+ 
+ 	
+ clean:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ftpproxy.git/commitdiff/8ef26516dcfbd55212afdbd1e94f6ee5a324da9a



More information about the pld-cvs-commit mailing list