aboutsummaryrefslogtreecommitdiff
path: root/net-im/zephyr/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2010-09-03 15:43:42 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2010-09-03 15:43:42 +0000
commit97a29e69df5cdfad7020b77c89782a60c183939f (patch)
treeab2b1f9700c724647505cd6c1faab12e70de3296 /net-im/zephyr/files
parent6d13f1540c0fbaca95d66cb30a94c7784f0e2194 (diff)
downloadports-97a29e69df5cdfad7020b77c89782a60c183939f.tar.gz
ports-97a29e69df5cdfad7020b77c89782a60c183939f.zip
Notes
Diffstat (limited to 'net-im/zephyr/files')
-rw-r--r--net-im/zephyr/files/patch-configure45
-rw-r--r--net-im/zephyr/files/patch-zwgc-main.c26
-rw-r--r--net-im/zephyr/files/zhm.in37
3 files changed, 108 insertions, 0 deletions
diff --git a/net-im/zephyr/files/patch-configure b/net-im/zephyr/files/patch-configure
new file mode 100644
index 000000000000..ae2223688679
--- /dev/null
+++ b/net-im/zephyr/files/patch-configure
@@ -0,0 +1,45 @@
+--- configure.orig 2009-11-12 08:19:57.000000000 +0000
++++ configure 2009-11-12 08:32:53.000000000 +0000
+@@ -24651,15 +24651,15 @@
+ { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
+ if test $ac_cv_lib_resolv_res_send = yes; then
+- LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
++ LIBZEPHYR_LIBS="-lc $LIBZEPHYR_LIBS"
+ else
+- { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
+-echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
++ { echo "$as_me:$LINENO: checking for res_send in -lc" >&5
++echo $ECHO_N "checking for res_send in -lc... $ECHO_C" >&6; }
+ if test "${ac_cv_lib_resolv___res_send+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lresolv $LIBS"
++LIBS="-lc $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -24673,11 +24673,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char __res_send ();
++char res_send ();
+ int
+ main ()
+ {
+-return __res_send ();
++return res_send ();
+ ;
+ return 0;
+ }
+@@ -24715,7 +24715,7 @@
+ { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
+ if test $ac_cv_lib_resolv___res_send = yes; then
+- LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
++ LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS"
+ else
+ { { echo "$as_me:$LINENO: error: Zephyr requires libresolv along with Kerberos V." >&5
+ echo "$as_me: error: Zephyr requires libresolv along with Kerberos V." >&2;}
diff --git a/net-im/zephyr/files/patch-zwgc-main.c b/net-im/zephyr/files/patch-zwgc-main.c
new file mode 100644
index 000000000000..60286fe74de1
--- /dev/null
+++ b/net-im/zephyr/files/patch-zwgc-main.c
@@ -0,0 +1,26 @@
+--- zwgc/main.c.orig 2009-12-20 01:29:41.000000000 +0000
++++ zwgc/main.c 2009-12-20 01:32:34.000000000 +0000
+@@ -396,9 +396,8 @@
+ void
+ notice_handler(ZNotice_t *notice)
+ {
+-#ifndef HAVE_ARES
++ int error;
+ char node[MAXDNAME];
+-#endif
+
+ #if defined(CMU_ZWGCPLUS)
+ list_add_notice(notice);
+@@ -415,9 +414,11 @@
+ notice_callback, notice);
+
+ #else
+- getnameinfo((const struct sockaddr *)&(notice->z_sender_sockaddr),
++ error = getnameinfo((const struct sockaddr *)&(notice->z_sender_sockaddr),
+ sizeof(notice->z_sender_sockaddr),
+ node, sizeof(node), NULL, 0, 0);
++ if (error != 0)
++ snprintf(node, MAXDNAME, "?");
+
+ process_notice(notice, node);
+ #ifdef CMU_ZWGCPLUS
diff --git a/net-im/zephyr/files/zhm.in b/net-im/zephyr/files/zhm.in
new file mode 100644
index 000000000000..fd3755be0127
--- /dev/null
+++ b/net-im/zephyr/files/zhm.in
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+#
+# PROVIDE: zhm
+# REQUIRE: named
+
+. %%RC_SUBR%%
+
+name="zhm"
+rcvar="zhm_enable"
+start_cmd="zhm_start"
+stop_postcmd="zhm_postcmd"
+start_precmd="zhm_precmd"
+command="%%PREFIX%%/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config "$name"
+eval "${rcvar}=\${${rcvar}:-'NO'}"
+
+zhm_zephyr_servers="${zhm_zephyr_servers:-}"
+
+zhm_precmd()
+{
+ mkdir -p $(dirname ${pidfile})
+}
+
+zhm_start()
+{
+ ${command} -f ${zhm_zephyr_servers}
+}
+
+zhm_postcmd()
+{
+ rm -f ${pidfile}
+}
+
+run_rc_command "$1"