Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#114 Make wput use DESTDIR and --mandir

closed-accepted
nobody
5
2013-04-13
2013-04-13
othyro
No

wput installs to ${PREFIX}. Normally, packages are installed directly into LOCALBASE (${PREFIX}) and may overwrite files of other packages there. It also makes it easy to create packages which behave differently depending on whether they are installed from source or from a binary package. This is not good.

The DESTDIR support tries to prevent some of these problems. When it is enabled, packages are not installed directly into LOCALBASE. Instead, they are installed in a temporary directory, and a binary package is created from the files that have been installed there.

Patch attached. Note: in this patch we're doing:

-mandir = $(datadir)/man/man1
+mandir = @mandir@/man1

because configure accepts --mandir and not all systems install things to share/man/. Some want them in man/. Thus, we have to test and support this.

Discussion

  • othyro
    othyro
    2013-04-13

    Make wput use DESTDIR and --mandir

     
    Attachments
  • Rumpeltux
    Rumpeltux
    2013-04-13

    • status: open --> closed-accepted
     
  • Rumpeltux
    Rumpeltux
    2013-04-13

    Thanks for the patch. I integrated it.