Репозиторий Sisyphus
Последнее обновление: 25 августа 2019 | Пакетов: 17347 | Посещений: 14702001
en ru br
Репозитории ALT

Группа :: Система/X11
Пакет: livecd-webkiosk

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: livecd-webkiosk
Version: 0.6.0
Release: alt1

Summary: start the browser for a suitable webkiosk environment
License: Public domain
Group: System/X11

Url: http://en.altlinux.org/starterkits
Packager: Michael Shigorin <mike at altlinux.org>

Requires: ratpoison xinit libshell
BuildArch: noarch

%define skeldir %_sysconfdir/skel
%define ifacedir %_sysconfdir/net/ifaces/eth0
%define xsfile %skeldir/.xsession
%define wrapper %_bindir/webkiosk-browser

%description
%summary
(livecd specific; also employs some ratpoison)

%package seamonkey
Summary: seamonkey webkiosk setup
Group: System/X11
Requires: %name = %version-%release
Requires: seamonkey

%description seamonkey
%summary
(the browser == seamonkey)

%package firefox
Summary: firefox webkiosk setup
Group: System/X11
Requires: %name = %version-%release
Requires: livecd-firefox firefox-r-kiosk

%description firefox
%summary
(the browser == firefox)

#ifarch x86_64

%package chromium
Summary: chromium webkiosk setup
Group: System/X11
Requires: %name = %version-%release
Requires: chromium

%description chromium
%summary
(the browser == chromium)
#endif

%package falkon
Summary: falkon webkiosk setup
Group: System/X11
Requires: %name = %version-%release
Requires: falkon

%description falkon
%summary
(the browser == falkon)

%prep

%build

%install
mkdir -p %buildroot{%skeldir,%ifacedir}

cat > %buildroot%xsfile << _EOF_
#!/bin/sh

ratpoison &

. shell-cmdline

read cmdline < /proc/cmdline
cmdline_get url url
[ -n "\$url" -a -f /image/index.html ] && url=/image/index.html

while :; do
xset s off; xset -dpms
webkiosk-browser \$url
done
_EOF_
chmod +x %buildroot%xsfile

cat > %buildroot%skeldir/.ratpoisonrc << _EOF_
startup_message off
set border 0
set padding 0 0 0 0
set barpadding 0 0
escape F25
banish
_EOF_

cat > %buildroot%ifacedir/options << _EOF_
BOOTPROTO=dhcp
_EOF_

%post seamonkey
cat > %wrapper << _EOF_
#!/bin/sh
exec seamonkey -chrome "\$ at "
_EOF_
chmod +x %wrapper

%post firefox
cat > %wrapper << _EOF_
#!/bin/sh
exec firefox "\$ at "
_EOF_
chmod +x %wrapper

#ifarch x86_64

%post chromium
cat > %wrapper << _EOF_
#!/bin/sh
exec chromium --kiosk --start-maximized --disable-translate --no-first-run "\$ at "
_EOF_
chmod +x %wrapper
#endif

%post falkon
cat > %wrapper << _EOF_
#!/bin/sh
exec falkon --fullscreen "\$ at "
_EOF_
chmod +x %wrapper

%files
%skeldir/.ratpoisonrc
%ifacedir/options
%xsfile

%files firefox

%ifarch %ix86 x86_64 aarch64
%files seamonkey
#ifarch x86_64
%files chromium
#endif
%files falkon
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin