642 Commits

Author SHA1 Message Date
Sadie Powell
0a03eada1c Import regex_pcre2 from inspircd-contrib.
The original plan was to make the PCRE2 switch happen in v3 but it
seems that distributions are beginning to unpackage the old pcre
library already.
2022-12-05 07:18:32 +00:00
InspIRCd Robot
96f355c2fa Update copyright headers. 2022-08-25 20:46:11 +01:00
Sadie Powell
2559f75389 Allow preconfiguring the owner uid/gid while also disabling ownership. 2022-05-17 15:18:08 +01:00
Sadie Powell
b39e038743 Install into /usr/bin instead of /usr/sbin.
We discourage users from running as root so installing into sbin on
system-wide installs doesn't make sense anyway.
2022-05-03 15:55:23 +01:00
Sadie Powell
16ca375652 Show more build environment information when running configure. 2021-11-04 20:30:55 +00:00
Sadie Powell
bd86ebdc9a Warn about how quirky musl's libdl implementation is. 2021-08-29 13:35:15 +01:00
Sadie Powell
b7d92eaf0c Check that the source dir is writable before running compiler checks. 2021-07-28 10:20:59 +01:00
Sadie Powell
f75335f98b Always default the genssl question in configure to no. 2021-07-18 20:54:36 +01:00
Sadie Powell
fde23f2801 Use /run/inspircd as the runtime directory on Linux.
Unfortunately some tooling like AppArmor is not smart enough to
follow the symlink from /var/run to /run so we need to explicitly
set the path. This fixes running InspIRCd without --nopid on some
systems.

See also: inspircd/inspircd-packages#402ef9a411.
2021-06-11 08:23:11 +01:00
Sadie Powell
e69ed249cb Fix unnecessary capitalisation at the start of a configure warning. 2021-06-09 04:52:42 +01:00
Sadie Powell
ffdae581d4 Use dummy values for the user/group with --disable-ownership. 2021-06-09 04:40:53 +01:00
Sadie Powell
3766337fcb Add the --disable-ownership option to help packagers out. 2021-06-09 04:20:09 +01:00
InspIRCd Robot
e94b673532 Update copyright headers. 2021-05-14 14:48:39 +01:00
Sadie Powell
4ace96e521 Make the system-wide runtime directory /var/run/inspircd.
This avoids permission issues.
2021-03-25 12:28:11 +00:00
Sadie Powell
b378b5087b Allow passing --prefix with --system. 2021-03-11 07:38:15 +00:00
Sadie Powell
fd6cb9caba Fix using single quotes where double quotes should be used. 2021-03-06 02:31:10 +00:00
Sadie Powell
9d26c40d1b Fix detection of the ldap, regex_stdlib, and ssl_mbedtls module deps.
I am so sorry for writing this cursed magic.
2021-03-05 08:04:58 +00:00
Sadie Powell
9d5b3f0d3c Remove some todo comments which are outdated or misleading. 2021-03-05 04:31:20 +00:00
Sadie Powell
384c880cc6 Warn users of old compiler versions about the upcoming version bump. 2021-02-28 19:54:30 +00:00
Sadie Powell
102c54990c Warn users of old Perl versions about the upcoming version bump. 2021-02-28 19:32:33 +00:00
InspIRCd Robot
1bf7ca3894 Update copyright headers. 2021-02-26 06:58:13 +00:00
Sadie Powell
1794c202b9 Fix the system-wide paths to not violate the Linux FHS. 2021-02-08 13:03:56 +00:00
Sadie Powell
55a0a6ab66 Fix the base path being used for more than just the install prefix. 2021-01-31 14:38:46 +00:00
Sadie Powell
0e5081e87c Fix some minor oversights introduced in 859a799 and 3e557e8. 2021-01-29 14:24:56 +00:00
Sadie Powell
2fceea41e8 Always use for in Perl modules. 2021-01-29 13:46:37 +00:00
Sadie Powell
859a79923a Migrate some stuff away from print_format. 2021-01-27 16:47:08 +00:00
Sadie Powell
f6b861f12d Fix unnecessary begin blocks in Perl source files. 2021-01-25 12:39:56 +00:00
Sadie Powell
a59ed4b394 Add a new runtime directory and move the pid file to it.
The data directory is intended for persistent files whereas the pid
file is ephemeral. This distinction doesn't matter by default but
on system-wide installs ephemeral runtime files go in /var/run or
/run instead.
2021-01-18 07:05:27 +00:00
Sadie Powell
2145cc3f94 Skip extra whitespace in --{enable,disable}-extras. 2020-11-08 20:23:27 +00:00
InspIRCd Robot
e73d011e68 Update copyright headers. 2020-10-30 12:01:10 +00:00
Sadie Powell
78c79a379a More consistently show modules without the file prefix and suffix. 2020-10-15 17:15:28 +01:00
ShutterQuick
219f8e6262
Implement support for Argon2 password hashing.
Resolves #1540.
2020-10-10 18:25:24 +01:00
Sadie Powell
b64fe8320e Store generated SSL certificates in the .configure directory.
Co-Authored-By: Nicole Kleinhoff <ilbelkyr@shalture.org>
2020-09-26 23:34:03 +01:00
Sadie Powell
9cdd7c70ee The file extension is optional when calling enable_extras. 2020-09-23 13:28:47 +01:00
Sadie Powell
aebab66b30 Show the location of cache.cfg relative to the root directory. 2020-09-13 20:45:36 +01:00
Sadie Powell
651413bbc5 Don't warn about SSL modules if using --disable-auto-extras. 2020-08-29 19:59:34 +01:00
Sadie Powell
cae3a4e728 Rewrite --{enable,disable}-extras logic. 2020-08-25 09:43:05 +01:00
Sadie Powell
382b278f72 Ask if self-signed certs should be deleted when running configure.
Closes #1793.
2020-08-03 12:15:04 +01:00
Sadie Powell
07b12e7249 Various improvements to the build system.
- Fix running configure where configure is not in the PWD.
- Only show relative paths when generating files from templates.
2020-07-07 08:33:07 +01:00
Sadie Powell
87bb27a7a7 Implement support for portable installations. 2020-05-16 14:25:24 +01:00
Sadie Powell
5a95d907d4 Improve building the install paths in non-system mode.
- Use rel2abs on the base path instead of on every sub-directory.
- Use catdir for joining paths instead of string concatenation.
2020-05-16 11:43:11 +01:00
Sadie Powell
bec70fca51 Add a comment for packagers who delete the --{uid,gid} checks. 2020-03-31 17:33:55 +01:00
Sadie Powell
5960cbcde3 Fix get_cpu_count not being evaluated as a scalar.
This fixes a bug where the changes in 0c34d28447 did not work.
2020-03-09 03:44:41 +00:00
Sadie Powell
0c34d28447 Tell people to run make with the number of CPU cores plus 1.
This results in faster builds as there's always one job waiting.
2020-02-10 11:59:15 +00:00
InspIRCd Robot
8f62016f16 Update copyright headers. 2020-01-31 12:48:25 +00:00
Sadie Powell
2c33a3027b Improve manually enabling extra modules.
- Allow modules to be specified without their prefix and extensions
  in --{disable,enable}-extras.
- Allow modules to be space delimited in --{disable,enable}-extras.
2020-01-18 13:27:24 +00:00
Sadie Powell
a0176191c9 Remove whitespace between the shebang and the copyright header. 2020-01-11 22:53:07 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Sadie Powell
56375392ba Update my name and email address. 2019-12-31 20:55:17 +01:00
Matt Schatz
274f40653f Update examples directory when paths are changed interactively. 2019-10-20 20:30:24 +01:00