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.8 2008/09/03 10:38:55 hasso 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 "Install or update /usr/pkgsrc/wip using NetBSD.se anoncvs"
21 @echo " make pkgsrc-wip-checkout"
22 @echo " make pkgsrc-wip-update"
24 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
25 @echo " make release-sys-extract"
27 @echo "If automating please restrict updates from the NetBSD anoncvs"
28 @echo "server to no more than once a week and run cvsups no more often"
33 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc
37 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
41 mkdir -p pkgsrc/wip; \
43 cvs -d anoncvs@anoncvs.NetBSD.se:/cvsroot checkout -P wip
46 cd ${.CURDIR}/pkgsrc; \
47 cvs -d anoncvs@anoncvs.NetBSD.se:/cvsroot update -Pd wip
50 bunzip2 < src-sys.tar.bz2 | tar xvpf -
53 if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
54 cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
56 release-src-cvsup: cvs-cvsup
57 cd ${.CURDIR}; if [ -d src/CVS ]; then \
58 cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_2_0_Slip src; \
60 cvs -R -d /home/dcvs checkout -PA -rDragonFly_RELEASE_2_0_Slip src; \
63 preview-src-cvsup: cvs-cvsup
64 cd ${.CURDIR}; if [ -d src/CVS ]; then \
65 cvs -R -d /home/dcvs update -PAd -rDragonFly_Preview src; \
67 cvs -R -d /home/dcvs checkout -PA -rDragonFly_Preview src; \
70 head-src-cvsup: cvs-cvsup
71 cd ${.CURDIR}; if [ -d src/CVS ]; then \
72 cvs -R -d /home/dcvs update -PAd -rHEAD src; \
74 cvs -R -d /home/dcvs checkout -PA -rHEAD src; \