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
13 @echo "Extract /usr/pkgsrc from pkgsrc-all.tgz"
14 @echo " make release-pkgsrc-extract"
15 @echo "Or, install or update /usr/pkgsrc using NetBSDs anoncvs"
16 @echo " make pkgsrc-checkout"
17 @echo " make pkgsrc-update"
19 @echo "These targets download/update the DragonFly git repository into"
21 @echo " make git-clone"
22 @echo " make git-update"
24 @echo "Install or update /usr/pkgsrc/wip using NetBSD.se anoncvs"
25 @echo " make pkgsrc-wip-checkout"
26 @echo " make pkgsrc-wip-update"
28 @echo "Extract kernel sources from src-sys.tgz in this directory"
29 @echo " make release-sys-extract"
30 @echo "Extract full DragonFly sources from src-all.tgz in this directory"
31 @echo " make release-src-extract"
33 @echo "If automating please restrict updates from the NetBSD anoncvs"
34 @echo "server to no more than once a week and run gits no more often"
39 cvs -d ${CVSROOT_PKGSRC} checkout -P pkgsrc
43 cvs -d ${CVSROOT_PKGSRC} -q update -Pd pkgsrc
47 mkdir -p pkgsrc/wip; \
49 cvs -d ${CVSROOT_PKGSRC_WIP} checkout -P wip
52 cd ${.CURDIR}/pkgsrc; \
53 cvs -d ${CVSROOT_PKGSRC_WIP} -q update -Pd wip
55 release-pkgsrc-extract:
59 tar xvpzf ${.CURDIR}/pkgsrc-all.tgz
70 @if [ -z "`which git`" ]; then \
71 echo "Please install devel/scmgit from pkgsrc"; \
74 git clone -n ${GIT_DRAGONFLY} ${.CURDIR}/src
75 if [ "${GIT_BRANCH}" != master ]; then \
76 git --git-dir=${.CURDIR}/src/.git branch --track -l -f ${GIT_BRANCH} origin/${GIT_BRANCH}; \
78 cd ${.CURDIR}/src && git checkout ${GIT_BRANCH}
81 @if [ -z "`which git`" ]; then \
82 echo "Please install devel/scmgit from pkgsrc"; \
85 cd ${.CURDIR}/src && git pull