Package livecd-webkiosk: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | Name: livecd-webkiosk Version: 0.4.3 Release: alt3 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@altlinux.org> Requires: ratpoison xinit 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 qupzilla Summary: qupzilla webkiosk setup Group: System/X11 Requires: %name = %version-%release Requires: qupzilla >= 1.8.0 %description qupzilla %summary (the browser == qupzilla) %prep %build %install mkdir -p %buildroot{%skeldir,%ifacedir} cat > %buildroot%xsfile << _EOF_ #!/bin/sh ratpoison & [ -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 "\$@" _EOF_ chmod +x %wrapper %post firefox cat > %wrapper << _EOF_ #!/bin/sh exec firefox "\$@" _EOF_ chmod +x %wrapper #ifarch x86_64 %post chromium cat > %wrapper << _EOF_ #!/bin/sh exec chromium --kiosk --start-maximized --disable-translate --no-first-run "\$@" _EOF_ chmod +x %wrapper #endif %post qupzilla cat > %wrapper << _EOF_ #!/bin/sh exec qupzilla --fullscreen "\$@" _EOF_ chmod +x %wrapper %files %skeldir/.ratpoisonrc %ifacedir/options %xsfile %files seamonkey %files firefox #ifarch x86_64 %files chromium #endif %files qupzilla %changelog * Wed Oct 14 2015 Michael Shigorin <mike@altlinux.org> 0.4.3-alt3 - the whole livecd-webkiosk source package should be made noarch * Wed Oct 14 2015 Michael Shigorin <mike@altlinux.org> 0.4.3-alt2 - reenabled non-x86_64 build for chromium subpackage (and actually made it noarch) * Tue Sep 08 2015 Michael Shigorin <mike@altlinux.org> 0.4.3-alt1 - tweaked chromium options as its kiosk doesn't mute "first run" * Mon Sep 07 2015 Michael Shigorin <mike@altlinux.org> 0.4.2-alt5 - reenabled noarch for non-chromium subpackages * Mon Sep 07 2015 Michael Shigorin <mike@altlinux.org> 0.4.2-alt4 - s/firefox-fullscreen-kiosk/firefox-r-kiosk/ * Fri Jun 19 2015 Michael Shigorin <mike@altlinux.org> 0.4.2-alt3 - there are 32-bit capable browsers out there still :) * Thu Jun 18 2015 Andrey Cherepanov <cas@altlinux.org> 0.4.2-alt2 - rebuild without 32-bit support * Wed Dec 31 2014 Michael Shigorin <mike@altlinux.org> 0.4.2-alt1 - disable DPMS (thanks valintinr@) * Mon Sep 29 2014 Michael Shigorin <mike@altlinux.org> 0.4.1-alt1 - require qupzilla 1.8.0 or later for --fullscreen * Sat Sep 27 2014 Michael Shigorin <mike@altlinux.org> 0.4-alt1 - added qupzilla support * Sat Sep 13 2014 Michael Shigorin <mike@altlinux.org> 0.3-alt1 - added seamonkey support * Fri Jun 07 2013 Michael Shigorin <mike@altlinux.org> 0.2-alt2 - rebuilt * Sun Dec 23 2012 Michael Shigorin <mike@altlinux.org> 0.2-alt1 - introduced chromium support (as a separate subpackage) - NB: firefox support moved to a subpackage as well, please pay attention if you're upgrading live images * Wed Oct 17 2012 Michael Shigorin <mike@altlinux.org> 0.1-alt3 - moved firefox prefs.js handling to livecd-firefox package * Sun Mar 25 2012 Michael Shigorin <mike@altlinux.org> 0.1-alt2 - disable firefox' default browser check * Tue Jan 24 2012 Michael Shigorin <mike@altlinux.org> 0.1-alt1 - initial release |