From owner-freebsd-ports@FreeBSD.ORG Tue Nov 18 04:11:23 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 74B5B8DA for ; Tue, 18 Nov 2014 04:11:23 +0000 (UTC) Received: from mx.waitman.net (mx.waitman.net [136.0.16.173]) by mx1.freebsd.org (Postfix) with ESMTP id 5F35B84D for ; Tue, 18 Nov 2014 04:11:22 +0000 (UTC) Received: by mx.waitman.net (Postfix, from userid 2) id 0315B435A8; Mon, 17 Nov 2014 12:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waitman.net; s=default; t=1416255249; bh=BnTWO7xkKhgCTMbCy8Hb7uhpJM5mp0pmuQpL8jsdXa4=; h=In-Reply-To:References:Date:Subject:From:To:Reply-To; b=OTuBv2SjYQx7D5MKA+DxNhBnL8FrQ+muFc8lXAxEsaq74hVtwRraRKVf+UIjoMUmL 55lu882omeowxqU+0hv4NjkpbGKnf8IJfcSNeiQHio63WwzB/uzvw6m0h4OiF3U2El FPP4EfFMoB3oCZWjD1dU+FekzhdFkbqsxNzMOW84= Received: from 70.90.171.37 by mx.waitman.net with HTTP; Mon, 17 Nov 2014 12:14:08 -0800 Message-ID: <7db681007f95ef2c174fad49ea4a1e1a.squirrel@mx.waitman.net> In-Reply-To: <20141118033110.GX24601@funkthat.com> References: <20141118033110.GX24601@funkthat.com> Date: Mon, 17 Nov 2014 12:14:08 -0800 Subject: Re: help w/ port just installing files... From: "Waitman Gobble" To: "John-Mark Gurney" , ports@FreeBSD.org Reply-To: waitman@waitman.net User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 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:23 -0000 On Mon, November 17, 2014 7:31 pm, 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. > > > -- > 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" > > I tested this, it seems to work. But it installs everything in /usr/local/share/nist-kat without sub-directories. (if you want that?) There's no need to create the directory under /usr/local/share... 'make deinstall' also removes all the rsp files, which is good i think. do-install: cd ${WRKSRC}/KAT_AES && ${COPYTREE_SHARE} . ${DOCSDIR} && \ cd ${WRKSRC}/XTSTestVectors && ${COPYTREE_SHARE} . ${DOCSDIR} && \ cd ${WRKSRC}/KAT_TDES && ${COPYTREE_SHARE} . ${DOCSDIR} && \ cd ${WRKSRC}/gcmtestvectors && ${COPYTREE_SHARE} . ${DOCSDIR} && \ cd ${WRKSRC}/hmactestvectors && ${COPYTREE_SHARE} . ${DOCSDIR} -- Waitman Gobble Los Altos California USA +1.510-830-7975