Группа :: Эмуляторы
Пакет: ksmtuned
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: ksmtuned
Version: 1.0
Release: alt4
Summary: KSM
License: GPLv3
Group: Emulators
# dead site
Url: http://gitorious.org/ksm-control-scripts/ksm-control-scripts/trees/master
BuildRequires: gcc
Source: %name-%version.tar
%description
The Kernel Samepage Merging control Daemon is a simple script that controls whether (and with what vigor) should ksm search duplicated memory pages.
%prep
%setup
%install
gcc ksmctl.c -O2 -g -o ksmctl
#ksm
install -pD -m644 ksm.sysconfig %buildroot%_sysconfdir/sysconfig/ksm
install -pD -m755 ksm.init %buildroot%_initdir/ksm
install -pD -m644 ksm.service %buildroot%_unitdir/ksm.service
install -D -p -m 0755 ksmctl %buildroot%_sbindir/ksmctl
#ksmtuned
install -pD -m755 ksmtuned %buildroot%_sbindir/ksmtuned
install -pD -m644 ksmtuned.conf %buildroot%_sysconfdir/ksmtuned.conf
install -pD -m755 ksmtuned.init %buildroot%_initdir/ksmtuned
install -pD -m644 ksmtuned.service %buildroot%_unitdir/ksmtuned.service
%post
%post_service %name
%post_service ksm
%preun
%preun_service %name
%preun_service ksm
%files
%_sbindir/*
%_initdir/*
%_unitdir/*
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/ksmtuned.conf
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.0
Release: alt4
Summary: KSM
License: GPLv3
Group: Emulators
# dead site
Url: http://gitorious.org/ksm-control-scripts/ksm-control-scripts/trees/master
BuildRequires: gcc
Source: %name-%version.tar
%description
The Kernel Samepage Merging control Daemon is a simple script that controls whether (and with what vigor) should ksm search duplicated memory pages.
%prep
%setup
%install
gcc ksmctl.c -O2 -g -o ksmctl
#ksm
install -pD -m644 ksm.sysconfig %buildroot%_sysconfdir/sysconfig/ksm
install -pD -m755 ksm.init %buildroot%_initdir/ksm
install -pD -m644 ksm.service %buildroot%_unitdir/ksm.service
install -D -p -m 0755 ksmctl %buildroot%_sbindir/ksmctl
#ksmtuned
install -pD -m755 ksmtuned %buildroot%_sbindir/ksmtuned
install -pD -m644 ksmtuned.conf %buildroot%_sysconfdir/ksmtuned.conf
install -pD -m755 ksmtuned.init %buildroot%_initdir/ksmtuned
install -pD -m644 ksmtuned.service %buildroot%_unitdir/ksmtuned.service
%post
%post_service %name
%post_service ksm
%preun
%preun_service %name
%preun_service ksm
%files
%_sbindir/*
%_initdir/*
%_unitdir/*
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/ksmtuned.conf
%changelog
…
Полный changelog можно просмотреть здесь