aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2001-10-10 18:29:18 +0800
committermarkp <markp@FreeBSD.org>2001-10-10 18:29:18 +0800
commit3222ec4f96105e215b0328e658ca2333c3b25d48 (patch)
tree0815456cdf2d9258ee0f7afe35dade3a859ebfdb
parent3deaff7c50b2b7ab4175415ea44f15aad59c0c10 (diff)
downloadfreebsd-ports-gnome-3222ec4f96105e215b0328e658ca2333c3b25d48.tar.gz
freebsd-ports-gnome-3222ec4f96105e215b0328e658ca2333c3b25d48.tar.zst
freebsd-ports-gnome-3222ec4f96105e215b0328e658ca2333c3b25d48.zip
Add flog 1.3, a small STDIN-to-file logger with support for log
rotation. PR: 31099 Submitted by: Anders Nordby <anders@fix.no>
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/flog/Makefile26
-rw-r--r--sysutils/flog/distinfo1
-rw-r--r--sysutils/flog/pkg-comment1
-rw-r--r--sysutils/flog/pkg-descr10
-rw-r--r--sysutils/flog/pkg-plist3
6 files changed, 42 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index e967ce53c378..9518472240b8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -50,6 +50,7 @@
SUBDIR += filedupe
SUBDIR += fileutils
SUBDIR += flexbackup
+ SUBDIR += flog
SUBDIR += fontedit
SUBDIR += fortunelock
SUBDIR += fsck_ext2fs
diff --git a/sysutils/flog/Makefile b/sysutils/flog/Makefile
new file mode 100644
index 000000000000..2b1a99f5d9ba
--- /dev/null
+++ b/sysutils/flog/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: flog
+# Date created: 7 October 2001
+# Whom: Anders Nordby <anders@fix.no>
+#
+# $FreeBSD$
+#
+
+PORTNAME= flog
+PORTVERSION= 1.3
+CATEGORIES= sysutils
+MASTER_SITES= http://oss.ezic.com/flog/ \
+ http://ftp.nuug.no/pub/anders/distfiles/
+
+MAINTAINER= ports@FreeBSD.org
+
+do-build:
+ ${CC} ${CFLAGS} -o ${WRKSRC}/flog ${WRKSRC}/flog.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/flog ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/flog/distinfo b/sysutils/flog/distinfo
new file mode 100644
index 000000000000..5b9b2f298ca4
--- /dev/null
+++ b/sysutils/flog/distinfo
@@ -0,0 +1 @@
+MD5 (flog-1.3.tar.gz) = cc97339bd757a651558438463c5f2721
diff --git a/sysutils/flog/pkg-comment b/sysutils/flog/pkg-comment
new file mode 100644
index 000000000000..40fa19e04c5d
--- /dev/null
+++ b/sysutils/flog/pkg-comment
@@ -0,0 +1 @@
+A small STDIN-to-file logger with support for log rotation
diff --git a/sysutils/flog/pkg-descr b/sysutils/flog/pkg-descr
new file mode 100644
index 000000000000..5ea8ed33abd4
--- /dev/null
+++ b/sysutils/flog/pkg-descr
@@ -0,0 +1,10 @@
+flog (file logger) is a small C program that reads input from STDIN and writes
+to a file, optionally adding timestamps. If SIGHUP is received, the file will
+be reopened, allowing for log rotation (see newsyslog(8)). The log file will
+only be reopened if flog detects that rotation has occurred (i.e., the old file
+is gone or the inode has changed). flog is extremely small (a memory footprint
+of less than 500 bytes). It also protects you from running out of disk space;
+if that happens, the logfile will be truncated and a warning generated. This
+could save you from waking up to pager beeps in the middle of the night.
+
+WWW: http://oss.ezic.com/
diff --git a/sysutils/flog/pkg-plist b/sysutils/flog/pkg-plist
new file mode 100644
index 000000000000..836656ea493a
--- /dev/null
+++ b/sysutils/flog/pkg-plist
@@ -0,0 +1,3 @@
+bin/flog
+%%PORTDOCS%%share/doc/flog/README
+%%PORTDOCS%%@dirrm share/doc/flog