alterator-setup-0.3.1/ 0000755 0000000 0000000 00000000000 12327445455 0014657 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/Makefile 0000644 0000000 0000000 00000001605 12327445455 0016321 0 ustar 00root root 0000000 0000000 NAME = setup SUBDIRS = notes hooks_dir = $(libexecdir)/alterator/hooks alterator_datadir = $(datadir)/alterator all: install: install-module install-data install-subdirs clean: include /usr/share/alterator/build/module.mak install-data: install -dm755 $(hooks_dir)/setup-postinstall.d cp -a setup-postinstall.d/* $(hooks_dir)/setup-postinstall.d/ install -pDm644 alterator-setup.steps \ $(sysconfdir)/alterator-setup/steps install -pDm755 alterator-setup $(sbindir)/alterator-setup install -d $(alterator_datadir) cp -a steps $(alterator_datadir)/ install -dm755 $(sysconfdir)/../lib/systemd/system cp -a systemd/setup.* $(sysconfdir)/../lib/systemd/system/ install -pDm755 sysvinit/setup.init $(sysconfdir)/rc.d/init.d/setup install-subdirs: for i in $(SUBDIRS); do \ make -C $$i install \ bindir=$(bindir) \ sbindir=$(sbindir) \ datadir=$(datadir) \ || exit 0; \ done alterator-setup-0.3.1/alterator-setup 0000755 0000000 0000000 00000000130 12327445455 0017732 0 ustar 00root root 0000000 0000000 #!/bin/sh export ALTERATOR_DESTDIR="/" alterator-wizard -f /etc/alterator-setup/steps alterator-setup-0.3.1/alterator-setup.steps 0000644 0000000 0000000 00000000071 12327445455 0021070 0 ustar 00root root 0000000 0000000 sysconfig notes-license datetime root users setup-finish alterator-setup-0.3.1/backend3/ 0000755 0000000 0000000 00000000000 12327445455 0016331 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/backend3/setup-finish 0000755 0000000 0000000 00000002057 12327445455 0020701 0 ustar 00root root 0000000 0000000 #!/bin/sh po_domain="alterator-setup" alterator_api_version=1 postinstall_hooks_dir=/usr/lib/alterator/hooks/setup-postinstall.d . alterator-sh-functions dirs="/usr/share/alterator-setup/notes" find_htmlfile() { local name="$1" local languages="$2" local path= html_file= for path in $dirs; do for lang in $languages; do case "$lang" in POSIX|C|all|"") # might be unset yet lang="all";; *) lang="$(printf %s "${lang%%_*}" | tr '[A-Z]' '[a-z]')";; esac html_file="$path/$name.$lang.html" if [ -s "$html_file" ]; then echo "$html_file" return fi done done } on_message() { case "$in_action" in write) case "$in__objects" in /) ;; run-postinstall) run-parts "$postinstall_hooks_dir" ;; esac ;; read) local languages= html_file= languages="$(printf '%s' "$in_language" |tr ';' ' ') all" html_file="$(find_htmlfile "setup-finish" "$languages")" if [ -s "$html_file" ]; then write_string_param "url" "$html_file" else write_error "`_ "File not found"`" fi ;; esac } message_loop alterator-setup-0.3.1/notes/ 0000755 0000000 0000000 00000000000 12327445455 0016007 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/notes/Makefile 0000644 0000000 0000000 00000000146 12327445455 0017450 0 ustar 00root root 0000000 0000000 install: install -d $(datadir)/alterator-setup/notes cp -a *.html $(datadir)/alterator-setup/notes alterator-setup-0.3.1/notes/setup-finish.all.html 0000644 0000000 0000000 00000000322 12327445455 0022057 0 ustar 00root root 0000000 0000000
Setup completed successfully.
You can start working right after reboot.
alterator-setup-0.3.1/notes/setup-finish.ru.html 0000644 0000000 0000000 00000000425 12327445455 0021741 0 ustar 00root root 0000000 0000000Настройка успешно завершена.
После перезагрузки можно приступать к работе.
alterator-setup-0.3.1/setup-postinstall.d/ 0000755 0000000 0000000 00000000000 12327445455 0020613 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/setup-postinstall.d/95-remove-setup-pkgs.sh 0000755 0000000 0000000 00000001020 12327445455 0024773 0 ustar 00root root 0000000 0000000 #!/bin/sh # remove setup specific packages when they're done CONFIG=/etc/alterator-setup/config [ ! -s "$CONFIG" ] || . "$CONFIG" # it's 1 by default if [ "$REMOVE_SELF" = 1 ]; then list="$(rpmquery -a 'installer-*' 'alterator-wizardf*' 'alterator-livecd' 'livecd-installer-features') alterator-setup" rpmi -e -- $list sync fi # restore ordinary boot; backup should be done by the %post script TARGET=/etc/systemd/system/default.target rm -f "$TARGET" [ -s "$TARGET".bak ] && mv "$TARGET".bak "$TARGET" ||: sync exit 0 alterator-setup-0.3.1/steps/ 0000755 0000000 0000000 00000000000 12327445455 0016015 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/steps/datetime.desktop 0000644 0000000 0000000 00000000315 12327445455 0021203 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Icon=steps/datetime Terminal=false Name=Date/Time Name[ru]=Дата и время Name[uk]=Дата й час X-Alterator-URI=/datetime/installer X-Alterator-Help=datetime alterator-setup-0.3.1/steps/notes-license.desktop 0000644 0000000 0000000 00000000370 12327445455 0022160 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Terminal=false Icon=steps/notes-license Name=License agreement Name[ru]=Лицензионный договор Name[uk]=Ліцензійна угода X-Alterator-URI=/notes/license X-Alterator-Help=notes-license alterator-setup-0.3.1/steps/root.desktop 0000644 0000000 0000000 00000000354 12327445455 0020375 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Icon=steps/root Terminal=false Name=System Administrator Name[ru]=Администратор системы Name[uk]=Адміністратор системи X-Alterator-URI=/root X-Alterator-Help=root alterator-setup-0.3.1/steps/setup-finish.desktop 0000644 0000000 0000000 00000000336 12327445455 0022030 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Categories=X-Alterator-Other Terminal=false Name=Finish setup Icon=steps/finish X-Alterator-URI=/setup/finish X-Alterator-Help=setup-finish Name[ru]=Завершение настройки alterator-setup-0.3.1/steps/sysconfig.desktop 0000644 0000000 0000000 00000000274 12327445455 0021417 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Terminal=false Icon=steps/sysconfig-base Name=Language Name[ru]=Язык Name[uk]=Мова X-Alterator-URI=/sysconfig/base X-Alterator-Help=sysconfig-base alterator-setup-0.3.1/steps/users.desktop 0000644 0000000 0000000 00000000352 12327445455 0020551 0 ustar 00root root 0000000 0000000 [Desktop Entry] Type=Application Icon=steps/users Terminal=false Name=System User Name[ru]=Системный пользователь Name[uk]=Системний користувач X-Alterator-URI=/users/add X-Alterator-Help=users alterator-setup-0.3.1/systemd/ 0000755 0000000 0000000 00000000000 12327445455 0016347 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/systemd/setup.service 0000644 0000000 0000000 00000000615 12327445455 0021073 0 ustar 00root root 0000000 0000000 [Unit] Description=Perform OEM Setup Conflicts=shutdown.target After=sysinit.target plymouth-start.service multi-user.target Before=shutdown.target [Service] Environment=HOME=/root WorkingDirectory=/root ExecStartPre=-/bin/plymouth quit ExecStartPre=-/usr/sbin/alteratord ExecStart=-/usr/bin/xinit /usr/sbin/alterator-setup ExecStopPost=-/sbin/systemctl --fail --no-block reboot KillMode=process alterator-setup-0.3.1/systemd/setup.target 0000644 0000000 0000000 00000000220 12327445455 0020711 0 ustar 00root root 0000000 0000000 [Unit] Description=OEM Setup Target Requires=sysinit.target setup.service After=sysinit.target setup.service multi-user.target AllowIsolate=yes alterator-setup-0.3.1/sysvinit/ 0000755 0000000 0000000 00000000000 12327445455 0016547 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/sysvinit/setup.init 0000755 0000000 0000000 00000001275 12327445455 0020604 0 ustar 00root root 0000000 0000000 #!/bin/sh # # setup Perform OEM Setup # # chkconfig: - 32 90 # description: Perform one-time OEM Setup upon first boot # Do not load RH compatibility interface. WITHOUT_RC_COMPAT=1 # Source function library. . /etc/init.d/functions RETVAL=0 start() { service plymouth stop 2>/dev/null service alteratord start xinit alterator-setup RETVAL=$? reboot return $RETVAL ### } # See how we were called. case "$1" in start) start ;; stop|reload|restart|condstop|condrestart|condreload) ;; status) status --expect-user root -- alterator-setup ### RETVAL=$? ;; *) msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}" RETVAL=1 esac exit $RETVAL alterator-setup-0.3.1/ui/ 0000755 0000000 0000000 00000000000 12327445455 0015274 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/ui/setup/ 0000755 0000000 0000000 00000000000 12327445455 0016434 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/ui/setup/finish/ 0000755 0000000 0000000 00000000000 12327445455 0017714 5 ustar 00root root 0000000 0000000 alterator-setup-0.3.1/ui/setup/finish/index.scm 0000644 0000000 0000000 00000001011 12327445455 0021520 0 ustar 00root root 0000000 0000000 (document:surround "/std/frame") margin 10 spacing 10 (document:id finish-text (textbox (string-append "" (_ "Finish text not found") "
") alterability #f)) (define (load-text) (woo-catch/ignore (thunk (finish-text url (woo-get-option (woo-read-first "/setup-finish") 'url))))) (define (ui-on-next) (or (catch/message (lambda() (woo-write "/setup-finish/run-postinstall"))) 'cancel)) (document:root (when loaded (load-text))) (frame:on-next ui-on-next)