ports/96463: [update] net-p2p/dcd to version 0.6.5

Andrej Zverev az at FreeBSD.org
Fri Apr 28 12:50:09 UTC 2006


>Number:         96463
>Category:       ports
>Synopsis:       [update] net-p2p/dcd to version 0.6.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 28 12:50:07 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrej Zverev
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

	
>Description:
	- Update to new version 0.6.5
	- Fix build on 4.11
	- Add rc.subr support
	See changelog for more details
	
>How-To-Repeat:
	
>Fix:

	

--- pr.txt begins here ---
Index: dcd/Makefile
===================================================================
RCS file: /home/pcvs/ports/net-p2p/dcd/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- dcd/Makefile	23 Feb 2006 10:38:37 -0000	1.5
+++ dcd/Makefile	28 Apr 2006 12:34:50 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	dcd
-PORTVERSION=	0.5.9
+PORTVERSION=	0.6.5
 CATEGORIES=	net-p2p
 MASTER_SITES=	http://www.dc.ds.pg.gda.pl/download/sources/stable/
 
@@ -15,7 +15,7 @@
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
-USE_REINPLACE=	yes
+USE_RC_SUBR=	dcd.sh
 
 CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
 
@@ -30,10 +30,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
-BROKEN=		"Does not compile"
-.endif
-
 post-patch:
 .for f in dcd dcd.console
 	@${MV} ${WRKSRC}/doc/${f}.2 ${WRKSRC}/doc/${f}.8
Index: dcd/distinfo
===================================================================
RCS file: /home/pcvs/ports/net-p2p/dcd/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- dcd/distinfo	30 Nov 2005 11:00:13 -0000	1.2
+++ dcd/distinfo	28 Apr 2006 12:34:50 -0000
@@ -1,3 +1,3 @@
-MD5 (dcd-0.5.9.tar.bz2) = 0a46f116137459507bae588a818b0be3
-SHA256 (dcd-0.5.9.tar.bz2) = ad22b767a1faaaa585839cddc5ee0f2ca9ad471b7b3f4aab556e84ca9283c17f
-SIZE (dcd-0.5.9.tar.bz2) = 340164
+MD5 (dcd-0.6.5.tar.bz2) = f73325ce84cfd31dc6ba7c1e885717bd
+SHA256 (dcd-0.6.5.tar.bz2) = 790bb42f6207c5535f892985f8667f2fae32c43f2ee4d1599cd8f5b05493aac9
+SIZE (dcd-0.6.5.tar.bz2) = 346353
Index: dcd/files/dcd.sh.in
===================================================================
RCS file: dcd/files/dcd.sh.in
diff -N dcd/files/dcd.sh.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dcd/files/dcd.sh.in	28 Apr 2006 12:34:50 -0000
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# PROVIDE: dcd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# dcd_enable (bool):   Set to NO by default.
+#               Set it to YES to enable dcd.
+
+. %%RC_SUBR%%
+
+name="dcd"
+rcvar=${name}_enable
+
+command=%%PREFIX%%/sbin/dcd
+sig_stop=-KILL 
+stop_cmd=stop_cmd
+
+load_rc_config $name
+
+stop_cmd()                                                                  
+{                                                                               
+    kill $sig_stop $rc_pid
+    rm -f $pidfile                                                                
+}  
+
+: ${dcd_enable="NO"}
+
+run_rc_command "$1"
+
Index: dcd/files/patch-src-cmd.dc.h
===================================================================
RCS file: dcd/files/patch-src-cmd.dc.h
diff -N dcd/files/patch-src-cmd.dc.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dcd/files/patch-src-cmd.dc.h	28 Apr 2006 12:34:50 -0000
@@ -0,0 +1,13 @@
+--- src/cmd.dc.h.orig	Mon Mar 20 04:03:53 2006
++++ src/cmd.dc.h	Fri Apr 28 15:10:57 2006
+@@ -13,6 +13,10 @@
+ #if !defined(__CMD_DC_H__)
+ #define __CMD_DC_H__
+ 
++#ifndef UINT64_C
++#define        UINT64_C(c)     (c ## ULL)
++#endif
++
+ typedef struct{
+ 	userrec_t *usr;
+ 	char *cmd;
--- pr.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list