File ircd-ircu2.10.12.06_destdir.patch of Package ircd-ircu
Index: doc/Makefile.in
===================================================================
--- doc/Makefile.in.orig
+++ doc/Makefile.in
@@ -18,7 +18,7 @@
#### Start of system configuration section. ####
-prefix = @prefix@
+prefix = $(DESTDIR)@prefix@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
@@ -27,7 +27,7 @@
RM = @RMPROG@
@SET_MAKE@
-MANDIR = @mandir@
+MANDIR = $(DESTDIR)@mandir@
#### End of system configuration section. ####
Index: ircd/Makefile.in
===================================================================
--- ircd/Makefile.in.orig
+++ ircd/Makefile.in
@@ -21,8 +21,8 @@
# Output variables of the 'configure' script:
-prefix = @prefix@
-exec_prefix = @exec_prefix@
+prefix = $(DESTDIR)@prefix@
+exec_prefix = $(DESTDIR)@exec_prefix@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
@@ -44,13 +44,13 @@
ENGINE_C = @ENGINE_C@
@SET_MAKE@
-BINDIR = @bindir@
+BINDIR = $(DESTDIR)@bindir@
INSTALL_RULE = @INSTALL_RULE@
-SYMLINK = @SYMLINK@
+SYMLINK = $(DESTDIR)@SYMLINK@
IRCDMODE = @IRCDMODE@
IRCDOWN = @IRCDOWN@
IRCDGRP = @IRCDGRP@
-DPATH = @DPATH@
+DPATH = $(DESTDIR)@DPATH@
MPATH = ${DPATH}/ircd.motd
RPATH = ${DPATH}/remote.motd
@@ -284,7 +284,7 @@
install-with-symlink: build mkbindir
@if [ ! -d ${DPATH} -a ! -f ${DPATH} ]; then \
echo "Creating directory ${DPATH}"; \
- ${MKDIR} ${DPATH}; \
+ ${MKDIR} -p ${DPATH}; \
${CHMOD} 700 ${DPATH}; \
${CHOWN} ${IRCDOWN} ${DPATH}; \
${CHGRP} ${IRCDGRP} ${DPATH}; \
@@ -302,7 +302,7 @@
install-no-symlink: build mkbindir
@if [ ! -d ${DPATH} -a ! -f ${DPATH} ]; then \
echo "Creating directory ${DPATH}"; \
- ${MKDIR} ${DPATH}; \
+ ${MKDIR} -p ${DPATH}; \
${CHMOD} 700 ${DPATH}; \
${CHOWN} ${IRCDOWN} ${DPATH}; \
${CHGRP} ${IRCDGRP} ${DPATH}; \
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -18,7 +18,7 @@
#### Start of system configuration section. ####
-prefix = @prefix@
+prefix = $(DESTDIR)@prefix@
srcdir = @srcdir@
VPATH = @srcdir@