1 # Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
3 # Provides simple targets to download and maintain /usr/pkgsrc.
5 # $DragonFly: src/etc/Makefile.usr,v 1.6 2008/07/29 13:10:22 swildner Exp $
8 @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
9 @echo " make pkgsrc-checkout"
10 @echo " make pkgsrc-update"
12 @echo "These targets download/update the DragonFly cvs repository into"
13 @echo "/home/dcvs. The release-src-cvsup and head-src-cvsup will"
14 @echo "first synchronize /home/dcvs then issue an update into /usr/src."
15 @echo " make cvs-cvsup"
16 @echo " make release-src-cvsup (suggested)"
17 @echo " make preview-src-cvsup"
18 @echo " make head-src-cvsup"
20 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
21 @echo " make release-sys-extract"
23 @echo "If automating please restrict updates from the NetBSD anoncvs"
24 @echo "server to no more than once a week and run cvsups no more often"
29 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
33 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
36 bunzip2 < src-sys.tar.bz2 | tar xvpf -
39 if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
40 cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
42 release-src-cvsup: cvs-cvsup
43 cd ${.CURDIR}; if [ -d src/CVS ]; then \
44 cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_2_0_Slip src; \
46 cvs -R -d /home/dcvs checkout -PA -rDragonFly_RELEASE_2_0_Slip src; \
49 preview-src-cvsup: cvs-cvsup
50 cd ${.CURDIR}; if [ -d src/CVS ]; then \
51 cvs -R -d /home/dcvs update -PAd -rDragonFly_Preview src; \
53 cvs -R -d /home/dcvs checkout -PA -rDragonFly_Preview src; \
56 head-src-cvsup: cvs-cvsup
57 cd ${.CURDIR}; if [ -d src/CVS ]; then \
58 cvs -R -d /home/dcvs update -PAd -rHEAD src; \
60 cvs -R -d /home/dcvs checkout -PA -rHEAD src; \