1 # Makefile.usr - installed as /usr/Makefile
3 # Provides simple targets to download and maintain /usr/src, /usr/pkgsrc etc.
8 .if exists(${.CURDIR}/pkgsrc/.git)
9 .if exists(${.CURDIR}/pkgsrc/Makefile)
10 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
12 @echo " make pkgsrc-checkout - initial checkout of your pre-packaged"
14 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
15 @echo " after the initial checkout."
18 @echo " make pkgsrc-create - fetch initial pkgsrc repo from the net"
19 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
22 .if exists(${.CURDIR}/src/.git)
23 .if exists(${.CURDIR}/src/Makefile)
24 @echo " make src-update - update your src repo from the net"
26 @echo " make src-checkout - initial checkout of your pre-packaged src repo"
27 @echo " make src-update - update your src repo from the net"
28 @echo " after the initial checkout."
31 @echo " make src-create - fetch initial src repo from the net"
32 @echo " make src-update - update your src repo from the net"
35 .if exists(${.CURDIR}/src-sys.tgz)
36 @echo " make release-sys-extract - extract the pre-packaged sys-only sources"
39 @echo "If automating please feel free to run git pull's from cron."
40 @echo "We prefer once a day but you can run them more often if you"
43 @echo "If you have a repo previously maintained via CVS you should"
44 @echo "rm -rf it (save any local modifications) and then use the"
45 @echo "make src-create and/or make pkgsrc-create to set up the initial"
49 @echo "If problems occur you may have to rm -rf pkgsrc and try again."
51 mkdir -p ${.CURDIR}/pkgsrc
52 cd ${.CURDIR}/pkgsrc && git init
53 cd ${.CURDIR}/pkgsrc && \
54 git remote add origin git://git.dragonflybsd.org/pkgsrcv2.git
55 cd ${.CURDIR}/pkgsrc && git fetch origin
56 cd ${.CURDIR}/pkgsrc && git branch master origin/master
57 cd ${.CURDIR}/pkgsrc && git checkout master
58 cd ${.CURDIR}/pkgsrc && git pull
61 cd ${.CURDIR}/pkgsrc && git checkout master
64 cd ${.CURDIR}/pkgsrc && git pull
67 @echo "If problems occur you may have to rm -rf src and try again."
69 mkdir -p ${.CURDIR}/src
70 cd ${.CURDIR}/src && git init
71 cd ${.CURDIR}/src && \
72 git remote add origin git://git.dragonflybsd.org/dragonfly.git
73 cd ${.CURDIR}/src && git fetch origin
74 cd ${.CURDIR}/src && git branch master origin/master
75 cd ${.CURDIR}/src && git checkout master
76 cd ${.CURDIR}/src && git pull
79 cd ${.CURDIR}/src && git checkout master
82 cd ${.CURDIR}/src && git pull
85 cd ${.CURDIR} && tar xvpzf src-sys.tgz