The distribution installs a Makefile in /usr with easy-to-use targets to
[dragonfly.git] / etc / Makefile.usr
1 # Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
2 #
3 # Provides simple targets to download and maintain /usr/pkgsrc.
4 #
5 # $DragonFly: src/etc/Makefile.usr,v 1.1 2007/08/02 06:53:14 dillon Exp $
6
7 all:
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"
16         @echo "    make release-src-cvsup"
17         @echo "    make head-src-cvsup"
18         @echo ""
19         @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
20         @echo "    make release-sys-extract"
21         @echo ""
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"
24         @echo "then daily."
25
26 pkgsrc-checkout:
27         cd ${.CURDIR}; \
28         cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
29
30 pkgsrc-update:
31         cd ${.CURDIR}; \
32         cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
33
34 release-sys-extract:
35         bunzip2 < src-sys.tar.bz2 | tar xvpf -
36
37 cvs-cvsup:
38         if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
39         cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
40
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; \
44         else \
45             cvs -R -d /home/dcvs checkout -PAd -rDragonFly_RELEASE_1_10 src; \
46         fi
47
48 head-src-cvsup: cvs-cvsup
49         cd ${.CURDIR}; if [ -d src/CVS ]; then \
50             cvs -R -d /home/dcvs update -PAd -rHEAD src; \
51         else \
52             cvs -R -d /home/dcvs checkout -PAd -rHEAD src; \
53         fi
54