Thank you, kpa. This partialy solves my problem as it allows me to get the source. Still, in order to use
devel/subversion I would to have to install it first which implies downloading and installing many unnecessary packages:
Code:
machine# pkg_info | wc -l
9
machine# portmaster devel/subversion
[...]
===>>> The following actions will be taken if you choose to proceed:
Install devel/subversion
Install databases/db42
Install devel/libtool
Install databases/sqlite3
Install devel/pkgconf
Install devel/apr1
Install converters/libiconv
Install databases/gdbm
Install devel/gmake
Install devel/gettext
Install devel/autoconf
Install devel/autoconf-wrapper
Install devel/m4
Install misc/help2man
Install devel/p5-Locale-gettext
Install devel/automake
Install devel/automake-wrapper
Install lang/python27
Install textproc/expat2
Install www/neon29
===>>> Proceed? y/n [y] n
===>>> If you would like to upgrade or install some, but not
all of the above try adding '-i' to the command line.
Terminated
I would go from 9 installed 3rd party applications to 29.
I'd like to keep the system as clean as possible. Ideally, I'd get the source, use it (i.e. in my case compile VMWare Tools using
this guide) and
# rm -rf /usr/src
afterwards. Deleting the source would prevent me using it in the future with wrong release.
Reading manual pages
cvs(1) (which is part of the base system, thus wouldn't require to triple the amount of third party applications), I don't see a similar way to use CVS via port TCP/80.
I see this as a sensible workaround leaving my system clean after I'm done:
- Temporarily install devel/subversion using portmaster(8) with --delete-build-only option
# portmaster --delete-build-only devel/subversion
- get the source /usr/src
# svn co [url]http://svn.freebsd.org/base/releng/9.0[/url] /usr/src
- compile VMWare Tools (using this guide)
- delete the source /usr/src
# rm -rf /usr/src
- uninstall devel/subversion
# pkg_delete `pkg_info | grep ^subversion- | cut -d " " -f 1`
Initially, I wanted to install
ports-mgmt/pkg and use its
autoremove option, but then discovered
portmaster(8)'s
--delete-build-only option.