summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/smtpscan/Makefile43
-rw-r--r--security/smtpscan/files/Makefile7
-rw-r--r--security/smtpscan/files/patch-aa86
-rw-r--r--security/smtpscan/files/patch-ab8
-rw-r--r--security/smtpscan/pkg-descr8
-rw-r--r--security/smtpscan/pkg-plist4
6 files changed, 36 insertions, 120 deletions
diff --git a/security/smtpscan/Makefile b/security/smtpscan/Makefile
index 23899e0e81e8..b0a3af5c751a 100644
--- a/security/smtpscan/Makefile
+++ b/security/smtpscan/Makefile
@@ -1,24 +1,45 @@
-# New ports collection makefile for: smtpscan
-# Date created: 1 decembre 2002
-# Whom: Hubert Tournier <hubert@frbsd.org>
-#
+# Created by: Hubert Tournier <hubert@frbsd.org>
# $FreeBSD$
-#
PORTNAME= smtpscan
PORTVERSION= 0.5
PORTREVISION= 2
CATEGORIES= security mail perl5
-MASTER_SITES= http://www.frbsd.org/dist/
+MASTER_SITES= PACKETSTORM/UNIX/scanners \
+ http://www.frbsd.org/dist/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A remote SMTP server version detector
+COMMENT= Remote SMTP server version detector
+
+LICENSE= GPLv2
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
-USE_PERL5= yes
-MAN1= smtpscan.1
-MAKEFILE=${FILESDIR}/Makefile
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+NO_BUILD= yes
+
+USE_PERL5_RUN= yes
+
+MAN1= smtpscan.1
+PLIST_FILES= bin/smtpscan \
+ %%DATADIR%%/fingerprints \
+ %%DATADIR%%/tests
+PLIST_DIRS= %%DATADIR%%
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^#!.*|#!${PERL}| ; \
+ s|/usr/local/share|${PREFIX}/share| ; \
+ s|@VERSION@|${PORTVERSION}|' ${WRKSRC}/src/smtpscan
+ @${REINPLACE_CMD} -e \
+ 's|@VERSION@|${PORTVERSION}| ; \
+ s|@prefix@|${PREFIX}/share|' ${WRKSRC}/docs/man/smtpscan.1
+
+do-install:
+ (cd ${WRKSRC}/src && ${INSTALL_SCRIPT} smtpscan ${PREFIX}/bin)
+ (cd ${WRKSRC}/docs/man \
+ && ${INSTALL_MAN} smtpscan.1 ${MANPREFIX}/man/man1)
+ @${MKDIR} ${DATADIR}
+ (cd ${WRKSRC}/src && ${INSTALL_SCRIPT} fingerprints tests ${DATADIR})
.include <bsd.port.mk>
diff --git a/security/smtpscan/files/Makefile b/security/smtpscan/files/Makefile
deleted file mode 100644
index 00cc2125c3a8..000000000000
--- a/security/smtpscan/files/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-#$FreeBSD$
-all:
- ./configure build
-
-install:
- ./configure install
-
diff --git a/security/smtpscan/files/patch-aa b/security/smtpscan/files/patch-aa
deleted file mode 100644
index 5db8513a2a14..000000000000
--- a/security/smtpscan/files/patch-aa
+++ /dev/null
@@ -1,86 +0,0 @@
---- configure.orig 2003-05-05 14:25:10.000000000 -0800
-+++ configure 2007-07-16 13:41:43.000000000 -0800
-@@ -5,50 +5,59 @@
- #
-
- VERSION=0.5
--DESTDIR='/usr/local'
-+DESTDIR=${PREFIX}
- SHAREDIR="$DESTDIR/share"
- BINDIR="$DESTDIR/bin"
- MANDIR="$DESTDIR/man/man1"
-
--echo "Installing smtpscan..."
--echo " Using directory $DESTDIR"
-+#echo "Installing smtpscan..."
-+#echo " Using directory $DESTDIR"
-
--echo -n " Checking for Net::DNS ... "
--perl -MNet::DNS -e '' >/dev/null 2>&1
--if [ $? != 0 ]
--then
-- echo ""
-- echo ""
-- echo " !!! ERROR !!!"
-- echo " Net::DNS not found"
-- echo " You are strongly adviced to install it !"
--
-- echo " Net::DNS is included in the smtpscan distribution"
-- echo " To install it, just make :"
-- echo " # tar zxvf Net-DNS-0.29.tar.gz"
-- echo " # cd Net-DNS-0.29"
-- echo " # perl Makefile.PL"
-- echo " # make"
-- echo " # make install"
-- exit
--fi
-+#echo -n " Checking for Net::DNS ... "
-+#perl -MNet::DNS -e '' >/dev/null 2>&1
-+#if [ $? != 0 ]
-+#then
-+# echo ""
-+# echo ""
-+# echo " !!! ERROR !!!"
-+# echo " Net::DNS not found"
-+# echo " You are strongly adviced to install it !"
-+#
-+# echo " Net::DNS is included in the smtpscan distribution"
-+# echo " To install it, just make :"
-+# echo " # tar zxvf Net-DNS-0.29.tar.gz"
-+# echo " # cd Net-DNS-0.29"
-+# echo " # perl Makefile.PL"
-+# echo " # make"
-+# echo " # make install"
-+# exit
-+#fi
-
--echo "Ok"
-+#echo "Ok"
-
-+if [ "$1" = "install" ]
-+then
- install -m 755 -d "$SHAREDIR/smtpscan"
- install -m 755 -d "$BINDIR"
- install -m 755 -d "$MANDIR"
-
- install -m 444 ./src/fingerprints "$SHAREDIR/smtpscan/fingerprints"
- install -m 444 ./src/tests "$SHAREDIR/smtpscan/tests"
-+fi
-
-+if [ "$1" = "build" ]
-+then
- perl -i -pe "s{(\\\$LOCAL_SHARE\s+=\s+)'/usr/local/share';}{\$1'$SHAREDIR';};" ./src/smtpscan
- perl -i -pe "s{\\@prefix\\@}{$SHAREDIR};" ./docs/man/smtpscan.1
- perl -i -pe "s{\\@VERSION\\@}{$VERSION};" ./src/smtpscan
- perl -i -pe "s{\\@VERSION\\@}{$VERSION};" ./INSTALL
- perl -i -pe "s{\\@VERSION\\@}{$VERSION};" ./docs/man/smtpscan.1
-+fi
-
-+if [ "$1" = "install" ]
-+then
- install -m 755 ./src/smtpscan "$BINDIR/smtpscan"
- install -m 644 ./docs/man/smtpscan.1 "$DESTDIR/man/man1"
-+fi
-
--echo "Installation Ok"
-+#echo "Installation Ok"
diff --git a/security/smtpscan/files/patch-ab b/security/smtpscan/files/patch-ab
deleted file mode 100644
index d14d59034d96..000000000000
--- a/security/smtpscan/files/patch-ab
+++ /dev/null
@@ -1,8 +0,0 @@
---- src/smtpscan.orig Sun May 4 23:42:44 2003
-+++ src/smtpscan Sun May 4 23:44:07 2003
-@@ -1,4 +1,4 @@
--#!/usr/bin/perl -w
-+#!/usr/bin/perl
- #
- # Author : Julien Bordet <zejames@greyhats.org>
- # Copyright (C) 2002-2003 Julien Bordet
diff --git a/security/smtpscan/pkg-descr b/security/smtpscan/pkg-descr
index 2923a59ce2c1..f64b172df580 100644
--- a/security/smtpscan/pkg-descr
+++ b/security/smtpscan/pkg-descr
@@ -1,5 +1,5 @@
-smtpscan is a remote SMTP server version detector. It can
-be used to guess which mail software is used on a remote
-server, that may hide its SMTP banner.
+smtpscan is a remote SMTP server version detector. It can be used to
+guess which mail software is used on a remote server, that may hide its
+SMTP banner.
-WWW: http://www.bordet.info/dc/
+WWW: http://packetstormsecurity.org/UNIX/scanners/
diff --git a/security/smtpscan/pkg-plist b/security/smtpscan/pkg-plist
deleted file mode 100644
index b23c35ab1c1b..000000000000
--- a/security/smtpscan/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/smtpscan
-share/smtpscan/fingerprints
-share/smtpscan/tests
-@dirrm share/smtpscan