mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
7ceee91313
maintainer timeout No response from: maintainer
152 lines
5.5 KiB
Plaintext
152 lines
5.5 KiB
Plaintext
--- tools/install_ircd.in.orig Thu Mar 21 16:41:59 2002
|
|
+++ tools/install_ircd.in Thu Mar 21 16:47:07 2002
|
|
@@ -7,6 +7,14 @@
|
|
# Fixed.
|
|
#
|
|
|
|
+if [ "x@prefix@" != "x${PREFIX}" ]; then
|
|
+ echo "ERROR: Different prefix used to install than for configure/build."
|
|
+ echo "The prefix is compiled into the binary, thus this will not work."
|
|
+ echo "Please be sure to use the same \$PREFIX throughout building of"
|
|
+ echo "this port."
|
|
+ exit 1
|
|
+fi
|
|
+
|
|
# Path to install-sh
|
|
INSTALL_SH="autoconf/install-sh"
|
|
|
|
@@ -39,6 +47,7 @@
|
|
fi
|
|
}
|
|
|
|
+BPATH=`grep '#define.BPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
DPATH=`grep '#define.DPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
SPATH=`grep '#define.SPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
CPATH=`grep '#define.CPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
@@ -48,6 +57,7 @@
|
|
PPATH=`grep '#define.PPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
HPATH=`grep '#define.HPATH' include/config.h|awk '{print $3}'|tr -d \"`;
|
|
|
|
+BPATH=`dir_concat ${BPATH}`;
|
|
SPATH=`dir_concat ${SPATH}`;
|
|
CPATH=`dir_concat ${CPATH}`;
|
|
KPATH=`dir_concat ${KPATH}`;
|
|
@@ -56,6 +66,7 @@
|
|
PPATH=`dir_concat ${PPATH}`;
|
|
HPATH=`dir_concat ${HPATH}`;
|
|
|
|
+# BPATH = binary directory
|
|
# DPATH = directory,
|
|
# SPATH = server executable,
|
|
# CPATH = conf file,
|
|
@@ -76,86 +87,46 @@
|
|
# try to install their ircd.conf file, unless it already exists.
|
|
# install ircd, save old one as ircd.old
|
|
dir_make `dirname ${SPATH}`
|
|
-if [ ! -f ${SPATH}${EXESUFFIX} ]; then
|
|
- echo installing ircd as ${SPATH}${EXESUFFIX}
|
|
- $INSTALL_SH -c src/ircd${EXESUFFIX} ${SPATH}${EXESUFFIX};
|
|
-else
|
|
- echo installing ircd as ${SPATH}${EXESUFFIX}
|
|
- echo previous ircd saved as ircd${EXESUFFIX}.old
|
|
- mv ${SPATH}${EXESUFFIX} ${SPATH}${EXESUFFIX}.old
|
|
- $INSTALL_SH -c src/ircd${EXESUFFIX} ${SPATH}${EXESUFFIX};
|
|
-fi
|
|
+echo installing ircd as ${SPATH}${EXESUFFIX}
|
|
+$INSTALL_SH -o 72 -g 72 -c src/ircd${EXESUFFIX} ${SPATH}${EXESUFFIX};
|
|
+strip ${SPATH}${EXESUFFIX};
|
|
|
|
dir_make `dirname ${CPATH}`
|
|
-if [ ! -f ${CPATH} ]; then
|
|
- echo installing example.conf as ${CPATH}
|
|
- $INSTALL_SH -c doc/example.conf ${CPATH};
|
|
-else
|
|
- echo You already have ${CPATH}.;
|
|
-fi
|
|
+echo installing example.conf as ${CPATH}.sample
|
|
+$INSTALL_SH -o 72 -g 72 -c doc/example.conf ${CPATH}.sample;
|
|
|
|
# try to install their motd file, unless it already exists.
|
|
dir_make `dirname ${MPATH}`
|
|
-if [ ! -f ${MPATH} ]; then
|
|
- echo installing a sample MOTD in ${MPATH}
|
|
- echo "This is ircd-hybrid MOTD replace it with something better" > ${MPATH};
|
|
-else
|
|
- echo You already have an MOTD in ${MPATH}.;
|
|
-fi
|
|
+echo installing a sample MOTD in ${MPATH}.sample
|
|
+echo "This is ircd-hybrid MOTD replace it with something better" \
|
|
+ > ${MPATH}.sample;
|
|
+chown 72:72 ${MPATH}.sample;
|
|
|
|
# try to install their kpath file unless it already exists.
|
|
dir_make `dirname ${KPATH}`
|
|
-if [ ! -f ${KPATH} ]; then
|
|
- echo touching K-line file ${KPATH}
|
|
- touch ${KPATH};
|
|
-else
|
|
- echo You already have a K-line file in ${KPATH}.;
|
|
-fi
|
|
+touch ${KPATH}.sample;
|
|
+chown 72:72 ${KPATH}.sample;
|
|
|
|
# try to install their opers.txt file, in all cases
|
|
dir_make `dirname ${HPATH}`
|
|
-if [ ! -f ${HPATH} ]; then
|
|
- echo installing opers.txt as ${HPATH}
|
|
- $INSTALL_SH -c opers.txt ${HPATH};
|
|
-else
|
|
- echo installing opers.txt as ${HPATH}
|
|
- echo previous opers.txt saved as opers.txt.old
|
|
- mv ${HPATH} ${HPATH}.old
|
|
- $INSTALL_SH -c opers.txt ${HPATH};
|
|
-fi
|
|
+echo installing opers.txt as ${HPATH}.sample
|
|
+$INSTALL_SH -o 72 -g 72 -c opers.txt ${HPATH}.sample;
|
|
|
|
# install mkpasswd
|
|
-if [ ! -f ${DPATH}mkpasswd ]; then
|
|
- echo installing mkpasswd as ${DPATH}mkpasswd${EXESUFFIX}
|
|
- $INSTALL_SH -c tools/mkpasswd${EXESUFFIX} ${DPATH}mkpasswd${EXESUFFIX};
|
|
-else
|
|
- echo installing mkpasswd as ${DPATH}mkpasswd${EXESUFFIX}
|
|
- echo previous mkpasswd saved as mkpasswd${EXESUFFIX}.old
|
|
- mv ${DPATH}mkpasswd${EXESUFFIX} ${DPATH}mkpasswd${EXESUFFIX}.old
|
|
- $INSTALL_SH -c tools/mkpasswd${EXESUFFIX} ${DPATH}mkpasswd${EXESUFFIX};
|
|
-fi
|
|
+echo installing mkpasswd as ${BPATH}mkpasswd${EXESUFFIX}
|
|
+$INSTALL_SH -o 72 -g 72 -c tools/mkpasswd${EXESUFFIX} ${BPATH}mkpasswd${EXESUFFIX};
|
|
|
|
# install viconf
|
|
-if [ ! -f ${DPATH}viconf ]; then
|
|
- echo installing viconf as ${DPATH}viconf${EXESUFFIX}
|
|
- $INSTALL_SH -c tools/viconf${EXESUFFIX} ${DPATH}viconf${EXESUFFIX}
|
|
- rm -f ${DPATH}vimotd${EXESUFFIX} ${DPATH}viklines${EXESUFFIX}
|
|
- ln ${DPATH}viconf${EXESUFFIX} ${DPATH}vimotd${EXESUFFIX}
|
|
- ln ${DPATH}viconf${EXESUFFIX} ${DPATH}viklines${EXESUFFIX};
|
|
-else
|
|
- echo installing viconf as ${DPATH}viconf${EXESUFFIX}
|
|
- echo previous viconf saved as viconf${EXESUFFIX}.old
|
|
- mv ${DPATH}viconf${EXESUFFIX} ${DPATH}viconf${EXESUFFIX}.old
|
|
- $INSTALL_SH -c tools/viconf${EXESUFFIX} ${DPATH}viconf${EXESUFFIX}
|
|
- rm -f ${DPATH}vimotd${EXESUFFIX} ${DPATH}viklines${EXESUFFIX}
|
|
- ln ${DPATH}viconf${EXESUFFIX} ${DPATH}vimotd${EXESUFFIX}
|
|
- ln ${DPATH}viconf${EXESUFFIX} ${DPATH}viklines${EXESUFFIX};
|
|
-fi
|
|
+echo installing viconf as ${BPATH}viconf${EXESUFFIX}
|
|
+$INSTALL_SH -o 72 -g 72 -c tools/viconf${EXESUFFIX} ${BPATH}viconf${EXESUFFIX}
|
|
+rm -f ${BPATH}vimotd${EXESUFFIX} ${BPATH}viklines${EXESUFFIX}
|
|
+ln ${BPATH}viconf${EXESUFFIX} ${BPATH}vimotd${EXESUFFIX}
|
|
+ln ${BPATH}viconf${EXESUFFIX} ${BPATH}viklines${EXESUFFIX};
|
|
|
|
# install ircd.8
|
|
-dir_make ${DPATH}man8
|
|
-echo installing ircd.8 as ${DPATH}man8/ircd.8
|
|
-$INSTALL_SH -c doc/ircd.8 ${DPATH}man8/ircd.8
|
|
+dir_make ${PREFIX}/man/man8
|
|
+echo installing ircd.8 as ${PREFIX}/man/man8/ircd.8
|
|
+$INSTALL_SH -o 72 -g 72 -c doc/ircd.8 ${PREFIX}/man/man8/ircd.8
|
|
|
|
# finished.
|
|
echo install complete!
|