summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 20:06:17 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 20:06:17 +0000
commit5de7304c87524d60dfe67bb9e6cd86cb9d6e6c1f (patch)
tree19418539b5ff7a4ea67b4c450c271b33a7356bad
parent27f2913bf609915f0f99f3a9fd63f78cc4745804 (diff)
Added a 'Base' installation path to allow installing of the launcher (handy)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2021 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.Makefile.inc2
-rwxr-xr-xconfigure8
2 files changed, 10 insertions, 0 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index d561e0bfe..360ea6a6f 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -12,6 +12,7 @@ MAKE = @MAKEPROG@
PROGS = inspircd
FLAGS = @FLAGS@
LDLIBS = @LDLIBS@
+BASE = @BASE_DIR@
CONPATH = @CONFIG_DIR@
MODPATH = @MODULE_DIR@
BINPATH = @BINARY_DIR@
@@ -33,6 +34,7 @@ bininst:
@-rm -f $(BINPATH)/inspircd
@-cp src/*.so $(LIBPATH)
@-cp src/inspircd $(BINPATH)
+ @-cp inspircd $(BASE)
@-chmod 0700 $(BINPATH)/inspircd
@-chmod 0700 $(LIBPATH)/*.so
diff --git a/configure b/configure
index 383707e69..bc5db9a33 100755
--- a/configure
+++ b/configure
@@ -16,6 +16,7 @@ $this = resolve_directory($topdir); # PWD, Regardless.
@modlist = (); # Declare for Module List..
%config = (); # Initiate Configuration Hash..
$config{ME} = resolve_directory($topdir); # Present Working Directory
+$config{BASE_DIR} = $config{ME}; # Use CWD as 'Base' Directory.
$config{CONFIG_DIR} = resolve_directory($config{ME}."/conf"); # Configuration Directory
$config{MODULE_DIR} = resolve_directory($config{ME}."/modules"); # Modules Directory
$config{BINARY_DIR} = resolve_directory($config{ME}."/bin"); # Binary Directory
@@ -223,6 +224,12 @@ if ($config{CHANGE_COMPILER} =~ /y/i)
print "\n";
# Directory Settings..
+dir_check("do you wish to install the InspIRCd base", "BASE_DIR");
+$config{CONFIG_DIR} = resolve_directory($config{BASE_DIR}."/conf"); # Configuration Directory
+$config{MODULE_DIR} = resolve_directory($config{BASE_DIR}."/modules"); # Modules Directory
+$config{BINARY_DIR} = resolve_directory($config{BASE_DIR}."/bin"); # Binary Directory
+$config{LIBRARY_DIR} = resolve_directory($config{BASE_DIR}."/lib"); # Library Directory
+
dir_check("are the configuration files", "CONFIG_DIR");
dir_check("are the modules to be compiled to", "MODULE_DIR");
dir_check("is the IRCd binary to be placed", "BINARY_DIR");
@@ -784,6 +791,7 @@ EOF
$tmp =~ s/\@MAKEPROG\@/$config{MAKEPROG}/;
$tmp =~ s/\@FLAGS\@/$config{FLAGS}/;
$tmp =~ s/\@LDLIBS\@/$config{LDLIBS}/;
+ $tmp =~ s/\@BASE_DIR\@/$config{BASE_DIR}/;
$tmp =~ s/\@CONFIG_DIR\@/$config{CONFIG_DIR}/;
$tmp =~ s/\@MODULE_DIR\@/$config{MODULE_DIR}/;
$tmp =~ s/\@BINARY_DIR\@/$config{BINARY_DIR}/;