1#!/bin/sh 2 3# make-manifest.sh: create checksums and package descriptions for the installer 4# 5# Usage: make-manifest.sh foo1.txz foo2.txz ... 6# 7# The output file looks like this (tab-delimited): 8# foo1.txz SHA256-checksum Number-of-files foo1 Description Install-by-default 9# 10# $FreeBSD$ 11 12desc_base="Base system (MANDATORY)" 13desc_kernel="Kernel (MANDATORY)" 14desc_doc="Additional documentation" 15doc_default=off 16desc_games="Games (fortune, etc.)" 17desc_lib32="32-bit compatibility libraries" 18desc_ports="Ports tree" 19desc_src="System source code" 20desc_tests="Test suite" 21src_default=off 22tests_default=off 23 24for i in $*; do 25 echo "`basename $i` `sha256 -q $i` `tar tvf $i | wc -l | tr -d ' '` `basename $i .txz` \"`eval echo \\\$desc_$(basename $i .txz)`\" `eval echo \\\${$(basename $i .txz)_default:-on}`" 26done 27 28