Date: Thu, 5 Nov 2009 22:17:10 +0200 From: Eitan Adler <eitanadlerlist@gmail.com> To: Brooks Davis <brooks@freebsd.org> Cc: ports@freebsd.org Subject: Re: using svn to fetch for ports (yet again!) Message-ID: <a0777e080911051217l11987c48g590da749a926f278@mail.gmail.com> In-Reply-To: <20091104234438.GB42953@lor.one-eyed-alien.net> References: <a0777e080911041023n24da042u4263375ced487fb8@mail.gmail.com> <20091104234438.GB42953@lor.one-eyed-alien.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a0777e080911051217l11987c48g590da749a926f278>