From owner-freebsd-ports@FreeBSD.ORG Tue Nov 18 04:11:06 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81E1484D for ; Tue, 18 Nov 2014 04:11:06 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5730084C for ; Tue, 18 Nov 2014 04:11:05 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id sAI4BouB022001; Mon, 17 Nov 2014 20:11:50 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: ports@FreeBSD.org, John-Mark Gurney In-Reply-To: <20141118033110.GX24601@funkthat.com> References: <20141118033110.GX24601@funkthat.com> From: "Chris H" Subject: Re: help w/ port just installing files... Date: Mon, 17 Nov 2014 20:11:51 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 04:11:06 -0000 On Mon, 17 Nov 2014 19:31:10 -0800 John-Mark Gurney wrote > So, I'm trying to get a port that will install the NIST's KAT vectors > so I can write a test program using them... > > I don't know what is the best way to handle plist creation and > installation. I have this Makefile so far: > # Created by: John-Mark Gurney > # $FreeBSD$ > > PORTNAME= nist-kat > DISTVERSION= 1.0 > CATEGORIES= security > > MAINTAINER= jmg@FreeBSD.org > COMMENT= Collection of NIST's Know Answer Test Vectors > > #LICENSE= PUBLICDOMAIN > > BASE_URL= http://csrc.nist.gov/groups/STM/cavp/documents > MASTER_SITES= ${BASE_URL}/aes/:aes > MASTER_SITES+= ${BASE_URL}/des/:des > MASTER_SITES+= ${BASE_URL}/mac/:mac > > DISTFILES= KAT_AES.zip:aes > DISTFILES+= XTSTestVectors.zip:aes > DISTFILES+= KAT_TDES.zip:des > DISTFILES+= gcmtestvectors.zip:mac > DISTFILES+= hmactestvectors.zip:mac > > # We want each dist file in it's own subdir > EXTRACT_CMD= mkdir $${file%.zip}; ${TAR} > EXTRACT_AFTER_ARGS=-C $${file%.zip} > > NO_BUILD= > NO_WRKSUBDIR= > > do-install: > mkdir -p ${PREFIX}/share/nist-kat && \ > cp -Rp ${WRKSRC}/ ${PREFIX}/share/nist-kat > > .include > > But the cp command copies more than I want, including the staging dir. > > Does someone know an easier way to do this? > > Thanks. I don't know the exact layout you have in ${WRKSRC} But it might be as simple as: (cd ${WRKSRC} && cp -Rp . ${STAGEDIR}${PREFIX}/share/nist-kat) or some slight derivative. :) Hope this helps. --Chris > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"