Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Aug 10, 2020
2 parents 9ae4d0b + 8f3d9a4 commit 5ba8945
Show file tree
Hide file tree
Showing 243 changed files with 11,376 additions and 1,226 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.sig
.build_option
system/mkalteriso
system/cpp-src/mkalteriso
system/cpp-src/mkalteriso/build/
pkg/
src/
Expand All @@ -18,4 +19,4 @@ work/
*.ignore*
*.ig*
*.add*
temp/
temp/
33 changes: 8 additions & 25 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -355,24 +355,6 @@ load_config() {
}


# 作業ディレクトリを削除
remove_work() {
if [[ -d "${work_dir}" ]]; then
remove "$(ls ${work_dir}/* | grep "build.make")"
remove "${work_dir}"/pacman-*.conf
remove "${work_dir}/efiboot"
remove "${work_dir}/iso"
remove "${work_dir}/${arch}"
remove "${work_dir}/packages.list"
remove "${work_dir}/packages-full.list"
#remove "${rebuildfile}"
if [[ -z $(ls $(realpath "${work_dir}")/* 2>/dev/null) ]]; then
remove ${work_dir}
fi
fi
}


# Display channel list
show_channel_list() {
local i
Expand Down Expand Up @@ -427,7 +409,7 @@ prepare_build() {
trap_remove_work() {
local status=${?}
echo
remove_work
remove "${work_dir}"
exit ${status}
}
trap 'trap_remove_work' 1 2 3 15
Expand Down Expand Up @@ -1000,7 +982,7 @@ make_boot() {
if [[ ! "${kernel}" = "core" ]]; then
cp "${work_dir}/${arch}/airootfs/boot/vmlinuz-linux-${kernel}" "${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz-linux-${kernel}"
else
cp "${work_dir}/${arch}/airootfs/boot/vmlinuz-linux" "${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz"
cp "${work_dir}/${arch}/airootfs/boot/vmlinuz-linux" "${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz-linux"
fi
}

Expand All @@ -1009,7 +991,7 @@ make_boot_extra() {
cp "${work_dir}/${arch}/airootfs/boot/intel-ucode.img" "${work_dir}/iso/${install_dir}/boot/intel_ucode.img"
cp "${work_dir}/${arch}/airootfs/usr/share/licenses/intel-ucode/LICENSE" "${work_dir}/iso/${install_dir}/boot/intel_ucode.LICENSE"
cp "${work_dir}/${arch}/airootfs/boot/amd-ucode.img" "${work_dir}/iso/${install_dir}/boot/amd_ucode.img"
cp "${work_dir}/${arch}/airootfs/usr/share/licenses/amd-ucode/LICENSE" "${work_dir}/iso/${install_dir}/boot/amd_ucode.LICENSE"
cp "${work_dir}/${arch}/airootfs/usr/share/licenses/amd-ucode/LICENSE.amd-ucode" "${work_dir}/iso/${install_dir}/boot/amd_ucode.LICENSE"
}

# Prepare /${install_dir}/boot/syslinux
Expand Down Expand Up @@ -1313,7 +1295,7 @@ if [[ -d "${script_path}/.git" ]]; then
fi

# Show config message
[[ -f "${defaultconfig}" ]] && _msg_debug "The settings have been overwritten by the ${defaultconfig}"
[[ -f "${defaultconfig}" ]] && _msg_debug "Use the default configuration file (${defaultconfig})."

# Debug mode
mkalteriso_option="-a ${arch} -v"
Expand Down Expand Up @@ -1387,7 +1369,7 @@ if [[ -n "${1}" ]]; then
fi
fi

if [[ ! "${channel_name}" == "rebuild" ]]; then
if [[ ! "${channel_name}" == "rebuild" ]] && [[ ! "${channel_name}" == "clean" ]]; then
_msg_debug "channel path is ${script_path}/channels/${channel_name}"
fi
fi
Expand All @@ -1413,7 +1395,8 @@ if [[ "${channel_name}" = "clean" ]]; then
remove "${script_path}/menuconfig/build"
remove "${script_path}/system/cpp-src/mkalteriso/build"
remove "${script_path}/menuconfig-script/kernel_choice"
remove_work
remove "${work_dir%/}"/*
remove "${work_dir}"
remove "${rebuildfile}"
remove "${script_path}/temp"
exit 0
Expand Down Expand Up @@ -1474,5 +1457,5 @@ run_once make_prepare
run_once make_iso

if [[ "${cleaning}" = true ]]; then
remove_work
remove "${work_dir}"
fi
19 changes: 19 additions & 0 deletions channels/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 日本語

## チャンネルについて
チャンネルはビルドに必要なパッケージやファイル、設定などをひとまとめにしたものです。
チャンネルを切り替えることによって様々なエディションをビルドできます。
また、非公式なチャンネルを開発することで簡単にArch Linux派生ディストリビューションを開発することもできます。

チャンネルの詳細な仕様は[こちら](/docs/jp/CHANNEL.md)を参照して下さい。
また、各チャンネルの概要はそれぞれのディレクトリのREADNEを参照して下さい。

# English

## About channels
A channel is a collection of packages, files, settings, etc. required for building.
You can build different editions by switching channels.
You can also easily develop an Arch Linux derivative distribution by developing an unofficial channel.

See [here](/docs/en/CHANNEL.md) for detailed channel specifications.
Please refer to READNE of each directory for the outline of each channel.
14 changes: 14 additions & 0 deletions channels/cinnamon/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Alter Linux Cinnamon
===========

Japanese:
中量級としてCinnamonエディションは開発されました。
豪華なアニメーションと基本的なソフトウェアが入っています。
x86_64をサポートしており、i686の中で最も重いエディションです。
チャンネル名は cinnamon です

English:
Cinnamon Edition was developed as a middleweight class system.
Gorgeous animation & standard software included.
Supported x86_64 & i686.This is a heaviest edition for i686.
The channel-name is cinnamon.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ desktop-effects-unmaximize-effect='scale'
desktop-effects-unmaximize-time=100
desktop-effects-unmaximize-transition='easeOutBounce'
enabled-applets=['panel1:left:0:[email protected]:0', 'panel1:left:1:[email protected]:2', 'panel1:right:0:[email protected]:3', 'panel1:right:1:[email protected]:4', 'panel1:right:2:[email protected]:5', 'panel1:right:3:[email protected]:6', 'panel1:right:4:[email protected]:7', 'panel1:right:5:[email protected]:8', 'panel1:right:6:[email protected]:9', 'panel1:right:7:[email protected]:10', 'panel1:right:8:[email protected]:11', 'panel1:right:9:[email protected]:12']
favorite-apps=['chromium.desktop', 'nemo.desktop', 'org.gnome.Terminal.desktop', 'cinnamon-settings.desktop']
hotcorner-layout=['expo:true:0', 'scale:false:0', ':true:0', 'desktop:true:0']
next-applet-id=13
panel-edit-mode=false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[org/cinnamon/desktop/lockdown]
disable-lock-screen=true

[org/gnome/desktop/lockdown]
disable-lock-screen=true

[org/cinnamon/desktop/screensaver]
allow-keyboard-shortcuts=false
default-message='Password: %PASSWORD%'
layout-group=0
lock-enabled=false

[org/gnome/desktop/screensaver]
lock-enabled=false

[org/cinnamon/desktop/keybindings/media-keys]
screensaver=@as []

This file was deleted.

4 changes: 2 additions & 2 deletions channels/cinnamon/airootfs.any/etc/default/useradd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# useradd defaults file for AlterLinux
# useradd defaults file for Alter Linux
# original changes by TomK

# In AlterLinux, the default shell is changed to /bin/zsh from the default of ArchLinux (by Hayao)
# In , the default shell is changed to /bin/zsh from the default of ArchLinux (by Hayao)

GROUP=users
HOME=/home
Expand Down
2 changes: 1 addition & 1 deletion channels/cinnamon/airootfs.any/etc/skel/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -f /usr/local/bin/alterlinux-user-directory ]] && /usr/local/bin/alterlinux-user-directory

if [[ $(systemctl is-active graphical.target) = "active" ]] && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version=1.0
Name=AlterLinux Sidebar
Comment=Generates sidebar items.
Icon=utilities-terminal
Exec=/usr/local/bin/alterlinux-sidebar -f --alterlive init
Exec=/usr/bin/alterlinux-gtk-bookmarks -f --alterlive init
X-GNOME-Autostart-enabled=true
Type=Application
RunHook=0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Welcome to Alter Linux
Comment=Displays the Alter Linux welcome page.
Icon=utilities-terminal
Exec=/usr/bin/alterlinux-welcome-page -l --alterlive
X-GNOME-Autostart-enabled=true
Type=Application
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><!-- -*- xml -*- -->
<moo-prefs version="1.0">
<Prefs>
<item name="Editor/color_scheme" type="string">cobalt</item>
<item name="Editor/highlight_current_line" type="bool">FALSE</item>
<item name="Editor/indent_width" type="int">4</item>
<item name="Editor/open_dialog_follows_doc" type="bool">TRUE</item>
<item name="Editor/show_line_numbers" type="bool">TRUE</item>
<item name="Editor/show_spaces" type="bool">TRUE</item>
<item name="Editor/show_tabs" type="bool">TRUE</item>
<item name="Editor/show_trailing_spaces" type="bool">TRUE</item>
<item name="Editor/strip" type="bool">TRUE</item>
Expand Down
2 changes: 1 addition & 1 deletion channels/cinnamon/airootfs.any/etc/skel/.xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export UNZIPOPT=-OCP932
# No beep
xset -b

# Start xfce4
# Start cinnamon
exec cinnamon-session
1 change: 0 additions & 1 deletion channels/cinnamon/airootfs.any/etc/skel/.zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# ~/.zsh_profile
#

[[ -f /usr/local/bin/alterlinux-user-directory ]] && /usr/local/bin/alterlinux-user-directory
if [[ $(systemctl is-active graphical.target) = "active" ]] && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Icon=/usr/share/icons/hicolor/scalable/alter.svg
Exec=/usr/bin/alterlinux-welcome-page
Type=Application
StartupNotify=false
Terminal=false
Hidden=false

Name=Welcome to Alter Linux
Comment=Displays the Alter Linux welcome page.

Name[ja]=Alter Linuxへようこそ
GenericName[ja]=Alter Linuxへようこそ
Comment[ja]=Alter Linuxの利用に役立つページです。
37 changes: 11 additions & 26 deletions channels/cinnamon/airootfs.any/root/customize_airootfs_cinnamon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ function remove () {
}


# Replace wallpaper.
if [[ -f /usr/share/backgrounds/xfce/xfce-stripes.png ]]; then
remove /usr/share/backgrounds/xfce/xfce-stripes.png
ln -s /usr/share/backgrounds/alter.png /usr/share/backgrounds/xfce/xfce-stripes.png
fi
[[ -f /usr/share/backgrounds/alter.png ]] && chmod 644 /usr/share/backgrounds/alter.png


# Bluetooth
rfkill unblock all
systemctl enable bluetooth
Expand All @@ -83,32 +75,19 @@ if [[ "${arch}" = "x86_64" ]]; then
fi


# Update system datebase
dconf update


# firewalld
systemctl enable firewalld.service


# Replace link
if [[ "${japanese}" = true ]]; then
remove "/etc/skel/Desktop/welcome-to-alter.desktop"
remove "/home/${username}/Desktop/welcome-to-alter.desktop"

mv "/etc/skel/Desktop/welcome-to-alter-jp.desktop" "/etc/skel/Desktop/welcome-to-alter.desktop"
mv "/home/${username}/Desktop/welcome-to-alter-jp.desktop" "/home/${username}/Desktop/welcome-to-alter.desktop"
else
remove "/etc/skel/Desktop/welcome-to-alter-jp.desktop"
remove "/home/${username}/Desktop/welcome-to-alter-jp.desktop"
fi


# Added autologin group to auto login
groupadd autologin
usermod -aG autologin ${username}


# ntp
systemctl enable systemd-timesyncd.service


# Enable LightDM to auto login
if [[ "${boot_splash}" = true ]]; then
systemctl enable lightdm-plymouth.service
Expand All @@ -118,7 +97,13 @@ fi


# Set script permission
chmod 755 /usr/local/bin/alterlinux-sidebar
chmod 755 /usr/bin/alterlinux-gtk-bookmarks

# Replace auto login user
sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf

# Replace password for screensaver comment
sed -i s/%PASSWORD%/${password}/g "/etc/dconf/db/local.d/02-disable-lock"

# Update system datebase
dconf update
Loading

0 comments on commit 5ba8945

Please sign in to comment.