Ticket #19020: Makefile.patch

File Makefile.patch, 1.6 KB (added by cr@…, 16 years ago)

files/Makefile.patch

  • Makefile

    old new  
    2929
    3030# Change this if you want to install into another dirtree
    3131# Required for eg the Debian Package builder
    32 DESTDIR=
    3332export DESTDIR
    3433
    3534# This may be updated by RPM's for instance
    3635CFLAGS=${RPM_OPT_FLAGS}
    3736
    3837# Destination Paths (relative to DESTDIR)
    39 dirsbin=/usr/sbin/
    40 dirbin=/usr/bin/
    41 diretc=/etc/
    42 dirdoc=/usr/share/doc/${PROJECT}/
     38dirsbin=/sbin/
     39dirbin=/bin/
     40diretc=/etc/
     41dirdoc=/share/doc/${PROJECT}/
    4342
    4443# Make sure the lower makefile also knows these
    4544export PROJECT
     
    7877        @mkdir -p ${DESTDIR}${dirdoc}
    7978        @echo "Configuration..."
    8079        @mkdir -p ${DESTDIR}${diretc}
    81 ifeq ($(shell echo "A${RPM_BUILD_ROOT}"),A)
    82         $(shell [ -f ${DESTDIR}${diretc}${PROJECT}.conf ] || cp -R doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf)
     80        @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf_example
    8381        @echo "Documentation..."
    8482        @cp doc/README ${DESTDIR}${dirdoc}
    8583        @cp doc/LICENSE ${DESTDIR}${dirdoc}
    8684        @cp doc/HOWTO  ${DESTDIR}${dirdoc}
    87         @echo "Installing Debian-style init.d"
    88         @mkdir -p ${DESTDIR}${diretc}init.d
    89         @cp doc/${PROJECT}.init.debian ${DESTDIR}${diretc}init.d/${PROJECT}
    90 else
    91         @echo "Installing Redhat-style init.d"
    92         @mkdir -p ${DESTDIR}${diretc}init.d
    93         @cp doc/${PROJECT}.init.rpm ${DESTDIR}${diretc}init.d/${PROJECT}
    94         @cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf
    95 endif
     85        @mkdir -p ${DESTDIR}/share/man/man1
     86        @cp doc/${PROJECT}.1 ${DESTDIR}/share/man/man1/
    9687        @echo "Installation into ${DESTDIR}/ completed"
    9788
    9889help: