Package alterator-setup: 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 | %define _altdata_dir %_datadir/alterator Name: alterator-setup Version: 0.3.8 Release: alt1 Summary: Perform initial setup of an OEM installation (warning!) License: GPLv2 Group: System/Configuration/Other Url: http://www.altlinux.org/Alterator Source: %name-%version.tar BuildArch: noarch BuildPreReq: alterator >= 4.10-alt6 BuildRequires: rpm-macros-alterator Requires: libshell Requires: alterator-l10n >= 2.5-alt1 Requires: alterator-browser-qt >= 2.17.0 Requires: alterator-lookout => 2.4-alt1 Requires: alterator-wizardface Requires: alterator-notes Requires: alterator-sysconfig Requires: alterator-datetime Requires: alterator-root Requires: alterator-users Requires(post): chkconfig Requires(preun): chkconfig Conflicts: alterator-livecd Conflicts: installer-common-stage2 %description %summary WARNING: you really don't want to install this package into an already configured system as it may spoil the next boot! Given that its sole purpose is the _initial_ configuration of a new system (like setting root password) nobody should need that on an up-and-running host. %package x11vnc Summary: Perform initial setup of an OEM installation through VNC (warning!) Group: System/Configuration/Other Requires: x11vnc-service Requires: %name Requires: alterator-vnc %description x11vnc This is a X11 VNC version of the alterator setup package. WARNING: you really don't want to install this package into an already configured system as it may spoil the next boot! Given that its sole purpose is the _initial_ configuration of a new system (like setting root password) nobody should need that on an up-and-running host. %prep %setup %install %makeinstall cat >> %buildroot%_sysconfdir/alterator-setup/config << EOF # erase %name and related packages REMOVE_SELF=1 EOF %files %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/config %_initdir/setup %_sbindir/%name %_alterator_datadir/steps/* %exclude %_alterator_datadir/steps/vnc.desktop %_alterator_datadir/ui/* %_alterator_libdir/hooks/*/* %_alterator_backend3dir/* %_datadir/alterator-setup/ /lib/systemd/system/setup.service /lib/systemd/system/setup.target %config(noreplace) %_sysconfdir/%name/steps %files x11vnc %_initdir/setup-vnc /lib/systemd/system/setup-vnc.service /lib/systemd/system/setup-vnc.target %_alterator_datadir/steps/vnc.desktop %config(noreplace) %_sysconfdir/%name/steps-vnc # the restore is done in postinstall script # triggered by successful completion of the module # as it can be reused now (doesn't self destruct) %post [ ! -f /lib/systemd/system/setup-vnc.target ] || exit 0 %post_service setup [ -d /etc/systemd/system ] || exit 0 mv /etc/systemd/system/default.target /etc/systemd/system/default.target.bak ||: ln -sf /lib/systemd/system/setup.target /etc/systemd/system/default.target %post x11vnc %post_service setup-vnc [ -d /etc/systemd/system ] || exit 0 mv /etc/systemd/system/default.target /etc/systemd/system/default.target.bak ||: ln -sf /lib/systemd/system/setup-vnc.target /etc/systemd/system/default.target # package is removed in postinstall hook, but # 'systemd stop' stops whole setup.service with hook. %preun if [ -x /sbin/sd_booted -a ! -f /lib/systemd/system/setup-vnc.target ]; then /sbin/sd_booted || %preun_service setup fi %preun x11vnc if [ -x /sbin/sd_booted ]; then /sbin/sd_booted || %preun_service setup-vnc fi %changelog * Wed Nov 11 2020 Anton Midyukov <antohami@altlinux.org> 0.3.8-alt1 - Added preinstall step, needed rootfs-installer-features * Sat Nov 07 2020 Anton Midyukov <antohami@altlinux.org> 0.3.7-alt1 - Added requires on alteratord.service into systemd units (Closes: 39076) - Added packages install step from installer-common-stage2 - Added net-eth step from installer-common-stage2 * Thu Oct 15 2020 Anton Midyukov <antohami@altlinux.org> 0.3.6-alt1 - setup-postinstall.d: Run '/sbin/integalert fix', if it exist before reboot - setup-postinstall.d: Add 94-bootloder-update * Tue Apr 03 2020 Nikita Ermakov <arei@altlinux.org> 0.3.5-alt1 - Add VNC support. * Fri Feb 14 2020 Mikhail Efremov <sem@altlinux.org> 0.3.4-alt1 - postinstall: Run indexhtml-update. * Fri Dec 27 2019 Anton Midyukov <antohami@altlinux.org> 0.3.3-alt6 - setup.service: restart always (e.g. restart when X falls) * Thu Dec 12 2019 Anton Midyukov <antohami@altlinux.org> 0.3.3-alt5 - add conflicts with alterator-livecd, installer-common-stage2 * Fri Dec 06 2019 Ivan A. Melnikov <iv@altlinux.org> 0.3.3-alt4 - remove rootfs-installer-features on cleanup, if present * Fri Dec 28 2018 Ivan A. Melnikov <iv@altlinux.org> 0.3.3-alt3 - setup.service: relax dependency on plymouth-start.service * Tue Sep 04 2018 Dmitry Terekhin <jqt4@altlinux.org> 0.3.3-alt2 - closes: #35276 * Tue Sep 04 2018 Dmitry Terekhin <jqt4@altlinux.org> 0.3.3-alt1.0.mips2 - Deleted now unnecessary reboot commands * Tue Aug 21 2018 Dmitry Terekhin <jqt4@altlinux.org> 0.3.3-alt1.0.mips1 - Added forcible reboot to work around the incompatibility problem with - systemd 238 * Tue Apr 03 2018 Vladimir D. Seleznev <vseleznv@altlinux.org> 0.3.3-alt1 - made service file more correct. * Mon Apr 02 2018 Vladimir D. Seleznev <vseleznv@altlinux.org> 0.3.2-alt1 - fixed service file to make it work with modern systemd. * Mon Apr 28 2014 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.3.1-alt1 - preun: do not use preun_service on systemd. * Mon Apr 21 2014 Michael Shigorin <mike@altlinux.org> 0.3.0-alt1 - sysvinit support * Wed Mar 26 2014 Michael Shigorin <mike@altlinux.org> 0.2.1-alt2 - added a warning to description * Thu Mar 06 2014 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.2.1-alt1 - Remove more packages during cleanup. * Tue Jul 16 2013 Michael Shigorin <mike@altlinux.org> 0.2.0-alt1 - made self destruction optional (sysconfig knob) - minor spec cleanup * Fri Jul 12 2013 Michael Shigorin <mike@altlinux.org> 0.1.1-alt1 - added license step * Thu Jun 20 2013 Michael Shigorin <mike@altlinux.org> 0.1-alt1 - initial release, thanks sem@ |