aboutsummaryrefslogtreecommitdiff
path: root/security/smtpmap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/smtpmap/Makefile')
-rw-r--r--security/smtpmap/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/security/smtpmap/Makefile b/security/smtpmap/Makefile
new file mode 100644
index 000000000000..3f878226c3ea
--- /dev/null
+++ b/security/smtpmap/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: smtpmap
+# Date created: 26 decembre 2002
+# Whom: Hubert Tournier <hubert@frbsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= smtpmap
+PORTVERSION= 0.8
+CATEGORIES= security mail net
+MASTER_SITES= http://plasmahh.free-bsd.org/
+
+MAINTAINER= hubert@frbsd.org
+COMMENT= An SMTP software identifier
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+MAKE_ENV= LIBS="-L${LOCALBASE}/lib -lgnugetopt" \
+ INC=-I${LOCALBASE}/include
+.endif
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+
+MAKEFILE= makefile
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/makefile.conf
+ @${REINPLACE_CMD} -e 's|\(INC)\) \(small\)|\1 $$(LIBS) \2|g' ${WRKSRC}/src/makefile
+ @${REINPLACE_CMD} -e 's|-j 5||g' -e 's|@\(./inst\)|\1|g' ${WRKSRC}/makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/smtpmap ${PREFIX}/bin
+ ${INSTALL} -d ${DATADIR}
+.for file in fingerprints-conf fingerprints-return fingerprints-rfc
+ ${INSTALL_DATA} ${WRKSRC}/share/${file} ${DATADIR}
+.endfor
+
+.include <bsd.port.mk>