svn commit: r316501 - head/security/gnupg-idea

Dirk Meyer dinoex at FreeBSD.org
Thu Apr 25 05:17:17 UTC 2013


Author: dinoex
Date: Thu Apr 25 05:17:17 2013
New Revision: 316501
URL: http://svnweb.freebsd.org/changeset/ports/316501

Log:
  - use OPTIONS_DEFINE
  - make option IDEA deafult
  
  - remove RESTRICTED
  http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
  The last patents expired in 2012 and IDEA is now patent-free and thus free to use.

Modified:
  head/security/gnupg-idea/Makefile

Modified: head/security/gnupg-idea/Makefile
==============================================================================
--- head/security/gnupg-idea/Makefile	Thu Apr 25 05:16:25 2013	(r316500)
+++ head/security/gnupg-idea/Makefile	Thu Apr 25 05:17:17 2013	(r316501)
@@ -2,7 +2,7 @@
 
 PORTNAME=	gnupg-idea
 PORTVERSION=	1.0.6
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GNUPG} \
 		ftp://ftp.gnupg.org/gcrypt/%SUBDIR%/ \
@@ -20,26 +20,26 @@ COMMENT=	IDEA extension module for gnupg
 RUN_DEPENDS=	${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1
 
 EXTRACT_AFTER_ARGS=	> ${WRKSRC}/idea.c
-RESTRICTED=	IDEA is Patented in the USA and many European countries
 
 NO_WRKSUBDIR=	yes
 CFLAGS+=	-shared -fPIC -DIS_MODULE
 CFLAGS+=	-Wall -Wcast-align -Wshadow -Wstrict-prototypes
 PLIST=		${WRKDIR}/.PLIST.more
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	IDEA
+OPTIONS_DEFINE=	IDEA
+OPTIONS_DEFAULT=IDEA
+IDEA_DESC=	IDEA encyrption
 
-.if defined(MAKE_IDEA) && !defined(WITHOUT_IDEA)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MIDEA}
 CONTRIB=	idea rsa
 DISTFILES=	idea.c.gz:idea rsa.c
 EXTRACT_ONLY=	idea.c.gz
 .else
 CONTRIB=	rsa
 DISTFILES=	rsa.c
-
-pre-fetch:
-	@${ECHO_MSG}
-	@${ECHO_MSG} You must set variable MAKE_IDEA to YES, only rsa is build now.
 .endif
 
 pre-extract:
@@ -69,4 +69,4 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/lib/gnupg/${i}
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list