Add ultradefrag utility

This commit is contained in:
Sergey Morozov 2016-01-26 20:07:06 +03:00
parent 9fe8e9b403
commit 295fdc3da5
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX ultradefrag.patch 978 SHA256 ba620dee40298031abede75159cd8591985d80dde41d4fd94520380f6de5e0e7 SHA512 4946e86fd7b9c055332ccf76a968c0ca7d5f0a99b109229dd31817112747dd2d035d1f2144066726d0f4d53993148d41ddb5e38df6147523270997f08f0d80c4 WHIRLPOOL 6846c605fb831fa0388b61e916db28571daff4559f8ddfb4889bb8a30265f6f5dd91206d0e39effd0aea24c748fd86ebc8f0e1abc8d11f9a16ccf57d1194dfe6
DIST ultradefrag-5.0.0AB.7.zip 7700269 SHA256 4d7dcb27ffc5bb913b464cd3b090c9651fe0d1e5b66363707428e3a4d099ca73 SHA512 568cdb101e7cdde72091a7ebd887d745841487761ac3386d04f348cc2ebd5ee40bad795525ec18517bf4c1e0d047ce5d37d72fabd5a4256c61de562a20cfd68a WHIRLPOOL 0cff63689c75fcc79307c6e818c6eb6d5f53cc27ab522bd65ee5759bd79feb9476d9a35d78fca571446d9871fe0fd1f378d932e3d167826b0d78e8396841a447
EBUILD ultradefrag-5.0.0-r7.ebuild 494 SHA256 d99e19469198aef4ce5f53c3f5d53b6d9e36f5e057390bf525b01a99e6ac5776 SHA512 01b197312b52ad99409176e90d36bbe76e4ed2d95ba256b41e74c153b7cea7a171699c8baae65cd3a71bcbbad93bd4adec37485bdd0e50db42e3a2979eee570a WHIRLPOOL 5061960a0cde4286bf4f9085ea2cd281e95cc75cee25d4c8e2f90d78e187856d6eedfc0fd52926f65ed2c831f5ed5fd493dd3837a2c126051f782bf97f1ed861

View File

@ -0,0 +1,25 @@
diff -urN ultradefrag-5.0.0AB.7.def/src/Makefile ultradefrag-5.0.0AB.7/src/Makefile
--- ultradefrag-5.0.0AB.7.def/src/Makefile 2011-11-24 14:57:55.000000000 +0400
+++ ultradefrag-5.0.0AB.7/src/Makefile 2016-01-26 19:44:23.334197713 +0300
@@ -24,8 +24,8 @@
COPT=-DPPGC=1 -O2
GCCOPT=-DPPGC=1 -O2
LIB1=/usr/lib64
-LIB2=/usr/lib/gcc/x86_64-redhat-linux/4.6.0
-NTFSLIB=/lib64/libntfs-3g.so.*.0.0
+LIB2=`dirname \`gcc -print-libgcc-file-name\``
+NTFSLIB=/usr/lib64/libntfs-3g.so.*.0.0
A=console.a udefrag.a zenwinx.a wincalls.a
diff -urN ultradefrag-5.0.0AB.7.def/src/wincalls/ntfs-3g.c ultradefrag-5.0.0AB.7/src/wincalls/ntfs-3g.c
--- ultradefrag-5.0.0AB.7.def/src/wincalls/ntfs-3g.c 2011-11-26 17:56:37.000000000 +0400
+++ ultradefrag-5.0.0AB.7/src/wincalls/ntfs-3g.c 2016-01-26 19:31:50.436847655 +0300
@@ -31,6 +31,7 @@
#if LXSC | L8SC | STSC | SPGC | PPGC
#include "config.h"
#endif
+#include <linux/fs.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

View File

@ -0,0 +1,31 @@
EAPI=4
inherit eutils
VERSION="5.0.0AB.7"
DESCRIPTION="Linux port of windows defragmenter utility"
HOMEPAGE="http://jp-andre.pagesperso-orange.fr/advanced-ntfs-3g.html"
SRC_URI="http://jp-andre.pagesperso-orange.fr/ultradefrag-${VERSION}.zip"
S="${WORKDIR}/${PN}-${VERSION}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="sys-fs/ntfs3g"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PN}.patch
}
src_compile() {
cd src
emake
}
src_install() {
dosbin src/udefrag
}