alterator-setup-0.3.1/000075500000000000000000000000001232744545500146575ustar00rootroot00000000000000alterator-setup-0.3.1/Makefile000064400000000000000000000016051232744545500163210ustar00rootroot00000000000000NAME = 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-setup000075500000000000000000000001301232744545500177320ustar00rootroot00000000000000#!/bin/sh export ALTERATOR_DESTDIR="/" alterator-wizard -f /etc/alterator-setup/steps alterator-setup-0.3.1/alterator-setup.steps000064400000000000000000000000711232744545500210700ustar00rootroot00000000000000sysconfig notes-license datetime root users setup-finish alterator-setup-0.3.1/backend3/000075500000000000000000000000001232744545500163315ustar00rootroot00000000000000alterator-setup-0.3.1/backend3/setup-finish000075500000000000000000000020571232744545500207010ustar00rootroot00000000000000#!/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/000075500000000000000000000000001232744545500160075ustar00rootroot00000000000000alterator-setup-0.3.1/notes/Makefile000064400000000000000000000001461232744545500174500ustar00rootroot00000000000000 install: install -d $(datadir)/alterator-setup/notes cp -a *.html $(datadir)/alterator-setup/notes alterator-setup-0.3.1/notes/setup-finish.all.html000064400000000000000000000003221232744545500220570ustar00rootroot00000000000000

Setup completed successfully.

You can start working right after reboot.

alterator-setup-0.3.1/notes/setup-finish.ru.html000064400000000000000000000004251232744545500217410ustar00rootroot00000000000000

Настройка успешно завершена.

После перезагрузки можно приступать к работе.

alterator-setup-0.3.1/setup-postinstall.d/000075500000000000000000000000001232744545500206135ustar00rootroot00000000000000alterator-setup-0.3.1/setup-postinstall.d/95-remove-setup-pkgs.sh000075500000000000000000000010201232744545500247730ustar00rootroot00000000000000#!/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/000075500000000000000000000000001232744545500160155ustar00rootroot00000000000000alterator-setup-0.3.1/steps/datetime.desktop000064400000000000000000000003151232744545500212030ustar00rootroot00000000000000[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.desktop000064400000000000000000000003701232744545500221600ustar00rootroot00000000000000[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.desktop000064400000000000000000000003541232744545500203750ustar00rootroot00000000000000[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.desktop000064400000000000000000000003361232744545500220300ustar00rootroot00000000000000[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.desktop000064400000000000000000000002741232744545500214170ustar00rootroot00000000000000[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.desktop000064400000000000000000000003521232744545500205510ustar00rootroot00000000000000[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/000075500000000000000000000000001232744545500163475ustar00rootroot00000000000000alterator-setup-0.3.1/systemd/setup.service000064400000000000000000000006151232744545500210730ustar00rootroot00000000000000[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.target000064400000000000000000000002201232744545500207110ustar00rootroot00000000000000[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/000075500000000000000000000000001232744545500165475ustar00rootroot00000000000000alterator-setup-0.3.1/sysvinit/setup.init000075500000000000000000000012751232744545500206040ustar00rootroot00000000000000#!/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/000075500000000000000000000000001232744545500152745ustar00rootroot00000000000000alterator-setup-0.3.1/ui/setup/000075500000000000000000000000001232744545500164345ustar00rootroot00000000000000alterator-setup-0.3.1/ui/setup/finish/000075500000000000000000000000001232744545500177145ustar00rootroot00000000000000alterator-setup-0.3.1/ui/setup/finish/index.scm000064400000000000000000000010111232744545500215200ustar00rootroot00000000000000(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)