From 2ac4be3a6b52a266a571fda10456fd350c1d20d0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 11 Oct 2016 15:57:17 -0300 Subject: Remove nanobsd related code from build scripts --- .../templates/core_pkg/base-nanobsd/exclude_files | 31 ------------ .../core_pkg/base-nanobsd/metadir/+DEINSTALL | 21 -------- .../templates/core_pkg/base-nanobsd/metadir/+DESC | 3 -- .../core_pkg/base-nanobsd/metadir/+INSTALL | 59 ---------------------- .../core_pkg/base-nanobsd/metadir/+MANIFEST | 15 ------ tools/templates/core_pkg/base-nanobsd/pkg-plist | 2 - 6 files changed, 131 deletions(-) delete mode 100644 tools/templates/core_pkg/base-nanobsd/exclude_files delete mode 100644 tools/templates/core_pkg/base-nanobsd/metadir/+DEINSTALL delete mode 100644 tools/templates/core_pkg/base-nanobsd/metadir/+DESC delete mode 100644 tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL delete mode 100644 tools/templates/core_pkg/base-nanobsd/metadir/+MANIFEST delete mode 100644 tools/templates/core_pkg/base-nanobsd/pkg-plist (limited to 'tools/templates') diff --git a/tools/templates/core_pkg/base-nanobsd/exclude_files b/tools/templates/core_pkg/base-nanobsd/exclude_files deleted file mode 100644 index 0cd0f41..0000000 --- a/tools/templates/core_pkg/base-nanobsd/exclude_files +++ /dev/null @@ -1,31 +0,0 @@ -./boot.config -./boot/loader.conf -./boot/loader.conf.local -./boot/modules/bwi_v3_ucode.ko -./cf/conf/config.xml -./cf/conf/enableserial_force -./cf/conf/trigger_initial_wizard -./conf.default/config.xml -./etc/bogons -./etc/bogonsv6 -./etc/dh-parameters.1024 -./etc/dh-parameters.2048 -./etc/dh-parameters.4096 -./etc/fstab -./etc/group -./etc/hosts -./etc/master.passwd -./etc/passwd -./etc/platform -./etc/pwd.db -./etc/rc.conf -./etc/spwd.db -./etc/syslog.conf -./media -./mnt -./proc -./sys -./tmp -./usr/local/share/%%PRODUCT_NAME%%/base.mtree -./usr/local/share/%%PRODUCT_NAME%%/base.txz -./usr/local/etc/pkg/repos/%%PRODUCT_NAME%%.conf diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+DEINSTALL b/tools/templates/core_pkg/base-nanobsd/metadir/+DEINSTALL deleted file mode 100644 index 715125f..0000000 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+DEINSTALL +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -if [ "${2}" != "DEINSTALL" ]; then - exit 0 -fi - -echo "===> Keeping a copy of current version mtree" - -# Check if there is a current mtree to be saved -if [ ! -f /usr/local/share/%%PRODUCT_NAME%%/base.mtree ]; then - echo "===> Current mtree file not found" - exit 1 -fi - -[ -f /usr/local/share/%%PRODUCT_NAME%%/base.mtree.previous ] \ - && rm -f /usr/local/share/%%PRODUCT_NAME%%/base.mtree.previous - -cp -f /usr/local/share/%%PRODUCT_NAME%%/base.mtree \ - /usr/local/share/%%PRODUCT_NAME%%/base.mtree.previous - -exit $? diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+DESC b/tools/templates/core_pkg/base-nanobsd/metadir/+DESC deleted file mode 100644 index 34b9159..0000000 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+DESC +++ /dev/null @@ -1,3 +0,0 @@ -%%PRODUCT_NAME%% core files - -WWW: %%PRODUCT_URL%% diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL deleted file mode 100644 index a2d9d82..0000000 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh - -if [ "${2}" != "POST-INSTALL" ]; then - exit 0 -fi - -if [ ! -f /usr/local/share/%%PRODUCT_NAME%%/base.txz ]; then - echo "===> ERROR: base tarball not found!" - exit 1 -fi - -echo nanobsd > /etc/platform - -echo "===> Removing schg flag from base files" - -# Cleanup schg flags -chflags -R noschg \ - /boot \ - /bin \ - /sbin \ - /usr/bin \ - /usr/sbin \ - /libexec \ - /lib \ - /usr/lib >/dev/null 2>&1 - -echo "===> Extracting new base tarball" - -# Install new base files -tar -C / -xJPUf /usr/local/share/%%PRODUCT_NAME%%/base.txz - -echo "===> Removing static obsoleted files" - -# Set IFS to \n to deal with filenames containing spaces -oIFS=${IFS} -IFS=" -" - -PLATFORM=$(cat /etc/platform) - -# Process obsolete files -if [ -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then - for f in $(cat /etc/%%PRODUCT_NAME%%.obsoletedfiles); do - if [ -n "${f}" -a -d "${f}" ]; then - chflags -R noschg "${f}" - rm -rf "${f}" - elif [ -n "${f}" -a -f "${f}" ]; then - chflags noschg "${f}" - rm -f "${f}" - elif [ -n "${f}" -a -L "${f}" ]; then - rm -f "${f}" - fi - done -fi - -# Restore IFS -IFS=${oIFS} - -exit 0 diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+MANIFEST b/tools/templates/core_pkg/base-nanobsd/metadir/+MANIFEST deleted file mode 100644 index 3ec1089..0000000 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+MANIFEST +++ /dev/null @@ -1,15 +0,0 @@ -name: "%%PRODUCT_NAME%%-base-nanobsd" -version: "%%VERSION%%" -origin: "security/%%PRODUCT_NAME%%-base-nanobsd" -comment: <