Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37899690
en ru br
ALT Linux repositórios
S:0.214-alt1
5.0: 0.11-alt2.1
4.1: 0.11-alt2
4.0: 0.0-alt2
3.0:
+backports:0.0-alt0.M30.2.1

Group :: Desktop gráfico/Icewm
RPM: icewm-startup

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: icewm-startup
Version: 0.11
Release: alt2

Summary: simple pluggable IceWM autostart manager

Summary(ru_RU.CP1251): ìåíåäæåð àâòîçàïóñêà ïðîãðàìì IceWM
License: GPL
Group: Graphical desktop/Icewm
Url: http://www.imath.kiev.ua/~vlasenko/

Packager: Igor Vlasenko <viy at altlinux.ru>
#Source: %name-%version.tar.bz2

BuildArch: noarch
AutoReq: no

# uncomment if you want to backport prior to M30

#define icewmconfdir #_x11x11dir/icewm
#Requires: icewm
%define icewmconfdir %_sysconfdir/X11/icewm
#due to new icewmconfdir in /etc/X11
Requires: icewm >= 1.2.25

%description
Simple pluggable icewm autostart manager is a generic IceWM startup script
which allows one to configure IceWM default autostart via installing corresponding rpm plug-ins.

%description -l ru_RU.CP1251
ìåíåäæåð àâòîçàïóñêà ïðîãðàìì IceWM
ïîçâîëÿåò ïóòåì óñòàíîâêè rpm ðàñøèðåíèé ïðîñòî íàñòðàèâàòü
ðàáî÷èé ñòîë IceWM ïî óìîë÷àíèþ ñðàçó äëÿ âñåõ ïîëüçîâàòåëåé,
ñîõðàíÿÿ çà ïîëüçîâàòåëÿìè ïîëíóþ ñâîáîäó ïåðñîíàëüíîé íàñòðîéêè
àâòîçàïóñêà.

Èìåþùèåñÿ ìîäóëè ïîçâîëÿþò ïðè ñòàðòå icewm îáíîâëÿòü ëîêàëüíîå ìåíþ ïîëüçîâàòåëÿ
(åñëè ó íåãî îíî åñòü), çàïóñêàòü arts, ivman, gkrellm, xxkb,
çàïóñêàòü ðàáî÷èé ñòîë (idesk, xtdesktop, desklaunch, kdesktop) è ò. ä.

%package gkrellm
Group: Graphical desktop/Icewm
Summary: gkrellm autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê gkrellm ïðè ñòàðòå IceWM
# xtoolwait is required because icewm is not launched yet
Requires: %name gkrellm xtoolwait
AutoReq: no

%description gkrellm
gkrellm plug-in for simple pluggable IceWM autostart manager.
%description -l ru_RU.CP1251 gkrellm
çàïóñê gkrellm ïðè ñòàðòå IceWM
(Òðåáóåò ìåíåäæåð àâòîçàïóñêà ïðîãðàìì IceWM).

%package idesk
Group: Graphical desktop/Icewm
Summary: idesk autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê idesk ïðè ñòàðòå IceWM
Requires: %name idesk
Conflicts: %name-kdesktop
AutoReq: no

%description idesk
idesk plug-in for simple pluggable IceWM autostart manager.
%description -l ru_RU.CP1251 idesk
idesk plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì ïðè ñòàðòå IceWM.

%package kdesktop
Group: Graphical desktop/Icewm
Summary: kdesktop autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê kdesktop ïðè ñòàðòå IceWM
Requires: %name kdebase-wm
Conflicts: %name-idesk
AutoReq: no

%description kdesktop
kdesktop plug-in for simple pluggable IceWM autostart manager.
%description -l ru_RU.CP1251 kdesktop
kdesktop plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì ïðè ñòàðòå IceWM.

%package xxkb
Group: Graphical desktop/Icewm
Summary: xxkb autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê xxkb ïðè ñòàðòå IceWM
Requires: %name xxkb
AutoReq: no

%description xxkb
xxkb plug-in for simple pluggable IceWM autostart manager.
~/.xxkbrc or /etc/X11/app-defaults/XXkb is required.
%description -l ru_RU.CP1251 xxkb
xxkb plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì ïðè ñòàðòå IceWM.
Ïëàãèí çàïóñêàåò xxkb òîëüêî ïðè íàëè÷èè ~/.xxkbrc èëè
/etc/X11/app-defaults/XXkb.

%package desklaunch
Group: Graphical desktop/Icewm
Summary: desklaunch autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê desklaunch ïðè ñòàðòå IceWM
Requires: %name desklaunch
AutoReq: no

%description desklaunch
desklaunch plug-in for simple pluggable IceWM autostart manager.
desklaunch is only launched for users that have ~/.desklaunchrc.
%description -l ru_RU.CP1251 desklaunch
desklaunch plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì IceWM.
Ïëàãèí çàïóñêàåò desklaunch òîëüêî ïðè íàëè÷èè ~/.desklaunchrc.

%package xtdesktop
Group: Graphical desktop/Icewm
Summary: xtdesktop autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê xtdesktop ïðè ñòàðòå IceWM
Requires: %name xtdesktop
AutoReq: no

%description xtdesktop
xtdesktop plug-in for simple pluggable IceWM autostart manager.
xtdesktop is only launched for users that have ~/.xtdeskrc.
%description -l ru_RU.CP1251 xtdesktop
xtdesktop plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì IceWM.
Ïëàãèí çàïóñêàåò xtdesktop òîëüêî ïðè íàëè÷èè ~/.xtdeskrc.

%package ivman
Group: Graphical desktop/Icewm
Summary: ivman autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê ivman ïðè ñòàðòå IceWM
Requires: %name ivman
AutoReq: no

%description ivman
ivman plug-in for simple pluggable IceWM autostart manager.
%description -l ru_RU.CP1251 ivman
ivman plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì IceWM.

%package arts
Group: Graphical desktop/Icewm
Summary: arts autostart at IceWM startup
Summary(ru_RU.CP1251): àâòîçàïóñê arts ïðè ñòàðòå IceWM
Requires: %name arts
AutoReq: no

%description arts
arts plug-in for simple pluggable IceWM autostart manager.
%description -l ru_RU.CP1251 arts
arts plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì IceWM.

%package update-menus
Group: Graphical desktop/Icewm
Summary: autoupdate of user menu at IceWM startup
Summary(ru_RU.CP1251): àâòîîáíîâëåíèå ìåíþ ïîëüçîâàòåëÿ ïðè ñòàðòå IceWM (ïðè íåîáõîäèìîñòè)
Requires: %name menu
AutoReq: no

%description update-menus
update-menus plug-in for simple pluggable IceWM autostart manager.
Does autoupdate of user menu at IceWM startup. (~/.icewm/menu).

%description -l ru_RU.CP1251 update-menus
update-menus plug-in äëÿ ìåíåäæåðà àâòîçàïóñêà ïðîãðàìì IceWM.
àâòîîáíîâëåíèå ìåíþ ïîëüçîâàòåëÿ ïðè ñòàðòå IceWM.
Àâòîîáíîâëåíèå çàïóñêàåòñÿ òîëüêî åñëè ïîëüçîâàòåëü
íå ïîëüçóåòñÿ îáùåñèñòåìíûì ìåíþ, à ïðåäïî÷èòàåò
ëîêàëüíîå ìåíþ èç ~/.icewm/menu.

%prep
%setup -q -c -T

%build

cat > README.ru_RU.CP1251 <<EOF



~/.icewm/startup.d

# starting all system-wide icewm autostart programs

for file in %icewmconfdir/startup.d/*; do
 userfile=~/.icewm/startup.d/`echo $file | sed -e 's,%icewmconfdir/startup.d/,,'`
 # root can disable autostart removing 'execute' bits
 if [ -x $file ]; then
   # User-supplied programs disable system-wide programs.
   # So user can disable system-wide program
   # by touching file in ~/.icewm/startup.d/ with the same name
   # or even replace it with his own script.

   # skip system-wide program if user-supplied file exists.
   [ -e $userfile ] || . $file
 fi
done

# starting user-supplied icewm autostart programs

for file in ~/.icewm/startup.d/*; do
 # running user files
 # user can disable autostart removing 'execute' bits
 [ -x $file ] && . $file
done


EOF



%install
%__mkdir_p %buildroot/%icewmconfdir/startup.d
cat <<'EOF' > %buildroot/%icewmconfdir/startup
#!/bin/sh

# starting all system-wide icewm autostart programs

for file in %icewmconfdir/startup.d/*; do
 userfile=~/.icewm/startup.d/`echo $file | sed -e 's,%icewmconfdir/startup.d/,,'`
 # root can disable autostart removing 'execute' bits
 if [ -x $file ]; then
   # User-supplied programs disable system-wide programs.
   # So user can disable system-wide program
   # by touching file in ~/.icewm/startup.d/ with the same name
   # or even replace it with his own script.

   # skip system-wide program if user-supplied file exists.
   [ -e $userfile ] || . $file
 fi
done

# starting user-supplied icewm autostart programs

for file in ~/.icewm/startup.d/*; do
 # running user files
 # user can disable autostart removing 'execute' bits
 [ -x $file ] && . $file
done
EOF

echo 'xtoolwait gkrellm'> %buildroot/%icewmconfdir/startup.d/gkrellm
echo 'kdesktop&'> %buildroot/%icewmconfdir/startup.d/kdesktop
echo 'ivman&'> %buildroot/%icewmconfdir/startup.d/ivman
echo 'artsd&'> %buildroot/%icewmconfdir/startup.d/arts

cat <<EOF > %buildroot/%icewmconfdir/startup.d/idesk
#!/bin/sh
if [ -e ~/.ideskrc ]; then
 idesk &
else # first run
 startidesk &
fi
EOF

cat <<EOF > %buildroot/%icewmconfdir/startup.d/xxkb
#!/bin/sh
# it is not wise to run non-configured xxkb, so we look
# whether it is configured.
# if [ -e ~/.xxkbrc ] then user has configured xxkb properly
# if [ -e /etc/X11/app-defaults/XXkb ]
# then sysadmin has configured xxkb properly.

if [ -e ~/.xxkbrc ] || [ -e /etc/X11/app-defaults/XXkb ]; then
 xxkb&
fi
EOF

cat <<EOF > %buildroot/%icewmconfdir/startup.d/desklaunch
#!/bin/sh
# it is not wise to run non-configured desklaunch, so we look
# whether it is configured.
# if [ -e ~/.desklaunchrc ] then user has configured desklaunch properly
if [ -e ~/.desklaunchrc ]; then
 desklaunch&
fi
EOF

cat <<EOF > %buildroot/%icewmconfdir/startup.d/xtdesktop
#!/bin/sh
# it is not wise to run non-configured xtdesktop, so we look
# whether it is configured.
# if [ -e ~/.xtdeskrc ] then user has configured xtdesktop properly
if [ -e ~/.xtdeskrc ]; then
 xtdesktop&
fi
EOF

cat <<EOF > %buildroot/%icewmconfdir/startup.d/update-menus
#!/bin/sh
# if user has no local menu we will not create it either.
# otherwise it is worth updating it.
if [ -e ~/.icewm/menu ]; then
 update-menus&
fi
EOF

chmod 755 %buildroot/%icewmconfdir/startup.d/*
chmod 755 %buildroot/%icewmconfdir/startup

%files
#%doc README
%dir %icewmconfdir/startup.d
%config %icewmconfdir/startup
#%_man1dir/*

%files arts
%config %icewmconfdir/startup.d/arts

%files desklaunch
%config %icewmconfdir/startup.d/desklaunch

%files gkrellm
%config %icewmconfdir/startup.d/gkrellm

%files idesk
%config %icewmconfdir/startup.d/idesk

%files ivman
%config %icewmconfdir/startup.d/ivman

%files kdesktop
%config %icewmconfdir/startup.d/kdesktop

%files update-menus
%config %icewmconfdir/startup.d/update-menus

%files xtdesktop
%config %icewmconfdir/startup.d/xtdesktop

%files xxkb
%config %icewmconfdir/startup.d/xxkb

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009