1*809ae383SMatthew Dillon# Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile 2*809ae383SMatthew Dillon# 3*809ae383SMatthew Dillon# Provides simple targets to download and maintain /usr/pkgsrc. 4*809ae383SMatthew Dillon# 5*809ae383SMatthew Dillon# $DragonFly: src/etc/Makefile.usr,v 1.1 2007/08/02 06:53:14 dillon Exp $ 6*809ae383SMatthew Dillon 7*809ae383SMatthew Dillonall: 8*809ae383SMatthew Dillon @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs" 9*809ae383SMatthew Dillon @echo " make pkgsrc-checkout" 10*809ae383SMatthew Dillon @echo " make pkgsrc-update" 11*809ae383SMatthew Dillon @echo "" 12*809ae383SMatthew Dillon @echo "These targets download/update the DragonFly cvs repository into" 13*809ae383SMatthew Dillon @echo "/home/dcvs. The release-src-cvsup and head-src-cvsup will" 14*809ae383SMatthew Dillon @echo "first synchronize /home/dcvs then issue an update into /usr/src." 15*809ae383SMatthew Dillon @echo " make cvs-cvsup" 16*809ae383SMatthew Dillon @echo " make release-src-cvsup" 17*809ae383SMatthew Dillon @echo " make head-src-cvsup" 18*809ae383SMatthew Dillon @echo "" 19*809ae383SMatthew Dillon @echo "Extract kernel sources from src-sys.tar.bz2 in this directory." 20*809ae383SMatthew Dillon @echo " make release-sys-extract" 21*809ae383SMatthew Dillon @echo "" 22*809ae383SMatthew Dillon @echo "If automating please restrict updates from the NetBSD anoncvs" 23*809ae383SMatthew Dillon @echo "server to no more then once a week and run cvsups no more often" 24*809ae383SMatthew Dillon @echo "then daily." 25*809ae383SMatthew Dillon 26*809ae383SMatthew Dillonpkgsrc-checkout: 27*809ae383SMatthew Dillon cd ${.CURDIR}; \ 28*809ae383SMatthew Dillon cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc 29*809ae383SMatthew Dillon 30*809ae383SMatthew Dillonpkgsrc-update: 31*809ae383SMatthew Dillon cd ${.CURDIR}; \ 32*809ae383SMatthew Dillon cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc 33*809ae383SMatthew Dillon 34*809ae383SMatthew Dillonrelease-sys-extract: 35*809ae383SMatthew Dillon bunzip2 < src-sys.tar.bz2 | tar xvpf - 36*809ae383SMatthew Dillon 37*809ae383SMatthew Dilloncvs-cvsup: 38*809ae383SMatthew Dillon if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi 39*809ae383SMatthew Dillon cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile 40*809ae383SMatthew Dillon 41*809ae383SMatthew Dillonrelease-src-cvsup: cvs-cvsup 42*809ae383SMatthew Dillon cd ${.CURDIR}; if [ -d src/CVS ]; then \ 43*809ae383SMatthew Dillon cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_1_10 src; \ 44*809ae383SMatthew Dillon else \ 45*809ae383SMatthew Dillon cvs -R -d /home/dcvs checkout -PAd -rDragonFly_RELEASE_1_10 src; \ 46*809ae383SMatthew Dillon fi 47*809ae383SMatthew Dillon 48*809ae383SMatthew Dillonhead-src-cvsup: cvs-cvsup 49*809ae383SMatthew Dillon cd ${.CURDIR}; if [ -d src/CVS ]; then \ 50*809ae383SMatthew Dillon cvs -R -d /home/dcvs update -PAd -rHEAD src; \ 51*809ae383SMatthew Dillon else \ 52*809ae383SMatthew Dillon cvs -R -d /home/dcvs checkout -PAd -rHEAD src; \ 53*809ae383SMatthew Dillon fi 54*809ae383SMatthew Dillon 55