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 branch pkgsrc-2010Q2 origin/pkgsrc-2010Q2
58 cd ${.CURDIR}/pkgsrc && git checkout pkgsrc-2010Q2
59 cd ${.CURDIR}/pkgsrc && git pull
62 cd ${.CURDIR}/pkgsrc && git checkout master
65 cd ${.CURDIR}/pkgsrc && git pull
68 @echo "If problems occur you may have to rm -rf src and try again."
70 mkdir -p ${.CURDIR}/src
71 cd ${.CURDIR}/src && git init
72 cd ${.CURDIR}/src && \
73 git remote add origin git://git.dragonflybsd.org/dragonfly.git
74 cd ${.CURDIR}/src && git fetch origin
75 cd ${.CURDIR}/src && git branch master origin/master
76 cd ${.CURDIR}/src && git checkout master
77 cd ${.CURDIR}/src && git pull
80 cd ${.CURDIR}/src && git checkout master
83 cd ${.CURDIR}/src && git pull
86 cd ${.CURDIR} && tar xvpzf src-sys.tgz