diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-07-25 17:01:05 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-07-25 17:01:05 +0800 |
commit | 7583794693bbd96955b23073ef9916b284293519 (patch) | |
tree | 857a6db8fd1a42e2863fad91b3f575169c4816d5 /sysutils | |
parent | 05fb5524a99db9a5dc8f9cf1cd35ba77924d0c38 (diff) | |
download | freebsd-ports-gnome-7583794693bbd96955b23073ef9916b284293519.tar.gz freebsd-ports-gnome-7583794693bbd96955b23073ef9916b284293519.tar.zst freebsd-ports-gnome-7583794693bbd96955b23073ef9916b284293519.zip |
- Update WWW
- Add LICENSE
- Switch to options helpers
- Remove outdated __FreeBSD_version condition
Approved by: portmgr blanket
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/ufs_copy/Makefile | 12 | ||||
-rw-r--r-- | sysutils/ufs_copy/files/patch-ufs_copy.c | 14 | ||||
-rw-r--r-- | sysutils/ufs_copy/pkg-descr | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/sysutils/ufs_copy/Makefile b/sysutils/ufs_copy/Makefile index 5788feef52c5..4deec78f22e9 100644 --- a/sysutils/ufs_copy/Makefile +++ b/sysutils/ufs_copy/Makefile @@ -5,22 +5,24 @@ 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 -PORTDOCS= README +PORTDOCS= README -OPTIONS_DEFINE= DOCS +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> diff --git a/sysutils/ufs_copy/files/patch-ufs_copy.c b/sysutils/ufs_copy/files/patch-ufs_copy.c index 2cec6e306ce6..fe0ac7ef627d 100644 --- a/sysutils/ufs_copy/files/patch-ufs_copy.c +++ b/sysutils/ufs_copy/files/patch-ufs_copy.c @@ -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) { diff --git a/sysutils/ufs_copy/pkg-descr b/sysutils/ufs_copy/pkg-descr index 7f2cf9226c1b..e07910cb0e86 100644 --- a/sysutils/ufs_copy/pkg-descr +++ b/sysutils/ufs_copy/pkg-descr @@ -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/ |