summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authorkensmith <kensmith@FreeBSD.org>2004-09-24 02:10:06 +0000
committerkensmith <kensmith@FreeBSD.org>2004-09-24 02:10:06 +0000
commitcc56649e916bca78e81b6d18e9ef5942b7ae2205 (patch)
tree8251114dfe89f5be5124de0aa9b6302060ef7337 /release/Makefile
parent37b8ce6a5ce6c2c56684ba50a49c2e0931b61245 (diff)
downloadFreeBSD-src-cc56649e916bca78e81b6d18e9ef5942b7ae2205.zip
FreeBSD-src-cc56649e916bca78e81b6d18e9ef5942b7ae2205.tar.gz
Fix-ups for a few problems reported with how ports are handled in the
release: - run 'make index' as part of release build, INDEX* files in CVS no longer updated and likely to be removed from CVS soon - don't include README.html files in ports.tgz tarball because they cause cvsup problems for users later - put a copy of /usr/ports on disc2 that does include README.html files so users have access to them Reviewed by: ru (found one bug, several clean-up suggestions) Tested by: 'make release' MFC before: BETA6 build (this isn't likely to be tested in -current anyway...)
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile42
1 files changed, 37 insertions, 5 deletions
diff --git a/release/Makefile b/release/Makefile
index 1d15cda..84de135 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -142,6 +142,9 @@ NOPORTSATALL= YES
.endif
.endif
+#
+# Doing 'make index' in /usr/ports requires Perl.
+MAKEINDEXPORTS= lang/perl5.8
# By default, documentation (Handbook, FAQ, etc.) is built for all
# the languages. To speed up building, set the DOC_LANG to just
# the languages you need. (The language for the release notes is
@@ -413,6 +416,8 @@ release rerelease:
.if !defined(NOPORTS)
cd ${CHROOTDIR}/usr/ports && ${CVSPREFIX} cvs -R ${CVSARGS} -q \
update ${CVSCMDARGS} -P -d
+ rm -f ${CHROOTDIR}/tmp/.skip_ports_index \
+ ${CHROOTDIR}/tmp/.skip_ports_readmes
.endif
.if defined(DOMINIMALDOCPORTS) && ${DOMINIMALDOCPORTS} == "YES"
for i in ${MINIMALDOCPORTS}; do \
@@ -492,11 +497,26 @@ release rerelease:
echo " ${CROSSMAKE} ${WORLD_FLAGS} -DNOCLEAN buildworld && \\" >> ${_MK}
echo " touch /tmp/.world_done || exit 1" >> ${_MK}
echo "fi" >> ${_MK}
- echo "if [ ! -f /tmp/.skip_ports ]; then" >> ${_MK}
+ echo "if [ ! -f /tmp/.skip_ports_index ]; then" >> ${_MK}
+ echo " echo \">>> make index started on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
+ echo " for i in ${MAKEINDEXPORTS}" >> ${_MK}
+ echo " do" >> ${_MK}
+ echo " cd /usr/ports/\$${i}" >> ${_MK}
+ echo " env -i FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-no} PATH=$${PATH} \\" >> ${_MK}
+ echo " make all install clean BATCH=yes FORCE_PKG_REGISTER=yes" >> ${_MK}
+ echo " done" >> ${_MK}
+ echo " cd /usr/ports" >> ${_MK}
+ echo " rm -f INDEX*" >> ${_MK}
+ echo " make index -DINDEX_PRISTINE" >> ${_MK}
+ echo " rm -f INDEX.tmp" >> ${_MK}
+ echo " touch /tmp/.skip_ports_index" >> ${_MK}
+ echo " echo \">>> make index finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
+ echo "fi" >> ${_MK}
+ echo "if [ ! -f /tmp/.skip_ports_readmes ]; then" >> ${_MK}
echo " echo \">>> make readmes started on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
echo " cd /usr/ports" >> ${_MK}
echo " make ${PORTREADMES_FLAGS} readmes" >> ${_MK}
- echo " touch /tmp/.skip_ports" >> ${_MK}
+ echo " touch /tmp/.skip_ports_readmes" >> ${_MK}
echo " echo \">>> make readmes finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
echo "fi" >> ${_MK}
echo "cd /usr/src/release" >> ${_MK}
@@ -504,8 +524,11 @@ release rerelease:
echo "make \$${_RELTARGET}" >> ${_MK}
echo "echo \">>> make ${.TARGET} for ${TARGET} finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
chmod 755 ${_MK}
+.if defined(NOPORTS)
+ touch ${CHROOTDIR}/tmp/.skip_ports_index
+.endif
.if defined(NOPORTS) || defined(NOPORTREADMES)
- touch ${CHROOTDIR}/tmp/.skip_ports
+ touch ${CHROOTDIR}/tmp/.skip_ports_readmes
.endif
# Ensure md.ko is loaded if md(4) is not statically compiled into
# the kernel
@@ -516,6 +539,11 @@ clean:
rm -rf ${CRUNCH_TARGETS:S/$/_crunch/} release.[0-8] ${EXTRAS}
fetch-distfiles:
+ @for i in ${MAKEINDEXPORTS}; do \
+ cd ${CHROOTDIR}/usr/ports/$$i && \
+ make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
+ checksum-recursive ; \
+ done
@for i in ${DOCPORTS}; do \
cd ${CHROOTDIR}/usr/ports/$$i && \
make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
@@ -632,8 +660,8 @@ release.6:
@rm -rf ${RD}/dists/ports/ports*
@mkdir -p ${RD}/dists/ports
@echo rolling ports/ports tarball
- @tar --exclude CVS --exclude 'ports/distfiles/*' -czf \
- ${RD}/dists/ports/ports.tgz -C /usr ports
+ @tar --exclude CVS --exclude 'ports/distfiles/*' \
+ --exclude README.html -czf ${RD}/dists/ports/ports.tgz -C /usr ports
@cp ${.CURDIR}/scripts/ports-install.sh ${RD}/dists/ports/install.sh
@(cd ${RD}/dists/ports; \
rm -f CHECKSUM.MD5; \
@@ -887,6 +915,10 @@ cdrom.1:
@cp ${.CURDIR}/fixit.profile ${CD_DISC2}/.profile
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC1}/cdrom.inf
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
+.if !defined(NOPORTS)
+ @tar --exclude CVS --exclude 'ports/distfiles/*' -czf - \
+ -C /usr ports | (cd ${CD_DISC2}/usr; tar -xpBf -)
+.endif
.if !defined(NODOC)
@for i in ${DIST_DOCS_ARCH_INDEP}; do \
cp ${RND}/${RELNOTES_LANG}/$$i/article.txt \
OpenPOWER on IntegriCloud