Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 14:24:31 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343090 - head/security/p5-File-Scan
Message-ID:  <201402061424.s16EOVaD066486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Feb  6 14:24:30 2014
New Revision: 343090
URL: http://svnweb.freebsd.org/changeset/ports/343090
QAT: https://qat.redports.org/buildarchive/r343090/

Log:
  - Support staging
  - Use shebangfix

Modified:
  head/security/p5-File-Scan/Makefile
  head/security/p5-File-Scan/pkg-plist

Modified: head/security/p5-File-Scan/Makefile
==============================================================================
--- head/security/p5-File-Scan/Makefile	Thu Feb  6 14:19:13 2014	(r343089)
+++ head/security/p5-File-Scan/Makefile	Thu Feb  6 14:24:30 2014	(r343090)
@@ -10,28 +10,34 @@ PKGNAMEPREFIX=	p5-
 MAINTAINER=	jims@bluenotch.com
 COMMENT=	Perl5 anti-virus file scanning package
 
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	configure
 
-MAN3=		File::Scan.3
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+SHEBANG_FILES=	examples/*.pl examples/procmail/scanvirus.pl
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/docs
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/docs
 .for file in Changes FAQ README TODO
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
 .for f in docs/write_sign_bin.txt
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/docs
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/docs
 .endfor
-.endif
-	@${MKDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/procmail
+
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/procmail
 .for f in latest.pl scan.pl
-	@${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 .for f in procmail/.procmailrc procmail/README procmail/scanvirus.pl
-	@${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}/procmail
+	${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} \
+		${STAGEDIR}${EXAMPLESDIR}/procmail
 .endfor
 
 .include <bsd.port.mk>

Modified: head/security/p5-File-Scan/pkg-plist
==============================================================================
--- head/security/p5-File-Scan/pkg-plist	Thu Feb  6 14:19:13 2014	(r343089)
+++ head/security/p5-File-Scan/pkg-plist	Thu Feb  6 14:24:30 2014	(r343090)
@@ -1,19 +1,6 @@
 %%SITE_PERL%%/File/Scan.pm
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Scan/.packlist
-%%PORTDOCS%%%%DOCSDIR%%/Changes
-%%PORTDOCS%%%%DOCSDIR%%/FAQ
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/docs/write_sign_bin.txt
-%%EXAMPLESDIR%%/latest.pl
-%%EXAMPLESDIR%%/scan.pl
-%%EXAMPLESDIR%%/procmail/.procmailrc
-%%EXAMPLESDIR%%/procmail/README
-%%EXAMPLESDIR%%/procmail/scanvirus.pl
-@dirrm %%EXAMPLESDIR%%/procmail
-@dirrm %%EXAMPLESDIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PERL5_MAN3%%/File::Scan.3.gz
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Scan
 @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File
 @dirrmtry %%SITE_PERL%%/File



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402061424.s16EOVaD066486>