diff options
Diffstat (limited to 'bin/pkgimg.sh')
-rwxr-xr-x | bin/pkgimg.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/pkgimg.sh b/bin/pkgimg.sh index 0b40171..7286f2e 100755 --- a/bin/pkgimg.sh +++ b/bin/pkgimg.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # -set -eu +set -u export BASEDIR="$(cd $(dirname ${0})/../ && pwd)" export LIBDIR="${BASEDIR}/lib" @@ -24,6 +24,7 @@ export LIBDIR="${BASEDIR}/lib" source ${LIBDIR}/log.sh source ${LIBDIR}/pkg.sh source ${LIBDIR}/config.sh +source ${LIBDIR}/common.sh export PORTSDIR=${PORTSDIR:-${BASEDIR}/ports} export KEEP_BUILD=${KEEP_BUILD:-0} @@ -60,9 +61,18 @@ function main { fi done - dump_configs + linfo "Generating footprint file for ${installbase}" + footprint_dir ${installbase} > ${installbase}.footprint - linfo "Fakeroot filesystem available at ${installbase}" + linfo "Creating deployment tarball from ${installbase}" + tar -cf ${installbase}.tar -C ${installbase} ./* + + linfo "Compressing ${installbase}.tar" + xz -v ${installbase}.tar + + linfo "Fakeroot filesystem: ${installbase}" + linfo "Deployment tarball: ${installbase}.tar.xz" + linfo "Tarball footprint: ${installbase}.footprint" } main ${@} |