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.1 2007/08/02 06:53:14 dillon 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"
17 @echo " make head-src-cvsup"
19 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
20 @echo " make release-sys-extract"
22 @echo "If automating please restrict updates from the NetBSD anoncvs"
23 @echo "server to no more then once a week and run cvsups no more often"
28 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
32 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
35 bunzip2 < src-sys.tar.bz2 | tar xvpf -
38 if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
39 cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
41 release-src-cvsup: cvs-cvsup
42 cd ${.CURDIR}; if [ -d src/CVS ]; then \
43 cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_1_10 src; \
45 cvs -R -d /home/dcvs checkout -PAd -rDragonFly_RELEASE_1_10 src; \
48 head-src-cvsup: cvs-cvsup
49 cd ${.CURDIR}; if [ -d src/CVS ]; then \
50 cvs -R -d /home/dcvs update -PAd -rHEAD src; \
52 cvs -R -d /home/dcvs checkout -PAd -rHEAD src; \