diff options
Diffstat (limited to 'irc/ircd-hybrid/files/patch-ad')
-rw-r--r-- | irc/ircd-hybrid/files/patch-ad | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/irc/ircd-hybrid/files/patch-ad b/irc/ircd-hybrid/files/patch-ad index d86817372f6b..45a9c35715ac 100644 --- a/irc/ircd-hybrid/files/patch-ad +++ b/irc/ircd-hybrid/files/patch-ad @@ -1,5 +1,5 @@ ---- ircd-hybrid-6.2/tools/install_ircd.in.orig Mon Oct 8 02:37:40 2001 -+++ ircd-hybrid-6.2/tools/install_ircd.in Tue Jul 3 22:52:19 2001 +--- 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. # @@ -39,15 +39,10 @@ # DPATH = directory, # SPATH = server executable, # CPATH = conf file, -@@ -74,88 +85,47 @@ - fi - +@@ -76,86 +87,46 @@ # try to install their ircd.conf file, unless it already exists. --# install ircd, save old one as ircd.old + # install ircd, save old one as ircd.old dir_make `dirname ${SPATH}` -+echo installing ircd as ${SPATH}${EXESUFFIX} -+$INSTALL_SH -o 72 -g 72 -c src/ircd${EXESUFFIX} ${SPATH}${EXESUFFIX}; -+strip ${SPATH}${EXESUFFIX}; -if [ ! -f ${SPATH}${EXESUFFIX} ]; then - echo installing ircd as ${SPATH}${EXESUFFIX} - $INSTALL_SH -c src/ircd${EXESUFFIX} ${SPATH}${EXESUFFIX}; @@ -57,45 +52,46 @@ - 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}` -+echo installing example.conf as ${CPATH}.sample -+$INSTALL_SH -o 72 -g 72 -c doc/example.conf ${CPATH}.sample; -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}` -+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; -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}` -+touch ${KPATH}.sample; -+chown 72:72 ${KPATH}.sample; -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}` -+echo installing opers.txt as ${HPATH}.sample -+$INSTALL_SH -o 72 -g 72 -c opers.txt ${HPATH}.sample; -if [ ! -f ${HPATH} ]; then - echo installing opers.txt as ${HPATH} - $INSTALL_SH -c opers.txt ${HPATH}; @@ -105,10 +101,10 @@ - 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 -+echo installing mkpasswd as ${BPATH}mkpasswd${EXESUFFIX} -+$INSTALL_SH -o 72 -g 72 -c tools/mkpasswd${EXESUFFIX} ${BPATH}mkpasswd${EXESUFFIX}; -if [ ! -f ${DPATH}mkpasswd ]; then - echo installing mkpasswd as ${DPATH}mkpasswd${EXESUFFIX} - $INSTALL_SH -c tools/mkpasswd${EXESUFFIX} ${DPATH}mkpasswd${EXESUFFIX}; @@ -118,13 +114,10 @@ - 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 -+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}; -if [ ! -f ${DPATH}viconf ]; then - echo installing viconf as ${DPATH}viconf${EXESUFFIX} - $INSTALL_SH -c tools/viconf${EXESUFFIX} ${DPATH}viconf${EXESUFFIX} @@ -140,14 +133,19 @@ - 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 ${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 -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! |