Синхронизация изменений в шаблонах 3.5 -> 3.6_alpha

mhiretskiy 1383
parent 37ecbb0b57
commit 57b0267e20

@ -1 +1 @@
# Calculate append=skip merge(sys-auth/elogind)!= merge=x11-misc/sddm
# Calculate append=skip merge(sys-auth/elogind)!= merge=x11-misc/sddm,sys-auth/pambase

@ -0,0 +1 @@
# Calculate append=skip merge(x11-themes/calculate-icon-theme)!= merge=x11-misc/qt5ct

@ -0,0 +1,37 @@
# Calculate format=patch multiline link=/usr/share/doc/rsnapshot-#-cut(0,-,#-pkg(app-backup/rsnapshot)-#)-#/rsnapshot.conf.default mirror
<reg>^(snapshot_root\s+).*$</reg>
<text>\1/var/calculate/snapshots</text>
<reg>^#?(cmd_cp\s+).*$</reg>
<text>\1/bin/cp</text>
<reg>^#?(cmd_ssh\s+).*$</reg>
<text>\1/usr/bin/ssh</text>
<reg>^#?(cmd_du\s+).*$</reg>
<text>\1/usr/bin/du</text>
<reg>^(retain\s+)alpha\s+\d+.*$</reg>
<text>\1daily\t5</text>
<reg>^(retain\s+)beta\s+\d+.*$</reg>
<text>\1weekly\t4</text>
<reg>^(retain\s+)gamma\s+\d+.*$</reg>
<text>\1monthly\t3</text>
<reg>^#?retain\s+delta.*\n</reg>
<text></text>
<reg>^#?(rsync_short_args\s+).*$</reg>
<text>\1-aAX</text>
<reg>^#?(rsync_long_args\s+).*$</reg>
<text>\1--delete --numeric-ids --delete-excluded</text>
<reg>^#?(one_fs).*$</reg>
<text>\1\t\t\t1</text>
<reg>^#?(include_file\s+).*$</reg>
<text>\1/etc/rsnapshot.d/rsnapshot.filter</text>
<reg>^#?(include_file\s+).*$</reg>
<text>\1/etc/rsnapshot.d/rsnapshot.filter</text>
<reg>^#?(link_dest).*$</reg>
<text>\1\t1</text>
<reg>^#?(sync_first).*$</reg>
<text>\1\t1</text>
<reg>^#?(use_lazy_deletes).*$</reg>
<text>\1\t1</text>
<reg>^(backup\s+)</reg>
<text>#\1</text>
<reg>\Z</reg>
<text>include_conf\t`/bin/cat /etc/rsnapshot.d/*.conf`\n</text>

@ -0,0 +1,3 @@
# LOCALHOST
#backup / localhost/rootfs/
#backup /var/calculate localhost/calculate/

@ -0,0 +1,27 @@
- /container/*
- /dev
- /linux/*
- /lost+found
- /lxc/*/calculate/packages
- /lxc/**/remote/distfiles
- /lxc/*/rootfs/proc
- /lxc/*/rootfs/run
- /lxc/*/rootfs/sys
- /lxc/*/rootfs/tmp
- /lxc/*/rootfs/usr/portage
- /lxc/*/rootfs/var/calculate/packages
- /lxc/*/rootfs/var/lib/layman
- /lxc/*/rootfs/var/log
- /lxc/*/snaps
- /packages
- /proc
- /remote/distfiles
- /run
- /snapshots/*
- /sys
- /tmp
- /usr/portage/*
- /var/calculate/snapshots/*
- /var/lib/layman/*
- /var/log/*
- /vps/*

@ -0,0 +1,65 @@
# Calculate chmod=0755 path=/usr/libexec
#!/bin/bash
# Copyright (C) 2018 Mir Calculate Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The script allows you to create daily, weekly (from Monday), and monthly
# (every 4 weeks) backups automatically, with a single daily startup.
weekseconds="$(( 60 * 60 * 24 * 7 ))"
get_value() {
awk -F"\t" "{if (\$1 == \"$1\") print \$2}" | tail -1
}
get_retain_value() {
awk -F"\t" "{if (\$1 == \"retain\" && \$2 == \"$1\") print \$3}" | tail -1
}
declare -A res
base_configfile=/etc/rsnapshot.conf
configfiles=${@:-$base_configfile}
for configfile in $configfiles
do
rsnapshot -c $configfile sync
res["$configfile"]=$?
done
for configfile in $configfiles
do
snapshot_root="$(cat $base_configfile $configfile | get_value snapshot_root)"
retain_daily="$(cat $base_configfile $configfile | get_retain_value daily)"
# calculating the day of the week when need to do rotation, so that a copy
# comes in weekly from Monday
if [[ $(date +"%w") -eq $(( ($retain_daily + 1) % 7 )) ]]
then
# it's time to make a monthly backup
if [[ $(( $(date +"%s") / $weekseconds % 4 )) -eq 0 ]]
then
rsnapshot -c $configfile monthly
fi
rsnapshot -c $configfile weekly
fi
# fix the backup as daily if there was no error
if [[ ${res["$configfile"]} -ne 1 ]]
then
rsnapshot -c $configfile daily
# write current time to backup for reference
date >${snapshot_root}/daily.0/timestamp
fi
done

@ -0,0 +1 @@
# Calculate mergepkg()==3.6.6-r2 path=/usr/share name=applications

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

@ -0,0 +1 @@
# Calculate path=/usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents name=ui mergepkg()==5.12.5

@ -0,0 +1,3 @@
# Calculate format=patch
<reg>height: (Kirigami.Units.gridUnit [*] 2.5)</reg>
<text>height: Math.round(\1)</text>

@ -0,0 +1,3 @@
# Calculate format=patch
<reg>height: (Kirigami.Units.gridUnit [*] 2.5)</reg>
<text>height: Math.round(\1)</text>

@ -0,0 +1 @@
# Calculate link=/etc/fonts/conf.avail/10-sub-pixel-rgb.conf symbolic

@ -0,0 +1 @@
# Calculate link=/etc/fonts/conf.avail/11-lcdfilter-default.conf symbolic

@ -10,9 +10,9 @@
# http://www.apache.org/licenses/LICENSE-2.0
CL_UPDATE_PROG=/usr/sbin/cl-core
RUN_CORE="/usr/bin/python2 ${CL_UPDATE_PROG}"
CORE_METHOD="--method core_setup"
post_setup_package() {
if [ -f ${CL_UPDATE_PROG} ] && [[ -f /var/lib/calculate/-postmerge ]] && check_skip
then
@ -24,7 +24,7 @@ post_setup_package() {
if ! [[ -f /var/lib/calculate/calculate-core/cache/merge-setup.list ]] ||
grep ${category}/${pkgname} /var/lib/calculate/calculate-core/cache/merge-setup.list &>/dev/null
then
CTARGET=${CTARGET} GCC_CONFIG_VER=${GCC_CONFIG_VER} ${CL_UPDATE_PROG} ${CORE_METHOD} --no-progress --pkg-name $pkgname --pkg-category $category --pkg-path "/"
CTARGET=${CTARGET} GCC_CONFIG_VER=${GCC_CONFIG_VER} ${RUN_CORE} ${CORE_METHOD} --no-progress --pkg-name $pkgname --pkg-category $category --pkg-path "/"
fi
IFS=/
done < <(sort /var/lib/calculate/-postmerge | uniq)

@ -10,6 +10,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
#
CL_UPDATE_PROG="/usr/sbin/cl-core"
RUN_CORE="/usr/bin/python2 ${CL_UPDATE_PROG}"
CORE_METHOD="--method core_setup"
[[ -d /var/lib/calculate ]] || mkdir /var/lib/calculate
@ -19,7 +20,7 @@ setup_merge_package() {
if ! [[ -f /var/lib/calculate/calculate-core/cache/merge-setup.list ]] ||
grep ${CATEGORY}/${PN} /var/lib/calculate/calculate-core/cache/merge-setup.list &>/dev/null
then
[ -f ${CL_UPDATE_PROG} ] && check_skip && CTARGET=${CTARGET} GCC_CONFIG_VER=${GCC_CONFIG_VER} ${CL_UPDATE_PROG} ${CORE_METHOD} --no-progress --pkg-version ${PVR} --pkg-slot ${SLOT} --pkg-category ${CATEGORY} --pkg-path "/" --pkg-name ${PN}
[ -f ${CL_UPDATE_PROG} ] && check_skip && CTARGET=${CTARGET} GCC_CONFIG_VER=${GCC_CONFIG_VER} ${RUN_CORE} ${CORE_METHOD} --no-progress --pkg-version ${PVR} --pkg-slot ${SLOT} --pkg-category ${CATEGORY} --pkg-path "/" --pkg-name ${PN}
fi
rm -f /var/lib/calculate/-runlevels-$PN
}
@ -36,7 +37,7 @@ clean_contents_mark() {
# mark: package updating
mark_update_package() {
touch "/var/lib/calculate/-merge-$PN--${SLOT/\//_}-$PPID"
touch "/var/lib/calculate/-merge-$PN--${SLOT/\/*}-$PPID"
}
# save services runlevels
@ -46,7 +47,7 @@ save_runlevels() {
# dispatching unmerge or update package
pkg_postrm_dispatch() {
if [[ ! -f /var/lib/calculate/-merge-$PN--${SLOT/\//_}-$PPID ]]
if [[ ! -f /var/lib/calculate/-merge-$PN--${SLOT/\/*}-$PPID ]]
then
pkg_postrm_unmerge
else
@ -70,7 +71,7 @@ pkg_postrm_unmerge() {
if ! [[ -f /var/lib/calculate/calculate-core/cache/merge-setup.list ]] ||
grep ${CATEGORY}/${PN} /var/lib/calculate/calculate-core/cache/merge-setup.list &>/dev/null
then
[ -f ${CL_UPDATE_PROG} ] && check_skip && ${CL_UPDATE_PROG} ${CORE_METHOD} --no-progress --pkg-version ${PVR} --pkg-slot ${SLOT} --pkg-category ${CATEGORY} --pkg-path / --pkg-name ${PN}
[ -f ${CL_UPDATE_PROG} ] && check_skip && ${RUN_CORE} ${CORE_METHOD} --no-progress --pkg-version ${PVR} --pkg-slot ${SLOT} --pkg-category ${CATEGORY} --pkg-path / --pkg-name ${PN}
fi
}

@ -2,4 +2,8 @@
[gentoo]
sync-type = git
#?list(update.cl_update_rep_name,0)==gentoo&&list(update.cl_update_rep_url,0)!=#
sync-uri = #-list(update.cl_update_rep_url,0)-#
#!list#
sync-uri = git://git.calculate-linux.org/repo/gentoo.git
#list#

@ -9,4 +9,8 @@ password sufficient pam_unix.so nullok sha256 shadow use_authtok
password required pam_deny.so
session required pam_limits.so
#?pkg(sys-auth/elogind)!=#
-session optional pam_loginuid.so
-session optional pam_elogind.so
#pkg#
session required pam_unix.so

@ -5,11 +5,3 @@ blacklist usblp
# You probably want this to not get the console beep loud on every tab :)
blacklist pcspkr
# Not using kernel video drivers
blacklist amdgpu
blacklist nouveau
blacklist nvidia
blacklist radeon
blacklist uvesafb
blacklist vboxvideo

@ -5,11 +5,3 @@ blacklist usblp
# You probably want this to not get the console beep loud on every tab :)
blacklist pcspkr
# Not using kernel video drivers
blacklist amdgpu
blacklist nouveau
blacklist nvidia
blacklist radeon
blacklist vboxvideo
blacklist uvesafb

@ -0,0 +1,3 @@
# Calculate path=/etc/modprobe.d
options amdgpu cik_support=1 si_support=1

@ -0,0 +1,3 @@
# Calculate path=/etc/modprobe.d
options vboxvideo modeset=0

@ -1,79 +0,0 @@
load_videodrv() {
info "Loading frame buffer video driver"
# find all available fb drivers
videodrv_count=$(find /lib/modules \
-name "nouveau.ko*" -o \
-name "uvesafb.ko*" -o \
-name "i915.ko*" -o \
-name "amdgpu.ko*" -o \
-name "radeon.ko*" |
grep -c "")
# load specified videodrv
modules_list=
case "${videodrv}" in
nouveau)
modules_list="nouveau"
;;
radeon)
modules_list="radeon"
;;
amdgpu)
modules_list="amdgpu"
;;
none)
return 0;
;;
i915|intel)
modules_list="i915"
;;
""|auto)
# videoautodetect
if [[ -x /usr/sbin/lspci ]]
then
if lspci | grep -m1 VGA | grep -qi intel
then
modules_list="i915"
elif lspci | grep -m1 VGA | grep -qi nvidia
then
modules_list="nouveau"
elif lspci | grep -m1 VGA | grep -q -e "Ati" -e "ATI"
then
modules_list="radeon"
else
modules_list=""
fi
else
modules_list="i915"
fi
;;
esac
for x in $modules_list
do
if [ "`find /lib/modules -name "${x}.ko*" | grep -c ''`" -eq "1" ]
then
# i915 will be load by udev
[ "${x}" == "i915" ] && return
if [ "${x}" == "amdgpu" ]
then
modprobe amdgpu cik_support=1 si=support=1 &>/dev/null
else
modprobe "${x}" modeset=1 &>/dev/null
fi
lsmod | grep -q "^${x}" && \
[ "`cat /sys/module/${x}/refcnt`" -gt 0 ] && return 0
fi
done
# else load uvesafb with specified video resolution
if [ -n "${videoresolution}" ]
then
if ! echo $videoresolution | grep -q "\-"
then
videoresolution="${videoresolution}-32"
fi
else
videoresolution="1024x768-32"
fi
modprobe uvesafb mode_option=${videoresolution} &>/dev/null
}
load_videodrv

@ -20,26 +20,9 @@ installkernel() {
}
install() {
# inst_dir /lib/modules/keys
inst_binary /usr/sbin/lspci
inst_binary /usr/bin/sleep
inst_binary /bin/grep
inst_binary /sbin/lsmod
inst_binary /usr/bin/find
inst_binary /usr/bin/cut
inst_simple /usr/share/misc/pci.ids
inst_hook pre-trigger 01 "$moddir/load-video.sh"
inst_script "$moddir/select-video.sh" "/sbin/select-video.sh"
inst_hook pre-pivot 50 "$moddir/system-video-blacklist.sh"
inst_hook cmdline 50 "$moddir/parse-cmdline.sh"
mkdir -p ${initdir}/etc/modprobe.d
for videomodule in fglrx nvidia radeon nouveau uvesafb amdgpu vboxvideo
do
echo "blacklist ${videomodule}" >>${initdir}/etc/modprobe.d/video-blacklist.conf
done
#
# inst_hook pre-trigger 01 "$moddir/load-modsign-keys.sh"
#
# for x in /lib/modules/keys/* ; do
# [[ "${x}" = "/lib/modules/keys/*" ]] && break
# inst_simple "${x}"
# done
}

@ -42,3 +42,5 @@ then
esac
done
fi
/sbin/select-video.sh /etc/modprobe.d/video-blacklist.conf $videodrv

@ -0,0 +1,31 @@
# Calculate chmod=0755
#!/bin/bash
blacklistfile=$1
videomodule=$2
if [[ -n $videomodule ]]
then
cat >$blacklistfile <<EOF
# This file was created by initramfs
# Do not edit this file manually
# Please use cl-setup-video to select video driver
EOF
case $videomodule in
nouveau)
echo "blacklist nvidia" >>$blacklistfile
;;
radeon)
echo "blacklist amdgpu" >>$blacklistfile
;;
nvidia)
echo "blacklist nouveau" >>$blacklistfile
;;
amdgpu)
echo "blacklist radeon" >>$blacklistfile
;;
esac
else
rm -f $blacklistfile
fi

@ -0,0 +1,4 @@
#!/bin/bash
mount -o rw,remount ${NEWROOT} &>/dev/null
/sbin/select-video.sh ${NEWROOT}/etc/modprobe.d/video-blacklist.conf $videodrv

@ -1 +0,0 @@
# Calculate append=remove path=/usr/lib64/firefox/browser/extensions/langpack-ru@firefox.mozilla.org/browser/chrome/ru/locale/browser/searchplugins name=yandex-ru.xml

@ -0,0 +1,3 @@
# Calculate pkg(x11-drivers/nvidia-drivers[kms])!= path=/etc/modprobe.d
# Nvidia modeset conf
options nvidia-drm modeset=1

@ -0,0 +1 @@
# Calculate mergepkg()!= path=/usr/share name=applications

@ -0,0 +1,9 @@
# Calculate format=kde
[Desktop Entry]
Name=Qt5 Settings
Exec=qt5ct
#?pkg(x11-themes/calculate-icon-theme)>=15-r8#
Icon=qt5logo
Categories=Settings;DesktopSettings;LXQt;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
OnlyShowIn=XFCE;MATE;LXQt;
#pkg#

@ -34,9 +34,9 @@ SLEEPCMD=:
if type dm-tool &>/dev/null; then
if type gnome-screensaver-command &>/dev/null; then
gnome-screensaver-command --lock &>/dev/null &&
$SLEEPCMD && dm-tool lock &>/dev/null && exit
$SLEEPCMD && dm-tool switch-to-greeter &>/dev/null && exit
else
dm-tool lock &>/dev/null && exit
dm-tool switch-to-greeter &>/dev/null && exit
fi
fi

@ -0,0 +1,12 @@
# Calculate format=kde link=/usr/share/applications/io.github.Hexchat.desktop name=calculate-chat.desktop mirror pkg(net-irc/hexchat)>=2.14
# Hide icon
[Desktop Entry]
NoDisplay=true
!MimeType=
Name=Calculate Linux Community
Name[bg]=Calculate Linux Общност
Name[ru]=Сообщество Calculate Linux
Name[uk]=Cпівтовариство Calculate Linux
Exec=hexchat "--url=irc://irc.freenode.net:6667/#calculate"

@ -1,4 +1,4 @@
# Calculate format=kde link=/usr/share/applications/hexchat.desktop name=calculate-chat.desktop mirror pkg(net-irc/hexchat)>=2.9
# Calculate format=kde link=/usr/share/applications/hexchat.desktop name=calculate-chat.desktop mirror pkg(net-irc/hexchat)=>2.9,2.14
# Hide icon
[Desktop Entry]

@ -11,7 +11,12 @@ SPLASH_SHUTDOWN_MESSAGE="Shutting down..."
#?os_install_locale_lang==ru_RU#
SPLASH_REBOOT_MESSAGE="З а в е р ш е н и е р а б о т ы"
SPLASH_SHUTDOWN_MESSAGE="З а в е р ш е н и е р а б о т ы"
#!os_install_locale_lang#
#os_install_locale_lang#
#?os_install_locale_lang==fr_FR#
SPLASH_REBOOT_MESSAGE="A r r ê t e n c o u r s"
SPLASH_SHUTDOWN_MESSAGE="A r r ê t e n c o u r s"
#os_install_locale_lang#
#?os_install_locale_lang!=ru_RU&&os_install_locale_lang!=fr_FR#
SPLASH_REBOOT_MESSAGE="S h u t t i n g d o w n"
SPLASH_SHUTDOWN_MESSAGE="S h u t t i n g d o w n"
#os_install_locale_lang#

@ -44,6 +44,10 @@ password required pam_deny.so
session required pam_env.so
session required pam_limits.so
#?pkg(sys-auth/elogind)!=#
-session optional pam_loginuid.so
-session optional pam_elogind.so
#pkg#
session required pam_unix.so
#?pkg(sys-fs/ecryptfs-utils)!=#
session optional pam_ecryptfs.so unwrap

@ -41,3 +41,8 @@ GRUB_TERMINAL=console
#!os_install_grub_terminal#
!GRUB_TERMINAL=
#os_install_grub_terminal#
#?kernel(fb_vesa)!=&&os_install_fb_resolution!=#
GRUB_GFXPAYLOAD_LINUX="#-os_install_fb_resolution-#x24,#-os_install_fb_resolution-##?os_install_fb_resolution!=1024x768#,1024x768#os_install_fb_resolution#"
#!kernel#
GRUB_GFXPAYLOAD_LINUX="text"
#kernel#

@ -19,6 +19,13 @@ EndSection
Section "Screen"
Identifier "Monitor"
#?hr_virtual!=&&os_install_x11_resolution!=#
Subsection "Display"
Viewport 0 0
Depth 24
Modes "#-os_install_x11_resolution-#"
EndSubsection
#hr_virtual#
EndSection
Section "Extensions"

@ -1,6 +1,7 @@
# Calculate comment=#
CHECKVT=7
#?module(client)!=&&client.os_remote_auth!=#
#?pkg(x11-misc/sddm)!=#
DISPLAYMANAGER="sddm"
@ -27,37 +28,40 @@ DISPLAYMANAGER="slim"
START_STOP_ARGS=
#pkg#
#!module#
#?cl_autologin!=&&pkg(x11-misc/lightdm)!=&&pkg(x11-misc/light-locker)!=#
#?cl_autologin!=#
#?pkg(x11-misc/lightdm)!=&&pkg(x11-misc/light-locker)!=||pkg(x11-misc/lightdm)!=&&pkg(gnome-extra/cinnamon-screensaver)!=#
DISPLAYMANAGER="lightdm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin!=&&pkg(x11-misc/lightdm)==||cl_autologin!=&&pkg(x11-misc/light-locker)==#
#pkg#
#?pkg(x11-misc/lightdm)==||pkg(x11-misc/light-locker)==&&pkg(gnome-extra/cinnamon-screensaver)==#
XUSER=#-cl_autologin-#
DISPLAYMANAGER="bash"
START_STOP_ARGS="--background -- /usr/bin/xautologin $XUSER $CHECKVT"
#cl_autologin#
#?cl_autologin==&&pkg(x11-misc/sddm)!=#
#pkg#
#!cl_autologin#
#?pkg(x11-misc/sddm)!=#
DISPLAYMANAGER="sddm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin==&&pkg(kde-base/kdm)!=&&pkg(x11-misc/sddm)==#
#pkg#
#?pkg(kde-base/kdm)!=&&pkg(x11-misc/sddm)==#
DISPLAYMANAGER="kdm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin==&&pkg(x11-misc/lightdm)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/sddm)==#
#pkg#
#?pkg(x11-misc/lightdm)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/sddm)==#
DISPLAYMANAGER="lightdm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin==&&pkg(lxde-base/lxdm)!=&&pkg(x11-misc/lightdm)==&&pkg(kde-base/kdm)==&&pkg(x11-misc/sddm)==#
#pkg#
#?pkg(lxde-base/lxdm)!=&&pkg(x11-misc/lightdm)==&&pkg(kde-base/kdm)==&&pkg(x11-misc/sddm)==#
DISPLAYMANAGER="lxdm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin==&&pkg(gnome-base/gdm)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/lightdm)==&&pkg(lxde-base/lxdm)==&&pkg(x11-misc/sddm)==#
#pkg#
#?pkg(gnome-base/gdm)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/lightdm)==&&pkg(lxde-base/lxdm)==&&pkg(x11-misc/sddm)==#
DISPLAYMANAGER="gdm"
START_STOP_ARGS=
#cl_autologin#
#?cl_autologin==&&pkg(x11-misc/slim)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/lightdm)==&&pkg(gnome-base/gdm)==&&pkg(lxde-base/lxdm)==&&pkg(x11-misc/sddm)==#
#pkg#
#?pkg(x11-misc/slim)!=&&pkg(kde-base/kdm)==&&pkg(x11-misc/lightdm)==&&pkg(gnome-base/gdm)==&&pkg(lxde-base/lxdm)==&&pkg(x11-misc/sddm)==#
DISPLAYMANAGER="slim"
START_STOP_ARGS=
#pkg#
#cl_autologin#
#module#

@ -8,17 +8,30 @@ autologin-user=#-cl_autologin-#
#module#
#?pkg(x11-wm/openbox)!=#
user-session=openbox
autologin-session=openbox
#pkg#
#?pkg(media-tv/kodi)!=#
user-session=kodi
autologin-session=kodi
#pkg#
#?pkg(gnome-extra/cinnamon-session)!=#
user-session=cinnamon
autologin-session=cinnamon
#pkg#
#?pkg(xfce-base/xfce4-session)!=#
user-session=xfce
autologin-session=xfce
#pkg#
#?pkg(mate-base/mate-session-manager)!=#
user-session=mate
autologin-session=mate
#pkg#
#?pkg(lxqt-base/lxqt-session)!=#
user-session=lxqt
autologin-session=lxqt
#pkg#
#?ini(container.type)==desktop&&ini(xorg.vt)!=#
[LightDM]
minimum-vt=#-ini(xorg.vt)-#

@ -9,7 +9,7 @@
<text>LABEL \1
MENU LABEL \2
KERNEL \3
APPEND \4 initrd=\5 vga=current \6
APPEND \4 initrd=\5 vga=791 \6
</text>
<reg>HEADER</reg>
<text>INCLUDE common.cfg

@ -32,7 +32,7 @@ then
else
SPT=63
fi
mkfs.fat -C ${CD_GRUB_DIR}/efi.img $(( ($(stat -c %s "${CDROOT_DIR}/bootx64.efi") / 1024 + 55) / $SPT * $SPT )) &>/dev/null
mkfs.fat -C ${CD_GRUB_DIR}/efi.img $(( ($(stat -c %s "${CDROOT_DIR}/bootx64.efi") / 1024 + 64) / $SPT * $SPT )) &>/dev/null
mmd -i ${CD_GRUB_DIR}/efi.img ::efi
mmd -i ${CD_GRUB_DIR}/efi.img ::efi/boot
mcopy -i ${CD_GRUB_DIR}/efi.img ${CDROOT_DIR}/bootx64.efi ::efi/boot/bootx64.efi

@ -0,0 +1 @@
# Calculate append=skip merge(sys-apps/calculate-utils)!=&&ini(update.patch)!=off&&ini(ver.patch)<40

@ -0,0 +1,3 @@
# Calculate path="#-ini(resource.desktop)-#" pkg(gnome-extra/cinnamon-session)!=&&ini(resource.desktop)!=&&exists(#-ini(resource.desktop)-#/FTP.desktop)!=
<reg>Icon=update-manager</reg>
<text>Icon=folder-download</text>

@ -0,0 +1,7 @@
# Calculate format=samba path=~/.calculate
[ver]
patch = 40
[update]
patch = on

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/ftp.desktop)!=
<reg>Icon=(folder-download|update-manager)</reg>
<text>Icon=folder-download-symbolic</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/home.desktop)!=
<reg>Icon=user-home</reg>
<text>Icon=user-home-symbolic</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/homedir.desktop)!=
<reg>Icon=folder_home</reg>
<text>Icon=user-home-symbolic</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/lockscreen.desktop)!=
<reg>Icon=gnome-lockscreen</reg>
<text>Icon=system-lock-screen-symbolic</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/poweroff.desktop)!=
<reg>Icon=gnome-shutdown</reg>
<text>Icon=system-shutdown-symbolic</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/share.desktop)!=
<reg>Icon=folder-remote</reg>
<text>Icon=folder-remote-symbolic</text>

@ -0,0 +1 @@
# Calculate append=skip merge(sys-apps/calculate-utils)!=&&ini(update.patch)!=off&&ini(ver.patch)<41

@ -0,0 +1,3 @@
# Calculate path="#-ini(resource.desktop)-#" pkg(gnome-extra/cinnamon-session)!=&&ini(resource.desktop)!=&&exists(#-ini(resource.desktop)-#/FTP.desktop)!=
<reg>Icon=update-manager</reg>
<text>Icon=folder-download</text>

@ -0,0 +1,7 @@
# Calculate format=samba path=~/.calculate
[ver]
patch = 41
[update]
patch = on

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/ftp.desktop)!=
<reg>Icon=(update-manager|folder-download-symbolic)</reg>
<text>Icon=folder-download</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/home.desktop)!=
<reg>Icon=user-home-symbolic</reg>
<text>Icon=user-home</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/homedir.desktop)!=
<reg>Icon=(folder_home|user-home-symbolic)</reg>
<text>Icon=user-home</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/lockscreen.desktop)!=
<reg>Icon=(gnome-lockscreen|system-lock-screen-symbolic)</reg>
<text>Icon=system-lock-screen</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/poweroff.desktop)!=
<reg>Icon=(gnome-shutdown|system-shutdown-symbolic)</reg>
<text>Icon=system-shutdown</text>

@ -0,0 +1,3 @@
# Calculate format=patch exists(~/.cinnamon/panel-launchers/share.desktop)!=
<reg>Icon=folder-remote-symbolic</reg>
<text>Icon=folder-remote</text>

@ -0,0 +1 @@
# Calculate append=skip merge(sys-apps/calculate-utils)!=&&ini(update.patch)!=off&&ini(ver.patch)<42

@ -0,0 +1,7 @@
# Calculate format=samba path=~/.calculate
[ver]
patch = 42
[update]
patch = on

@ -0,0 +1,3 @@
# Calculate format=kde path=~/.config pkg(kde-plasma/kwin)!=
[org.kde.kdecoration2]
!ButtonsOnLeft=MNS

@ -4,10 +4,6 @@ Version=1.0
Name=FTP
Comment=Open FTP network folder
Comment[ru_RU]=Открыть сетевой диск FTP
#?pkg(x11-themes/elementary-icon-theme)!=#
Icon=folder-download
#!pkg#
Icon=update-manager
#pkg#
URL=file:////home/#-ur_login-#/FTP
Type=Link

@ -3,11 +3,7 @@
Name=FTP
Comment=Open FTP network folder
Comment[ru_RU]=Открыть сетевой диск FTP
#?pkg(x11-themes/elementary-icon-theme)!=#
Icon=folder-download
#!pkg#
Icon=update-manager
#pkg#
Exec=nemo /home/#-ur_login-#/FTP
Terminal=false
Type=Application

@ -3,7 +3,7 @@
Name=Home
Comment=Home
Exec=nemo %U
Icon=folder_home
Icon=user-home
Terminal=false
Type=Application
StartupNotify=false

@ -3,7 +3,7 @@
Name=Lock Session
Comment=Lock Session
Exec=cinnamon-screensaver-command --lock
Icon=gnome-lockscreen
Icon=system-lock-screen
Terminal=false
Type=Application
StartupNotify=false

@ -4,7 +4,7 @@
Name=Power off
Comment=Power off
Exec=cinnamon-session-quit --power-off
Icon=gnome-shutdown
Icon=system-shutdown
Terminal=false
Type=Application
StartupNotify=false

@ -27,7 +27,6 @@ ElectricBorderTiling=false
FocusStealingPreventionLevel=0
[org.kde.kdecoration2]
ButtonsOnLeft=MNS
CloseOnDoubleClickOnMenu=true
#?ini(profile.appearance-border)!=#
library=#-ini(profile.appearance-border)-#

@ -0,0 +1,12 @@
# Calculate format=kde name=io.github.Hexchat.desktop link=/usr/share/applications/io.github.Hexchat.desktop mirror pkg(net-irc/hexchat)>=2.14
[Desktop Entry]
#?os_locale_language==fr#
Exec=hexchat "--url=irc://irc.freenode.net:6667/#calculate-fr"
#os_locale_language#
#?os_locale_language==ru#
Exec=hexchat "--url=irc://irc.freenode.net:6667/#calculate-ru"
#os_locale_language#
#?in(os_locale_language,fr,ru)==#
Exec=hexchat "--url=irc://irc.freenode.net:6667/#calculate"
#in#

@ -1,4 +1,4 @@
# Calculate format=kde link=/usr/share/applications/hexchat.desktop mirror
# Calculate format=kde name=hexchat.desktop link=/usr/share/applications/hexchat.desktop mirror pkg(net-irc/hexchat)=>2.9,2.14
[Desktop Entry]
#?os_locale_language==fr#

@ -134,3 +134,7 @@ user_pref("toolkit.telemetry.cachedClientID", "");
user_pref("toolkit.telemetry.infoURL", "");
user_pref("toolkit.telemetry.server", "");
user_pref("toolkit.telemetry.unified", false);
user_pref("network.tcp.tcp_fastopen_enable", true);
user_pref("accessibility.force_disabled", 1);

@ -1,7 +1,7 @@
# Calculate path=~/.calculate format=samba
[ver]
firefox = 45
firefox = 52
[update]
firefox = on

@ -1 +0,0 @@
# Calculate mergepkg()>=0.31&&ini(update.qt5ct)!=off&&ini(ver.qt5ct)== path=~/.config name=qt5ct

@ -0,0 +1 @@
# Calculate mergepkg()>=0.35&&ini(update.qt5ct)!=off&&ini(ver.qt5ct)<0.35 path=~/.config name=qt5ct

@ -2,7 +2,8 @@
color_scheme_path=
custom_palette=false
icon_theme=Calculate
style=Fusion
standard_dialogs=gtk3
style=Adwaita
[Fonts]
fixed=@Variant(\0\0\0@\0\0\0.\0\x44\0r\0o\0i\0\x64\0 \0S\0\x61\0n\0s\0 \0M\0o\0n\0o\0 \0S\0l\0\x61\0s\0h\0\x65\0\x64@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)

@ -7,6 +7,7 @@ ColorForeground=#dcdcdcdccccc
ColorPalette=#2c2c2c2c2c2c;#707050505050;#6060b4b48a8a;#dfdfafaf8f8f;#9a9ab8b8d7d7;#dcdc8c8cc3c3;#8c8cd0d0d3d3;#dcdcdcdccccc;#707090908080;#dcdca3a3a3a3;#7272d5d5a3a3;#f0f0dfdfafaf;#9494bfbff3f3;#ecec9393d3d3;#9393e0e0e3e3;#ffffffffffff
ColorSelection=#dcdcdcdccccc
FontName=Droid Sans Mono Slashed #-ini(profile.font-size)-#
MiscConfirmClose=FALSE
MiscSlimTabs=TRUE
ScrollingLines=5000
ScrollingOnOutput=FALSE

@ -0,0 +1,63 @@
# Calculate format=diff
--- clamsmtp-1.10/common/usuals.h 2007-05-27 01:57:56.000000000 +0200
+++ clamsmtp-patched/common/usuals.h 2015-03-01 16:48:10.684201573 +0100
@@ -39,10 +39,10 @@
#ifndef __USUALS_H__
#define __USUALS_H__
-#include <sys/types.h>
-
#include "config.h"
+#include <sys/types.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
diff -Nru clamsmtp-1.10/configure.in clamsmtp-patched/configure.in
--- clamsmtp-1.10/configure.in 2008-06-30 19:01:48.000000000 +0200
+++ clamsmtp-patched/configure.in 2015-03-01 16:40:02.278986882 +0100
@@ -51,6 +51,8 @@
AC_PROG_LN_S
AC_PROG_MAKE_SET
+AC_USE_SYSTEM_EXTENSIONS
+
# Debug mode
AC_ARG_ENABLE(debug,=20
AC_HELP_STRING([--enable-debug],
diff -Nru clamsmtp-1.10/common/smtppass.c clamsmtp-patched/common/smtppass.c
--- clamsmtp-1.10/common/smtppass.c 2015-03-02 09:36:27.793398352 +0100
+++ clamsmtp-patched/common/smtppass.c 2015-03-02 09:38:50.843467581 +0100
@@ -38,6 +38,8 @@
* Olivier Beyssac <ob@r14.freenix.org>
*/
+#include "usuals.h"
+
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -58,17 +58,15 @@
#include <pwd.h>
#include <time.h>
-#include "usuals.h"
-
-#ifdef LINUX_TRANSPARENT_PROXY
-#include <linux/netfilter_ipv4.h>
-#endif
-
#include "compat.h"
#include "sock_any.h"
#include "stringx.h"
#include "sppriv.h"
+#ifdef LINUX_TRANSPARENT_PROXY
+#include <linux/netfilter_ipv4.h>
+#endif
+
/* -----------------------------------------------------------------------
* STRUCTURES
*/

@ -0,0 +1,77 @@
# Calculate format=diff merge(media-gfx/nomacs)==3.8.0
commit 92a95cd288dd64829e33aeb5d8c6e9725219e6bd
Author: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Date: Mon Jan 29 12:01:50 2018 +0100
cmake: Stop calling QT5_WRAP_CPP() when building quazip and libqpsd.
cmake/Utils.cmake already sets CMAKE_AUTOMOC to on.
Calling QT5_WRAP_CPP() used to be just redundant, as QUAZIP_MOC_SRC and
LIBQPSD_MOC_SRC were never actually added as source dependencies in
MacBuildTarget.cmake and UnixBuildTarget.cmake. In other words, CMake's own
automoc infrastructure was actually being used and the moc invocations from
QT5_WRAP_CPP() were not being made at all.
Starting with Qt 5.9.4, calling QT5_WRAP_CPP() disables the AUTOMOC property
on the macro's input files, which means neither CMake's automoc
infrastructure not QT5_WRAP_CPP()'s code were being used and we ended up
with several 'undefined reference to vtable' errors when linking.
diff --git a/ImageLounge/cmake/Mac.cmake b/ImageLounge/cmake/Mac.cmake
index 73c01430..14e9494d 100644
--- a/ImageLounge/cmake/Mac.cmake
+++ b/ImageLounge/cmake/Mac.cmake
@@ -104,7 +104,6 @@ unset(QUAZIP_LIBRARIES CACHE)
unset(QUAZIP_HEADERS CACHE)
unset(QUAZIP_SOURCES CACHE)
-unset(QUAZIP_MOCS CACHE)
unset(QT_ROOT CACHE)
if(ENABLE_QUAZIP)
@@ -123,9 +122,7 @@ if(ENABLE_QUAZIP)
file(GLOB QUAZIP_SOURCES "3rdparty/quazip-0.7/quazip/*.c" "3rdparty/quazip-0.7/quazip/*.cpp")
file(GLOB QUAZIP_HEADERS "3rdparty/quazip-0.7/quazip/*.h")
- file(GLOB QUAZIP_MOCS "3rdparty/quazip-0.7/quazip/*.h")
- QT5_WRAP_CPP(QUAZIP_MOC_SRC ${QUAZIP_MOCS})
add_definitions(-DWITH_QUAZIP)
endif(USE_SYSTEM_QUAZIP)
endif(ENABLE_QUAZIP)
@@ -134,5 +131,3 @@ endif(ENABLE_QUAZIP)
# add libqpsd
file(GLOB LIBQPSD_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.cpp")
file(GLOB LIBQPSD_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.h")
-file(GLOB LIBQPSD_MOCS "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.h")
-QT5_WRAP_CPP(LIBQPSD_MOC_SRC ${LIBQPSD_MOCS})
diff --git a/ImageLounge/cmake/Unix.cmake b/ImageLounge/cmake/Unix.cmake
index 4cf2c0ec..5297d48c 100644
--- a/ImageLounge/cmake/Unix.cmake
+++ b/ImageLounge/cmake/Unix.cmake
@@ -97,7 +97,6 @@ unset(QUAZIP_LIBRARIES CACHE)
unset(QUAZIP_HEADERS CACHE)
unset(QUAZIP_SOURCES CACHE)
-unset(QUAZIP_MOCS CACHE)
unset(QT_ROOT CACHE)
if(ENABLE_QUAZIP)
@@ -116,9 +115,7 @@ if(ENABLE_QUAZIP)
file(GLOB QUAZIP_SOURCES "3rdparty/quazip-0.7/quazip/*.c" "3rdparty/quazip-0.7/quazip/*.cpp")
file(GLOB QUAZIP_HEADERS "3rdparty/quazip-0.7/quazip/*.h")
- file(GLOB QUAZIP_MOCS "3rdparty/quazip-0.7/quazip/*.h")
- QT5_WRAP_CPP(QUAZIP_MOC_SRC ${QUAZIP_MOCS})
add_definitions(-DWITH_QUAZIP)
endif(USE_SYSTEM_QUAZIP)
endif(ENABLE_QUAZIP)
@@ -132,6 +129,4 @@ IF(USE_SYSTEM_LIBQPSD)
ELSE()
file(GLOB LIBQPSD_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.cpp")
file(GLOB LIBQPSD_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.h")
- file(GLOB LIBQPSD_MOCS "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libqpsd/*.h")
- QT5_WRAP_CPP(LIBQPSD_MOC_SRC ${LIBQPSD_MOCS})
ENDIF(USE_SYSTEM_LIBQPSD)

@ -0,0 +1,103 @@
# Calculate format=diff
--- diseqc.c 2015/01/26 12:02:14 4.0
+++ diseqc.c 2017/01/09 15:10:40
@@ -253,10 +253,10 @@
return result;
}
-uint cDiseqc::SetScrFrequency(uint SatFrequency, const cScr *Scr, uint8_t *Codes) const
+int cDiseqc::SetScrFrequency(int SatFrequency, const cScr *Scr, uint8_t *Codes) const
{
if ((Codes[0] & 0xF0) == 0x70 ) { // EN50607 aka JESS
- uint t = SatFrequency == 0 ? 0 : (SatFrequency - 100);
+ int t = SatFrequency == 0 ? 0 : (SatFrequency - 100);
if (t < 2048 && Scr->Channel() >= 0 && Scr->Channel() < 32) {
Codes[1] = t >> 8 | Scr->Channel() << 3;
Codes[2] = t;
@@ -266,7 +266,7 @@
}
}
else { // EN50494 aka Unicable
- uint t = SatFrequency == 0 ? 0 : (SatFrequency + Scr->UserBand() + 2) / 4 - 350; // '+ 2' together with '/ 4' results in rounding!
+ int t = SatFrequency == 0 ? 0 : (SatFrequency + Scr->UserBand() + 2) / 4 - 350; // '+ 2' together with '/ 4' results in rounding!
if (t < 1024 && Scr->Channel() >= 0 && Scr->Channel() < 8) {
Codes[3] = t >> 8 | (t == 0 ? 0 : scrBank << 2) | Scr->Channel() << 5;
Codes[4] = t;
@@ -399,7 +399,7 @@
return NULL;
}
-cDiseqc::eDiseqcActions cDiseqc::Execute(const char **CurrentAction, uchar *Codes, uint8_t *MaxCodes, const cScr *Scr, uint *Frequency) const
+cDiseqc::eDiseqcActions cDiseqc::Execute(const char **CurrentAction, uchar *Codes, uint8_t *MaxCodes, const cScr *Scr, int *Frequency) const
{
if (!*CurrentAction)
*CurrentAction = commands;
--- diseqc.h 2013/06/12 11:52:17 4.0
+++ diseqc.h 2017/01/09 15:11:19
@@ -86,7 +86,7 @@
mutable int scrBank;
char *commands;
bool parsing;
- uint SetScrFrequency(uint SatFrequency, const cScr *Scr, uint8_t *Codes) const;
+ int SetScrFrequency(int SatFrequency, const cScr *Scr, uint8_t *Codes) const;
int SetScrPin(const cScr *Scr, uint8_t *Codes) const;
const char *Wait(const char *s) const;
const char *GetPosition(const char *s) const;
@@ -96,7 +96,7 @@
cDiseqc(void);
~cDiseqc();
bool Parse(const char *s);
- eDiseqcActions Execute(const char **CurrentAction, uchar *Codes, uint8_t *MaxCodes, const cScr *Scr, uint *Frequency) const;
+ eDiseqcActions Execute(const char **CurrentAction, uchar *Codes, uint8_t *MaxCodes, const cScr *Scr, int *Frequency) const;
///< Parses the DiSEqC commands and returns the appropriate action code
///< with every call. CurrentAction must be the address of a character pointer,
///< which is initialized to NULL. This pointer is used internally while parsing
--- dvbdevice.c 2016/11/07 13:55:58 4.3
+++ dvbdevice.c 2017/01/09 15:11:39
@@ -329,7 +329,7 @@
void ClearEventQueue(void) const;
bool GetFrontendStatus(fe_status_t &Status) const;
cPositioner *GetPositioner(void);
- void ExecuteDiseqc(const cDiseqc *Diseqc, unsigned int *Frequency);
+ void ExecuteDiseqc(const cDiseqc *Diseqc, int *Frequency);
void ResetToneAndVoltage(void);
bool SetFrontend(void);
virtual void Action(void);
@@ -696,7 +696,7 @@
return positioner;
}
-void cDvbTuner::ExecuteDiseqc(const cDiseqc *Diseqc, unsigned int *Frequency)
+void cDvbTuner::ExecuteDiseqc(const cDiseqc *Diseqc, int *Frequency)
{
if (!lnbPowerTurnedOn) {
CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, SEC_VOLTAGE_13)); // must explicitly turn on LNB power
@@ -806,7 +806,7 @@
SETCMD(DTV_DELIVERY_SYSTEM, frontendType);
if (frontendType == SYS_DVBS || frontendType == SYS_DVBS2) {
- unsigned int frequency = channel.Frequency();
+ int frequency = channel.Frequency();
if (Setup.DiSEqC) {
if (const cDiseqc *diseqc = Diseqcs.Get(device->CardIndex() + 1, channel.Source(), frequency, dtp.Polarization(), &scr)) {
frequency -= diseqc->Lof();
@@ -829,7 +829,7 @@
}
else {
int tone = SEC_TONE_OFF;
- if (frequency < (unsigned int)Setup.LnbSLOF) {
+ if (frequency < Setup.LnbSLOF) {
frequency -= Setup.LnbFrequLo;
tone = SEC_TONE_OFF;
}
--- remux.c 2016/12/22 12:58:20 4.3
+++ remux.c 2017/01/09 15:05:05
@@ -1629,7 +1629,7 @@
Div += parser->IFrameTemporalReferenceOffset();
if (Div <= 0)
Div = 1;
- uint32_t Delta = ptsValues[0] / Div;
+ int Delta = ptsValues[0] / Div;
// determine frame info:
if (isVideo) {
if (Delta == 3753)

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save