Bug 218601 - sys-fs/ntfsprogs-2.0.0 - Extra tools are not installed
Bug#: 218601 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: fdbugs@dupoux.com
Component: Applications
URL: 
Summary: sys-fs/ntfsprogs-2.0.0 - Extra tools are not installed
Keywords:  
Status Whiteboard: 
Opened: 2008-04-20 16:08 0000
Description:   Opened: 2008-04-20 16:08 0000
The current sys-fs/ntfsprogs-2.0.0 ebuild installs the normal binaries (make &&
make install). Anyway ntfsprogs comes with extra programs for advanced users,
but they are just not supported by the current ebuild. Those programs could be
compiled with an "make extra". 

Since gentoo always leaves the user the choice of what he wants, it would be
great to have install these extra programs when an USE variable is on/off. Here
is how we can do with the USE='-minimal'. Just add the following code in the
src_compile() and src_install() functions:

src_compile()
{
     if ! use minimal
     then
          emake extra || die "Make extra failed"
     fi
}

src_install()
{
     if ! use minimal
     then
        cd ntfsprogs/.libs
        strip ntfswipe ntfstruncate ntfsmove ntfsmftalloc ntfsdump_logfile
        dosbin ntfswipe ntfstruncate ntfsmove ntfsmftalloc ntfsdump_logfile     
     fi
}


Reproducible: Always

------- Comment #1 From SpanKY 2008-04-20 19:34:33 0000 -------
you should never install binaries directly out of the .lib subdirectories, or
run strip at all manually

ntfsprogs-2.0.0-r1 should do what you want

------- Comment #2 From fdupoux 2008-04-20 20:06:11 0000 -------
Thanks a lot for your quick update. It seems to be a cleaner solution. I tested
this patch/ebuild and it's working well on my system. Thanks for that.