- add system limits defaults

This commit is contained in:
Сергей Турчин 2016-07-11 14:41:17 +03:00 committed by Andrey Cherepanov
parent cb59bad517
commit 4bec9de4ea
3 changed files with 30 additions and 0 deletions

View File

@ -333,6 +333,14 @@ for n in fedora redhat system; do
done
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir/os-release
# limits
mkdir -p %buildroot%_sysconfdir/security/limits.d/
cat <<__EOF__ >%buildroot%_sysconfdir/security/limits.d/77-%name.conf
* soft nproc 3072
root soft nproc 1024
* hard nproc 4096
__EOF__
#notes
pushd notes
%makeinstall
@ -385,6 +393,9 @@ cp -P xfce-settings/backgrounds/*.{jpg,png} %buildroot/usr/share/backgrounds/xfc
install -pDm0755 xfce-settings/scripts/zdg-move-templates.sh %buildroot%_sysconfdir/X11/profile.d/zdg-move-templates.sh
install -Dm 644 gnome-settings/gtkrc-2 %buildroot/etc/skel/.gtkrc-2.0
install -Dm 644 gnome-settings/gtk3-settings.ini %buildroot/etc/skel/.config/gtk-3.0/settings.ini
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
mkdir -p %buildroot/etc/alterator
@ -482,6 +493,7 @@ subst 's/#theme-name=/theme-name=Clearlooks-Phenix/' /etc/lightdm/lightdm-gtk-gr
%files release
%_sysconfdir/*-release
%_sysconfdir/buildreqs/packages/ignore.d/*
%config(noreplace) %_sysconfdir/security/limits.d/77-%name.conf
%files notes
%_datadir/alt-notes/*
@ -501,6 +513,7 @@ subst 's/#theme-name=/theme-name=Clearlooks-Phenix/' /etc/lightdm/lightdm-gtk-gr
/etc/skel/XDG-Templates.skel/
/etc/skel/.wm-select
/etc/skel/.config
/etc/skel/.gtkrc-2.0
/etc/skel/.local
/etc/skel/.gconf
/etc/skel/.vimrc

View File

@ -0,0 +1,8 @@
[Settings]
gtk-theme-name=Clearlooks-Phenix
gtk-icon-theme-name=SimpleSL
gtk-fallback-icon-theme=gnome
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=1
gtk-button-images=1
gtk-alternative-button-order=1

9
gnome-settings/gtkrc-2 Normal file
View File

@ -0,0 +1,9 @@
include "/usr/share/themes/Clearlooks-Phenix/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"
gtk-theme-name="Clearlooks-Phenix"
gtk-icon-theme-name="SimpleSL"
gtk-fallback-icon-theme="gnome"
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=1
gtk-button-images=1
gtk-alternative-button-order=1