diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:04:40 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-18 19:04:40 +0000 |
commit | b432ed11ba19c86df023ab59831b3c9f06a92101 (patch) | |
tree | 012a6a8c186ae5da2f98d6feb8a2f5525ee65bbb /security/distcache/files | |
parent | 4dcc1160bdd473c6bc0db8802fbcf1fe6531c3d9 (diff) | |
download | ports-b432ed11ba19c86df023ab59831b3c9f06a92101.tar.gz ports-b432ed11ba19c86df023ab59831b3c9f06a92101.zip |
Notes
Diffstat (limited to 'security/distcache/files')
-rw-r--r-- | security/distcache/files/dc_server.sh.in | 32 | ||||
-rw-r--r-- | security/distcache/files/patch-proto_fd.c | 18 |
2 files changed, 50 insertions, 0 deletions
diff --git a/security/distcache/files/dc_server.sh.in b/security/distcache/files/dc_server.sh.in new file mode 100644 index 000000000000..84a871550ea0 --- /dev/null +++ b/security/distcache/files/dc_server.sh.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: %%NAME%% +# REQUIRE: LOGIN +# BEFORE: securelevel +# KEYWORD: FreeBSD shutdown + +# Add the following line to /etc/rc.conf to enable `%%NAME%%': +# +#%%NAME%%_enable="YES" +# +# See %%NAME%%(1) +# + +. "%%RC_SUBR%%" + +name="%%NAME%%" +rcvar=`set_rcvar` + +command="%%PREFIX%%/bin/dc_server" +command_args="-daemon -listen IP:9001 -user nobody -pidfile /var/run/$name.pid" +pidfile="/var/run/$name.pid" + +# read configuration and set defaults +load_rc_config "$name" +: ${%%NAME%%_enable="NO"} +: ${%%NAME%%_flags=""} + +run_rc_command "$1" diff --git a/security/distcache/files/patch-proto_fd.c b/security/distcache/files/patch-proto_fd.c new file mode 100644 index 000000000000..a9bbf9a8bba2 --- /dev/null +++ b/security/distcache/files/patch-proto_fd.c @@ -0,0 +1,18 @@ +*** libnal/proto_fd.c.ori Wed Apr 13 19:34:07 2005 +--- libnal/proto_fd.c Wed Apr 13 21:51:20 2005 +*************** +*** 24,29 **** +--- 24,36 ---- + #include <libnal/nal.h> + #include "nal_internal.h" + #include <libsys/post.h> ++ #ifdef __FreeBSD__ ++ #if __FreeBSD_version >= 502010 ++ #include <sys/limits.h> ++ #else ++ #include <machine/limits.h> ++ #endif ++ #endif /* __FreeBSD__ */ + + /**************************/ + /* predeclare our vtables */ |