1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Update MASTER_SITES and WWW: line

- Add LICENSE
- Switch to PLIST_FILES

PR:		ports/172250
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
Feature safe:	yes
This commit is contained in:
Pawel Pekala 2012-11-02 16:01:37 +00:00
parent e37090f07a
commit 373301c87d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306866
6 changed files with 36 additions and 120 deletions

View File

@ -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>

View File

@ -1,7 +0,0 @@
#$FreeBSD$
all:
./configure build
install:
./configure install

View File

@ -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"

View File

@ -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

View File

@ -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/

View File

@ -1,4 +0,0 @@
bin/smtpscan
share/smtpscan/fingerprints
share/smtpscan/tests
@dirrm share/smtpscan