[packages/dcd] Rel 2

arekm arekm at pld-linux.org
Thu May 21 15:01:09 CEST 2026


commit 9e24cc46afcd8dfc5614def82f5b0e5855378042
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:00:51 2026 +0200

    Rel 2

 dcd-configure-c99.patch | 58 +++++++++++++++++++++++++++++++++++++++++++++++++
 dcd.spec                | 35 +++++++++++++----------------
 2 files changed, 73 insertions(+), 20 deletions(-)
---
diff --git a/dcd.spec b/dcd.spec
index 6d93ddb..58deee9 100644
--- a/dcd.spec
+++ b/dcd.spec
@@ -2,11 +2,12 @@ Summary:	DConnect Daemon - Hub D****ct Connect for Linux
 Summary(pl.UTF-8):	DConnect Daemon - Hub D****ct Connecta dla Linuksa
 Name:		dcd
 Version:	1.1.1
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Networking/Daemons
 Source0:	ftp://pollux.ds.pg.gda.pl/pub/Linux/DConnect/sources/stable/%{name}-%{version}.tar.bz2
 # Source0-md5:	99c7ffca321b33fb78b5433570c57120
+Patch0:		%{name}-configure-c99.patch
 URL:		http://www.dc.ds.pg.gda.pl/
 BuildRequires:	autoconf >= 2.52
 BuildRequires:	automake
@@ -14,7 +15,7 @@ BuildRequires:	libtool
 BuildRequires:	libwrap-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
-Requires(triggerpostun):	sed >= 4.0
+Requires:	sed >= 4.0
 Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,6 +29,7 @@ pracuje jako demon i używa wątków.
 
 %prep
 %setup -q
+%patch -P0 -p0
 
 %build
 %{__libtoolize}
@@ -65,28 +67,21 @@ if [ "$1" = "0" ]; then
 	/sbin/chkconfig --del dcd
 fi
 
-%triggerpostun -- dcd < 0.3.5
-echo "Upgrading from version < 0.3.5"
+%triggerpostun -- dcd < 0.5.5
+umask 002
 if [ -e /etc/dcd/console.users.rpmsave ]; then
+	echo "Upgrading from version < 0.3.5"
 	cp /etc/dcd/dcd.users /etc/dcd/dcd.users.rpmnew
 	cp /etc/dcd/console.users.rpmsave /etc/dcd/dcd.users
+	echo "Remember to review config - console users has been changed into dcd.users"
 fi
-umask 002
-echo "Remember to review config - console users has been changed into dcd.users"
-cp /etc/dcd/dcd.conf /etc/dcd/dcd.conf.rpmsave
-sed -i -e 's/console.users/dcd.users/g' /etc/dcd/dcd.conf
-
-%triggerpostun -- dcd < 0.4.6
-echo "Upgrading from version < 0.4.6"
-sed -i -e 's/minimum_sleep_time\b/minimal_sleep_time/' /etc/dcd/dcd.conf
-
-%triggerpostun -- dcd < 0.4.9
-echo "Upgrading from version < 0.4.9"
-sed -i -e 's/ping_timeout/idle_timeout/' /etc/dcd/dcd.conf
-
-%triggerpostun -- dcd < 0.5.5
-echo "Upgrading from version < 0.5.5"
-sed -i -e 's/listen_interface/bind_address/' /etc/dcd/dcd.conf
+cp -a /etc/dcd/dcd.conf /etc/dcd/dcd.conf.rpmsave
+sed -i \
+	-e 's/console.users/dcd.users/g' \
+	-e 's/minimum_sleep_time\b/minimal_sleep_time/' \
+	-e 's/ping_timeout/idle_timeout/' \
+	-e 's/listen_interface/bind_address/' \
+	/etc/dcd/dcd.conf
 
 %files
 %defattr(644,root,root,755)
diff --git a/dcd-configure-c99.patch b/dcd-configure-c99.patch
new file mode 100644
index 0000000..fdfdb93
--- /dev/null
+++ b/dcd-configure-c99.patch
@@ -0,0 +1,58 @@
+--- configure.ac.orig	2026-05-20 23:39:42.732093018 +0200
++++ configure.ac	2026-05-20 23:39:42.733948302 +0200
+@@ -105,6 +105,8 @@
+ AC_MSG_CHECKING([SCNu64 definition])
+ AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 										#include <stdio.h>
++										#include <stdlib.h>
++										#include <string.h>
+ 										#include <inttypes.h>
+ 									]],
+ 									[[
+@@ -116,6 +118,8 @@
+ 				AC_MSG_RESULT(ISOC99),
+ 				[ AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 														#include <stdio.h>
++														#include <stdlib.h>
++														#include <string.h>
+ 														#include <inttypes.h>
+ 													]],
+ 													[[
+@@ -127,6 +131,8 @@
+ 								AC_DEFINE_UNQUOTED(SCNu64,"qu") AC_MSG_RESULT(%qu),
+ 								[AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 																		#include <stdio.h>
++																		#include <stdlib.h>
++																		#include <string.h>
+ 																		#include <inttypes.h>
+ 																	]],
+ 																	[[
+@@ -146,6 +152,8 @@
+ AC_MSG_CHECKING([PRIu64 definition])
+ AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 										#include <stdio.h>
++										#include <stdlib.h>
++										#include <string.h>
+ 										#include <inttypes.h>
+ 									]],
+ 									[[
+@@ -158,6 +166,9 @@
+ 				AC_MSG_RESULT(ISOC99),
+ 				[ AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 														#include <stdio.h>
++														#include <stdlib.h>
++														#include <string.h>
++														#include <inttypes.h>
+ 													]],
+ 													[[
+ 														uint64_t i=100000000000; 
+@@ -169,6 +180,9 @@
+ 								AC_DEFINE_UNQUOTED(PRIu64,"qu") AC_MSG_RESULT(%qu),
+ 								[AC_RUN_IFELSE(	[AC_LANG_PROGRAM(	[[
+ 																		#include <stdio.h>
++																		#include <stdlib.h>
++																		#include <string.h>
++																		#include <inttypes.h>
+ 																	]],
+ 																	[[
+ 																		uint64_t i=100000000000; 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dcd.git/commitdiff/9e24cc46afcd8dfc5614def82f5b0e5855378042



More information about the pld-cvs-commit mailing list