Add ultradefrag utility
This commit is contained in:
parent
fa7cdafaa8
commit
bf43d26fa9
|
@ -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 1822 SHA256 e648fefd0e467fcf4345a39ffd17bab42e79926b2fa67d4f0d50d2c8fe96cc8d SHA512 e4632a2cffd61393784d7c3f9e68bc01304c13823687c678baba42c475de6789d21207ac01648b40cfbdc53f3c34525f447cdd2ea59e3655f55463c0f6ab73fb WHIRLPOOL 535d8fd7e2f3e21d3526e367255b491eb7241e40c4fc3d6f9c7215cbf904b627e71865aeb1d84a1082fd2a5585d99284ab2b4e08ec414ef3216453b93a9dd4aa
|
|
@ -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>
|
|
@ -0,0 +1,78 @@
|
||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
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}"
|
||||||
|
|
||||||
|
#pkg_setup() {
|
||||||
|
#}
|
||||||
|
|
||||||
|
#src_prepare() {
|
||||||
|
# # bug #459040
|
||||||
|
# epatch "${FILESDIR}"/${P}-set-parsed_info-got_user-when-a-cred-file.patch
|
||||||
|
#}
|
||||||
|
|
||||||
|
#src_configure() {
|
||||||
|
# ROOTSBINDIR="${EPREFIX}"/sbin \
|
||||||
|
# econf \
|
||||||
|
# $(use_enable ads cifsupcall) \
|
||||||
|
# $(use_with caps libcap) \
|
||||||
|
# $(use_with caps-ng libcap-ng) \
|
||||||
|
# $(use_enable creds cifscreds) \
|
||||||
|
# --with-libcap-ng=$(use caps-ng && echo 'yes' || echo 'no') \
|
||||||
|
# --disable-cifsidmap \
|
||||||
|
# --disable-cifsacl
|
||||||
|
#}
|
||||||
|
|
||||||
|
#src_install() {
|
||||||
|
# default
|
||||||
|
# # remove empty directories
|
||||||
|
# find "${ED}" -type d -print0 | xargs --null rmdir \
|
||||||
|
# --ignore-fail-on-non-empty &>/dev/null
|
||||||
|
#}
|
||||||
|
|
||||||
|
#pkg_postinst() {
|
||||||
|
# # Inform about set-user-ID bit of mount.cifs
|
||||||
|
# ewarn "setuid use flag was dropped due to multiple security implications"
|
||||||
|
# ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586"
|
||||||
|
# ewarn "You are free to set setuid flags by yourself"
|
||||||
|
|
||||||
|
# # Inform about upcall usage
|
||||||
|
# if use ads ; then
|
||||||
|
# ewarn "Using mount.cifs in combination with keyutils"
|
||||||
|
# ewarn "in order to mount DFS shares, you need to add"
|
||||||
|
# ewarn "the following line to /etc/request-key.conf:"
|
||||||
|
# ewarn " create dns_resolver * * /usr/sbin/cifs.upcall %k"
|
||||||
|
# ewarn "Otherwise, your DFS shares will not work properly."
|
||||||
|
# fi
|
||||||
|
#}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cd src
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dosbin src/udefrag
|
||||||
|
}
|
Loading…
Reference in New Issue