Subject: Re: Getting "all" of pgksrc?
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 09/25/2002 01:57:12
Ultra-cool!

Thanks!  -Mike

p.s. Wow, NetBSD "support" is waaaaaaay better than "commercial" OSs !!! ;-)

I am once again astounded and humbled by this awesome community.




On Wed, 25 Sep 2002, Martti Kuparinen wrote:


> > How can I make the CDs for him that contain the pkgsrc source?  I don't mind
> > if I have to make 50 CDs for him, that's not the problem.
>
> 1) cd /usr/pkgsrc && make fetch
>    cd /usr/pkgsrc/distfiles
>    [ burn everything on several CDs ]
>
> 2) Use the script below to fetch only distfiles you really need
>
> Personally I use #2 as I don't want to get files which I don't need.
>
> # save the script as fetch.sh
> # list all your packages in PKG=
> # mkdir /tmp/distfiles
> # export DISTDIR=/tmp/distfiles
> # sh fetch.sh > /tmp/x
> # sh -x /tmp/x
> # burn all files in /tmp/distfiles on a CD
>
> ========= fetch.sh ============
> #!/bin/sh
>
> # Settings
> POSTFIX_USE_INET6=YES;	export POSTFIX_USE_INET6
> POSTFIX_USE_PCRE=YES;	export POSTFIX_USE_PCRE
>
> PKG="
>     mail/postfix
>     shells/bash2
>     wm/fvwm2
>     www/mozilla
>     x11/kde3
>     "
>
> if [ $# -eq 0 ]; then
>     echo ""
>     echo "Usage: `basename $0` list-file"
>     echo ""
>     exit 1
> fi
> OUTPUT=${1}
> shift
>
> if [ -r ${OUTPUT} ]; then
>     echo ""
>     echo "${OUTPUT}: File already exists"
>     echo ""
>     exit 1
> fi
>
> echo "Starting to process the package list"
> for i in ${PKG}; do
>     echo "===> ${i}"
>     (cd ${PKGSRC:=/usr/pkgsrc}/${i} && \
>         make fetch-list) >> ${OUTPUT} || exit 1
> done
> echo ""
> echo "All done. Now run \"sh -x ${OUTPUT}\" to fetch the distfiles."
> echo ""
> ========= fetch.sh ============
>
> Martti
>
> ---
> Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
> http://www.iki.fi/kuparine/                     http://www.netbsd.org/