1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Syslog-ng-rc no longer needed, The -devel port is now used for this purpose.

This commit is contained in:
Cy Schubert 2013-01-09 07:47:27 +00:00
parent 672a4b22bc
commit e31762dca0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310126
11 changed files with 1 additions and 589 deletions

1
MOVED
View File

@ -4009,3 +4009,4 @@ x11-themes/kde-icons-amaranth||2013-01-06|Has expired: BROKEN for more than 6 mo
x11-themes/kde-icons-realistic||2013-01-06|Has expired: BROKEN for more than 6 month
x11/Terminal|x11/xfce4-terminal|2013-01-06|Project was renamed
textproc/p5-ack|textproc/ack|2013-01-06|Not just a perl module
sysutils/syslog-ng-rc|sysutils/syslog-ng-devel|2013-01-08|No longer used by our upline, use syslog-ng-devel instead

View File

@ -899,7 +899,6 @@
SUBDIR += syslinux
SUBDIR += syslog-ng
SUBDIR += syslog-ng-devel
SUBDIR += syslog-ng-rc
SUBDIR += syslog-ng2
SUBDIR += syslogger
SUBDIR += sysrc

View File

@ -1,159 +0,0 @@
# New ports collection makefile for: syslog-ng
# Date created: 10 November 2006
# Whom: Ivan Lago <ivan.lago@ifom-ieo-campus.it>
#
# $FreeBSD$
#
PORTNAME= syslog-ng
PORTVERSION= 3.3.7
PORTREVISION= 3
CATEGORIES= sysutils
PKGNAMESUFFIX= -rc
MASTER_SITES= http://packages.madhouse-project.org/syslog-ng/3.3/3.3.6.91/
DISTFILES= $(PORTNAME)-3.3.6.91-20121008-v3.3.6.91.tar.gz
MAINTAINER= cy@FreeBSD.org
COMMENT= A powerful syslogd replacement
IGNORE= syslog-ng 3.3.7 has gone GA
CONFLICTS?= syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
syslog-ng-devel-[0-9]*
WRKSRC= $(WRKDIR)/$(PORTNAME)-3.3.6.91
OPTIONS= SYS_SSL "Build with OpenSSL support (from system)" off \
PORTS_SSL "Build with OpenSSL support (from ports)" on \
TCP_WRAPPERS "Build with TCP Wrappers" off \
SQL "Build with database (libdbi) support" off \
SPOOF "Build with spoof source support" off \
IPV6 "Build with IPV6 support" on \
PCRE "Build with PCRE support" on \
JSON_C "Build with JSON-C support" off \
JSON_GLIB "Build with JSON-GLIB support" off \
SYSLOG2NG "Install syslog2ng script" off
.include <bsd.port.options.mk>
LIB_DEPENDS= evtlog.0:${PORTSDIR}/sysutils/eventlog
MAN1= loggen.1 pdbtool.1 syslog-ng-ctl.1
MAN5= syslog-ng.conf.5
MAN8= syslog-ng.8
USE_LDCONFIG= yes
USE_RC_SUBR= syslog-ng
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= glib20 gnomehack
SUB_FILES= pkg-message
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
--enable-dynamic-linking
.if defined(WITH_SYS_SSL) || defined(WITH_PORTS_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ENV+= OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \
OPENSSL_LIBS="${OPENSSL_LDFLAGS} -lcrypto -lssl"
PLIST_FILES+= lib/syslog-ng/libafsocket-tls.la lib/syslog-ng/libafsocket-tls.so
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
.if defined(WITH_PORTS_SSL)
WITH_OPENSSL_PORT= yes
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN= does not compile on FreeBSD 7.X
.endif
.if defined(WITH_TCP_WRAPPERS)
CONFIGURE_ARGS+= --enable-tcp-wrapper
.else
CONFIGURE_ARGS+= --disable-tcp-wrapper
.endif
.if defined(WITH_SPOOF)
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet-devel
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet116-config
CONFIGURE_ARGS+= --enable-spoof-source --with-libnet=${LOCALBASE}/bin
CFLAGS+= -g `${LIBNET_CONFIG} --cflags` -I${LOCALBASE}/include
LDFLAGS+= -g `${LIBNET_CONFIG} --libs`
.else
CONFIGURE_ARGS+= --disable-spoof-source
.endif
.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if defined(WITH_PCRE)
CONFIGURE_ARGS+= --enable-pcre
LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre
.else
CONFIGURE_ARGS+= --disable-pcre
.endif
.if defined(WITH_SQL)
LIB_DEPENDS+= dbi.1:${PORTSDIR}/databases/libdbi
CONFIGURE_ENV+= LIBDBI_LIBS="-ldbi"
CONFIGURE_ARGS+= --enable-sql
PLIST_FILES+= lib/syslog-ng/libafsql.la lib/syslog-ng/libafsql.so
.else
CONFIGURE_ARGS+= --disable-sql
.endif
.if defined(WITH_JSON_C) && defined(WITH_JSON_GLIB)
BROKEN= JSON_C and JSON_GLIB are mutually exclusive
.endif
.if defined(WITH_JSON_GLIB)
LIB_DEPENDS+= json-glib-1.0.0:${PORTSDIR}/devel/json-glib
CONFIGURE_ARGS+= --enable-json --with-json=json-glib
PLIST_FILES+= lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
.elif defined(WITH_JSON_C)
LIB_DEPENDS+= json.0:${PORTSDIR}/devel/json-c
CONFIGURE_ARGS+= --enable-json --with-json=json-c
PLIST_FILES+= lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
.else
CONFIGURE_ARGS+= --disable-json
.endif
.if ${OSVERSION} >= 900034
CONFIGURE_ARGS+= --disable-linux-caps
.endif
.if defined(WITH_SYSLOG2NG)
PLIST_FILES+= sbin/syslog2ng
.endif
post-patch:
@${REINPLACE_CMD} -e 's:libnet-config:libnet116-config:g' ${WRKSRC}/configure
@${LN} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
post-install:
.if defined(WITH_SYSLOG2NG)
${INSTALL_SCRIPT} ${WRKSRC}/contrib/syslog2ng ${PREFIX}/sbin
.endif
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/syslog-ng
.endif
@if [ ! -f ${PREFIX}/etc/syslog-ng.conf.sample ]; then \
${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample ${PREFIX}/etc; \
fi
@if [ ! -f ${PREFIX}/etc/syslog-ng.conf.dist ]; then \
${INSTALL_DATA} ${WRKSRC}/scl/syslog-ng.conf.dist ${PREFIX}/etc; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,2 +0,0 @@
SHA256 (syslog-ng-3.3.6.91-20121008-v3.3.6.91.tar.gz) = d8d9de30b17ef633ce8efaea1b2fcb6e4962b58724f5210d603858f21ab1d9c8
SIZE (syslog-ng-3.3.6.91-20121008-v3.3.6.91.tar.gz) = 2510209

View File

@ -1,11 +0,0 @@
--- lib/ivykis/lib/iv_tls.c.old
+++ lib/ivykis/lib/iv_tls.c
@@ -25,7 +25,7 @@
#include "iv_private.h"
static int inited;
-static off_t last_offset = (sizeof(struct iv_state) + 15) & ~15;
+static int last_offset = (sizeof(struct iv_state) + 15) & ~15;
static struct iv_list_head iv_tls_users = IV_LIST_HEAD_INIT(iv_tls_users);
void iv_tls_user_register(struct iv_tls_user *itu)

View File

@ -1,11 +0,0 @@
--- lib/ivykis/lib/include/iv_tls.h.old
+++ lib/ivykis/lib/include/iv_tls.h
@@ -33,7 +33,7 @@ struct iv_tls_user {
void (*deinit_thread)(void *st);
struct iv_list_head list;
- off_t state_offset;
+ int state_offset;
};
void iv_tls_user_register(struct iv_tls_user *);

View File

@ -1,29 +0,0 @@
syslog-ng is now installed! To replace FreeBSD's standard syslogd
(/usr/sbin/syslogd), complete these steps:
1. Create a configuration file named %%PREFIX%%/etc/syslog-ng.conf
(a sample named syslog-ng.conf.sample has been included in
%%PREFIX%%/etc). Note that this is a change in 2.0.2
version, previous ones put the config file in
%%PREFIX%%/etc/syslog-ng/syslog-ng.conf, so if this is an update
move that file in the right place
2. Configure syslog-ng to start automatically by adding the following
to /etc/rc.conf:
syslog_ng_enable="YES"
3. Prevent the standard FreeBSD syslogd from starting automatically by
adding a line to the end of your /etc/rc.conf file that reads:
syslogd_enable="NO"
4. Shut down the standard FreeBSD syslogd:
kill `cat /var/run/syslog.pid`
5. Start syslog-ng:
%%PREFIX%%/etc/rc.d/syslog-ng start

View File

@ -1,185 +0,0 @@
@version:3.3
#
# This sample configuration file is essentially equilivent to the stock
# FreeBSD /etc/syslog.conf file.
#
# $FreeBSD$
#
#
# options
#
options { chain_hostnames(off); flush_lines(0); threaded(yes); };
#
# sources
#
source src { unix-dgram("/var/run/log");
unix-dgram("/var/run/logpriv" perm(0600));
udp(); internal(); file("/dev/klog"); };
#
# destinations
#
destination messages { file("/var/log/messages"); };
destination security { file("/var/log/security"); };
destination authlog { file("/var/log/auth.log"); };
destination maillog { file("/var/log/maillog"); };
destination lpd-errs { file("/var/log/lpd-errs"); };
destination xferlog { file("/var/log/xferlog"); };
destination cron { file("/var/log/cron"); };
destination debuglog { file("/var/log/debug.log"); };
destination consolelog { file("/var/log/console.log"); };
destination all { file("/var/log/all.log"); };
destination newscrit { file("/var/log/news/news.crit"); };
destination newserr { file("/var/log/news/news.err"); };
destination newsnotice { file("/var/log/news/news.notice"); };
destination slip { file("/var/log/slip.log"); };
destination ppp { file("/var/log/ppp.log"); };
destination console { file("/dev/console"); };
destination allusers { usertty("*"); };
#destination loghost { udp("loghost" port(514)); };
#
# log facility filters
#
filter f_auth { facility(auth); };
filter f_authpriv { facility(authpriv); };
filter f_not_authpriv { not facility(authpriv); };
#filter f_console { facility(console); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_ftp { facility(ftp); };
filter f_kern { facility(kern); };
filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_news { facility(news); };
filter f_security { facility(security); };
filter f_user { facility(user); };
filter f_uucp { facility(uucp); };
filter f_local0 { facility(local0); };
filter f_local1 { facility(local1); };
filter f_local2 { facility(local2); };
filter f_local3 { facility(local3); };
filter f_local4 { facility(local4); };
filter f_local5 { facility(local5); };
filter f_local6 { facility(local6); };
filter f_local7 { facility(local7); };
#
# log level filters
#
filter f_emerg { level(emerg); };
filter f_alert { level(alert..emerg); };
filter f_crit { level(crit..emerg); };
filter f_err { level(err..emerg); };
filter f_warning { level(warning..emerg); };
filter f_notice { level(notice..emerg); };
filter f_info { level(info..emerg); };
filter f_debug { level(debug..emerg); };
filter f_is_debug { level(debug); };
#
# program filters
#
filter f_ppp { program("ppp"); };
filter f_slip { program("startslip"); };
#
# *.err;kern.warning;auth.notice;mail.crit /dev/console
#
log { source(src); filter(f_err); destination(console); };
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
#
# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
#
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
log { source(src); filter(f_kern); filter(f_debug); destination(messages); };
log { source(src); filter(f_lpr); filter(f_info); destination(messages); };
log { source(src); filter(f_mail); filter(f_crit); destination(messages); };
log { source(src); filter(f_news); filter(f_err); destination(messages); };
#
# security.* /var/log/security
#
log { source(src); filter(f_security); destination(security); };
#
# auth.info;authpriv.info /var/log/auth.log
log { source(src); filter(f_auth); filter(f_info); destination(authlog); };
log { source(src); filter(f_authpriv); filter(f_info); destination(authlog); };
#
# mail.info /var/log/maillog
#
log { source(src); filter(f_mail); filter(f_info); destination(maillog); };
#
# lpr.info /var/log/lpd-errs
#
log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
#
# ftp.info /var/log/xferlog
#
log { source(src); filter(f_ftp); filter(f_info); destination(xferlog); };
#
# cron.* /var/log/cron
#
log { source(src); filter(f_cron); destination(cron); };
#
# *.=debug /var/log/debug.log
#
log { source(src); filter(f_is_debug); destination(debuglog); };
#
# *.emerg *
#
log { source(src); filter(f_emerg); destination(allusers); };
#
# uncomment this to log all writes to /dev/console to /var/log/console.log
# console.info /var/log/console.log
#
#log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
#
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
# *.* /var/log/all.log
#
#log { source(src); destination(all); };
#
# uncomment this to enable logging to a remote loghost named loghost
# *.* @loghost
#
#log { source(src); destination(loghost); };
#
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
#
#log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
#log { source(src); filter(f_news); filter(f_err); destination(newserr); };
#log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
#
# !startslip
# *.* /var/log/slip.log
#
log { source(src); filter(f_slip); destination(slip); };
#
# !ppp
# *.* /var/log/ppp.log
#
log { source(src); filter(f_ppp); destination(ppp); };

View File

@ -1,46 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: syslogd
# REQUIRE: mountcritremote cleanvar ldconfig
# BEFORE: SERVERS
#
# Add the following line to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
#syslog_ng_enable="YES"
#syslog_ng_config="-u daemon"
#syslog_ng_pid="/var/run/syslog-ng.pid"
#
syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"}
. /etc/rc.subr
name=syslog_ng
rcvar=syslog_ng_enable
command=%%PREFIX%%/sbin/syslog-ng
required_files=%%PREFIX%%/etc/syslog-ng.conf
extra_commands=reload
if checkyesno syslog_ng_purgeklog; then
start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1 $start_precmd";
fi
stop_postcmd=stop_postcmd
load_rc_config $name
: ${syslog_ng_enable:="NO"}
pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"}
command_args="-p ${pidfile} ${syslog_ng_config}"
stop_postcmd() {
rm -f $pidfile
}
run_rc_command "$1"

View File

@ -1,10 +0,0 @@
syslog-ng3 (Syslog New Generation) is a powerful replacement for the standard
syslogd. Features include:
- ability to filter messages based on content using regular expressions
- forwarding logs on TCP
WWW: http://www.balabit.com/products/syslog_ng/
-Vince Valenti
vince@blue-box.net

View File

@ -1,135 +0,0 @@
@unexec %D/etc/rc.d/syslog-ng.sh stop > /dev/null 2>&1 || true
etc/modules.conf
etc/scl.conf
@unexec if cmp -s %D/etc/syslog-ng.conf %D/etc/syslog-ng.conf.dist; then rm -f %D/etc/syslog-ng.conf; fi
etc/syslog-ng.conf.dist
@exec test -f %B/syslog-ng.conf || cp -p %B/%f %B/syslog-ng.conf
etc/syslog-ng.conf.sample
bin/loggen
bin/pdbtool
bin/update-patterndb
sbin/syslog-ng
sbin/syslog-ng-ctl
include/syslog-ng/afinter.h
include/syslog-ng/alarms.h
include/syslog-ng/apphook.h
include/syslog-ng/atomic.h
include/syslog-ng/block-ref-parser.h
include/syslog-ng/center.h
include/syslog-ng/cfg-grammar.h
include/syslog-ng/cfg-lexer.h
include/syslog-ng/cfg-parser.h
include/syslog-ng/cfg.h
include/syslog-ng/children.h
include/syslog-ng/compat.h
include/syslog-ng/control.h
include/syslog-ng/crypto.h
include/syslog-ng/dgroup.h
include/syslog-ng/dnscache.h
include/syslog-ng/driver.h
include/syslog-ng/filter-expr-parser.h
include/syslog-ng/filter.h
include/syslog-ng/gprocess.h
include/syslog-ng/gsockaddr.h
include/syslog-ng/gsocket.h
include/syslog-ng/logmatcher.h
include/syslog-ng/logmpx.h
include/syslog-ng/logmsg.h
include/syslog-ng/logparser.h
include/syslog-ng/logpipe.h
include/syslog-ng/logprocess.h
include/syslog-ng/logproto.h
include/syslog-ng/logqueue-fifo.h
include/syslog-ng/logqueue.h
include/syslog-ng/logreader.h
include/syslog-ng/logrewrite.h
include/syslog-ng/logsource.h
include/syslog-ng/logstamp.h
include/syslog-ng/logtransport.h
include/syslog-ng/logwriter.h
include/syslog-ng/mainloop.h
include/syslog-ng/memtrace.h
include/syslog-ng/messages.h
include/syslog-ng/misc.h
include/syslog-ng/msg-format.h
include/syslog-ng/nvtable.h
include/syslog-ng/parser-expr-parser.h
include/syslog-ng/persist-state.h
include/syslog-ng/plugin.h
include/syslog-ng/pragma-parser.h
include/syslog-ng/rewrite-expr-parser.h
include/syslog-ng/scratch-buffers.h
include/syslog-ng/serialize.h
include/syslog-ng/sgroup.h
include/syslog-ng/stats.h
include/syslog-ng/str-format.h
include/syslog-ng/syslog-names.h
include/syslog-ng/syslog-ng.h
include/syslog-ng/tags.h
include/syslog-ng/templates.h
include/syslog-ng/timeutils.h
include/syslog-ng/tls-support.h
include/syslog-ng/tlscontext.h
include/syslog-ng/tlstransport.h
include/syslog-ng/utils.h
include/syslog-ng/value-pairs.h
lib/libsyslog-ng.la
lib/libsyslog-ng.so
lib/libsyslog-ng-3.3.6.91.so
libdata/pkgconfig/syslog-ng.pc
lib/syslog-ng/libaffile.la
lib/syslog-ng/libaffile.so
lib/syslog-ng/libafmongodb.la
lib/syslog-ng/libafmongodb.so
lib/syslog-ng/libafprog.la
lib/syslog-ng/libafprog.so
lib/syslog-ng/libafsocket-notls.la
lib/syslog-ng/libafsocket-notls.so
lib/syslog-ng/libafsocket.so
lib/syslog-ng/libafuser.la
lib/syslog-ng/libafuser.so
lib/syslog-ng/libbasicfuncs.la
lib/syslog-ng/libbasicfuncs.so
lib/syslog-ng/libconfgen.la
lib/syslog-ng/libconfgen.so
lib/syslog-ng/libconvertfuncs.la
lib/syslog-ng/libconvertfuncs.so
lib/syslog-ng/libcsvparser.la
lib/syslog-ng/libcsvparser.so
lib/syslog-ng/libdbparser.la
lib/syslog-ng/libdbparser.so
lib/syslog-ng/libdummy.la
lib/syslog-ng/libdummy.so
lib/syslog-ng/libsyslog-ng-crypto.la
lib/syslog-ng/libsyslog-ng-crypto.so
lib/syslog-ng/libsyslogformat.la
lib/syslog-ng/libsyslogformat.so
share/include/scl/pacct/plugin.conf
share/include/scl/syslogconf/README
share/include/scl/syslogconf/convert-syslogconf.awk
share/include/scl/syslogconf/plugin.conf
share/include/scl/system/generate-system-source.sh
share/include/scl/system/plugin.conf
share/tools/cfg-grammar.y
share/tools/lex-rules.am
share/tools/merge-grammar.pl
share/xsd/patterndb-1.xsd
share/xsd/patterndb-2.xsd
share/xsd/patterndb-3.xsd
share/xsd/patterndb-4.xsd
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm include/syslog-ng
@dirrm lib/syslog-ng
@dirrm share/include/scl/system
@dirrm share/include/scl/syslogconf
@dirrm share/include/scl/pacct
@dirrm share/include/scl
@dirrm share/include
@dirrmtry share/tools
@dirrm share/xsd
@exec mkdir %D/etc/patterndb.d
@dirrmtry etc/patterndb.d