- Update WWW

- Add LICENSE
- Switch to options helpers
- Remove outdated __FreeBSD_version condition

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2017-07-25 09:01:05 +00:00
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

View file

@ -5,12 +5,14 @@ PORTNAME= ufs_copy
PORTVERSION= 20060921
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://people.freebsd.org/~simokawa/ufs/
MASTER_SITES= https://people.freebsd.org/~simokawa/ufs/
DISTNAME= ufs-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Fast copy utility for UFS filesystem
LICENSE= BSD4CLAUSE
USES= uidfix
WRKSRC= ${WRKDIR}/ufs
MAKE_ARGS= BINDIR=${PREFIX}/sbin
@ -19,8 +21,8 @@ PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -1,6 +1,6 @@
--- ufs_copy.c.orig 2006-09-21 15:28:09.000000000 +0900
+++ ufs_copy.c 2015-08-17 11:45:07.797947000 +0900
@@ -111,9 +111,11 @@
--- ufs_copy.c.orig 2006-09-21 06:28:09 UTC
+++ ufs_copy.c
@@ -111,9 +111,11 @@ int
main(int argc, char *argv[])
{
struct fstab *fs;
@ -14,7 +14,7 @@
#ifdef USEMMAP
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);
if (eval)
errx(eval, "mksnap_ffs failed");
@ -36,7 +36,7 @@
}
if ((fs = getfsfile(src)) == NULL) {
@@ -188,9 +205,19 @@
@@ -188,9 +205,19 @@ main(int argc, char *argv[])
}
if (snapshot) {
@ -58,13 +58,11 @@
fprintf(stderr, "done\n");
else
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));
+#if __FreeBSD_version >= 900011
+ dst.d_sbcsum = NULL;
+#endif
dst.d_name = dst_path;
dst.d_fd = open(dst_path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR );
if (dst.d_fd < 0) {

View file

@ -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
file for saving space.
WWW: http://people.freebsd.org/~simokawa/ufs/
WWW: https://people.freebsd.org/~simokawa/ufs/