Date: Tue, 2 Oct 2012 02:54:49 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/172250: security/smtpscan: Update MASTER_SITES Message-ID: <20121002025449.cc8a801ef89b46e45dded6c0@yahoo.com> Resent-Message-ID: <201210011810.q91IAFWa015200@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172250 >Category: ports >Synopsis: security/smtpscan: Update MASTER_SITES >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 01 18:10:15 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p10 i386 >Organization: >Environment: >Description: - Update MASTER_SITES and WWW: line - Add LICENSE - Support PLIST_FILES Remove file: files/Makefile files/patch-aa files/patch-ab pkg-plist >How-To-Repeat: >Fix: diff -urN /usr/ports/security/smtpscan/Makefile security/smtpscan/Makefile --- /usr/ports/security/smtpscan/Makefile 2012-06-29 03:37:19.000000000 +0900 +++ security/smtpscan/Makefile 2012-10-01 18:45:52.000000000 +0900 @@ -9,16 +9,41 @@ 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 +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 -urN /usr/ports/security/smtpscan/files/Makefile security/smtpscan/files/Makefile --- /usr/ports/security/smtpscan/files/Makefile 2003-04-20 06:37:11.000000000 +0900 +++ security/smtpscan/files/Makefile 1970-01-01 09:00:00.000000000 +0900 @@ -1,7 +0,0 @@ -#$FreeBSD: ports/security/smtpscan/files/Makefile,v 1.1 2003/04/19 21:37:11 sumikawa Exp $ -all: - ./configure build - -install: - ./configure install - diff -urN /usr/ports/security/smtpscan/files/patch-aa security/smtpscan/files/patch-aa --- /usr/ports/security/smtpscan/files/patch-aa 2007-08-10 16:40:21.000000000 +0900 +++ security/smtpscan/files/patch-aa 1970-01-01 09:00:00.000000000 +0900 @@ -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 -urN /usr/ports/security/smtpscan/files/patch-ab security/smtpscan/files/patch-ab --- /usr/ports/security/smtpscan/files/patch-ab 2003-05-05 19:28:32.000000000 +0900 +++ security/smtpscan/files/patch-ab 1970-01-01 09:00:00.000000000 +0900 @@ -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 -urN /usr/ports/security/smtpscan/pkg-descr security/smtpscan/pkg-descr --- /usr/ports/security/smtpscan/pkg-descr 2007-08-10 16:40:20.000000000 +0900 +++ security/smtpscan/pkg-descr 2012-10-01 18:37:46.000000000 +0900 @@ -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 -urN /usr/ports/security/smtpscan/pkg-plist security/smtpscan/pkg-plist --- /usr/ports/security/smtpscan/pkg-plist 2003-04-20 06:37:10.000000000 +0900 +++ security/smtpscan/pkg-plist 1970-01-01 09:00:00.000000000 +0900 @@ -1,4 +0,0 @@ -bin/smtpscan -share/smtpscan/fingerprints -share/smtpscan/tests -@dirrm share/smtpscan >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121002025449.cc8a801ef89b46e45dded6c0>