Add new port security/snort2pfcd, which analyzes snort alert output and
blocks ip addresses using pf for a specified period of time.
PR: 211813
Submitted by: onestsam@gmail.com
Differential D7712
[NEW PORT] security/snort2pfcd woodsb02 on Aug 30 2016, 12:39 PM. Authored by Tags None Referenced Files
Subscribers None
Details Add new port security/snort2pfcd, which analyzes snort alert output and PR: 211813 portlint: OK (looks fine.)
Diff Detail
Event Timeline
Comment Actions @woodsb02 For review TEST PLAN sections, something like the following provides better clarity and more than just 'what test steps were run' which has greater review(er) value, particularly if certain things fail but are 'ok' (eg: unit tests with upstream issue reports, a certain arch/version failure, etc) * portlint: OK (looks fine.) * testport: OK (poudriere: <versions>, <archs>, <OPTIONS> tested) * maketest: OK (15231 tests PASSED in 21 seconds) I reckon Phabricator (or we) should rename TEST PLAN to TEST RESULTS Comment Actions
Comment Actions If there are no lib-specific wrksrc/Makefile variables you can use (LIBFOO_CFLAGS|LDFLAGS|LIBS) and if all it needs is the header location (and not the lib location as well), then this is fine, otherwise USES=localbase is ok. I added this as a comment (as I did not inspect the sources), not as a blocking review change.
Comment Actions The lib location does not need to be provided, since the ${WRKSRC}/Makefile already has LDFLAGS -L${LOCALBASE} set for that. It might help to know that this port does not have any configure script, cmake or similar... it simply has the following ${WRKSRC}/Makefile: PROG= snort2pfcd SRCS= main.c parser.c kevent.c spfc.c ioctl_helpers.c MAN= ${PROG}.8 CFLAGS+=-Wall -Werror -pedantic LDFLAGS+=-lutil -L${LOCALBASE}/lib -lcidr .include <bsd.prog.mk> Comment Actions Weird (why -L but not -I?) but lovely nonetheless: what you have now (CFLAGS only in port Makefile) is the minimal, most specifically-scoped thing you can do. Good. By the way, you want to patch out -Werror :) Tell upstream not to include it in release builds/distributions
Comment Actions
Comment Actions @woodsb02 Looks immaculate. I'm a pedant, so would have CFLAGS+=-Wno-error in the port Makefile instead of the patch, though having said that, an annoying patch is always a good reminder/nudge to get it upstreamed, which is a good indicator of a quality committer/contributor. Approved, nice work Comment Actions Just a note, phabricator is showing two differing file/path modifications for this changeset, which is odd since they're both for the same port, and which I'm guessing is not reflected in an svn status at your end. Worth checking just in case pre-commit
|