57 Commits

Author SHA1 Message Date
Sadie Powell
f02704524c Don't execute functions in ModConfig directives. 2024-07-07 17:48:25 +01:00
InspIRCd Robot
5b1dd4cfa5 Update copyright headers. 2024-06-29 09:43:32 +01:00
Sadie Powell
03033f03d0 Use unprefixed module names in modulemanager. 2024-06-24 19:34:42 +01:00
Sadie Powell
0482a13752 When a user installs a contrib module tell them how to load it. 2024-06-24 19:23:12 +01:00
Sadie Powell
7f88bd76c9 Merge branch 'insp3' into master. 2021-06-01 01:46:53 +01:00
Sadie Powell
1505705639 Verify hostnames when installing contrib modules.
This was missed in f6b861f12d.
2021-05-22 15:55:01 +01:00
Sadie Powell
1e1cf527d2 Merge branch 'insp3' into master. 2021-03-05 02:32:35 +00:00
InspIRCd Robot
7b1ab06a95 Update copyright headers. 2021-03-05 02:16:11 +00:00
Sadie Powell
e0dff7cf01 Fix warning about unknown sections in the contrib module manifest. 2021-03-02 05:23:13 +00:00
Sadie Powell
606677c865 Require Perl 5.26 in the build system.
This version is supported by all major systems that ship the C++17
compilers required by the v4 branch.
2021-02-28 19:20:08 +00:00
InspIRCd Robot
1bf7ca3894 Update copyright headers. 2021-02-26 06:58:13 +00:00
Sadie Powell
f6b861f12d Fix unnecessary begin blocks in Perl source files. 2021-01-25 12:39:56 +00:00
InspIRCd Robot
2f12f76ec9 Update copyright headers. 2020-07-30 14:31:12 +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
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
Peter Powell
5e488681d4 modulemanager: use get_version to get the InspIRCd version. 2019-05-12 11:51:05 +01:00
Peter Powell
35b70631f0 Merge tag 'v2.0.26' into master. 2018-04-22 13:02:19 +01:00
Peter Powell
ecfa0d3847 Fix ModuleManager's external source lists not working with HTTPS. 2018-04-12 00:30:53 +01:00
Peter Powell
d23c030c9a Merge tag 'v2.0.25' into master. 2017-11-12 17:33:21 +00:00
Peter Powell
c2f9865bb8 Don't mess with the encoding of extras modules in modulemanager.
This fixes installing extras modules such as m_qrcode which contain
characters from outside of the Unicode Basic Multilingual Plane.
2017-11-12 14:33:08 +00:00
Peter Powell
61e299c2c9 Fix some minor bugs in the Module Manager.
- Fix installation of module.
- Exit after listing modules.
2017-07-12 12:04:42 +01:00
Peter Powell
fdef8ca80a Fix ModuleManager not being able to find make::configure. 2017-05-16 18:50:15 +01:00
Peter Powell
5ac5440a44 Adapt modulemanager for the API added in the previous commit. 2017-03-25 00:54:26 +00:00
Peter Powell
d43056bf6a Use the standard Perl prelude in ModuleManager. 2017-03-25 00:54:25 +00:00
Peter Powell
5c88e3df25 Replace module_installed with eval. 2017-03-25 00:54:25 +00:00
Peter Powell
baee503407 Amend modulemanager to use {read,write}_config_file. 2017-03-25 00:54:25 +00:00
Peter Powell
63a00a858c Workaround modern Perls not adding . to @INC. 2016-11-08 08:15:25 +00:00
Attila Molnar
8f5efbc7aa Merge insp20 2015-04-20 17:40:12 +02:00
Peter Powell
7404ba8b66 Move common code to make::common from make::utilities.
The other code in that file will be removed very soon so it has
been left alone to avoid merge conflicts.

This will help prevent insp20 merge conflicts in the future.
2014-12-07 22:36:43 +00:00
Peter Powell
fbe1743e5e Fix modulemanager not being able to download modules (again!). 2014-10-29 12:50:46 +00:00
Attila Molnar
e244cb2c63 Merge insp20 2014-01-21 18:44:08 +01:00
Peter Powell
cc6f98c91b Fix various problems with ModuleManager.
- Fix downloading the module list on very new versions of Perl.
- Fix an off by one error caused by array sizing starting at -1
  instead of 0 like in every single other language (!!).
- Fix vague error messages when LWP encounters an error.
- Fix LWP::Simple being used before we have checked whether it is
  available.
2013-11-29 21:03:33 +00:00
Peter Powell
3070548cee Clean up and move various subroutines.
- Fix indentation of get_compiler_info and clean up slightly.
- Move module_installed to make::utilities.
- Remove promptnumeric (unused).
- Rename clean to cmd_clean and rewrite.
- Rename dir_check to prompt_bool and rewrite.
- Rename dumphash to dump_hash.
- Rename getcache to read_configure_cache and rewrite.
- Rename getrevision to get_revision.
- Rename makecache to write_configure_cache and rewrite.
- Rename promptstring_s to prompt_string and rewrite.
- Rename showhelp to cmd_help and rewrite.
- Rename update to cmd_update and rewrite.
- Rename yesno to prompt_bool and rewrite.
- Replace getmodules with a <src/modules/m_*.cpp> glob.
2013-08-18 11:41:43 +01:00
Peter Powell
ac8a394a5c Fix ModuleManager error caused by a lack of arguments. 2013-04-10 20:25:32 +01:00
Peter Powell
999ba802d6 Fix ModuleManager failing when:
- LWP::Simple is not installed.
- Crypt::SSLeay or IO::Socket::SSL are not installed.

This fixes #154.
2012-11-08 01:07:38 +01:00
Robby-
5e8f135c6a Headers: update remaining scripts too 2012-04-20 18:33:52 +02:00
Daniel De Graaf
e24ff3ffc6 Fix version comparisons in modulemanager so that "core 2.0" will match 2.0.1 2010-04-03 10:10:11 -05:00
danieldg
a115cb04b7 Filter out modules not applicable to the installed inspircd version
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12625 e03df62e-2008-0410-955e-edbf42e46eb7
2010-03-12 00:12:51 +00:00
danieldg
bd64961912 Improve support for NetBSD
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12438 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-12 00:03:44 +00:00
danieldg
4d91c60d55 modulemanger: check dependencies correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11740 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-17 17:45:40 +00:00
w00t
a9f3a0a0d4 Regenerate modules makefile if installing or uninstalling extras modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11513 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 19:45:30 +00:00
w00t
b33f836f1b Extra bracket on regex go away
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11503 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11 21:01:53 +00:00
w00t
690690ecdc Write .modulemanager after everything has finished, not in a loop.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11492 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 22:10:21 +00:00
w00t
a8f599ab2d Dependancies need string version support too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11491 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 22:10:18 +00:00
w00t
ce262fcaaf Provide some kind of output so it doesn't look like it's doing nothing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11490 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 21:49:39 +00:00
w00t
818a53e13a Track installed module versions, so we can do upgrades properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11489 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 21:49:35 +00:00
w00t
eb0fb52418 Allow for string comparison of git IDs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11488 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 19:55:26 +00:00
w00t
f2f4bf26ce Use string versions in "module" line instead of numerical versions.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11487 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 19:55:23 +00:00