[121184] trunk/dports/sysutils/daemon
khindenburg at macports.org
khindenburg at macports.org
Thu Jun 19 06:25:56 PDT 2014
Revision: 121184
https://trac.macports.org/changeset/121184
Author: khindenburg at macports.org
Date: 2014-06-19 06:25:56 -0700 (Thu, 19 Jun 2014)
Log Message:
-----------
daemon: add patch to build on mavericks - closes #42845
Modified Paths:
--------------
trunk/dports/sysutils/daemon/Portfile
Added Paths:
-----------
trunk/dports/sysutils/daemon/files/
trunk/dports/sysutils/daemon/files/patch-ignore-strlcpy-strlcat.diff
Modified: trunk/dports/sysutils/daemon/Portfile
===================================================================
--- trunk/dports/sysutils/daemon/Portfile 2014-06-19 12:37:54 UTC (rev 121183)
+++ trunk/dports/sysutils/daemon/Portfile 2014-06-19 13:25:56 UTC (rev 121184)
@@ -7,7 +7,7 @@
categories sysutils
platforms darwin
license GPL-2+
-maintainers nomaintainer
+maintainers khindenburg openmaintainer
description Daemon turns other process into daemons
long_description Daemon turns other process into daemons. There are many \
tasks that need to be performed to correctly set up a \
@@ -18,10 +18,17 @@
homepage http://libslack.org/daemon/
master_sites ${homepage}download/
-checksums md5 6cd0a28630a29ac279bc501f39baec66 \
- sha1 fa6298f05f868d54660a7ed70c05fb7a0963a24b \
- rmd160 63fea6386f3dae6a5da6451a1d126a2525ee1e0e
+checksums rmd160 63fea6386f3dae6a5da6451a1d126a2525ee1e0e \
+ sha256 c4b9ea4aa74d55ea618c34f1e02c080ddf368549037cb239ee60c83191035ca1
+
+platform darwin {
+ if {${os.major} >= 13} {
+ patchfiles patch-ignore-strlcpy-strlcat.diff
+ patch.pre_args -p1
+ }
+}
+
configure.cmd ./config
test.run yes
Added: trunk/dports/sysutils/daemon/files/patch-ignore-strlcpy-strlcat.diff
===================================================================
--- trunk/dports/sysutils/daemon/files/patch-ignore-strlcpy-strlcat.diff (rev 0)
+++ trunk/dports/sysutils/daemon/files/patch-ignore-strlcpy-strlcat.diff 2014-06-19 13:25:56 UTC (rev 121184)
@@ -0,0 +1,31 @@
+diff -Naur daemon-0.6.4.old/daemon.c daemon-0.6.4/daemon.c
+--- daemon-0.6.4.old/daemon.c 2010-06-12 06:37:00.000000000 -0700
++++ daemon-0.6.4/daemon.c 2014-03-15 08:25:15.000000000 -0700
+@@ -651,6 +651,8 @@
+ #define _NETBSD_SOURCE /* For CEOF, chroot() on NetBSD-5.0.2 */
+ #endif
+
++#include <config.h>
++
+ #include <slack/std.h>
+
+ #include <pwd.h>
+diff -Naur daemon-0.6.4.old/libslack/str.h daemon-0.6.4/libslack/str.h
+--- daemon-0.6.4.old/libslack/str.h 2010-06-12 06:37:00.000000000 -0700
++++ daemon-0.6.4/libslack/str.h 2014-03-15 08:16:09.000000000 -0700
+@@ -254,8 +254,15 @@
+ int oct(const char *str);
+ int strcasecmp(const char *s1, const char *s2);
+ int strncasecmp(const char *s1, const char *s2, size_t n);
++
++#ifndef HAVE_STRLCPY
+ size_t strlcpy(char *dst, const char *src, size_t size);
++#endif
++
++#ifndef HAVE_STRLCAT
+ size_t strlcat(char *dst, const char *src, size_t size);
++#endif
++
+ char *cstrcpy(char *dst, const char *src);
+ char *cstrcat(char *dst, const char *src);
+ char *cstrchr(const char *str, int c);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140619/b2e23c59/attachment-0001.html>
More information about the macports-changes
mailing list