From owner-freebsd-questions@FreeBSD.ORG Wed Nov 21 18:02:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 085EB2CD for ; Wed, 21 Nov 2012 18:02:04 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id B3F298FC12 for ; Wed, 21 Nov 2012 18:02:03 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1TbEcW-0004hj-RQ; Wed, 21 Nov 2012 18:02:02 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TbEcW-0004mt-HV; Wed, 21 Nov 2012 18:01:56 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id qALI1uN8081864; Wed, 21 Nov 2012 18:01:56 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id qALI1uSv081863; Wed, 21 Nov 2012 18:01:56 GMT (envelope-from mexas) Date: Wed, 21 Nov 2012 18:01:56 GMT From: Anton Shterenlikht Message-Id: <201211211801.qALI1uSv081863@mech-cluster241.men.bris.ac.uk> To: fbsd8@a1poweruser.com, mexas@bristol.ac.uk Subject: Re: csup to svn In-Reply-To: <50AD14CE.2010509@a1poweruser.com> X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 18:02:04 -0000 From fbsd8@a1poweruser.com Wed Nov 21 17:57:51 2012 Anton Shterenlikht wrote: > Date: Wed, 21 Nov 2012 11:10:28 -0500 > From: Fbsd8 > > I use packages for all my ports. > But some times I have to use ports make files because I need to change > the default configuration. > > I use a custom csup script to just download the desired single port. > > Since the CVSup/Csup service is being phased out as of February 28, > 2013, How can I duplicate this function using svn? > > Following is a sample csup script I use to download a single port. > > > #! /bin/sh > # This script is used to download make files for ytree port. > > # Load script symbolic field with path & file name > cvsupfile=/root/temp.work.file > > # Check to see if file exists & delete it if it does > [ -e "$cvsupfile" ] && rm -f "$cvsupfile" > > # Load instream data to file > cat >> "$cvsupfile" < *default base=/usr # create CVSup tree off /usr directory > *default release=cvs > *default delete use-rel-suffix # no compression, for DSL or t1 lines > *default host=cvsup11.FreeBSD.org # Virginia > *default tag=. # set tag value to nulls to get most current version > ports-misc > EOD > > # Exec csup to download just the selected port make files > cd /usr/ports/ > csup -g -L 2 -i ports/misc/ytree "$cvsupfile" > > # Delete file we are done with it > rm -f "$cvsupfile" > > echo " Ytree port download completed." > > I would do: > > # cd /usr/ports > # svn co svn://svn0.us-east.freebsd.org/ports/head/ . > > This will populate your ports tree. > Then, you can update anything and everything, > e.g. the whole ports tree: > > # svn up /usr/ports > > or just a single port: > > # svn up /usr/ports/misc/ytree > > I think it's way simpler than your current method. > In my opinion, svn is way better (at least in this regard) > than csup. > > Other useful thing that is easy with svn is reverting > port updates, e.g. when new ports don't build or give > other problems. For example, right now the latest sudo > doesn't work for me on ia64. So I do > > # svn up /usr/ports > # svn up -r302692 /usr/ports/security/sudo > > to build an older working version of sudo. > > Anton > > You missed to whole point of my question. I don't want to maintain the WHOLE ports tree. I only want to download selected single port. My current ports tree only has 2 ports, apache22 and php5. So your reply did not answer my question. Thanks any how. # mkdir apache22 # cd apache22/ # svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 . A distinfo A pkg-descr A Makefile.doc A files A files/patch-Makefile.in A files/patch-support__apachectl.in A files/mpm-itk-20110321-01 A files/patch-configure.in A files/patch-docs__conf__httpd.conf.in A files/patch-docs__conf__extra__httpd-ssl.conf.in A files/apache22.in A files/no-accf.conf A files/patch-support__ab.c A files/patch-server__core.c A files/patch-modules__proxy__mod_proxy_connect.c A files/patch-docs__conf__extra__httpd-userdir.conf.in A files/extra-patch-suexec_rsrclimit A files/patch-support__log_server_status.in A files/extra-patch-suexec_userdir A files/htcacheclean.in A files/patch-server__config.c A files/patch-support__apxs.in A files/mpm-itk-perdir-regex A files/patch-support__envvars-std.in A files/patch-support__Makefile.in A files/mpm-itk-limits A files/patch-config.layout A pkg-message A Makefile.modules A Makefile.options A pkg-plist A Makefile Checked out revision 307619. # ls .svn Makefile.modules files pkg-plist Makefile Makefile.options pkg-descr Makefile.doc distinfo pkg-message # Anton