Adjust for 1.12
[dragonfly.git] / etc / Makefile.usr
CommitLineData
809ae383
MD
1# Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
2#
3# Provides simple targets to download and maintain /usr/pkgsrc.
4#
641d51dc 5# $DragonFly: src/etc/Makefile.usr,v 1.4 2008/02/12 16:12:54 matthias Exp $
809ae383
MD
6
7all:
8 @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
9 @echo " make pkgsrc-checkout"
10 @echo " make pkgsrc-update"
11 @echo ""
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"
06f7b333
MD
16 @echo " make release-src-cvsup (suggested)"
17 @echo " make preview-src-cvsup"
809ae383
MD
18 @echo " make head-src-cvsup"
19 @echo ""
20 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
21 @echo " make release-sys-extract"
22 @echo ""
23 @echo "If automating please restrict updates from the NetBSD anoncvs"
24 @echo "server to no more then once a week and run cvsups no more often"
25 @echo "then daily."
26
27pkgsrc-checkout:
28 cd ${.CURDIR}; \
29 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
30
31pkgsrc-update:
32 cd ${.CURDIR}; \
33 cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
34
35release-sys-extract:
36 bunzip2 < src-sys.tar.bz2 | tar xvpf -
37
38cvs-cvsup:
39 if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
40 cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
41
42release-src-cvsup: cvs-cvsup
43 cd ${.CURDIR}; if [ -d src/CVS ]; then \
641d51dc 44 cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_1_12_Slip src; \
809ae383 45 else \
641d51dc 46 cvs -R -d /home/dcvs checkout -PA -rDragonFly_RELEASE_1_12_Slip src; \
06f7b333
MD
47 fi
48
49preview-src-cvsup: cvs-cvsup
50 cd ${.CURDIR}; if [ -d src/CVS ]; then \
51 cvs -R -d /home/dcvs update -PAd -rDragonFly_Preview src; \
52 else \
17e4626f 53 cvs -R -d /home/dcvs checkout -PA -rDragonFly_Preview src; \
809ae383
MD
54 fi
55
56head-src-cvsup: cvs-cvsup
57 cd ${.CURDIR}; if [ -d src/CVS ]; then \
58 cvs -R -d /home/dcvs update -PAd -rHEAD src; \
59 else \
17e4626f 60 cvs -R -d /home/dcvs checkout -PA -rHEAD src; \
809ae383
MD
61 fi
62