From owner-freebsd-ports@FreeBSD.ORG Thu Nov 5 20:17:33 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A70010656AD for ; Thu, 5 Nov 2009 20:17:33 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by mx1.freebsd.org (Postfix) with ESMTP id 0E58E8FC18 for ; Thu, 5 Nov 2009 20:17:32 +0000 (UTC) Received: by gv-out-0910.google.com with SMTP id p33so129497gvf.39 for ; Thu, 05 Nov 2009 12:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=z6mgSj5nAJMMZKoF+mRJLMjR5R5bDHzh6GuDiWlb2PQ=; b=Rb+rhQ6ys/dMM+/kwuPMSjPhIFJlBw4em2hYV738NGqDoXdHrYRA0FIBXRZZykm7wA vcck7iwRqqtffjTpfBJ8TVBSSwI8F9QyKQGXK0uSdXXshr8gOkCEx4G1518lpGaY+9Pl 1tYg2ERb6xTBCSbt5OoVG0ZyHY7EKrS8dGXcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=hHqXdfYYND2NeIm0Fg/e6ZQ4MF2BfQ+95Mr0kE7mXxjWB0fuOnnmPFBwH8YImGIt8w Z7N/yHA3DoQD45LPiWKhirxXcSbX66NRJrLC2af9nwTDZ4Ynjym/19VTt1wfoo/96lc/ xxsrtekcUrOA7LVl9D9ejI7d1kot2TupNHupc= MIME-Version: 1.0 Received: by 10.239.139.100 with SMTP id s36mr397670hbs.109.1257452251512; Thu, 05 Nov 2009 12:17:31 -0800 (PST) In-Reply-To: <20091104234438.GB42953@lor.one-eyed-alien.net> References: <20091104234438.GB42953@lor.one-eyed-alien.net> From: Eitan Adler Date: Thu, 5 Nov 2009 22:17:10 +0200 Message-ID: To: Brooks Davis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org Subject: Re: using svn to fetch for ports (yet again!) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2009 20:17:33 -0000 > I'd much rather see this used as something that reduced the amount of > code required for maintainers to build tarballs from SVN. =A0For example > something similar in spirit to what I've done in devel/llvm-devel. =A0Tha= t > means mirroring or otherwise transfering the source around is possible. Would a patch like the one below be what you are looking for? (Note that I didn't test this patch that much...) > There will likely be some objections to putting maintainer functionality > in bsd.port.mk, but I think it would be useful enough in this case. > Alternativly we could formalize the process a bit and put something > Tools/scripts. While I have no trouble writing a script to perform these tasks this is something that I'd like to see available to end users. I think it would useful to allow users to do something like SVN_REV=3D1436 make install clean and thus fetch from svn and install newer/older versions. --- bsd.old.port.mk 2009-11-04 19:42:57.000000000 +0200 +++ bsd.port.mk 2009-11-05 22:11:51.000000000 +0200 @@ -3431,6 +3431,19 @@ DIR=3D${DIST_SUBDIR}; ${AWK} -v alg=3D$$alg -v file=3D$${DIR:+$$DIR/}$${f= ile} \ '$$1 =3D=3D alg && $$2 =3D=3D "(" file ")" {print $$4}' ${MD5_FILE} +# SVN + +#vars to set +# SVN_REV SVN_PATH SVN_USER +do-svn: +.if defined(SVN_REV) + ${MKDIR} ${WRKDIR} + svn export ${SVN_PATH} ${WRKSRC} + cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME} +.if ${USER} =3D=3D ${SVN_USER} + scp ${DISTDIR}/${DISTNAME}.tar.bz2 freefall.freebsd.org:public_distfiles/ +.endif #are we the right user +.endif #is svn_rev defined # Fetch .if !target(do-fetch)