mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Update WWW
- Add LICENSE - Switch to options helpers - Remove outdated __FreeBSD_version condition Approved by: portmgr blanket
This commit is contained in:
parent
41cc2d307c
commit
4db2bc3041
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=446562
3 changed files with 14 additions and 14 deletions
|
@ -5,12 +5,14 @@ PORTNAME= ufs_copy
|
||||||
PORTVERSION= 20060921
|
PORTVERSION= 20060921
|
||||||
PORTREVISION= 2
|
PORTREVISION= 2
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= http://people.freebsd.org/~simokawa/ufs/
|
MASTER_SITES= https://people.freebsd.org/~simokawa/ufs/
|
||||||
DISTNAME= ufs-${PORTVERSION}
|
DISTNAME= ufs-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= nobutaka@FreeBSD.org
|
MAINTAINER= nobutaka@FreeBSD.org
|
||||||
COMMENT= Fast copy utility for UFS filesystem
|
COMMENT= Fast copy utility for UFS filesystem
|
||||||
|
|
||||||
|
LICENSE= BSD4CLAUSE
|
||||||
|
|
||||||
USES= uidfix
|
USES= uidfix
|
||||||
WRKSRC= ${WRKDIR}/ufs
|
WRKSRC= ${WRKDIR}/ufs
|
||||||
MAKE_ARGS= BINDIR=${PREFIX}/sbin
|
MAKE_ARGS= BINDIR=${PREFIX}/sbin
|
||||||
|
@ -19,8 +21,8 @@ PORTDOCS= README
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
post-install:
|
post-install-DOCS-on:
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- ufs_copy.c.orig 2006-09-21 15:28:09.000000000 +0900
|
--- ufs_copy.c.orig 2006-09-21 06:28:09 UTC
|
||||||
+++ ufs_copy.c 2015-08-17 11:45:07.797947000 +0900
|
+++ ufs_copy.c
|
||||||
@@ -111,9 +111,11 @@
|
@@ -111,9 +111,11 @@ int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct fstab *fs;
|
struct fstab *fs;
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#ifdef USEMMAP
|
#ifdef USEMMAP
|
||||||
while ((ch = getopt(argc, argv, "aBb:ceMms:v")) != -1)
|
while ((ch = getopt(argc, argv, "aBb:ceMms:v")) != -1)
|
||||||
@@ -174,6 +176,21 @@
|
@@ -174,6 +176,21 @@ main(int argc, char *argv[])
|
||||||
eval = system(buf);
|
eval = system(buf);
|
||||||
if (eval)
|
if (eval)
|
||||||
errx(eval, "mksnap_ffs failed");
|
errx(eval, "mksnap_ffs failed");
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((fs = getfsfile(src)) == NULL) {
|
if ((fs = getfsfile(src)) == NULL) {
|
||||||
@@ -188,9 +205,19 @@
|
@@ -188,9 +205,19 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (snapshot) {
|
if (snapshot) {
|
||||||
|
@ -58,13 +58,11 @@
|
||||||
fprintf(stderr, "done\n");
|
fprintf(stderr, "done\n");
|
||||||
else
|
else
|
||||||
fprintf(stderr, "failed\n");
|
fprintf(stderr, "failed\n");
|
||||||
@@ -262,6 +289,9 @@
|
@@ -262,6 +289,7 @@ copy_ufs(const char *src_path, const cha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bcopy(&src, &dst, sizeof(dst));
|
bcopy(&src, &dst, sizeof(dst));
|
||||||
+#if __FreeBSD_version >= 900011
|
|
||||||
+ dst.d_sbcsum = NULL;
|
+ dst.d_sbcsum = NULL;
|
||||||
+#endif
|
|
||||||
dst.d_name = dst_path;
|
dst.d_name = dst_path;
|
||||||
dst.d_fd = open(dst_path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR );
|
dst.d_fd = open(dst_path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR );
|
||||||
if (dst.d_fd < 0) {
|
if (dst.d_fd < 0) {
|
||||||
|
|
|
@ -2,4 +2,4 @@ The ufs_copy copies a UFS filesystem image like dd(1).
|
||||||
It doesn't copy free blocks for speed and it generates a sparse destination
|
It doesn't copy free blocks for speed and it generates a sparse destination
|
||||||
file for saving space.
|
file for saving space.
|
||||||
|
|
||||||
WWW: http://people.freebsd.org/~simokawa/ufs/
|
WWW: https://people.freebsd.org/~simokawa/ufs/
|
||||||
|
|
Loading…
Add table
Reference in a new issue