From be3faf00d75e70770fbc00ef812b437d5791c34b Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Mon, 11 Jul 2016 09:46:09 -0700 Subject: [PATCH] Import mail/sma version 1.4 --- mail/sma/Makefile | 39 ++++++++++++++++++++++++++++++++ mail/sma/distinfo | 2 ++ mail/sma/dragonfly/patch-init.c | 12 ++++++++++ mail/sma/dragonfly/patch-utils.c | 12 ++++++++++ mail/sma/pkg-descr | 12 ++++++++++ mail/sma/pkg-plist | 8 +++++++ 6 files changed, 85 insertions(+) create mode 100644 mail/sma/Makefile create mode 100644 mail/sma/distinfo create mode 100644 mail/sma/dragonfly/patch-init.c create mode 100644 mail/sma/dragonfly/patch-utils.c create mode 100644 mail/sma/pkg-descr create mode 100644 mail/sma/pkg-plist diff --git a/mail/sma/Makefile b/mail/sma/Makefile new file mode 100644 index 00000000000..7df14777185 --- /dev/null +++ b/mail/sma/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= sma +PORTVERSION= 1.4 +CATEGORIES= mail +MASTER_SITES= LOCAL/dinoex \ + ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/ + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Program that analyses Sendmail log entries + +ALL_TARGET= sma +SAMPLEFILES= sma.conf +DOCSFILES= BUGS COPYRIGHT HISTORY README TODO + +OPTIONS_DEFINE= DOCS EXAMPLES + +do-configure: + ${REINPLACE_CMD} -e "s,CC =,CC?= ," \ + -e "s,CFLAGS = -Wall -O,CFLAGS+= ," \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sma ${STAGEDIR}${PREFIX}/bin/sma + ${INSTALL_MAN} ${WRKSRC}/sma.8 ${STAGEDIR}${PREFIX}/man/man8/ + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in ${DOCSFILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ +.endfor + +do-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for i in ${SAMPLEFILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/ +.endfor + +.include diff --git a/mail/sma/distinfo b/mail/sma/distinfo new file mode 100644 index 00000000000..227a25ae36c --- /dev/null +++ b/mail/sma/distinfo @@ -0,0 +1,2 @@ +SHA256 (sma-1.4.tar.gz) = a5b5afbb2a8081f72a22e3dc4f2fe75e977d56883dd2466311fb16f3f07e30af +SIZE (sma-1.4.tar.gz) = 121365 diff --git a/mail/sma/dragonfly/patch-init.c b/mail/sma/dragonfly/patch-init.c new file mode 100644 index 00000000000..def7445076e --- /dev/null +++ b/mail/sma/dragonfly/patch-init.c @@ -0,0 +1,12 @@ +--- init.c.orig 2003-01-16 13:14:42.000000000 +0200 ++++ init.c +@@ -32,7 +32,9 @@ + + #include "sma.h" + ++#ifndef __DragonFly__ + int isspace(int); ++#endif + + void + init(FILE *conf) { diff --git a/mail/sma/dragonfly/patch-utils.c b/mail/sma/dragonfly/patch-utils.c new file mode 100644 index 00000000000..fdb6bc6f106 --- /dev/null +++ b/mail/sma/dragonfly/patch-utils.c @@ -0,0 +1,12 @@ +--- utils.c.orig 2003-01-16 13:14:42.000000000 +0200 ++++ utils.c +@@ -67,7 +67,9 @@ + + #include "sma.h" + ++#ifndef __DragonFly__ + int isdigit(int); ++#endif + + /* + * Take month as an ascii string and return integer diff --git a/mail/sma/pkg-descr b/mail/sma/pkg-descr new file mode 100644 index 00000000000..e5cb0eee207 --- /dev/null +++ b/mail/sma/pkg-descr @@ -0,0 +1,12 @@ +SMA is a program that analyses sendmail log entries. +The key features of SMA are + Fast (written in C) + Portable + Free (BSD-style licensing) + output as HTML or ASCII. + +SMA features + Support for all recent sendmail versions (UNIX/NT) + Flexible output formatting - HTML, ASCII and Custom Log + Regular expression filtering of messages + Multiple hosts in a same report diff --git a/mail/sma/pkg-plist b/mail/sma/pkg-plist new file mode 100644 index 00000000000..409ddd199f8 --- /dev/null +++ b/mail/sma/pkg-plist @@ -0,0 +1,8 @@ +bin/sma +man/man8/sma.8.gz +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT +%%PORTDOCS%%%%DOCSDIR%%/HISTORY +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sma.conf -- 2.41.0