commit 2318076a89c4e44dd857ebd30af39c637c35dac1
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Sat Dec 12 21:51:17 2015 +0100

    - fixed build

 pfqueue-build.patch | 20 ++++++++++++++++++++
 pfqueue.spec        |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/pfqueue.spec b/pfqueue.spec
index 7d48a75..7f29496 100644
--- a/pfqueue.spec
+++ b/pfqueue.spec
@@ -7,6 +7,7 @@ License:        GPL
 Group:         Applications/Mail
 Source0:       http://dl.sourceforge.net/pfqueue/%{name}-%{version}.tar.gz
 # Source0-md5: ff3fbcc39b39112f123b93df579998b8
+Patch0:                %{name}-build.patch
 URL:           http://pfqueue.sourceforge.net/
 BuildRequires: ncurses-devel
 #Requires:     postfix or exim
@@ -43,6 +44,7 @@ kolejkę.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
diff --git a/pfqueue-build.patch b/pfqueue-build.patch
new file mode 100644
index 0000000..8350479
--- /dev/null
+++ b/pfqueue-build.patch
@@ -0,0 +1,20 @@
+--- pfqueue-0.5.6/fe_socket.c~ 2007-02-04 22:10:45.000000000 +0100
++++ pfqueue-0.5.6/fe_socket.c  2015-12-12 21:50:14.505214934 +0100
+@@ -53,7 +53,7 @@ void version() {
+ 
+ int w_socket ( int s, const char* b ) {
+       write ( s, b, strlen(b) );
+-      printf ( b );
++      printf ( "%s", b );
+ }
+ 
+ void strip_nl(char* b, int l) {
+@@ -272,7 +272,7 @@ void client_process ( int cs ) {
+ 
+               if ( bl ) {
+                       strip_nl ( buf, sizeof(buf) );
+-                      printf ( buf );
++                      printf ( "%s", buf );
+                       printf ( "\n" );
+                       done = 0;
+               }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pfqueue.git/commitdiff/2318076a89c4e44dd857ebd30af39c637c35dac1

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to