1# Makefile.usr - installed as /usr/Makefile 2# 3# Provides simple targets to download and maintain /usr/src, /usr/pkgsrc etc. 4 5help all: 6 @echo "HELP:" 7 @echo "" 8.if exists(${.CURDIR}/pkgsrc/.git) 9.if exists(${.CURDIR}/pkgsrc/Makefile) 10 @echo " make pkgsrc-update - update your pkgsrc repo from the net" 11.else 12 @echo " make pkgsrc-checkout - initial checkout of your pre-packaged" 13 @echo " pkgsrc repo." 14 @echo " make pkgsrc-update - update your pkgsrc repo from the net" 15 @echo " after the initial checkout." 16.endif 17.else 18 @echo " make pkgsrc-create - fetch initial pkgsrc repo from the net" 19 @echo " make pkgsrc-update - update your pkgsrc repo from the net" 20.endif 21 @echo "" 22.if exists(${.CURDIR}/src/.git) 23.if exists(${.CURDIR}/src/Makefile) 24 @echo " make src-update - update your src repo from the net" 25.else 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." 29.endif 30.else 31 @echo " make src-create - fetch initial src repo from the net" 32 @echo " make src-update - update your src repo from the net" 33.endif 34 @echo "" 35.if exists(${.CURDIR}/src-sys.tgz) 36 @echo " make release-sys-extract - extract the pre-packaged sys-only sources" 37.endif 38 @echo "" 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" 41 @echo "desire." 42 @echo "" 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" 46 @echo "git repo." 47 48pkgsrc-create: 49 @echo "If problems occur you may have to rm -rf pkgsrc and try again." 50 @echo "" 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 59 60pkgsrc-checkout: 61 cd ${.CURDIR}/pkgsrc && git checkout master 62 63pkgsrc-update: 64 cd ${.CURDIR}/pkgsrc && git pull 65 66src-create: 67 @echo "If problems occur you may have to rm -rf src and try again." 68 @echo "" 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 77 78src-checkout: 79 cd ${.CURDIR}/src && git checkout master 80 81src-update: 82 cd ${.CURDIR}/src && git pull 83 84release-sys-extract: 85 cd ${.CURDIR} && tar xvpzf src-sys.tgz 86 87