Re: csup to svn

2012-11-22 Thread Fbsd8

Paul Schmehl wrote:
--On November 21, 2012 8:11:05 PM -0500 Fbsd8 fb...@a1poweruser.com 
wrote:



snip


csup has category called base that checkouts all the pieces parts
making up the ports make environment. IE Files in /usr/ports 
directory


svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site.
http://svnweb.freebsd.org/

In general, the checkout command will pull whatever you ask for and put
it where you tell it to and save date in a .svn directory which then
allows you to run svn up from then on (unless you delete the .svn
directory structure) to upgrade your sources.



The base you have referenced in svn means kernel source.
The ports cvup has category named base.

There is no category named base in the svn ports category list.

Doing a cvup for category base builds the following
# /usr/ports ls
.cvsignore  GIDsLEGAL   Mk  Tools
CHANGES KNOBS   MOVED   README  UIDs
COPYRIGHT   LASTCOMMIT.txt  MakefileTemplates   UPDATING

How do I do same thing using svn?



What was base is now head.  To tell it to download only the files in 
head use:


svn co svn://svn.freebsd.org/ports/head /usr/ports svn_depth_files = 1



That did not work. But this did work

 svn co svn://svn.freebsd.org/ports/head /usr/ports --depth files
 svn co svn://svn.freebsd.org/ports/head/Mk /usr/ports/Mk
 svn co svn://svn.freebsd.org/ports/head/Templates /usr/ports/Templates
 svn co svn://svn.freebsd.org/ports/head/Tools /usr/ports/Tools



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Anton Shterenlikht
Date: Wed, 21 Nov 2012 11:10:28 -0500
From: Fbsd8 fb...@a1poweruser.com

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 EOD
  *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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Fbsd8

Anton Shterenlikht wrote:

Date: Wed, 21 Nov 2012 11:10:28 -0500
From: Fbsd8 fb...@a1poweruser.com

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 EOD
  *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.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Paul Schmehl
--On November 21, 2012 11:10:28 AM -0500 Fbsd8 fb...@a1poweruser.com 
wrote:



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?



cd /usr/ports/category
svn co svn://svn.freebsd.org/ports/head/category/port

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Anton Shterenlikht
From fb...@a1poweruser.com Wed Nov 21 17:57:51 2012

Anton Shterenlikht wrote:
   Date: Wed, 21 Nov 2012 11:10:28 -0500
   From: Fbsd8 fb...@a1poweruser.com
 
   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 EOD
 *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 .
Adistinfo
Apkg-descr
AMakefile.doc
Afiles
Afiles/patch-Makefile.in
Afiles/patch-support__apachectl.in
Afiles/mpm-itk-20110321-01
Afiles/patch-configure.in
Afiles/patch-docs__conf__httpd.conf.in
Afiles/patch-docs__conf__extra__httpd-ssl.conf.in
Afiles/apache22.in
Afiles/no-accf.conf
Afiles/patch-support__ab.c
Afiles/patch-server__core.c
Afiles/patch-modules__proxy__mod_proxy_connect.c
Afiles/patch-docs__conf__extra__httpd-userdir.conf.in
Afiles/extra-patch-suexec_rsrclimit
Afiles/patch-support__log_server_status.in
Afiles/extra-patch-suexec_userdir
Afiles/htcacheclean.in
Afiles/patch-server__config.c
Afiles/patch-support__apxs.in
Afiles/mpm-itk-perdir-regex
Afiles/patch-support__envvars-std.in
Afiles/patch-support__Makefile.in
Afiles/mpm-itk-limits
Afiles/patch-config.layout
Apkg-message
AMakefile.modules
AMakefile.options
Apkg-plist
AMakefile
Checked out revision 307619.
# ls
.svnMakefile.modulesfiles   
pkg-plist
MakefileMakefile.optionspkg-descr
Makefile.docdistinfopkg-message
#

Anton

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Steve O'Hara-Smith
On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 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.

This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place. Once you have it you can do svn up in /usr/ports/www/apache22 to
update it.

This will probably become intolerably clumsy for more than a
handful of ports.

-- 
Steve O'Hara-Smith at...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Paul Schmehl
--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith 
at...@sohara.org wrote:



On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


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.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in /usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co 
svn://svn.freebsd.org/ports/head/www



Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.




--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Fbsd8

Paul Schmehl wrote:
--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith 
at...@sohara.org wrote:



On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


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.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in /usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co 
svn://svn.freebsd.org/ports/head/www



Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.






Yeap thats the ticket. I tested this and it works also

svn co svn://svn.freebsd.org/ports/head/misc/ytree /usr/ports/misc/ytree

Don't have to change into target directory.


Another question

csup has category called base that checkouts all the pieces parts 
making up the ports make environment.


svn has no category called base

What is base called in svn category?




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Paul Schmehl

--On November 21, 2012 5:49:07 PM -0500 Fbsd8 fb...@a1poweruser.com wrote:


Paul Schmehl wrote:

--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith
at...@sohara.org wrote:


On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


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.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in
/usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co
svn://svn.freebsd.org/ports/head/www


Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.






Yeap thats the ticket. I tested this and it works also

svn co svn://svn.freebsd.org/ports/head/misc/ytree /usr/ports/misc/ytree

Don't have to change into target directory.


Another question

csup has category called base that checkouts all the pieces parts
making up the ports make environment.

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site. 
http://svnweb.freebsd.org/


In general, the checkout command will pull whatever you ask for and put it 
where you tell it to and save date in a .svn directory which then allows 
you to run svn up from then on (unless you delete the .svn directory 
structure) to upgrade your sources.













--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Fbsd8

snip


csup has category called base that checkouts all the pieces parts
making up the ports make environment. IE Files in /usr/ports directory

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site. 
http://svnweb.freebsd.org/


In general, the checkout command will pull whatever you ask for and put 
it where you tell it to and save date in a .svn directory which then 
allows you to run svn up from then on (unless you delete the .svn 
directory structure) to upgrade your sources.




The base you have referenced in svn means kernel source.
The ports cvup has category named base.

There is no category named base in the svn ports category list.

Doing a cvup for category base builds the following
# /usr/ports ls
.cvsignore  GIDsLEGAL   Mk  Tools
CHANGES KNOBS   MOVED   README  UIDs
COPYRIGHT   LASTCOMMIT.txt  MakefileTemplates   UPDATING

How do I do same thing using svn?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: csup to svn

2012-11-21 Thread Paul Schmehl

--On November 21, 2012 8:11:05 PM -0500 Fbsd8 fb...@a1poweruser.com wrote:


snip


csup has category called base that checkouts all the pieces parts
making up the ports make environment. IE Files in /usr/ports directory

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site.
http://svnweb.freebsd.org/

In general, the checkout command will pull whatever you ask for and put
it where you tell it to and save date in a .svn directory which then
allows you to run svn up from then on (unless you delete the .svn
directory structure) to upgrade your sources.



The base you have referenced in svn means kernel source.
The ports cvup has category named base.

There is no category named base in the svn ports category list.

Doing a cvup for category base builds the following
# /usr/ports ls
.cvsignore  GIDsLEGAL   Mk  Tools
CHANGES KNOBS   MOVED   README  UIDs
COPYRIGHT   LASTCOMMIT.txt  MakefileTemplates   UPDATING

How do I do same thing using svn?



What was base is now head.  To tell it to download only the files in head 
use:


svn co svn://svn.freebsd.org/ports/head /usr/ports svn_depth_files = 1








Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org