--- Makefile.orig 2009-03-23 17:55:35.000000000 +0100
+++ Makefile 2009-03-23 17:58:38.000000000 +0100
# Change this if you want to install into another dirtree
# Required for eg the Debian Package builder
# This may be updated by RPM's for instance
# Destination Paths (relative to DESTDIR)
-dirdoc=/usr/share/doc/${PROJECT}/
+dirdoc=/share/doc/${PROJECT}/
# Make sure the lower makefile also knows these
@mkdir -p ${DESTDIR}${dirdoc}
@mkdir -p ${DESTDIR}${diretc}
-ifeq ($(shell echo "A${RPM_BUILD_ROOT}"),A)
- $(shell [ -f ${DESTDIR}${diretc}${PROJECT}.conf ] || cp -R doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf)
+ @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf_example
@cp doc/README ${DESTDIR}${dirdoc}
@cp doc/LICENSE ${DESTDIR}${dirdoc}
@cp doc/HOWTO ${DESTDIR}${dirdoc}
+ @mkdir -p ${DESTDIR}/share/man/man1
+ @cp doc/${PROJECT}.1 ${DESTDIR}/share/man/man1/
- @echo "Installing Debian-style init.d"
- @mkdir -p ${DESTDIR}${diretc}init.d
- @cp doc/${PROJECT}.init.debian ${DESTDIR}${diretc}init.d/${PROJECT}
- @echo "Installing Redhat-style init.d"
- @mkdir -p ${DESTDIR}${diretc}init.d
- @cp doc/${PROJECT}.init.rpm ${DESTDIR}${diretc}init.d/${PROJECT}
- @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf
@echo "Installation into ${DESTDIR}/ completed"