Skip to content

Commit

Permalink
Merge branch 'dev' into dev-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed May 4, 2022
2 parents 967ac61 + 895a5f0 commit 73224d9
Show file tree
Hide file tree
Showing 53 changed files with 322 additions and 421 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ARCH_Pen4 := --arch pen4
FULLBUILD := -d -g -e -r 5 --noconfirm
DEBUG_OPTION := --debug --log
DEBUG := false
FULL_x86_64 := xfce cinnamon i3 plasma gnome
#FULL_x86_64 := xfce cinnamon i3 plasma gnome
FULL_x86_64 := xfce i3 plasma
FULL_i686 := xfce lxde
FULL_Pen4 := xfce lxde

Expand Down
33 changes: 25 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ echo_blank(){ yes " " 2> /dev/null | head -n "${1}" | tr -d "\n"; }
# cpコマンドのラッパー
_cp(){ cp -af --no-preserve=ownership,mode -- "${@}"; }

# gitコマンドのラッパー
# https://stackoverflow.com/questions/71901632/fatal-unsafe-repository-home-repon-is-owned-by-someone-else
# https://qiita.com/megane42/items/5375b54ea3570506e296
git(){
command git config --global safe.directory "$script_path"
command git "$@"
command git config --global --unset safe.directory "$script_path"
}


_usage () {
cat "${script_path}/docs/build.sh/help.1"
local blank="29" _arch _dirname _type _output _first
Expand Down Expand Up @@ -370,6 +380,12 @@ prepare_build() {
modules=("${_modules[@]}")
unset _modules

# Ignore modules
local _m
for _m in "${exclude_modules[@]}"; do
readarray -t modules < <(printf "%s\n" "${modules[@]}" | grep -xv "${_m}")
done

# Check modules
module_check(){
msg_debug -n "Checking ${1} module ... "
Expand Down Expand Up @@ -668,8 +684,8 @@ make_setup_mkinitcpio() {
[[ "${boot_splash}" = true ]] && cp "${script_path}/mkinitcpio/mkinitcpio-archiso-plymouth.conf" "${airootfs_dir}/etc/mkinitcpio-archiso.conf"

if [[ "${gpg_key}" ]]; then
gpg --export "${gpg_key}" >"${build_dir}/gpgkey"
exec 17<>"${build_dir}/gpgkey"
gpg --export "${gpg_key}" >"${build_dir}/gpgkey"
exec 17<>"${build_dir}/gpgkey"
fi

_chroot_run mkinitcpio -c "/etc/mkinitcpio-archiso.conf" -k "/boot/${kernel_filename}" -g "/boot/archiso.img"
Expand Down Expand Up @@ -726,10 +742,10 @@ make_syslinux() {
# copy all syslinux config to work dir
for _cfg in "${build_dir}/syslinux/"*.cfg; do
sed "s|%ARCHISO_LABEL%|${iso_label}|g;
s|%OS_NAME%|${os_name}|g;
s|%KERNEL_FILENAME%|${kernel_filename}|g;
s|%ARCH%|${arch}|g;
s|%INSTALL_DIR%|${install_dir}|g" "${_cfg}" > "${isofs_dir}/syslinux/${_cfg##*/}"
s|%OS_NAME%|${os_name}|g;
s|%KERNEL_FILENAME%|${kernel_filename}|g;
s|%ARCH%|${arch}|g;
s|%INSTALL_DIR%|${install_dir}|g" "${_cfg}" > "${isofs_dir}/syslinux/${_cfg##*/}"
done

# Replace the SYSLINUX configuration file with or without boot splash.
Expand Down Expand Up @@ -1149,7 +1165,8 @@ else
fi

# Set vars
build_dir="${work_dir}/build/${arch}" cache_dir="${work_dir}/cache/${arch}" airootfs_dir="${build_dir}/airootfs" isofs_dir="${build_dir}/iso" lockfile_dir="${build_dir}/lockfile" gitrev="$(cd "${script_path}"; git rev-parse --short HEAD)" preset_dir="${script_path}/presets"
build_dir="${work_dir}/build/${arch}" cache_dir="${work_dir}/cache/${arch}" airootfs_dir="${build_dir}/airootfs" isofs_dir="${build_dir}/iso" lockfile_dir="${build_dir}/lockfile" preset_dir="${script_path}/presets"
gitrev="$(cd "${script_path}"; git rev-parse --short HEAD)"

# Create dir
for _dir in build_dir cache_dir airootfs_dir isofs_dir lockfile_dir out_dir; do
Expand All @@ -1163,7 +1180,7 @@ if [[ -d "${channel_dir}.add" ]]; then
channel_name="${1}"
channel_dir="${channel_dir}.add"
elif [[ "${channel_name}" = "clean" ]]; then
_run_cleansh
_run_cleansh
exit 0
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ hinting='slight'
app-picker-view=uint32 0
disabled-extensions=['window-list@gnome-shell-extensions.gcampax.github.com', 'windowsNavigator@gnome-shell-extensions.gcampax.github.com', 'screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'places-menu@gnome-shell-extensions.gcampax.github.com', 'native-window-placement@gnome-shell-extensions.gcampax.github.com', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'auto-move-windows@gnome-shell-extensions.gcampax.github.com', 'apps-menu@gnome-shell-extensions.gcampax.github.com']
enabled-extensions=['appindicatorsupport@rgcjonas.gmail.com', 'arcmenu@arcmenu.com', 'CoverflowAltTab@dmo60.de', 'dash-to-panel@jderose9.github.com', 'ding@rastersoft.com', 'pamac-updates@manjaro.org', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'clipboard-indicator@tudmotu.com', 'workspace-indicator@gnome-shell-extensions.gcampax.github.com']
favorite-apps=['chromium.desktop', 'org.gnome.Nautilus.desktop', 'thunderbird.desktop', 'libreoffice-startcenter.desktop', 'medit.desktop', 'vlc.desktop', 'org.gnome.Screenshot.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Extensions.desktop', 'gnome-control-center.desktop']
favorite-apps=['chromium.desktop', 'org.gnome.Nautilus.desktop', 'thunderbird.desktop', 'libreoffice-startcenter.desktop', 'vlc.desktop', 'org.gnome.Screenshot.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Extensions.desktop', 'gnome-control-center.desktop']

[org/gnome/shell/extensions/arcmenu]
application-shortcuts-list=[['Software', 'system-software-install-symbolic', 'ArcMenu_Software'], ['Settings', 'preferences-system-symbolic', 'gnome-control-center.desktop'], ['Tweaks', 'org.gnome.tweaks-symbolic', 'org.gnome.tweaks.desktop'], ['Terminal', 'utilities-terminal-symbolic', 'org.gnome.Terminal.desktop']]
Expand All @@ -89,7 +89,7 @@ menu-hotkey='Super_L'
menu-layout='Windows'
menu-width=290
multi-monitor=true
pinned-app-list=['Chromium', '', 'chromium.desktop', 'Thunderbird', '', 'thunderbird.desktop', 'LibreOffice Writer', '', 'libreoffice-writer.desktop', 'LibreOffice Impress', '', 'libreoffice-impress.desktop', 'LibreOffice Calc', '', 'libreoffice-calc.desktop', 'System Monitor', '', 'gnome-system-monitor.desktop', 'Extensions', '', 'org.gnome.Extensions.desktop', 'VLC media player', '', 'vlc.desktop', 'medit', '', 'medit.desktop']
pinned-app-list=['Chromium', '', 'chromium.desktop', 'Thunderbird', '', 'thunderbird.desktop', 'LibreOffice Writer', '', 'libreoffice-writer.desktop', 'LibreOffice Impress', '', 'libreoffice-impress.desktop', 'LibreOffice Calc', '', 'libreoffice-calc.desktop', 'System Monitor', '', 'gnome-system-monitor.desktop', 'Extensions', '', 'org.gnome.Extensions.desktop', 'VLC media player', '', 'vlc.desktop']
prefs-visible-page=0
right-panel-width=205
searchbar-default-bottom-location='Bottom'
Expand Down
2 changes: 0 additions & 2 deletions channels/gnome/packages.i686/exclude
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
xf86-input-synaptics
alterlinux-medit-themes
medit
2 changes: 0 additions & 2 deletions channels/gnome/packages.pen4/exclude
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
xf86-input-synaptics
alterlinux-medit-themes
medit
3 changes: 1 addition & 2 deletions channels/gnome/packages.x86_64/exclude
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
xf86-input-synaptics
alterlinux-medit-themes
medit

2 changes: 2 additions & 0 deletions channels/i3/airootfs.any/root/customize_airootfs_i3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ for _dir in "/etc/skel/" "/home/${username}/"; do
done
done

chmod 755 "/usr/bin/alter-system-menu"

# disable light-locker on live
sed -i "/light/s/^/# /g" "/home/${username}/.config/i3/config"

Expand Down
3 changes: 0 additions & 3 deletions channels/i3/packages.i686/i3.i686
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ conky
# launcher
rofi

# terminal emulator
sakura

# theme manager
alterlinux-i3-manager

Expand Down
3 changes: 0 additions & 3 deletions channels/i3/packages.x86_64/i3.x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ conky
# launcher
rofi

# terminal emulator
sakura

# theme manager
alterlinux-i3-manager

Expand Down
3 changes: 3 additions & 0 deletions channels/i3/packages_aur.i686/i3.i686
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

# i3wm
polybar

# terminal emulator
sakura
3 changes: 3 additions & 0 deletions channels/i3/packages_aur.x86_64/i3.x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

# i3wm
polybar

# terminal emulator
sakura
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root - $TERM

This file was deleted.

4 changes: 4 additions & 0 deletions channels/releng/airootfs.any/root/customize_airootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ cp -aT /etc/skel/ /root/
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist

if [[ -e "/root/.automated_script.sh" ]]; then
chmod 755 "/root/.automated_script.sh"
fi

# Enable services.
systemctl enable NetworkManager
systemctl enable pacman-init.service
Expand Down
2 changes: 1 addition & 1 deletion channels/releng/alteriso
Original file line number Diff line number Diff line change
@@ -1 +1 @@
alteriso=3.0
alteriso=3.1
27 changes: 8 additions & 19 deletions channels/releng/config.any
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,12 @@ nochname=true
# List of packages required for build
# The following packages are checked to see if they are installed before running build.sh
# Also, wizard.sh will install it automatically.
dependence=(
# "alterlinux-keyring"
# "archiso"
"arch-install-scripts"
"curl"
"dosfstools"
"edk2-shell"
"git"
"libburn"
"libisofs"
"lz4"
"lzo"
"make"
"squashfs-tools"
"libisoburn"
# "lynx"
"xz"
"zlib"
"zstd"
readarray -t dependence < <(printf "%s\n" "${dependence[@]}" | grep -xv "alterlinux-keyring")

# Modules to include
# An array of module directory names to include.
# This setting cannot be changed by an argument.
modules=(
base
share
)
2 changes: 1 addition & 1 deletion channels/releng/pacman-i686.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = i486
Architecture = i686

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
Expand Down
58 changes: 22 additions & 36 deletions channels/releng/pacman-x86_64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = i486
Architecture = x86_64

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
Expand Down Expand Up @@ -70,70 +70,56 @@ LocalFileSigLevel = Optional
# after the header, and they will be used before the default mirrors.

#[testing]
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.jp/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

[core]
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://mirror.archlinux.jp/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch

[extra]
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://mirror.archlinux.jp/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

[extra]
Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

#[community-testing]
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.jp/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

[community]
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://mirror.archlinux.jp/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.jp/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
##Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

[multilib]
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://mirror.archlinux.jp/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch

# This is Yamada Hayao's personal repository.
# It was used early but is now disabled.
Expand Down
Loading

0 comments on commit 73224d9

Please sign in to comment.