Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored package list for easier driver and common software management #211

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ if [ "$(id -u)" != "0" ]; then
fi

# Use find to locate base files and extract filenames directly, converting newlines to spaces
desktop_list=$(find packages -type f -name '*base*' -exec basename {} \; | tr '\n' ' ')
find packages -type f ! -name '*base*' ! -name '*common*' ! -name '*drivers*' -exec basename {} \; | sort -u | tr '\n' ' '

# Find all files in the desktop_config directory
desktop_config_list=$(find desktop_config -type f)

help_function()
{
printf "Usage: %s -d desktop -r release type\n" "$0"
Expand All @@ -26,7 +25,6 @@ help_function()
printf "\t-t Test: FreeBSD os packages\n"
exit 1 # Exit script after printing help
}

# Set mate and release to be default
export desktop="mate"
export build_type="release"
Expand Down Expand Up @@ -184,12 +182,16 @@ packages_software()
mkdir -p ${release}/var/cache/pkg
mount_nullfs ${packages_storage} ${release}/var/cache/pkg
mount -t devfs devfs ${release}/dev
packages="$(cat "${cwd}/packages/${desktop}")"
vital_packages="$(cat "${cwd}/packages/vital/${desktop}")"
de_packages="$(cat "${cwd}/packages/${desktop}")"
common_packages="$(cat "${cwd}/packages/common")"
drivers_packages="$(cat "${cwd}/packages/drivers")"
echo ${drivers_packages}
vital_de_packages="$(cat "${cwd}/packages/vital/${desktop}")"
vital_common_packages="$(cat "${cwd}/packages/vital/common")"
# shellcheck disable=SC2086
pkg -c ${release} install -y ${packages}
pkg -c ${release} install -y ${de_packages} ${common_packages} ${drivers_packages}
# shellcheck disable=SC2086
pkg -c ${release} set -y -v 1 ${vital_packages}
pkg -c ${release} set -y -v 1 ${vital_de_packages} ${vital_common_packages}
mkdir -p ${release}/proc
mkdir -p ${release}/compat/linux/proc
rm ${release}/etc/resolv.conf
Expand Down
27 changes: 27 additions & 0 deletions packages/common
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cups
cups-filters
drm-kmod
evolution
firefox
foomatic-db
fusefs-ext2
gbi
ghostbsd-fonts
ghostbsd-icons
ghostbsd-utils
ghostbsd-wallpapers
gnome-keyring
nss_mdns
pc-sysinstall
pkg
python
rhythmbox
shotwell
slick-greeter
system-config-printer
unzip
vlc
webrtc-audio-processing
xconfig
xorg-minimal
zip
16 changes: 16 additions & 0 deletions packages/drivers
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bwi-firmware-kmod
bwn-firmware-kmod
drm-kmod
egl-wayland
gstreamer1-plugins-neon
realtek-re-kmod
utouch-kmod
virtualbox-ose-additions
xf86-input-evdev
xf86-input-joystick
xf86-input-keyboard
xf86-input-mouse
xf86-input-synaptics
xf86-input-vmmouse
xf86-video-scfb
xf86-video-vesa
31 changes: 1 addition & 30 deletions packages/mate
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
brisk-menu
cups
cups-filters
cursor-dmz-theme
dconf-editor
drm-kmod
egl-wayland
evolution
firefox
foomatic-db
freedesktop-sound-theme
fusefs-ext2
gbi
ghostbsd-drivers
ghostbsd-fonts
ghostbsd-icons
ghostbsd-mate
ghostbsd-utils
gstreamer1-plugins-neon
nss_mdns
pc-sysinstall
pkg
plank
python
rhythmbox
shotwell
slick-greeter
station-tweak
system-config-printer
utouch-kmod
virtualbox-ose-additions
vlc
webrtc-audio-processing
xconfig
xf86-input-evdev
xorg-minimal
zip
station-tweak
11 changes: 11 additions & 0 deletions packages/vital/common
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cups
ghostbsd-fonts
ghostbsd-icons
ghostbsd-utils
ghostbsd-wallpapers
gnome-keyring
nss_mdns
pkg
slick-greeter
webrtc-audio-processing
xorg-minimal
7 changes: 0 additions & 7 deletions packages/vital/mate
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
brisk-menu
cups
cursor-dmz-theme
freedesktop-sound-theme
ghostbsd-icons
ghostbsd-mate
ghostbsd-utils
nss_mdns
pkg
plank
slick-greeter
station-tweak
webrtc-audio-processing
xconfig
xorg-minimal
12 changes: 0 additions & 12 deletions packages/vital/xfce
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
cups
ffmpegthumbnailer
ghostbsd-drivers
ghostbsd-fonts
ghostbsd-icons
ghostbsd-utils
ghostbsd-wallpapers
ghostbsd-xfce4
ghostbsd-xfce-settings
ghostbsd-xfce-themes
gnome-keyring
pkg
slick-greeter
webrtc-audio-processing
xconfig
xorg-minimal
38 changes: 2 additions & 36 deletions packages/xfce
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
cups
cups-filters
drm-kmod
egl-wayland
evince-lite
evolution
ffmpegthumbnailer
firefox
foomatic-db
fusefs-ext2
gbi
ghostbsd-drivers
ghostbsd-fonts
ghostbsd-icons
ghostbsd-utils
ghostbsd-wallpapers
ghostbsd-xfce4
ghostbsd-xfce-settings
ghostbsd-xfce-themes
gnome-keyring
gstreamer1-plugins-neon
nss_mdns
nvidia-driver
pc-sysinstall
pkg
python
rhythmbox
shotwell
slick-greeter
system-config-printer
utouch-kmod
unzip
virtualbox-ose-additions
vlc
webrtc-audio-processing
xarchiver
xconfig
xf86-input-evdev
xorg-minimal
zip
ghostbsd-xfce4
xarchiver
Loading