summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * small cleanupOliver Tappe2007-09-231-2/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1344 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added readPassword() to Utils.pm, a function which fetches a passwordOliver Tappe2007-09-231-0/+13
| | | | | | from the terminal (via readline). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1342 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switched from perl-based distro-configuration files to "real" configurationOliver Tappe2007-08-1559-106/+7730
| | | | | | | | | | | | | | | | | | | | | files (handled by Config::General) * removed most version specific distribution modules (only Debian-3.1 remains as it requires some special treatment). For all the other distributions, the specific info is now contained in the configuration files * added configuration files (settings.default) for every supported distribution (only Fedora is still missing some info) * added support for inclusion of (externally generated) mirror lists and automatic selection of the five best (fastest) mirrors from that list (20 are tried). For each repository, a mirror configuration file is created (in /etc/opt/openslx/distro-info/<distro>/mirrors/<repo>) after that info has been gathered. * added current mirror lists for each distribution repository to the distro-info hierarchy * updated settings.example to reflect new configuration syntax git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1322 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added 64-bit targets for Ubuntu 6.10, 7.04 and Debian 4.0 (3.1 doesOliver Tappe2007-08-056-0/+30
| | | | | | | | not officially support the amd64 architecture) * Debian-4.0_amd64 is now the OpenSLX build platform for 64-bit git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1318 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped support for CSV databases, as they are simply not good enoughOliver Tappe2007-07-311-1/+3
| | | | | | | | | | | | * added support for db-user and db-passwd: + the mysql backend will now ask for the password upon connect + you can specify the db-user and db-passwd via slxsettings (so you never have to enter it manually afterwards) * slxsettings now checks db-type against an explicit pattern to avoid problems caused by typos git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1295 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards Debian & Ubuntu support, Debian-4.0, Ubuntu-6.10Oliver Tappe2007-07-303-0/+11
| | | | | | | & Ubuntu-7.04 seem to be working ok, now. Only Debian-3.1 refuses to install any kernel, tsk! git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1283 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished installation support for Debian-etch, Debian-sarge and UbuntuOliver Tappe2007-07-286-7/+41
| | | | | | | are nearly done (Ubuntu still missing a kernel ...) * some more refactorings to accommodate Debian-support git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1282 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed several class interfaces as a result of trying to integrate supportOliver Tappe2007-07-281-4/+4
| | | | | | | | for Debian & Ubunto installation (which is still not complete, though) * fixed some bugs along the way (especially the meta-packagers trying to invoke a private function of OpenSLX::OSSetup::Engine) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1281 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added example settings file for ubuntu-6.10Oliver Tappe2007-07-261-0/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1278 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added default /etc/hosts file that allows resolution ofOliver Tappe2007-07-251-0/+1
| | | | | | 'localhost' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1276 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reworked OpenSLX::OSSetup::Distro structure to incorporateOliver Tappe2007-07-252-18/+182
| | | | | | | | | | | | | | a distro specific hierarchy level in addition to the distro & version specific files. The latter will be converted to config-files soon. * moved string2Array() and chrootInto() from OpenSLX::OSSetup::Engine to OpenSLX::Utils to make them available to other callers * started work on ubuntu & debian installation (not done yet) * cleaned interface of OpenSLX::OSSetup::Engine (separated public from private methods) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1275 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reduced use of Config::General to object-oriented mode only, as it isOliver Tappe2007-07-251-1/+2
| | | | | | | cleaner and avoids the risks of automatic imports being changed between versions (a problem Reiner has mentioned) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1273 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped our own implementation of glob() - that was a fix at the wrong place.Oliver Tappe2007-07-221-10/+1Star
| | | | | | We now explicitly ecode the string before we are printing it. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1271 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed glob()-related hang in slxldd.Oliver Tappe2007-07-221-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1270 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed compatibility problems of our config-files with regards to beingOliver Tappe2007-07-221-1/+4
| | | | | | | executed by shells: there is no whitespace allowed before or after the equal sign in shell-var assignments git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1269 95ad53e4-c205-0410-b2fa-d234c58c8868
* * first part of configuration file migration to Config::GeneralOliver Tappe2007-07-211-19/+11Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1268 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanup (two uninit values)Oliver Tappe2007-07-211-2/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1267 95ad53e4-c205-0410-b2fa-d234c58c8868
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-211-10/+17
| | | | | | | | | whose name contain UTF8-characters * fixed problem with locale-specific number format being used during DB- creation (fixes the problem that database access would only work once for de_DE-locales [reported by Detlef Schulz]) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1266 95ad53e4-c205-0410-b2fa-d234c58c8868
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-182-2/+0Star
| | | | | | | Confess()-ing can still be triggered by specifying --debug-confess on the commandline. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1249 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-102-1/+15
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * adjusted example settings file to match new local-URL formatOliver Tappe2007-07-066-16/+16
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1230 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved checkFlags() from Utils to Basics and used it there (in Oliver Tappe2007-07-022-25/+31
| | | | | | InstantiateClass()) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1218 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-015-130/+233
| | | | | | | 'use of uninitialized values', a couple of which might still show up * adjusted all code with respect to passing perlcritic level 4 and 5 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1207 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-202-25/+30
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-172-79/+139
| | | | | | | | | | | | | | | | | | | | * instead of supporting configurable paths at different hierarchy levels, there are now only five configurable folder: + base-path (/opt/openslx), fixed at installation time + config-path (/etc/opt/openslx), fixed at installation time + private-path (/var/opt/openslx), freely configurable by user + public-path (/srv/openslx), freely configurable by user + temp-path (/tmp), freely configurable by user this closes ticket#143 * several holes have been plugged concerning the creation of folders before they are accessed, closing ticket#142 * the functionality of generating config default folders has been moved from the Makefile into a new Perl-module (ConfigFolder.pm), in order to be available to the Perl-scripts, too * slxsettings has been changed to reflect the nature of base-path and config-path as fixed paths git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed all warnings indicated by 'perl -w'Oliver Tappe2007-06-131-108/+135
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1162 95ad53e4-c205-0410-b2fa-d234c58c8868
* * (hopefully) fixed problem with respect to wget repeatedly failing withOliver Tappe2007-05-297-2/+94
| | | | | | | | | | | | | | 'files exists' errors under some circumstances: we now simply remove that file and try again * renamed 'export-filter.local' to 'export-filter' and 'clone-filter.local' to 'clone-filter' * completed example files for clone-filter and export-filter for all distros * split distro-info in two parts: the static, shared part (now living in /opt/openslx/share) and the configurable part living in /etc/opt/openslx. This is the last part of settings file related changes, closing ticket#122 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1106 95ad53e4-c205-0410-b2fa-d234c58c8868
* * part two of settings file related changes (ticket#122): Oliver Tappe2007-05-287-0/+0
| | | | | | | - removed '.local' ending from several files git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1104 95ad53e4-c205-0410-b2fa-d234c58c8868
* * part one of settings file related changes (ticket#122): Oliver Tappe2007-05-287-6/+20
| | | | | | | | - 'settings.default' now lives in /opt/openslx/share - 'settings.local' has been renamed to 'settings' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1103 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for 'local:'-URLs, which trigger the automatic start of a Oliver Tappe2007-05-287-22/+44
| | | | | | | | | | | | busybox-httpd for each repository, through which every request will be routed (thus giving access to files outside of the chroot) * renamed executeInSubprocess() to callInSubprocess() and added a real implementation of executeInSubprocess(), too * updated all settings.local.example files to reflect the new way of accessing local files git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1102 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed slxsystem to ignore SIGPIPE instead of exiting, as this used to causeOliver Tappe2007-05-281-4/+10
| | | | | | problems when smart failed to download a package from a source. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1094 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added utility function followLink() and made use of itOliver Tappe2007-05-131-1/+18
| | | | | | | * reworked search for required kernel modules to be able to return the matching paths to the caller (not currently used though) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1069 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented a simple registration mechanism for cleanup functions in order to Oliver Tappe2007-05-111-0/+32
| | | | | | improve the reliability of cleaning up in case of user interrupts git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1048 95ad53e4-c205-0410-b2fa-d234c58c8868
* * moved instantiateClass() from OpenSLX::Utils to OpenSLX::BasicsOliver Tappe2007-05-072-23/+25
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1023 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed fsmods and nicmods as extended settings, as they now live in the ↵Oliver Tappe2007-05-061-3/+0Star
| | | | | | default system git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1017 95ad53e4-c205-0410-b2fa-d234c58c8868
* * renamed 'ossetup-max-retry-count' to 'ossetup-max-try-count' and started ↵Oliver Tappe2007-05-021-1/+1
| | | | | | | | | to use it in OSSetup::Engine. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@989 95ad53e4-c205-0410-b2fa-d234c58c8868
* overhaul the settings concept:Oliver Tappe2007-05-021-1/+11
| | | | | | | | | | * now all settings live in the settings file, no more settings table in the DB * clearified slxsettings and its options * removed all references to db table 'settings' * added some new extended settings git-svn-id: http://svn.openslx.org/svn/openslx/trunk@988 95ad53e4-c205-0410-b2fa-d234c58c8868
* * improved die() and warn() to fall back to the respective CORE-functions ↵Oliver Tappe2007-04-301-9/+7Star
| | | | | | | | | unless croaking has been requested. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@970 95ad53e4-c205-0410-b2fa-d234c58c8868
* Add Fedora 6 x86_64 to the systems being supported by slxos-setupRoot2007-04-299-0/+231
| | | | | | | install. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@963 95ad53e4-c205-0410-b2fa-d234c58c8868
* Add support to install suse 10.1 x86_64 with slxos-setup.Lars Müller2007-04-2910-0/+185
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@958 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed wrong name of folderOliver Tappe2007-04-2911-0/+0
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@957 95ad53e4-c205-0410-b2fa-d234c58c8868
* * use Carp::Heavy explicitly in order to avoid problemsOliver Tappe2007-04-261-1/+6
| | | | | | | | with dynamic loading later, in case of being chrooted. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@932 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem in slxsystem that would cause unexpected exits if anyOliver Tappe2007-04-261-2/+3
| | | | | | | | command returned -1 * removed superfluous and confusing message for every unknown message key git-svn-id: http://svn.openslx.org/svn/openslx/trunk@929 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to copyFile for passing in the name of the target file (toOliver Tappe2007-04-261-11/+9Star
| | | | | | | rename during copy) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@928 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switch default database type from 'CSV' to 'SQLite', as we noOliver Tappe2007-04-231-1/+1
| | | | | | | longer need the editing capabilities of CSV. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@921 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added our implementation of warn() to increase the visibility of warnings.Oliver Tappe2007-04-151-1/+15
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@893 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanup with respect to how modules/classes are loadedOliver Tappe2007-04-141-2/+26
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@890 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed die() to provide exit-value 5 if no error is indicated by $!, such ↵Oliver Tappe2007-04-011-0/+1
| | | | | | | | | that it is always possible to determine the success/failure of a script from external callers git-svn-id: http://svn.openslx.org/svn/openslx/trunk@846 95ad53e4-c205-0410-b2fa-d234c58c8868
* * inserted correct copyright headerOliver Tappe2007-03-234-15/+43
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@813 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added executeInSubprocess() which encapsulates the starting andOliver Tappe2007-03-171-5/+44
| | | | | | | | | reliable killing of a subprocess * added slxsystem() which handles any killed child processes more properly (by exiting the parent, too). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@781 95ad53e4-c205-0410-b2fa-d234c58c8868