Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2003 18:28:49 -0500
From:      "Mezz bsdforums.org" <reigncracks@hotmail.com>
To:        kris@obsecurity.org
Cc:        gnome@freebsd.org, ports@freebsd.org
Subject:   Re: Is it allow port to do the CVS checkout by itself?
Message-ID:  <F54e3TgwfcWTHqd5yHD00055356@hotmail.com>

next in thread | raw e-mail | index | archive | help
>On Mon, Mar 03, 2003 at 01:40:57PM -0500, Mezz bsdforums.org wrote:
> > Hello franz,
> >
> > Yes, I am aware of those. What I am asking in the orignal question is
> > that.. Is it allow to have "cvs checkout" in the Makefile? It means, 
>there
> > will be no checksum, but will checkout the very lastest stable version 
>of
> > VIM, patch lastest vim-gtk2 and install it. I seem to not able find this
> > info in the handbook about CVS. Hope, I am not blind. (I forgot to cc 
>ports
> > maillist..) :-)
>
>You shouldn't do CVS checkouts to fetch the port.  Many people are
>behind firewalls and cannot do this.  Instead, you could create a
>'maintainer-fetch' target that performs the CVS fetch and creates a
>tarball, which will be uploaded to a distribution site, so users will
>fetch that instead.

Ok, I did the search and found other better one.

$ find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l "z3"
/usr/ports/devel/error/Makefile
/usr/ports/editors/mg/Makefile
/usr/ports/lang/gcc32/Makefile
....
...

I think, I am going to copy the error/Makefile's way like this:

================================
#
# CVS checkout stuff mostly stolen from security/openssh-askpass port by
# kris@freebsd.org
#
tarball:
	@${MKDIR} ${DISTDIR}/${PKGNAME} && \
	cd ${DISTDIR}/${PKGNAME}; \
	for CVS_SITE in ${CVS_SITES}; do \
		${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
		if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
		    ${CVS_MODULE}; then \
			cd ${DISTDIR}; \
			${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
			${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
			${MV} ${PKGNAME}/${CVS_MODULE} \
				${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
			${TAR} -cz \
				-X ${FILESDIR}/tarignore \
				-f ${PKGNAME}.tar.gz \
				-C ${PKGNAME}/${CVS_MODULE:H} \
				${PKGNAME}; \
			exit; \
		fi \
	done; \
	${RMDIR} ${DISTDIR}/${PKGNAME}; \
	${ECHO_MSG} ">> CVS checkout failed."; \
	exit 1;
================================

Is it fine? :-)

Cheers,
Mezz

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F54e3TgwfcWTHqd5yHD00055356>