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://crater.dragonflybsd.org/dragonfly.git
12 @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
13 @echo " make pkgsrc-checkout"
14 @echo " make pkgsrc-update"
16 @echo "These targets download/update the DragonFly git repository into"
18 @echo " make git-clone"
19 @echo " make git-update"
21 @echo "Install or update /usr/pkgsrc/wip using NetBSD.se anoncvs"
22 @echo " make pkgsrc-wip-checkout"
23 @echo " make pkgsrc-wip-update"
25 @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
26 @echo " make release-sys-extract"
28 @echo "If automating please restrict updates from the NetBSD anoncvs"
29 @echo "server to no more than once a week and run gits no more often"
34 cvs -d ${CVSROOT_PKGSRC} checkout -P pkgsrc
38 cvs -d ${CVSROOT_PKGSRC} update -Pd pkgsrc
42 mkdir -p pkgsrc/wip; \
44 cvs -d ${CVSROOT_PKGSRC_WIP} checkout -P wip
47 cd ${.CURDIR}/pkgsrc; \
48 cvs -d ${CVSROOT_PKGSRC_WIP} update -Pd wip
51 bunzip2 < src-sys.tar.bz2 | tar xvpf -
55 if [ -z "`which git`" ]; then \
56 echo "Please install devel/scmgit from pkgsrc"; \
59 git clone -o crater -n ${GIT_DRAGONFLY} src; \
60 cd src && git checkout master
64 if [ -z "`which git`" ]; then \
65 echo "Please install devel/scmgit from pkgsrc"; \