1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Add fpart, a tool to sort files and divide them into partitions

Feature safe:	yes
This commit is contained in:
Ganael LAPLANCHE 2011-11-25 12:56:22 +00:00
parent 31b765085e
commit dbc5bacb23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286399
5 changed files with 61 additions and 0 deletions

View File

@ -239,6 +239,7 @@
SUBDIR += fonteditfs
SUBDIR += foremost
SUBDIR += fortunelock
SUBDIR += fpart
SUBDIR += fpc-syslog
SUBDIR += fpc-users
SUBDIR += fpc-utmp

39
sysutils/fpart/Makefile Normal file
View File

@ -0,0 +1,39 @@
# New ports collection makefile for: fpart
# Date created: 24 Nov 2011
# Whom: Ganael Laplanche <ganael.laplanche@martymac.org>
#
# $FreeBSD$
#
PORTNAME= fpart
PORTVERSION= 0.2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
http://contribs.martymac.org/fpart/
EXTRACT_SUFX= .tgz
MAINTAINER= martymac@FreeBSD.org
COMMENT= Sort files and divide them into partitions
LICENSE= BSD
MANCOMPRESSED= yes
MAN1= fpart.1
PLIST_FILES= bin/fpart
PORTDOCS= Changelog README TODO
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800067
BROKEN= needs getline() and strnlen()
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

2
sysutils/fpart/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (fpart-0.2.tgz) = 20ba0b08d49924065c65258ee15e207a8a716676bbefcdc0f01b7e866120bccc
SIZE (fpart-0.2.tgz) = 15669

View File

@ -0,0 +1,11 @@
--- Makefile.orig 2011-11-25 12:44:43.011993455 +0100
+++ Makefile 2011-11-25 12:44:54.583395080 +0100
@@ -36,7 +36,7 @@
# Configuration / variables section
DESTDIR=
-PREFIX= /usr/local
+PREFIX?= /usr/local
# Default installation paths
BINDIR= $(PREFIX)/bin

8
sysutils/fpart/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
Fpart is a tool that helps you sort files and divide them into bags
("partitions"). It is developped in C and available under the BSD license.
It splits a list of directories and files into a certain number of partitions,
trying to produce partitions with the same size and number of files. It can
also produce partitions with a given number of files or a limited size.
WWW: http://contribs.martymac.org