Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2014 17:57:18 +0600 (BDT)
From:      Muhammad Moinur Rahman <5u623l20@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/189191: [PATCH] security/p5-PGP-Sign: OPTIONSNG, LICENSE, take maintainership
Message-ID:  <201405011157.s41BvICU014336@bofh.1asiacom.net>
Resent-Message-ID: <201405011200.s41C0106015174@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189191
>Category:       ports
>Synopsis:       [PATCH] security/p5-PGP-Sign: OPTIONSNG, LICENSE, take maintainership
>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:   Thu May 01 12:00:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Muhammad Moinur Rahman
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD bofh.1asiacom.net 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r263870: Fri Mar 28 16:37:49 BDT
>Description:
- Converted to OPTIONSNG support
- Removed obsolete dependency
- Added LICENSE
- Take maintainership

Generated with FreeBSD Port Tools 1.02 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- p5-PGP-Sign-0.20.patch begins here ---
diff -ruN /usr/ports//security/p5-PGP-Sign/Makefile ./Makefile
--- /usr/ports//security/p5-PGP-Sign/Makefile	2013-11-06 13:39:31.000000000 +0600
+++ ./Makefile	2014-05-01 17:56:44.781550678 +0600
@@ -3,65 +3,44 @@
 
 PORTNAME=	PGP-Sign
 PORTVERSION=	0.20
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	5u623l20@gmail.com
 COMMENT=	Create detached PGP signatures for data
 
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
 USES=		perl5
 USE_PERL5=	configure
-CONFIGURE_ARGS=	PGPS=${PGPS} PGPV=${PGPV} PGPSTYLE=${PGPSTYLE}
+CONFIGURE_ARGS=	PGP=${PGP} PGPSTYLE=${PGPSTYLE}
 
-# If DEFAULTPGP isn't defined, it gets set to PGP2.  If you don't like
-# the values that this process assigns to PGP (or PGPV and PGPS) and
-# PGPSTYLE, they can be predefined.
-#
 # Currently useful values for DEFAULTPGP are:
 # PGP2 - PGP 2.6.* or a reasonable facsimile thereof
-# PGP5 - PGP 5 or a work-alike
 # GPG  - Gnu Privacy Guard
 
-.ifndef DEFAULTPGP
-DEFAULTPGP=	GPG
-.endif
+OPTIONS_DEFINE=
+OPTIONS_SINGLE=	DEFAULTPGP
+OPTIONS_SINGLE_DEFAULTPGP=	GNUPG PGP2
+OPTIONS_DEFAULT=	GNUPG
+PGP_DESC=	PGP2 support
+GNUPG_BUILD_DEPENDS=	gpg:${PORTSDIR}/security/gnupg
+GNUPG_RUN_DEPENDS=	gpg:${PORTSDIR}/security/gnupg
+PGP_BUILD_DEPENDS=	pgp:${PORTSDIR}/security/pgp
+PGP_RUN_DEPENDS=	pgp:${PORTSDIR}/security/pgp
 
-.if (${DEFAULTPGP} == PGP2 )
-BUILD_DEPENDS=	pgp:${PORTSDIR}/security/pgp
-RUN_DEPENDS=	pgp:${PORTSDIR}/security/pgp
-PGPSTYLE?=	PGP2
-.ifndef PGP
-PGP!=	which pgp || ${ECHO} ${PREFIX}/bin/pgp
-.endif
-.elif (${DEFAULTPGP} == PGP5 )
-BUILD_DEPENDS=	pgps:${PORTSDIR}/security/pgp5
-RUN_DEPENDS=	pgps:${PORTSDIR}/security/pgp5
-PGPSTYLE?=	PGP5
-.ifndef PGPS
-PGPS!=	which pgps || ${ECHO} ${PREFIX}/bin/pgps
-.endif
-.ifndef PGPV
-PGPV!=	which pgpv || ${ECHO} ${PREFIX}/bin/pgpv
-.endif
-.ifndef PGP
-PGP!=	which pgp || ${ECHO} ${PREFIX}/bin/pgp
-.endif
-.elif (${DEFAULTPGP} == GPG)
-BUILD_DEPENDS=	gpg:${PORTSDIR}/security/gnupg
-RUN_DEPENDS=	gpg:${PORTSDIR}/security/gnupg
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGNUPG}
 PGPSTYLE?=	GPG
-.ifndef PGP
-PGP!=	which gpg || ${ECHO} ${PREFIX}/bin/gpg
-.endif
-.else
-.error Unsupported DEFAULTPGP value.  See the Makefile for a list of acceptable values.
+PGP=	${PREFIX}/bin/gpg
 .endif
-
-.ifdef PGP
-PGPS?=	${PGP}
-PGPV?=	${PGP}
+.if ${PORT_OPTIONS:MPGP2}
+PGPSTYLE?=	PGP2
+PGP=	${PREFIX}/bin/pgp
 .endif
 
 .include <bsd.port.mk>
--- p5-PGP-Sign-0.20.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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