1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/sma/Makefile
2008-05-30 17:09:01 +00:00

45 lines
1.0 KiB
Makefile

# New ports collection makefile for: sma
# Date created: 28. Mar 2002
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= sma
PORTVERSION= 1.4
CATEGORIES= mail
MASTER_SITES= http://www.klake.org/sma/dl/ \
http://www.saunalahti.fi/~jt2/sma/dl/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Program that analyses Sendmail log entries
MAN8= sma.8
DOCSFILES= BUGS COPYRIGHT HISTORY README TODO
SAMPLEFILES= sma.conf
ALL_TARGET= sma
do-configure:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.sed
${SED} -e "s,CC =,CC?= ," \
-e "s,CFLAGS = -Wall -O,CFLAGS+= ," \
${WRKSRC}/Makefile.sed > ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sma ${PREFIX}/bin/sma
${INSTALL_MAN} ${WRKSRC}/sma.8 ${PREFIX}/man/man8/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCSFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
.for i in ${SAMPLEFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/
.endfor
.endif
.include <bsd.port.mk>