diff options
author | edwin <edwin@FreeBSD.org> | 2003-10-16 13:20:26 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-10-16 13:20:26 +0800 |
commit | 05d8b1b11c206eced615475be5176639ac17e9aa (patch) | |
tree | 509f6593e32c2c607033f96efdbf55e49b87aab2 /security/vlog | |
parent | 614110cbfd295852ef70569becc46a98103642a8 (diff) | |
download | freebsd-ports-gnome-05d8b1b11c206eced615475be5176639ac17e9aa.tar.gz freebsd-ports-gnome-05d8b1b11c206eced615475be5176639ac17e9aa.tar.zst freebsd-ports-gnome-05d8b1b11c206eced615475be5176639ac17e9aa.zip |
Unbreak port by adding lots of \n\'s
Informed maintainer.
Diffstat (limited to 'security/vlog')
-rw-r--r-- | security/vlog/Makefile | 9 | ||||
-rw-r--r-- | security/vlog/files/patch-curses.c | 56 | ||||
-rw-r--r-- | security/vlog/files/patch-vlog.c | 61 |
3 files changed, 119 insertions, 7 deletions
diff --git a/security/vlog/Makefile b/security/vlog/Makefile index 753101c2cd5f..a7efd7c81ae6 100644 --- a/security/vlog/Makefile +++ b/security/vlog/Makefile @@ -7,6 +7,7 @@ PORTNAME= vlog PORTVERSION= 1.1f +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://inc2.com/download/ DISTNAME= vlog-${PORTVERSION} @@ -25,13 +26,7 @@ USE_PERL5= yes MAN1= vlog.1 MANCOMPRESSED= no -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 501000 -BROKEN= "Does not compile" -.endif - post-patch: ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" ${WRKSRC}/Makefile -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/security/vlog/files/patch-curses.c b/security/vlog/files/patch-curses.c new file mode 100644 index 000000000000..981485e2a2f9 --- /dev/null +++ b/security/vlog/files/patch-curses.c @@ -0,0 +1,56 @@ +--- curses.c.orig Wed Oct 15 22:18:54 2003 ++++ curses.c Wed Oct 15 22:19:36 2003 +@@ -221,31 +221,31 @@ + char * t; + int row; + +- sprintf(helpbuf, " +- %s-%s (%s) +- Logfile viewer for IP-Filter ----- JUMP KEYS --------------------- +- %-32s g go to a given line +- G goto end or return to prev. pos +---------- MOVEMENT KEYS ------------ T goto top +- arrows move the window one line 0 scroll window to leftmost +- h,j,k,l in either direction. +- H,J,K,L Caps move faster. /,? search a regexp forward/backward +- b,space back, forward 1 page n,N goto next/previous occurence +-PgUp/Down these work on XFree only >,< goto next/previous day boundary +- ],[ goto next/previous marked line +---------- MISC KEYS ---------------- +- a toggle AutoScroll mode s,S switch to another logfile +- r toggle raw/formatted mode & display hostname/logfile +- i ip address display style ! spawn a subshell +- m mark (reverse) bottom line +- M clear all marks +- ^L redraw screen +-%s +- Q quit ++ sprintf(helpbuf, "\n\ ++ %s-%s (%s)\n\ ++ Logfile viewer for IP-Filter ----- JUMP KEYS --------------------- \n\ ++ %-32s g go to a given line\n\ ++ G goto end or return to prev. pos\n\ ++--------- MOVEMENT KEYS ------------ T goto top\n\ ++ arrows move the window one line 0 scroll window to leftmost\n\ ++ h,j,k,l in either direction. \n\ ++ H,J,K,L Caps move faster. /,? search a regexp forward/backward\n\ ++ b,space back, forward 1 page n,N goto next/previous occurence\n\ ++PgUp/Down these work on XFree only >,< goto next/previous day boundary\n\ ++ ],[ goto next/previous marked line\n\ ++--------- MISC KEYS ---------------- \n\ ++ a toggle AutoScroll mode s,S switch to another logfile\n\ ++ r toggle raw/formatted mode & display hostname/logfile\n\ ++ i ip address display style ! spawn a subshell\n\ ++ m mark (reverse) bottom line \n\ ++ M clear all marks \n\ ++ ^L redraw screen\n\ ++%s\n\ ++ Q quit\n\ + ", + MYNAME, VERSION, DATE, CREDIT, + (mode_ipmon +- ? " o toggle display options (d=date, t=time, u=microsec, h=hostname, ++ ? " o toggle display options (d=date, t=time, u=microsec, h=hostname,\n\ + f=intf, r=ipf rule numbers, i=isba rule numbers, l=ip header length)" + : (mode_httpd_access + ? " o toggle display options (d=date, t=time, c=client IP, u=user)" diff --git a/security/vlog/files/patch-vlog.c b/security/vlog/files/patch-vlog.c new file mode 100644 index 000000000000..d7551ef2633e --- /dev/null +++ b/security/vlog/files/patch-vlog.c @@ -0,0 +1,61 @@ +--- vlog.c.orig Wed Oct 15 22:18:26 2003 ++++ vlog.c Wed Oct 15 22:18:46 2003 +@@ -23,32 +23,32 @@ + + void usage() + { +- fprintf(stderr, " +-%s v%s (%s) %s +-Curses based logfile viewer for IP-Filter +- +-Options: +- -r (rotated): read also old, rotated log files (logfile.0, ...) +- -i show ipmon log lines only (default is to show all log lines) +- -g regexp (grep) show only loglines that match 'regexp' +- -v regexp (grep -v) show only loglines that do not match 'regexp' +- -l logfile name of log file to be read +- -l{imsxladcq} predefined logfile names: i = /var/log/ipflog (default), +- m = /var/log/messages, s = /var/log/syslog, +- x = /var/log/xferlog, l = /var/log/maillog, +- a = /var/log/authlog, d = /var/log/daemon, +- c = /var/cron/log, q = /var/log/squid. +- -<nn>f or -f follow logfile: a simple `tail -<nn>f' (no curses) +- -<nn> or -n <nn> print <nn> loglines on stdout and exit (no curses) +- -s [[Mmm] dd] show lines from date Mmm dd hh:mm:ss. If Mmm and dd are +- [hh[:mm[:ss]] not given, use current day. (ex: -s Jul 21) (ex: -s 12:30) +- -e ... same thing as -s, specify end date (no curses) +- -o{dtuhfrilan} choose which optional fields to display (date time usec +- host intf rule isba-rule hdrlen, or all/none) +- -t (text only) don't print ANSI codes (if no curses mode) +- -d disguise IP addresses and hostnames for publishing purpose +- -w <nn> or -ww force vlog output line width to nn chars max (if no curses) +- -h this help (-ww = no width limitation) ++ fprintf(stderr, "\n\ ++%s v%s (%s) %s\n\ ++Curses based logfile viewer for IP-Filter\n\ ++\n\ ++Options:\n\ ++ -r (rotated): read also old, rotated log files (logfile.0, ...)\n\ ++ -i show ipmon log lines only (default is to show all log lines)\n\ ++ -g regexp (grep) show only loglines that match 'regexp'\n\ ++ -v regexp (grep -v) show only loglines that do not match 'regexp'\n\ ++ -l logfile name of log file to be read\n\ ++ -l{imsxladcq} predefined logfile names: i = /var/log/ipflog (default),\n\ ++ m = /var/log/messages, s = /var/log/syslog,\n\ ++ x = /var/log/xferlog, l = /var/log/maillog,\n\ ++ a = /var/log/authlog, d = /var/log/daemon,\n\ ++ c = /var/cron/log, q = /var/log/squid.\n\ ++ -<nn>f or -f follow logfile: a simple `tail -<nn>f' (no curses)\n\ ++ -<nn> or -n <nn> print <nn> loglines on stdout and exit (no curses)\n\ ++ -s [[Mmm] dd] show lines from date Mmm dd hh:mm:ss. If Mmm and dd are\n\ ++ [hh[:mm[:ss]] not given, use current day. (ex: -s Jul 21) (ex: -s 12:30)\n\ ++ -e ... same thing as -s, specify end date (no curses)\n\ ++ -o{dtuhfrilan} choose which optional fields to display (date time usec\n\ ++ host intf rule isba-rule hdrlen, or all/none)\n\ ++ -t (text only) don't print ANSI codes (if no curses mode)\n\ ++ -d disguise IP addresses and hostnames for publishing purpose\n\ ++ -w <nn> or -ww force vlog output line width to nn chars max (if no curses)\n\ ++ -h this help (-ww = no width limitation)\n\ + ", MYNAME, VERSION, DATE, CREDIT); + + exit(1); |