freebsd-ports/net/sniffit/Makefile
Stefan Eßer e960e9c633 Fix and update broken port
This is ancient software that has been made available and somewhat updated
on GitHub. The previous port was broken and with this update it should at
least have a chance to compile.

Testing on amd64 gave reasonable results, much to my surprise, since I had
doubt that the code is 64 bit safe. The programming style is strange, with
C files being concatenated by #including them into the main program. This
is definitely a unique piece of software ... (might serve as an dissuasive
example).

Since this program has to be run with root privileges and may well have
security weaknesses, I'm not convinced that we should even provide a port
and package.

But I'm committing this update anyway, leaving to somebody else the decision
to remove it from ports, if considered too much of an annoyance or risk.
2020-09-24 07:15:21 +00:00

41 lines
1.1 KiB
Makefile

# Created by: bsdx
# $FreeBSD$
PORTNAME= sniffit
PORTVERSION= 0.5
CATEGORIES= net security
MAINTAINER= ports@FreeBSD.org
COMMENT= Packet sniffer program. For educational use
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES=autoreconf
#USE_AUTOMAKE= yes
USE_GITHUB= yes
GH_ACCOUNT= resurrecting-open-source-projects
GH_TAGNAME= ${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/sniffit ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/sniffit.5 ${STAGEDIR}${MANPREFIX}/share/man/man5
${INSTALL_MAN} ${WRKSRC}/man/sniffit.8 ${STAGEDIR}${MANPREFIX}/share/man/man8
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/PLUGIN-HOWTO ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/README.FIRST ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/UPDATE-CHECK ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/sniffit-FAQ ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/sample_config_file ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>