Adriaan de Groot
2c0d9396e2
[users] Link to CoreAddons for KMacroExpander in config
2022-04-12 14:10:12 +02:00
Adriaan de Groot
cf097850de
CMake: apply gersemi styling
2022-02-08 16:18:47 +01:00
Adriaan de Groot
03e621f4a2
Modules: clean up linking
...
- do not link (explicitly) to Calamares libraries, the CMake
functions do that automatically.
- while here, tidy and remove commented-out-bits
- while here, remove unneeded includes
2021-07-26 15:04:43 +02:00
Adriaan de Groot
b503aa645b
Merge pull request #1563 from LordTermor/calamares
...
[users] Full name transliteration support for user creation
2020-11-10 01:19:44 +01:00
Adriaan de Groot
486cdaeeb6
[users] Shuffle library order to satisfy CI build
2020-11-02 14:10:35 +01:00
Adriaan de Groot
8127ae704c
[users] Expand tests for groups a little
2020-11-02 12:13:59 +01:00
Artem Grinev
48eae463cc
[users] Full name transliteration support for user creation
2020-11-01 19:45:12 -05:00
Adriaan de Groot
daaf16d331
Merge branch 'calamares' into issue-1523
2020-10-29 16:33:27 +01:00
Adriaan de Groot
c412e285c2
[libcalamares] Link publicly to yaml-cpp
...
Needed on FreeBSD, where you otherwise might not get the
include paths for yaml-cpp added -- and utils/Yaml.h
expects them to be there.
2020-10-23 12:01:29 +02:00
Adriaan de Groot
89d495d5fb
[users] Rename file to match its purpose
2020-10-22 14:22:11 +02:00
Adriaan de Groot
5b4f9d0b98
[users] Adjust tests for changed API
2020-10-22 14:21:14 +02:00
Adriaan de Groot
3d289f345a
[users] Refactor users functionality to a static lib
...
- this makes it less fragile to share all the functionality
with usersq, since it ends up in the library which is shared
between the modules.
2020-10-21 15:02:33 +02:00
Adriaan de Groot
29e6934672
[users] Factor out Sudo creation into separate job
2020-10-21 14:43:45 +02:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00
Adriaan de Groot
95ceb1e8c7
REUSE: (BSD-2-Clause) all CMakeLists
...
The build instructions are not that interesting, it's a toss-up
between CC0 and BSD-2, but because other CMake bits are BSD-2-Clause,
apply that to more CMakeLists. The copyright date isn't all that
accurate, but these are just inconsequential files.
While here, tidy up and get rid of some useless intermediates.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
3ecab4bedb
[users] Fix test building
...
- now Config can create jobs, tests that consume Config need
to build the jobs as well; re-jig CMakeLists to make
those a little easier.
2020-08-18 11:41:43 +02:00
Adriaan de Groot
b2b9ae7799
[users] Add tests for moved password-check configuration
...
- link the PW checks to the test, and libpwquality if needed
- test only does very basic config-mungeing
2020-08-05 13:03:56 +02:00
Adriaan de Groot
892e9798f4
[users] Sanitize tests
...
- move the testing of config-object methods to its own tests
- simplify file structure for the password job tests
2020-07-29 13:31:39 +02:00
Adriaan de Groot
cc1136fb0e
[users] Untangle tests
...
- name sources for tests consistently Test<something>
- chase some required source changes with the renaming
- name test targets consistently too
2020-07-29 13:23:41 +02:00
Adriaan de Groot
b9372ba432
[users] Move default groups setting to Config
...
- drop groups from the viewstep
- note that the Config object should also be in charge of creating
Jobs (but then the de-tangling needs to be completed)
- add tests of default groups loading
Doesn't compile because QRegExpValidator is a gui thing.
2020-07-29 12:18:25 +02:00
Adriaan de Groot
dab831b2ff
[users] Introduce a (stub) Config object
2020-07-27 15:55:04 +02:00
Adriaan de Groot
8ce7457023
[users] Add test for create-users code
...
- just one test for groups-file loading
- while here fix bug that blank and comment lines were being
kept as valid group names
2020-07-27 15:00:14 +02:00
Adriaan de Groot
c5b45c37fc
[users] Add tests of the file-writing components
2020-02-17 18:10:46 +01:00
Adriaan de Groot
371fe267b1
Merge branch 'better-hostname'
2020-02-17 17:10:21 +01:00
Adriaan de Groot
4495a4c739
CMake: Allow extra libraries in calamares_add_test
...
- Extra libraries specified via LIBRARIES part of CMake function
- Convert all the other module tests
2020-02-17 14:36:52 +01:00
Adriaan de Groot
44bf0a5d6d
[users] Add method for using hostnamed
...
SEE #1140
2020-02-17 10:57:41 +01:00
Adriaan de Groot
123c774a47
Use new automoc options
2019-04-18 12:06:16 +02:00
Adriaan de Groot
7515386cf8
CMake: clean up test setup
...
- Remove redundant searches for ECM and Qt::Test, move
them to top-level.
2018-10-05 09:41:37 -04:00
Adriaan de Groot
27e1de6548
[users] Use libpwquality for additional password checks
...
- add cmake module to find libpwquality
- move checking functions to their own file
- some Transifex hackery
- stub out the libpwquality check
2018-01-24 14:13:50 +01:00
Adriaan de Groot
105e06798e
CMake: look for ECM at top-level, add to search path if found.
2017-11-01 05:50:04 -04:00
Adriaan de Groot
c9f4bc0cc8
Check for crypt(3), also on FreeBSD
2017-09-13 22:32:21 +02:00
Adriaan de Groot
6fb40c517a
CMake: collect all the Find-modules at top-level
2017-07-11 06:26:56 -04:00
Adriaan de Groot
9f526be198
Salt: add test for salt format
2017-06-20 17:43:50 -04:00
Teo Mrnjavac
e2b2d761c2
Do not LINK_PUBLIC by default.
2016-12-07 16:37:29 +01:00
Rohan Garg
b587a0ff00
Add support to set the hostname
2014-10-21 19:06:27 +02:00
Teo Mrnjavac
d97bb47f09
Add proper QResrouce system to libcalamaresui, finish up prepare checks
...
This also adds ImageRegistry, a SVG cache, a bunch of utility functions
for shared pixmaps in CalamaresUtilsGui and renames several qrc files
in viewmodules.
2014-08-26 18:24:51 +02:00
Teo Mrnjavac
8f10c21e5b
Big configuration overhaul.
...
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
2014-08-06 11:54:45 +02:00
Teo Mrnjavac
b111027d57
Add SetPasswordJob in Users module, hook it all up.
2014-07-31 19:06:31 +02:00
Teo Mrnjavac
46f5dab7fd
CreateUserJob for Users viewmodule
2014-07-31 14:53:46 +02:00
Teo Mrnjavac
fb32432548
UI for users viewmodule.
2014-07-31 14:52:40 +02:00