freebsd-ports/mail/spamguard/Makefile
Stefan Eßer 6a919278eb Fix build with -fno-common and correct software bugs
There were software bugs in 3 source files, most due to wrong use of sizeof
(e.g. using the size of a pointer instead of the data, or subtracting a
value from the argument of sizeof, not the resulting size value.

A test for a short write assigned the length written to a variable and
performed a comparison with that variable in a single expression and with
no defined order of the these two operations resulting in either a
comparison with 0 (the value before assignement) or with the just assigned
value (tautological comparison). Either case did not catch a short write.

I have not checked the quality of the code nay further than these issues
that caused compiler warnings, but given the severity and fundamental lack
of understanding shown by these examples, I'm not convinced that this
program can be trusted to work correctly.
2020-09-23 14:15:14 +00:00

36 lines
899 B
Makefile

# Created by: Omer Faruk Sen <ofsen@enderunix.org>
# $FreeBSD$
PORTNAME= spamguard
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.enderunix.org/spamguard/
MAINTAINER= bofh@FreeBSD.org
COMMENT= MTA spam prevention program for qmail/postfix/sendmail
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/${PORTNAME}
GNU_CONFIGURE= yes
USES= autoreconf
OPTIONS_DEFINE= DOCS
DOCS= AUTHORS CHANGELOG COPYING INSTALL \
POST-INSTALL README THANKS README.DigitalUnix \
THANKS TODO UPGRADE
DOCS_TR= BENIOKU BENIOKU.DigitalUnix COPYING DEGISIKLIKLER \
GUNCELLEME KURULUM KURULUM-SONRASI YAPILACAKLAR YAZARLAR
SUB_FILES= pkg-message
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/tr
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/tr && ${INSTALL_DATA} ${DOCS_TR} ${STAGEDIR}${DOCSDIR}/tr
.include <bsd.port.mk>