Adjust the ${ISODIR}/.didbootstrap logic a little, add needed licenses.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 Feb 2009 20:15:52 +0000 (12:15 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 Feb 2009 20:15:52 +0000 (12:15 -0800)
Adjust the bootstrap logic a bit and add the following licenses to
the release build's mk.conf so the gui packages all build:  The
openmotif-license and the vim-license.

nrelease/Makefile

index b201897..b35caf8 100644 (file)
@@ -309,13 +309,23 @@ customizeiso:
        cp /etc/shells ${ISOROOT}/usr/pkgsrc/distfiles/.test || \
                mount_null ${ISODIR}/distfiles ${ISOROOT}/usr/pkgsrc/distfiles
        #
-       # Bootstrap, if not already installed
+       # Bootstrap, if not already installed, and added licenses needed
+       # for the gui release
        #
-       test -e ${ISODIR}/.didbootstrap ||      \
-           ${CHROOT_CMD} "cd /usr/pkgsrc/bootstrap;    \
+.if !exists (${ISODIR}/.didbootstrap)
+       ${CHROOT_CMD} "cd /usr/pkgsrc/bootstrap;    \
                ./bootstrap --workdir /usr/pkgobj/bootstrap/work"
+       echo ".ifdef BSD_PKG_MK # added by nrelease" \
+               >> ${ISOROOT}/usr/pkg/etc/mk.conf
+       echo "ACCEPTABLE_LICENSES+=openmotif-license" \
+               >> ${ISOROOT}/usr/pkg/etc/mk.conf
+       echo "ACCEPTABLE_LICENSES+=vim-license" \
+               >> ${ISOROOT}/usr/pkg/etc/mk.conf
+       echo ".endif                    # added by nrelease" \
+               >> ${ISOROOT}/usr/pkg/etc/mk.conf
        sync
        touch ${ISODIR}/.didbootstrap
+.endif
        #
        # Build and install packages, skip packages already installed
        #