diff options
author | Cy Schubert <cy@FreeBSD.org> | 2017-08-11 13:59:57 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2017-08-11 13:59:57 +0000 |
commit | 17398d76ecc985fa71fcad725ff0f9fd6c539fc2 (patch) | |
tree | 39785ff0df5fe7f64cf0d1ecbe4388cc6561a4ec /sysutils/cfengine311/files | |
parent | Fix packaging WITH=HTMLDOCS. (diff) |
Welcome the new cfengine311 and cfengine-masterfiles311.
Diffstat (limited to 'sysutils/cfengine311/files')
-rw-r--r-- | sysutils/cfengine311/files/cf-execd.in | 28 | ||||
-rw-r--r-- | sysutils/cfengine311/files/cf-monitord.in | 28 | ||||
-rw-r--r-- | sysutils/cfengine311/files/cf-serverd.in | 28 | ||||
-rw-r--r-- | sysutils/cfengine311/files/patch-m4-strndup.m4 | 54 | ||||
-rw-r--r-- | sysutils/cfengine311/files/patch-m4__strndup.m4 | 56 |
5 files changed, 194 insertions, 0 deletions
diff --git a/sysutils/cfengine311/files/cf-execd.in b/sysutils/cfengine311/files/cf-execd.in new file mode 100644 index 000000000000..1ee33104e76e --- /dev/null +++ b/sysutils/cfengine311/files/cf-execd.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cf-execd +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf[.local] to enable cf-execd(8) +# +# cf_execd_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable cf-execd. +# cf_execd_flags (str): Custom additional arguments to be passed +# to cf-execd (default empty). +# + +. /etc/rc.subr + +name="cf_execd" +rcvar=cf_execd_enable + +command="%%PREFIX%%/sbin/cf-execd" + +load_rc_config $name + +: ${cf_execd_enable="NO"} + +run_rc_command "$1" diff --git a/sysutils/cfengine311/files/cf-monitord.in b/sysutils/cfengine311/files/cf-monitord.in new file mode 100644 index 000000000000..471ee108622a --- /dev/null +++ b/sysutils/cfengine311/files/cf-monitord.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cf-monitord +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf[.local] to enable cf-monitord(8) +# +# cf_monitord_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable cf-monitord. +# cf_monitord_flags (str): Custom additional arguments to be passed +# to cf-monitord (default empty). +# + +. /etc/rc.subr + +name="cf_monitord" +rcvar=cf_monitord_enable + +command="%%PREFIX%%/sbin/cf-monitord" + +load_rc_config $name + +: ${cf_monitord_enable="NO"} + +run_rc_command "$1" diff --git a/sysutils/cfengine311/files/cf-serverd.in b/sysutils/cfengine311/files/cf-serverd.in new file mode 100644 index 000000000000..9fbd07cc148a --- /dev/null +++ b/sysutils/cfengine311/files/cf-serverd.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cf-serverd +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf[.local] to enable cf-serverd(8) +# +# cf_serverd_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable cf-serverd. +# cf_serverd_flags (str): Custom additional arguments to be passed +# to cf-serverd (default empty). +# + +. /etc/rc.subr + +name="cf_serverd" +rcvar=cf_serverd_enable + +command="%%PREFIX%%/sbin/cf-serverd" + +load_rc_config $name + +: ${cf_serverd_enable="NO"} + +run_rc_command "$1" diff --git a/sysutils/cfengine311/files/patch-m4-strndup.m4 b/sysutils/cfengine311/files/patch-m4-strndup.m4 new file mode 100644 index 000000000000..31e4b7e264de --- /dev/null +++ b/sysutils/cfengine311/files/patch-m4-strndup.m4 @@ -0,0 +1,54 @@ +--- /dev/null 2014-07-29 08:00:54.000000000 -0700 ++++ m4/strndup.m4 2014-07-29 08:01:42.499328796 -0700 +@@ -0,0 +1,51 @@ ++# strndup.m4 serial 21 ++dnl Copyright (C) 2002-2003, 2005-2013 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++AC_DEFUN([cf3_FUNC_STRNDUP], ++[ ++ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles ++ AC_CHECK_DECLS([strndup]) ++ AC_REPLACE_FUNCS([strndup]) ++ if test $ac_cv_have_decl_strndup = no; then ++ HAVE_DECL_STRNDUP=0 ++ fi ++ ++ if test $ac_cv_func_strndup = yes; then ++ HAVE_STRNDUP=1 ++ # AIX 5.3 has a function that tries to copy the entire range specified ++ # by n, instead of just the length of src. ++ AC_CACHE_CHECK([for working strndup], [cf3_cv_func_strndup_works], ++ [AC_RUN_IFELSE([ ++ AC_LANG_PROGRAM([[#include <string.h> ++ #include <stdlib.h>]], [[ ++#if !HAVE_DECL_STRNDUP ++ extern ++ #ifdef __cplusplus ++ "C" ++ #endif ++ char *strndup (const char *, size_t); ++#endif ++ char *s; ++ // Will crash if strndup tries to traverse all 2GB. ++ s = strndup ("string", 2000000000); ++ return 0;]])], ++ [cf3_cv_func_strndup_works=yes], ++ [cf3_cv_func_strndup_works=no], ++ [ ++changequote(,)dnl ++ case $host_os in ++ aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";; ++ *) cf3_cv_func_strndup_works="guessing yes";; ++ esac ++changequote([,])dnl ++ ])]) ++ case $cf3_cv_func_strndup_works in ++ *no) AC_LIBOBJ([strndup]) ;; ++ esac ++ else ++ HAVE_STRNDUP=0 ++ fi ++]) diff --git a/sysutils/cfengine311/files/patch-m4__strndup.m4 b/sysutils/cfengine311/files/patch-m4__strndup.m4 new file mode 100644 index 000000000000..cb6d41d2e7cf --- /dev/null +++ b/sysutils/cfengine311/files/patch-m4__strndup.m4 @@ -0,0 +1,56 @@ +Index: m4/strndup.m4 +=================================================================== +--- /dev/null 2014-07-29 08:00:54.000000000 -0700 ++++ m4/strndup.m4 2014-07-29 08:01:42.499328796 -0700 +@@ -0,0 +1,51 @@ ++# strndup.m4 serial 21 ++dnl Copyright (C) 2002-2003, 2005-2013 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++AC_DEFUN([cf3_FUNC_STRNDUP], ++[ ++ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles ++ AC_CHECK_DECLS([strndup]) ++ AC_REPLACE_FUNCS([strndup]) ++ if test $ac_cv_have_decl_strndup = no; then ++ HAVE_DECL_STRNDUP=0 ++ fi ++ ++ if test $ac_cv_func_strndup = yes; then ++ HAVE_STRNDUP=1 ++ # AIX 5.3 has a function that tries to copy the entire range specified ++ # by n, instead of just the length of src. ++ AC_CACHE_CHECK([for working strndup], [cf3_cv_func_strndup_works], ++ [AC_RUN_IFELSE([ ++ AC_LANG_PROGRAM([[#include <string.h> ++ #include <stdlib.h>]], [[ ++#if !HAVE_DECL_STRNDUP ++ extern ++ #ifdef __cplusplus ++ "C" ++ #endif ++ char *strndup (const char *, size_t); ++#endif ++ char *s; ++ // Will crash if strndup tries to traverse all 2GB. ++ s = strndup ("string", 2000000000); ++ return 0;]])], ++ [cf3_cv_func_strndup_works=yes], ++ [cf3_cv_func_strndup_works=no], ++ [ ++changequote(,)dnl ++ case $host_os in ++ aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";; ++ *) cf3_cv_func_strndup_works="guessing yes";; ++ esac ++changequote([,])dnl ++ ])]) ++ case $cf3_cv_func_strndup_works in ++ *no) AC_LIBOBJ([strndup]) ;; ++ esac ++ else ++ HAVE_STRNDUP=0 ++ fi ++]) |