#!/usr/bin/env zsh
# shellcheck shell=bash
## configuration file for devuan-minimal-docker blend -- Chimaera release

# -o options to apt-get install. 
# APT::Get::Mark-Auto=true
# APT::Get::AllowUnauthenticated=true
# Dpkg::Progress and  Dpkg::Progress-Fancy=true
#
# The following would be useful if pulling old releases
#core_packages_option(-o Acquire::Check-Valid-Until=false -o Acquire::AllowReleaseInfoChange=true)
#base_packages_option(-o Acquire::Check-Valid-Until=false -o Acquire::AllowReleaseInfoChange=true)
#extra_packages_option(-o Acquire::Check-Valid-Until=false -o Acquire::AllowReleaseInfoChange=true)


# Override base_packages and core_packages from: lib/libdevuansdk/config
core_packages=()
base_packages=()
extra_packages=()

# these are the differences between debian and devuan slim images that are not in 'required'.
# If they are in /usr/share/debootstrap/scripts/ceres it doesn't have to be here.
# devuan_required="devuan-keyring sysvinit-core"
#
base_packages=(
	bootlogd
	innserv
	eudev
	)

# bootstrap_stage4
extra_packages=(
	vim-tiny
		)


### now we include all the package sets
#base_packages+=(
#	$minimal_base_packages
#	$minimal_admin_packages
#	$minimal_editors_packages
#	$minimal_net_packages
#	$minimal_prod_packages
#	$minimal_devel_packages
#	$minimal_games_packages
#	$minimal_a11y_packages
#	$minimal_media_packages
#	$minimal_misc_packages
#)

## 
## definition of package sets
##

### base package set
minimal_base_packages+=(
	acpi
	acpi-support-base
	acpid
	acpi-fakekey
	at
	bash
	bash-completion
	bc
	busybox
	console-common
	console-data
	console-setup
	console-setup-linux
	coreutils
	dash
	dc
	dialog
	discover
	dselect
	file
	groff-base
	$grubversion
	info
	kbd
	laptop-detect
	locales
	lsof
	syslinux
	util-linux-locales
	zsh
)

## admin package set 
minimal_admin_packages+=(
	cryptsetup
	cryptsetup-bin
	debootstrap
	dosfstools
	entr
	gddrescue
	gdisk
	htop
	iftop
	iotop
	iw
	lvm2
	mdadm
	mtr-tiny
	multitail
	ncdu
	parted 
	pciutils
	psmisc
	sudo
	time
	usbutils
	wavemon 
	wireless-tools
	wpasupplicant
	
)

## editors package set 
minimal_editors_packages+=(
	ed
	nano
	vim-tiny
	zile
)


## networking package set 
minimal_net_packages+=(
	bind9-host
#	bittornado	### not in chimaera
	ceni
	curl
	dnsutils
	edbrowse
	fetchmail
	ftp
	geoip-bin
	haveged
	irssi
	lftp
	links2
	lrzsz
	mcabber
	minicom
	mosh
	msmtp
	mutt
	netcat
	net-tools
	nfacct
#	nrss	# not in beowulf. Use rsstail instead.
	openssh-client
	openssh-server
	procmail
	rfkill
	rsstail
	rsync
#	setnet  # use ascii deb package for beowulf and chimaera
	telnet
	traceroute
	transmission-cli
	w3m
	wget	
	whois
)


## productivity package set 
minimal_prod_packages+=(
	abook
	apcalc
	aspell
	aspell-en
    calcurse
    clex
    dvtm
	fbi
    fbterm
    ghostscript
    gnupg
	gnupg2
	gnupg-agent
    mc
    parallel
	poppler-utils
	rpl
	rename
    sc
    screen
    taskwarrior
    tmux	
)

## programming package set
minimal_devel_packages+=(
	tcc
	libc6-dev
	m4
	patch
	perl
	perl-base
	perl-modules-5.36
	python3.11-minimal
	gawk
	guile-3.0
	guile-3.0-libs
)

## games package set 
# minimal_games_packages+=(
# 	bastet
#     bombardier
#     bsdgames
#     cavezofphear
#     crawl
#     curseofwar
#     empire
#     freesweep
#     gnuchess
#     greed
#     matanza
#     moria
#     nethack-console
#     ninvaders
#     omega-rpg
#     pacman4console
#     pente
#     sudoku
# )

## accessibility package set 
minimal_a11y_packages+=(
	beep
    brltty
	espeak
    espeakup
    yasr
)


## multimedia package set 
minimal_media_packages+=(
	alsa-utils
	caca-utils
	fmtools
    hasciicam
    imagemagick
    jhead
    moc
#    radio		# Not in beowulf. Replaced with fmtools.
    sox	
)

## misc package set
minimal_misc_packages+=(
	cmatrix
	cowsay
	eject
	figlet
	fortunes-min
	fortune-mod
	gpm
	man-db
	manpages
	manpages-dev
	mlocate
#	termsaver		### not in chimaera
	toilet
	toilet-fonts
	ttyrec	
	unzip
)



#### TODO: REPLACE twidge (twitter client)
#### ADDED: geoip-bin

#extra_packages+=(
#	atmel-firmware
#	bluez-firmware
#	dahdi-firmware-nonfree
#	firmware-amd-graphics
#	firmware-ath9k-htc
#	firmware-atheros
#	firmware-bnx2
#	firmware-bnx2x
#	firmware-brcm80211
#	firmware-cavium
##	firmware-crystalhd
#	firmware-intel-sound
#	firmware-intelwimax
##	firmware-ipw2x00	### These two exist but fail today.
##	firmware-ivtv		### ...they require EULA
#	firmware-iwlwifi
#	firmware-libertas
#	firmware-linux-free
#	firmware-linux-nonfree
#	firmware-myricom
#	firmware-netxen
#	firmware-qlogic
##	firmware-ralink
#	firmware-realtek
#	firmware-ti-connectivity
#	firmware-zd1211
#	refractainstaller-base
#	refractasnapshot-base
#)


#purge_packages=(
#	elinks
#	elinks-data
#	liberror-perl
#	libfsplib0
#	libtre5
#	openntpd
#	tasksel
#	tasksel-data
#)

#custom_deb_packages+=(
#	memtest86+_5.01-3.1_${arch}.deb
#	setnet_0.4+devuan1_all.deb
#)
