diff options
author | Will Andrews <will@FreeBSD.org> | 2001-05-20 02:54:49 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-05-20 02:54:49 +0000 |
commit | d9ea8a1921c03d04ae9d55fae20d3027c060eb29 (patch) | |
tree | 590089a6af6c33986370699b626f6d5e3858d722 /sysutils/msyslog/files | |
parent | 3855bf6132cccbf1225a1b9c2cf746ba6c5bd3c1 (diff) | |
download | ports-d9ea8a1921c03d04ae9d55fae20d3027c060eb29.tar.gz ports-d9ea8a1921c03d04ae9d55fae20d3027c060eb29.zip |
Notes
Diffstat (limited to 'sysutils/msyslog/files')
-rw-r--r-- | sysutils/msyslog/files/msyslog.sh.sample | 20 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-configure.in | 38 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-im_tcp.c | 14 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-im_udp.c | 15 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-im_unix.c | 14 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-ip_misc.c | 15 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-md5.h | 11 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-modules-Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-rmd160.h | 11 | ||||
-rw-r--r-- | sysutils/msyslog/files/patch-sha1.h | 11 |
10 files changed, 160 insertions, 0 deletions
diff --git a/sysutils/msyslog/files/msyslog.sh.sample b/sysutils/msyslog/files/msyslog.sh.sample new file mode 100644 index 000000000000..3edb0ae0ead6 --- /dev/null +++ b/sysutils/msyslog/files/msyslog.sh.sample @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/syslogd ] && ${PREFIX}/sbin/syslogd && echo -n ' msyslog' + ;; +stop) + killall syslogd && echo -n ' msyslog' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/sysutils/msyslog/files/patch-configure.in b/sysutils/msyslog/files/patch-configure.in new file mode 100644 index 000000000000..ed23a19d6285 --- /dev/null +++ b/sysutils/msyslog/files/patch-configure.in @@ -0,0 +1,38 @@ +--- configure.in.orig Tue May 1 04:25:49 2001 ++++ configure.in Mon May 14 00:23:17 2001 +@@ -57,7 +57,7 @@ + AC_DEFINE_UNQUOTED(MSYSLOG_VERSION_STR, "$MSYSLOG_VERSION")dnl + echo msyslog version... $MSYSLOG_VERSION + +-MLIBNAME="libmsyslog.so.$MSYSLOG_VERSION" ; ++MLIBNAME="libmsyslog.so.4" ; + AC_DEFINE_UNQUOTED(MLIBNAME_STR, "$MLIBNAME")dnl + + MANPAGES="syslog.conf.5 syslogd.8" +@@ -66,12 +66,12 @@ + then + prefix=$ac_default_prefix + fi +-AC_DEFINE_UNQUOTED(INSTALL_LIBDIR, "$prefix/lib/alat") ++AC_DEFINE_UNQUOTED(INSTALL_LIBDIR, "$prefix/lib") + + dnl + dnl Check needed libs for daemon + dnl +-AC_CHECK_LIB(dl, dlopen, SYSLOGD_LIBS="$SYSLOGD_LIBS -ldl")dnl ++AC_CHECK_LIB(c, dlopen)dnl + AC_CHECK_LIB(socket, connect, SYSLOGD_LIBS="$SYSLOGD_LIBS -lsocket")dnl + AC_CHECK_LIB(nsl, gethostbyname, SYSLOGD_LIBS="$SYSLOGD_LIBS -lnsl")dnl + AC_DEFINE(SYSLOGD_LIBS, $SYSLOGD_LIBS)dnl +@@ -155,6 +155,11 @@ + AC_DEFINE_UNQUOTED(SYMBOL_PREFIX, "_")dnl + SHARED_PARAMS="-Bshareable" + DCCFLAGS="-fPIC" ++elif test "$UNAME" = "FreeBSD" ; then ++ AC_DEFINE(DLOPEN_FLAGS, RTLD_LAZY)dnl ++ SHARED_PARAMS="-Bshareable" ++ DCCFLAGS="-fPIC" ++ SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-E" + elif test "$UNAME" = "Linux" ; then + AC_DEFINE(DLOPEN_FLAGS, RTLD_LAZY | RTLD_GLOBAL)dnl + MAIN_CPPFLAGS="-Xlinker -E"; diff --git a/sysutils/msyslog/files/patch-im_tcp.c b/sysutils/msyslog/files/patch-im_tcp.c new file mode 100644 index 000000000000..68c5fb069b0d --- /dev/null +++ b/sysutils/msyslog/files/patch-im_tcp.c @@ -0,0 +1,14 @@ +--- src/modules/im_tcp.c.orig Thu Apr 26 00:43:50 2001 ++++ src/modules/im_tcp.c Sun May 13 00:49:45 2001 +@@ -72,11 +72,6 @@ + #include "../modules.h" + #include "../syslogd.h" + +-/* recvfrom() and others like socklen_t, Irix doesn't provide it */ +-#ifndef HAVE_SOCKLEN_T +- typedef int socklen_t; +-#endif +- + struct tcp_conn { + struct tcp_conn *next; + int fd; diff --git a/sysutils/msyslog/files/patch-im_udp.c b/sysutils/msyslog/files/patch-im_udp.c new file mode 100644 index 000000000000..b15b6b4da474 --- /dev/null +++ b/sysutils/msyslog/files/patch-im_udp.c @@ -0,0 +1,15 @@ +--- src/modules/im_udp.c.orig Thu Apr 26 00:43:50 2001 ++++ src/modules/im_udp.c Sun May 13 23:44:03 2001 +@@ -58,12 +58,6 @@ + #include "../modules.h" + #include "../syslogd.h" + +-/* recvfrom() and others like socklen_t, Irix doesn't provide it */ +-#ifndef HAVE_SOCKLEN_T +- typedef int socklen_t; +-#endif +- +- + /* + * get messge + * diff --git a/sysutils/msyslog/files/patch-im_unix.c b/sysutils/msyslog/files/patch-im_unix.c new file mode 100644 index 000000000000..829ebdd41266 --- /dev/null +++ b/sysutils/msyslog/files/patch-im_unix.c @@ -0,0 +1,14 @@ +--- src/modules/im_unix.c.orig Thu Apr 26 00:43:50 2001 ++++ src/modules/im_unix.c Sun May 13 23:44:55 2001 +@@ -58,11 +58,6 @@ + #include "../modules.h" + #include "../syslogd.h" + +-/* recvfrom() and others like socklen_t, Irix doesn't provide it */ +-#ifndef HAVE_SOCKLEN_T +- typedef int socklen_t; +-#endif +- + #define DEFAULT_LOGGER "/dev/log" + + /* diff --git a/sysutils/msyslog/files/patch-ip_misc.c b/sysutils/msyslog/files/patch-ip_misc.c new file mode 100644 index 000000000000..827a6edbade1 --- /dev/null +++ b/sysutils/msyslog/files/patch-ip_misc.c @@ -0,0 +1,15 @@ +--- src/modules/ip_misc.c.orig Thu Apr 26 19:09:26 2001 ++++ src/modules/ip_misc.c Sun May 13 16:30:57 2001 +@@ -62,12 +62,6 @@ + #include "../modules.h" + #include "../syslogd.h" + +-/* recvfrom() and others like socklen_t, Irix doesn't provide it */ +-#ifndef HAVE_SOCKLEN_T +- typedef int socklen_t; +-#endif +- +- + #define TCP_KEEPALIVE 30 /* seconds to probe TCP connection */ + #define MSYSLOG_MAX_TCP_CLIENTS 100 + #define LISTENQ 35 diff --git a/sysutils/msyslog/files/patch-md5.h b/sysutils/msyslog/files/patch-md5.h new file mode 100644 index 000000000000..c87de3fef159 --- /dev/null +++ b/sysutils/msyslog/files/patch-md5.h @@ -0,0 +1,11 @@ +--- src/peo/md5.h.orig Tue Dec 5 00:17:51 2000 ++++ src/peo/md5.h Sun May 13 00:38:59 2001 +@@ -27,7 +27,7 @@ + #ifndef _MD5_H_ + #define _MD5_H_ + +-#include "typedefs.h" ++#include <sys/types.h> + + /* MD5 context. */ + typedef struct MD5Context { diff --git a/sysutils/msyslog/files/patch-modules-Makefile.in b/sysutils/msyslog/files/patch-modules-Makefile.in new file mode 100644 index 000000000000..54a14ccd5cd9 --- /dev/null +++ b/sysutils/msyslog/files/patch-modules-Makefile.in @@ -0,0 +1,11 @@ +--- src/modules/Makefile.in.orig Mon May 14 00:23:33 2001 ++++ src/modules/Makefile.in Mon May 14 00:23:40 2001 +@@ -35,7 +35,7 @@ + CPPFLAGS= -I.. @CPPFLAGS@ + + INSTALL= @INSTALL@ +-INSTALL_LIBDIR= @prefix@/lib/alat ++INSTALL_LIBDIR= @prefix@/lib + + MLIBNAME= @MLIBNAME@ + MSRCS= @MSRCS@ diff --git a/sysutils/msyslog/files/patch-rmd160.h b/sysutils/msyslog/files/patch-rmd160.h new file mode 100644 index 000000000000..3e4e464b5a75 --- /dev/null +++ b/sysutils/msyslog/files/patch-rmd160.h @@ -0,0 +1,11 @@ +--- src/peo/rmd160.h.orig Sun May 13 00:40:04 2001 ++++ src/peo/rmd160.h Sun May 13 00:40:23 2001 +@@ -20,7 +20,7 @@ + #ifndef _RMD160_H /* make sure this file is read only once */ + #define _RMD160_H + +-#include "typedefs.h" ++#include <sys/types.h> + + /********************************************************************/ + diff --git a/sysutils/msyslog/files/patch-sha1.h b/sysutils/msyslog/files/patch-sha1.h new file mode 100644 index 000000000000..664e98dedb82 --- /dev/null +++ b/sysutils/msyslog/files/patch-sha1.h @@ -0,0 +1,11 @@ +--- src/peo/sha1.h.orig Sun May 13 00:40:12 2001 ++++ src/peo/sha1.h Sun May 13 00:40:37 2001 +@@ -9,7 +9,7 @@ + #ifndef _SHA1_H + #define _SHA1_H + +-#include "typedefs.h" ++#include <sys/types.h> + + typedef struct { + u_int32_t state[5]; |