summaryrefslogtreecommitdiffstats
path: root/tools/templates
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-10-11 15:57:17 -0300
committerRenato Botelho <renato@netgate.com>2016-10-11 15:57:17 -0300
commit2ac4be3a6b52a266a571fda10456fd350c1d20d0 (patch)
tree57a76d84b1eeaa803587fa8d539e6ba73dcd570a /tools/templates
parentbd4e01942dec4788eff97b744907f8c93fdbdcaf (diff)
downloadpfsense-2ac4be3a6b52a266a571fda10456fd350c1d20d0.zip
pfsense-2ac4be3a6b52a266a571fda10456fd350c1d20d0.tar.gz
Remove nanobsd related code from build scripts
Diffstat (limited to 'tools/templates')
-rw-r--r--tools/templates/core_pkg/base-nanobsd/exclude_files31
-rw-r--r--tools/templates/core_pkg/base-nanobsd/metadir/+DEINSTALL21
-rw-r--r--tools/templates/core_pkg/base-nanobsd/metadir/+DESC3
-rw-r--r--tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL59
-rw-r--r--tools/templates/core_pkg/base-nanobsd/metadir/+MANIFEST15
-rw-r--r--tools/templates/core_pkg/base-nanobsd/pkg-plist2
6 files changed, 0 insertions, 131 deletions
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: <<EOD
-%%PRODUCT_NAME%% core files
-EOD
-maintainer: development@pfsense.org
-prefix: /usr/local
-deps: {
-"%%PRODUCT_NAME%%-rc": {origin: "security/%%PRODUCT_NAME%%-rc", version: "%%VERSION%%"},
-}
-categories [ security, ]
-licenselogic: single
-licenses: [ APACHE20, ]
-options: { }
diff --git a/tools/templates/core_pkg/base-nanobsd/pkg-plist b/tools/templates/core_pkg/base-nanobsd/pkg-plist
deleted file mode 100644
index f531fae..0000000
--- a/tools/templates/core_pkg/base-nanobsd/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-share/%%PRODUCT_NAME%%/base.txz
-share/%%PRODUCT_NAME%%/base.mtree
OpenPOWER on IntegriCloud