summaryrefslogtreecommitdiff
path: root/security/barnyard/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/barnyard/files')
-rw-r--r--security/barnyard/files/barnyard.sh33
-rw-r--r--security/barnyard/files/patch-configure.in9
2 files changed, 42 insertions, 0 deletions
diff --git a/security/barnyard/files/barnyard.sh b/security/barnyard/files/barnyard.sh
new file mode 100644
index 000000000000..0f295bea90e9
--- /dev/null
+++ b/security/barnyard/files/barnyard.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+
+# PROVIDE: barnyard
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+
+# Add the following lines to /etc/rc.conf to enable barnyard:
+# barnyard_enable (bool): Set to YES to enable barnyard
+# Default: NO
+# barnyard_flags (str): Extra flags passed to barnyard
+# Default: -D
+# barnyard_conf (str): Barnyard configuration file
+# Default: ${PREFIX}/etc/barnyard.conf
+#
+
+. %%RC_SUBR%%
+
+name="barnyard"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/barnyard"
+
+load_rc_config $name
+
+[ -z "$barnyard_enable" ] && barnyard_enable="NO"
+[ -z "$barnyard_conf" ] && barnyard_conf="%%PREFIX%%/etc/barnyard.conf"
+[ -z "$barnyard_flags" ] && barnyard_flags="-D"
+
+[ -n "$barnyard_conf" ] && barnyard_flags="$barnyard_flags -c $barnyard_conf"
+
+run_rc_command "$1"
diff --git a/security/barnyard/files/patch-configure.in b/security/barnyard/files/patch-configure.in
new file mode 100644
index 000000000000..4444b4960f8c
--- /dev/null
+++ b/security/barnyard/files/patch-configure.in
@@ -0,0 +1,9 @@
+--- configure.in Sat May 1 11:43:29 2004
++++ configure.in.orig Wed Feb 9 11:47:44 2005
+@@ -282,5 +282,5 @@
+ dnl check for the header
+ LDFLAGS="${LDFLAGS} -L${MYSQL_LIB_DIR}"
+- LIBS="${LIBS} -lz -lssl -lmysqlclient"
++ LIBS="${LIBS} -lmysqlclient -lcrypto"
+ AC_CHECK_LIB(mysqlclient, mysql_real_connect, FOUND=yes, FOUND=no)
+