1 # Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
3 # Provides simple targets to download and maintain /usr/pkgsrc.
5 # $DragonFly: src/etc/Makefile.usr,v 1.8 2008/09/03 10:38:55 hasso Exp $
7 CVSROOT_PKGSRC?= anoncvs@anoncvs.NetBSD.org:/cvsroot
8 CVSROOT_PKGSRC_WIP?= anoncvs@anoncvs.NetBSD.se:/cvsroot
9 GIT_DRAGONFLY?= git://chlamydia.fs.ei.tum.de/dragonfly.git
10 GIT_BRANCH?= DragonFly_RELEASE_2_0
13 @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
14 @echo " make pkgsrc-checkout"
15 @echo " make pkgsrc-update"
17 @echo "These targets download/update the DragonFly git repository into"
19 @echo " make git-clone"
20 @echo " make git-update"
22 @echo "Install or update /usr/pkgsrc/wip using NetBSD.se anoncvs"
23 @echo " make pkgsrc-wip-checkout"
24 @echo " make pkgsrc-wip-update"
26 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
27 @echo " make release-sys-extract"
29 @echo "If automating please restrict updates from the NetBSD anoncvs"
30 @echo "server to no more than once a week and run gits no more often"
35 cvs -d ${CVSROOT_PKGSRC} checkout -P pkgsrc
39 cvs -d ${CVSROOT_PKGSRC} update -Pd pkgsrc
43 mkdir -p pkgsrc/wip; \
45 cvs -d ${CVSROOT_PKGSRC_WIP} checkout -P wip
48 cd ${.CURDIR}/pkgsrc; \
49 cvs -d ${CVSROOT_PKGSRC_WIP} update -Pd wip
52 bunzip2 < src-sys.tar.bz2 | tar xvpf -
55 @if [ -z "`which git`" ]; then \
56 echo "Please install devel/scmgit from pkgsrc"; \
59 git clone -n ${GIT_DRAGONFLY} ${.CURDIR}/src
60 if [ "${GIT_BRANCH}" != master ]; then \
61 git --git-dir=${.CURDIR}/src/.git branch --track -l -f ${GIT_BRANCH} origin/${GIT_BRANCH}; \
63 cd ${.CURDIR}/src && git checkout ${GIT_BRANCH}
66 @if [ -z "`which git`" ]; then \
67 echo "Please install devel/scmgit from pkgsrc"; \
70 cd ${.CURDIR}/src && git pull