xref: /dragonfly/nrelease/Makefile (revision 3f279b9e)
1*3f279b9eSSascha Wildner# $DragonFly: src/nrelease/Makefile,v 1.77 2008/03/08 22:00:03 swildner Exp $
26ca9a59cSMatthew Dillon#
35b22b655SMatthew Dillon
49b29c40aSMatthew Dillon#########################################################################
59b29c40aSMatthew Dillon#				ENHANCEMENTS	 			#
69b29c40aSMatthew Dillon#########################################################################
79b29c40aSMatthew Dillon
89b29c40aSMatthew Dillon# These targets are now obsolete and should not be used
99b29c40aSMatthew Dillon#
109b29c40aSMatthew Dilloninstaller_release: warning release
119b29c40aSMatthew Dilloninstaller_quickrel: warning quickrel
129b29c40aSMatthew Dilloninstaller_realquickrel: warning realquickrel
139b29c40aSMatthew Dilloninstaller_fetch: warning fetch
14cc224c64SJoerg Sonnenberger
15bce110a5SMatthew Dillon.if make(installer_release) || make(installer_quickrel) || make(installer_realquickrel) || make(installer_fetch)
16cc224c64SJoerg SonnenbergerWITH_INSTALLER=
17cc224c64SJoerg Sonnenberger.endif
18cc224c64SJoerg Sonnenberger
199b29c40aSMatthew Dillon# New method e.g. 'make installer fetch'.  A series of enhancement
209b29c40aSMatthew Dillon# targes may be specified which set make variables which enhance
219b29c40aSMatthew Dillon# the build in various ways.
229b29c40aSMatthew Dillon#
23*3f279b9eSSascha Wildnergui installer:
249b29c40aSMatthew Dillon
259b29c40aSMatthew Dillonwarning:
269b29c40aSMatthew Dillon	@echo "WARNING: The installer_* targets are now obsolete, please"
279b29c40aSMatthew Dillon	@echo "use 'make installer blah' instead of 'make installer_blah'"
289b29c40aSMatthew Dillon	@echo ""
299b29c40aSMatthew Dillon	@echo "will continue in 10 seconds"
309b29c40aSMatthew Dillon	@sleep 10
319b29c40aSMatthew Dillon
32*3f279b9eSSascha Wildner.if make(gui)
33*3f279b9eSSascha WildnerWITH_GUI=
34*3f279b9eSSascha Wildner.endif
359b29c40aSMatthew Dillon.if make(installer)
369b29c40aSMatthew DillonWITH_INSTALLER=
379b29c40aSMatthew Dillon.endif
389b29c40aSMatthew Dillon
399b29c40aSMatthew Dillon#########################################################################
409b29c40aSMatthew Dillon#				 SETUP		 			#
419b29c40aSMatthew Dillon#########################################################################
429b29c40aSMatthew Dillon
436ca9a59cSMatthew DillonISODIR ?= /usr/release
446ca9a59cSMatthew DillonISOROOT = ${ISODIR}/root
456ca9a59cSMatthew DillonOBJSYS= ${.OBJDIR}/../sys
461d3eb8c5SMatthew DillonKERNCONF ?= GENERIC VKERNEL
476ca9a59cSMatthew Dillon
48cc224c64SJoerg SonnenbergerPKGSRC_PREFIX?=		/usr/pkg
49bce110a5SMatthew DillonPKGBIN_PKG_ADD?=	${PKGSRC_PREFIX}/sbin/pkg_add
5095b64753SMatthew DillonPKGBIN_PKG_DELETE?=	${PKGSRC_PREFIX}/sbin/pkg_delete
51c791834fSJoerg SonnenbergerPKGBIN_PKG_ADMIN?=	${PKGSRC_PREFIX}/sbin/pkg_admin
52bce110a5SMatthew DillonPKGBIN_MKISOFS?=	${PKGSRC_PREFIX}/bin/mkisofs
53bce110a5SMatthew DillonPKGSRC_PKG_PATH?=	${ISODIR}/packages
54bce110a5SMatthew DillonPKGSRC_DB?=		/var/db/pkg
55356095dbSMatthew DillonPKGSRC_BOOTSTRAP_URL?=	http://pkgbox.dragonflybsd.org/DragonFly-pkgsrc-packages/i386/1.12.0-RELEASE-BUILD
56cc224c64SJoerg Sonnenberger
572157278dSSimon SchubertENVCMD?=	env
58cc224c64SJoerg SonnenbergerTAR?=	tar
59cc224c64SJoerg Sonnenberger
60356095dbSMatthew DillonPKGSRC_CDRECORD?=	cdrtools-ossdvd-2.01.1.36nb2.tgz
61356095dbSMatthew DillonPKGSRC_BOOTSTRAP_KIT?=	bootstrap-kit-20080211
624b08f3dfSMatthew DillonCVSUP_BOOTSTRAP_KIT?=	cvsup-bootstrap-20070716
63bce110a5SMatthew Dillon
6495b64753SMatthew Dillon# Default packages to be installed on the release ISO.
6595b64753SMatthew Dillon#
66356095dbSMatthew DillonPKGSRC_PACKAGES?=	cdrtools-ossdvd-2.01.1.36nb2.tgz
678188de86SMatthew Dillon
6895b64753SMatthew Dillon# Even though buildiso wipes the packages, our check target has to run
6995b64753SMatthew Dillon# first and old packages (listed as they appear in pkg_info) must be
7095b64753SMatthew Dillon# cleaned out in order for the pkg_add -n test we use in the check target
7195b64753SMatthew Dillon# to operate properly.
7295b64753SMatthew Dillon#
73356095dbSMatthew DillonOLD_PKGSRC_PACKAGES?= cdrtools-2.01.01.27nb1 cdrecord-2.00.3nb2 \
74356095dbSMatthew Dillon		      bootstrap-kit-20070205
7595b64753SMatthew Dillon
768188de86SMatthew Dillon# Specify which root skeletons are required, and let the user include
778188de86SMatthew Dillon# their own.  They are copied into ISODIR during the `pkgcustomizeiso'
788188de86SMatthew Dillon# target; each overwrites the last.
798188de86SMatthew Dillon#
808188de86SMatthew DillonREQ_ROOTSKELS= ${.CURDIR}/root
81cc224c64SJoerg SonnenbergerROOTSKELS?=	${REQ_ROOTSKELS}
82cc224c64SJoerg Sonnenberger
83*3f279b9eSSascha Wildner.if defined(WITH_GUI)
84*3f279b9eSSascha WildnerISOFILE?=		${ISODIR}/dfly-gui.iso
85*3f279b9eSSascha WildnerPKGSRC_PACKAGES+=	modular-xorg-apps \
86*3f279b9eSSascha Wildner			modular-xorg-drivers \
87*3f279b9eSSascha Wildner			modular-xorg-fonts \
88*3f279b9eSSascha Wildner			modular-xorg-libs \
89*3f279b9eSSascha Wildner			fluxbox
90*3f279b9eSSascha WildnerROOTSKELS+=		${.CURDIR}/gui
91*3f279b9eSSascha Wildner.endif
92*3f279b9eSSascha Wildner
93cc224c64SJoerg Sonnenberger.if defined(WITH_INSTALLER)
94356095dbSMatthew Dillon# note: the old dfuibe_install and curses depend on the old gettext and
95356095dbSMatthew Dillon# must be removed for the old gettext to be removed.  The new dfuibe install
96356095dbSMatthew Dillon# and curses are named the same as the old.
97356095dbSMatthew Dillon#
98356095dbSMatthew DillonOLD_PKGSRC_PACKAGES+=	dfuibe_installer-1.1.6 gettext-lib-0.14.5 \
99356095dbSMatthew Dillon			dfuibe_installer-1.1.7nb1 dfuife_curses-1.5
10095b64753SMatthew DillonPKGSRC_PACKAGES+=	dfuibe_installer-1.1.7nb1.tgz dfuife_curses-1.5.tgz
101356095dbSMatthew DillonPKGSRC_PACKAGES+=	gettext-lib-0.14.6.tgz gettext-tools-0.14.6nb1.tgz
102356095dbSMatthew DillonPKGSRC_PACKAGES+=	libaura-3.1.tgz libdfui-4.2.tgz libinstaller-5.1.tgz
1032b990685SMatthew DillonROOTSKELS+=		${.CURDIR}/installer
104cc224c64SJoerg Sonnenberger.endif
1058188de86SMatthew Dillon
106*3f279b9eSSascha WildnerISOFILE ?= ${ISODIR}/dfly.iso
107*3f279b9eSSascha Wildner
1085b22b655SMatthew Dillon# note: we use the '${NRLOBJDIR}/nrelease' construct, that is we add
1095b22b655SMatthew Dillon# the additional '/nrelease' manually, as a safety measure.
1105b22b655SMatthew Dillon#
1115b22b655SMatthew DillonNRLOBJDIR?= /usr/obj
1125b22b655SMatthew Dillon
113acc392b5SJoerg SonnenbergerWORLD_CCVER ?= ${CCVER}
114acc392b5SJoerg SonnenbergerKERNEL_CCVER ?= ${CCVER}
115acc392b5SJoerg Sonnenberger
1168188de86SMatthew Dillon#########################################################################
1178188de86SMatthew Dillon#				BASE ISO TARGETS 			#
1188188de86SMatthew Dillon#########################################################################
1196ca9a59cSMatthew Dillon
1208188de86SMatthew Dillonrelease:	check clean buildworld1 buildkernel1 \
12119d86faaSMatthew Dillon		buildiso syssrcs customizeiso mklocatedb mkiso
1226ca9a59cSMatthew Dillon
1238188de86SMatthew Dillonquickrel:	check clean buildworld2 buildkernel2 \
12419d86faaSMatthew Dillon		buildiso syssrcs customizeiso mklocatedb mkiso
1258188de86SMatthew Dillon
12619d86faaSMatthew Dillonrealquickrel:	check clean buildiso syssrcs customizeiso mklocatedb mkiso
1276ca9a59cSMatthew Dillon
1289b29c40aSMatthew Dillonquick:		quickrel
1299b29c40aSMatthew Dillon
1309b29c40aSMatthew Dillonrealquick:	realquickrel
1319b29c40aSMatthew Dillon
1329b29c40aSMatthew Dillon#########################################################################
1339b29c40aSMatthew Dillon#			   CORE SUPPORT TARGETS 			#
1349b29c40aSMatthew Dillon#########################################################################
1359b29c40aSMatthew Dillon
136d2582113SChris Presseycheck:
137bce110a5SMatthew Dillon.if !exists(${PKGBIN_PKG_ADD})
138bce110a5SMatthew Dillon	@echo "Unable to find ${PKGBIN_PKG_ADD}.  You can use the following"
139bce110a5SMatthew Dillon	@echo "command to bootstrap pkgsrc:"
140bce110a5SMatthew Dillon	@echo "    make pkgsrc_bootstrap"
141bce110a5SMatthew Dillon	@exit 1
142bce110a5SMatthew Dillon.endif
14395b64753SMatthew Dillon.for PKG in ${OLD_PKGSRC_PACKAGES}
14495b64753SMatthew Dillon	@${ENVCMD} PKG_PATH=${PKGSRC_PKG_PATH} ${PKGBIN_PKG_DELETE} -K ${ISOROOT}/var/db/pkg ${PKG} > /dev/null 2>&1 || exit 0
14595b64753SMatthew Dillon.endfor
146bce110a5SMatthew Dillon.for PKG in ${PKGSRC_PACKAGES}
147a0b76df4SMatthew Dillon	@${ENVCMD} PKG_PATH=${PKGSRC_PKG_PATH} ${PKGBIN_PKG_ADD} -K ${ISOROOT}/var/db/pkg -n ${PKG} > /dev/null 2>&1 || \
148cbbd7681SSascha Wildner		(echo "Unable to find ${PKG}, use the following command to fetch required packages:"; echo "    make [installer] fetch"; exit 1)
149bce110a5SMatthew Dillon.endfor
150bce110a5SMatthew Dillon.if !exists(${PKGBIN_MKISOFS})
151bce110a5SMatthew Dillon	@echo "mkisofs is not installed.  It is part of the cdrecord package."
152bce110a5SMatthew Dillon	@echo "You can install it with:"
153bce110a5SMatthew Dillon	@echo "    make pkgsrc_cdrecord"
154bce110a5SMatthew Dillon	@exit 1
155bce110a5SMatthew Dillon.endif
1560a1628e7SMatthew Dillon.if !exists(${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
1570a1628e7SMatthew Dillon	@echo "The pkgsrc bootstrap kit is not installed.  You can install it with:"
158cbbd7681SSascha Wildner	@echo "    make [installer] fetch"
1590a1628e7SMatthew Dillon	@exit 1
1600a1628e7SMatthew Dillon.endif
1610a1628e7SMatthew Dillon.if !exists(${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}.tgz)
1620a1628e7SMatthew Dillon	@echo "The cvsup bootstrap kit is not installed.  You can install it with:"
163cbbd7681SSascha Wildner	@echo "    make [installer] fetch"
1640a1628e7SMatthew Dillon	@exit 1
1650a1628e7SMatthew Dillon.endif
1662e3f8f38SMatthew Dillon
167588a679cSSimon Schubertbuildworld1 buildworld2:
168588a679cSSimon Schubert	cd ${.CURDIR}/..; CCVER=${WORLD_CCVER} make ${.TARGET:C/build(.*)2/quick\1/:C/1//}
1696ca9a59cSMatthew Dillon
170588a679cSSimon Schubertbuildkernel1 buildkernel2:
171588a679cSSimon Schubert	cd ${.CURDIR}/..; \
172588a679cSSimon Schubert	first=; \
173588a679cSSimon Schubert	for kernconf in ${KERNCONF}; do \
174588a679cSSimon Schubert		CCVER=${KERNEL_CCVER} make ${.TARGET:C/build(.*)2/quick\1/:C/1//} \
175588a679cSSimon Schubert			KERNCONF=$${kernconf} \
176588a679cSSimon Schubert			$${first:+-DNO_MODULES}; \
177588a679cSSimon Schubert		first=done; \
178588a679cSSimon Schubert	done
1796ca9a59cSMatthew Dillon
1805b22b655SMatthew Dillon# note that we do not want to mess with any /usr/obj directories not related
1815b22b655SMatthew Dillon# to buildworld, buildkernel, or nrelease, so we must supply the proper
1825b22b655SMatthew Dillon# MAKEOBJDIRPREFIX for targets that are not run through the buildworld and
1835b22b655SMatthew Dillon# buildkernel mechanism.
1845b22b655SMatthew Dillon#
1856ca9a59cSMatthew Dillonbuildiso:
1866ca9a59cSMatthew Dillon	if [ ! -d ${ISOROOT} ]; then mkdir -p ${ISOROOT}; fi
1875b22b655SMatthew Dillon	if [ ! -d ${NRLOBJDIR}/nrelease ]; then mkdir -p ${NRLOBJDIR}/nrelease; fi
1886ca9a59cSMatthew Dillon	( cd ${.CURDIR}/..; make DESTDIR=${ISOROOT} installworld )
189ab64cf06SSimon Schubert	( cd ${.CURDIR}/../etc; MAKEOBJDIRPREFIX=${NRLOBJDIR}/nrelease \
190ab64cf06SSimon Schubert		make -m ${.CURDIR}/../share/mk DESTDIR=${ISOROOT} distribution )
191a0b76df4SMatthew Dillon	chroot ${ISOROOT} /usr/bin/newaliases
19221aa02d0SChris Pressey	cpdup ${ISOROOT}/etc ${ISOROOT}/etc.hdd
193588a679cSSimon Schubert	cd ${.CURDIR}/..; \
194588a679cSSimon Schubert	first=; \
195588a679cSSimon Schubert	for kernconf in ${KERNCONF}; do \
196588a679cSSimon Schubert		make DESTDIR=${ISOROOT} \
197588a679cSSimon Schubert			installkernel KERNCONF=$${kernconf} \
198588a679cSSimon Schubert			$${first:+DESTKERNNAME=kernel.$${kernconf}} \
199588a679cSSimon Schubert			$${first:+-DNO_MODULES}; \
200588a679cSSimon Schubert		first=done; \
201588a679cSSimon Schubert	done
202c5c5e6fcSSimon Schubert	ln -s kernel ${ISOROOT}/kernel.BOOTP
2036ca9a59cSMatthew Dillon	mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.local.dist -p ${ISOROOT}/usr/local/
2046ca9a59cSMatthew Dillon	mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
2056ca9a59cSMatthew Dillon	dev_mkdb -f ${ISOROOT}/var/run/dev.db ${ISOROOT}/dev
2068188de86SMatthew Dillon
20719d86faaSMatthew Dillon# Include kernel sources on the release CD (~14MB)
20819d86faaSMatthew Dillon#
20919d86faaSMatthew Dillonsyssrcs:
21066b79064SMatthew Dillon.if !defined(WITHOUT_SRCS)
21166b79064SMatthew Dillon	( cd ${.CURDIR}/../..; tar --exclude CVS -cf - src/Makefile src/Makefile.inc1 src/sys | bzip2 -9 > ${ISOROOT}/usr/src-sys.tar.bz2 )
21266b79064SMatthew Dillon.endif
21319d86faaSMatthew Dillon
2148188de86SMatthew Dilloncustomizeiso:
2150a1628e7SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; tar xzpf ${CVSUP_BOOTSTRAP_KIT}.tgz)
2168188de86SMatthew Dillon.for ROOTSKEL in ${ROOTSKELS}
2178188de86SMatthew Dillon	cpdup -X cpignore -o ${ROOTSKEL} ${ISOROOT}
2188188de86SMatthew Dillon.endfor
219f6c08bceSMatthew Dillon	rm -rf ${ISOROOT}/tmp/bootstrap ${ISOROOT}/usr/obj/pkgsrc
22020585f87SMatthew Dillon	cd ${ISOROOT}; tar xvzpf ${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}.tgz
2210a1628e7SMatthew Dillon	cp -p ${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}/usr/local/bin/cvsup ${ISOROOT}/usr/local/bin/cvsup
222c751e497SSascha Wildner	cp -p ${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}/usr/local/man/man1/cvsup.1 ${ISOROOT}/usr/local/man/man1/cvsup.1
223d08963d3SMatthew Dillon	rm -rf ${ISOROOT}/tmp/bootstrap ${ISOROOT}/usr/obj/pkgsrc
2248188de86SMatthew Dillon	rm -rf `find ${ISOROOT} -type d -name CVS -print`
22521aa02d0SChris Pressey	rm -rf ${ISOROOT}/usr/local/share/pristine
2267249926bSMatthew Dillon	pwd_mkdb -p -d ${ISOROOT}/etc ${ISOROOT}/etc/master.passwd
2274fba3387SChris Pressey.for UPGRADE_ITEM in Makefile			\
2284fba3387SChris Pressey		     etc.${MACHINE_ARCH} 	\
2294fba3387SChris Pressey		     isdn/Makefile		\
2304fba3387SChris Pressey		     rc.d/Makefile		\
2314fba3387SChris Pressey		     periodic/Makefile		\
2324fba3387SChris Pressey		     periodic/daily/Makefile	\
2334fba3387SChris Pressey		     periodic/security/Makefile	\
2344fba3387SChris Pressey		     periodic/weekly/Makefile	\
2354fba3387SChris Pressey		     periodic/monthly/Makefile
2364fba3387SChris Pressey	cp -R ${.CURDIR}/../etc/${UPGRADE_ITEM} ${ISOROOT}/etc/${UPGRADE_ITEM}
2374fba3387SChris Pressey.endfor
238fb92f9a7SSascha Wildner	# There seems to be no reliable way to install a package to a target
239fb92f9a7SSascha Wildner	# directory prefix so we mount_null our package directory into the
240fb92f9a7SSascha Wildner	# ISO root and do the install chrooted.
24120585f87SMatthew Dillon	#
24220585f87SMatthew Dillon	mkdir ${ISOROOT}/tmp/packages
243fb92f9a7SSascha Wildner	mount_null -o ro ${PKGSRC_PKG_PATH} ${ISOROOT}/tmp/packages
24420585f87SMatthew Dillon.for PKG in ${PKGSRC_PACKAGES}
24590741959SThomas E. Spanjaard	${ENVCMD} PKG_PATH=/tmp/packages chroot ${ISOROOT} ${PKGBIN_PKG_ADD} -I ${PKG}
24620585f87SMatthew Dillon.endfor
247fb92f9a7SSascha Wildner	umount ${ISOROOT}/tmp/packages
248fb92f9a7SSascha Wildner	rmdir ${ISOROOT}/tmp/packages
249c791834fSJoerg Sonnenberger	find ${ISOROOT}${PKGSRC_DB} -name +CONTENTS -type f -exec sed -i '' -e 's,${ISOROOT},,' -- {} \;
25020585f87SMatthew Dillon	chroot ${ISOROOT} ${PKGBIN_PKG_ADMIN} rebuild
251*3f279b9eSSascha Wildner.if defined(WITH_GUI)
252*3f279b9eSSascha Wildner.for FONT in 75dpi 100dpi misc Type1 TTF
253*3f279b9eSSascha Wildner	chroot ${ISOROOT} /usr/pkg/bin/mkfontdir /usr/pkg/lib/X11/fonts/${FONT}
254*3f279b9eSSascha Wildner.endfor
255*3f279b9eSSascha Wildner.endif
2566ca9a59cSMatthew Dillon
2578398ca17SSascha Wildnermklocatedb:
2588398ca17SSascha Wildner	( find -s ${ISOROOT} -path ${ISOROOT}/tmp -or \
2598398ca17SSascha Wildner		-path ${ISOROOT}/usr/tmp -or -path ${ISOROOT}/var/tmp \
2608398ca17SSascha Wildner		-prune -o -print | sed -e 's#^${ISOROOT}##g' | \
2618398ca17SSascha Wildner		/usr/libexec/locate.mklocatedb \
2628398ca17SSascha Wildner		-presort >${ISOROOT}/var/db/locate.database )
2638398ca17SSascha Wildner
2646ca9a59cSMatthew Dillonmkiso:
265bce110a5SMatthew Dillon	( cd ${ISOROOT}; ${PKGBIN_MKISOFS} -b boot/cdboot -no-emul-boot \
266382f1ee3SMatthew Dillon		-R -J -V DragonFly -o ${ISOFILE} . )
2676ca9a59cSMatthew Dillon
2686ca9a59cSMatthew Dillonclean:
2696ca9a59cSMatthew Dillon	if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi
2708188de86SMatthew Dillon	if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}/*; fi
2715b22b655SMatthew Dillon	if [ -d ${NRLOBJDIR}/nrelease ]; then rm -rf ${NRLOBJDIR}/nrelease; fi
2726ca9a59cSMatthew Dillon
2736ca9a59cSMatthew Dillonrealclean:	clean
2743ebedc5eSMatthew Dillon	rm -rf ${OBJSYS}/${KERNCONF}
275bce110a5SMatthew Dillon	# do not use PKGSRC_PKG_PATH here, we do not want to destroy an
276bce110a5SMatthew Dillon	# override location.
277bce110a5SMatthew Dillon	if [ -d ${ISODIR}/packages ]; then rm -rf ${ISODIR}/packages; fi
2786ca9a59cSMatthew Dillon
279cc224c64SJoerg Sonnenbergerfetch:
2809b29c40aSMatthew Dillon	@if [ ! -d ${PKGSRC_PKG_PATH} ]; then mkdir -p ${PKGSRC_PKG_PATH}; fi
281bce110a5SMatthew Dillon.for PKG in ${PKGSRC_PACKAGES}
282a0b76df4SMatthew Dillon	@${ENVCMD} PKG_PATH=${PKGSRC_PKG_PATH} ${PKGBIN_PKG_ADD} -K ${ISOROOT}/var/db/pkg -n ${PKG} > /dev/null 2>&1 || \
283bce110a5SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; echo "Fetching ${PKGSRC_BOOTSTRAP_URL}/${PKG}"; fetch ${PKGSRC_BOOTSTRAP_URL}/${PKG})
284bce110a5SMatthew Dillon.endfor
285bce110a5SMatthew Dillon.if !exists(${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
286bce110a5SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; fetch ${PKGSRC_BOOTSTRAP_URL}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
287bce110a5SMatthew Dillon.endif
2880a1628e7SMatthew Dillon.if !exists(${PKGSRC_PKG_PATH}/${CVSUP_BOOTSTRAP_KIT}.tgz)
2890a1628e7SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; fetch ${PKGSRC_BOOTSTRAP_URL}/${CVSUP_BOOTSTRAP_KIT}.tgz)
2900a1628e7SMatthew Dillon.endif
291bce110a5SMatthew Dillon
292bce110a5SMatthew Dillonpkgsrc_bootstrap:
293bce110a5SMatthew Dillon	mkdir -p ${PKGSRC_PKG_PATH}
294bce110a5SMatthew Dillon.if !exists(${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
295bce110a5SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; fetch ${PKGSRC_BOOTSTRAP_URL}/${PKGSRC_BOOTSTRAP_KIT}.tgz)
296bce110a5SMatthew Dillon.endif
297bce110a5SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}; tar xzpf ${PKGSRC_BOOTSTRAP_KIT}.tgz)
298bce110a5SMatthew Dillon	(cd ${PKGSRC_PKG_PATH}/${PKGSRC_BOOTSTRAP_KIT}/bootstrap; ./bootstrap)
299bce110a5SMatthew Dillon
300bce110a5SMatthew Dillonpkgsrc_cdrecord:
301bce110a5SMatthew Dillon.if !exists (${PKGBIN_MKISOFS})
30220585f87SMatthew Dillon	${PKGBIN_PKG_ADD} ${PKGSRC_PKG_PATH}/cdrtools*
303bce110a5SMatthew Dillon.endif
304cc224c64SJoerg Sonnenberger
305588a679cSSimon Schubert
306cc224c64SJoerg Sonnenberger.PHONY: all release installer_release quickrel installer_quickrel realquickrel
3079b29c40aSMatthew Dillon.PHONY: installer_fetch installer
3089b29c40aSMatthew Dillon.PHONY: quick realquick
309cc224c64SJoerg Sonnenberger.PHONY: installer_realquickrel check buildworld1 buildworld2
310cc224c64SJoerg Sonnenberger.PHONY: buildkernel1 buildkernel2 buildiso customizeiso mklocatedb mkiso
311d5c58845SMatthew Dillon.PHONY: clean realclean fetch
312cc224c64SJoerg Sonnenberger
3136ca9a59cSMatthew Dillon.include <bsd.prog.mk>
314