forked from Lainports/freebsd-ports
- Fix build error on -current.
- Use PLIST_FILES instead of pkg-plist.
This commit is contained in:
parent
a6677396ff
commit
5aba6458f6
3 changed files with 7 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ PORTDOCS= README
|
|||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PLIST_FILES= sbin/ufs_copy
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
|
|
|||
|
|
@ -58,11 +58,15 @@
|
|||
fprintf(stderr, "done\n");
|
||||
else
|
||||
fprintf(stderr, "failed\n");
|
||||
@@ -262,6 +289,7 @@ copy_ufs(const char *src_path, const cha
|
||||
@@ -262,6 +289,11 @@ copy_ufs(const char *src_path, const char *dst_path)
|
||||
}
|
||||
}
|
||||
bcopy(&src, &dst, sizeof(dst));
|
||||
+#if (defined(__FreeBSD_version) && __FreeBSD_version >= 1300100)
|
||||
+ dst.d_si = NULL;
|
||||
+#else
|
||||
+ 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) {
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
sbin/ufs_copy
|
||||
Loading…
Add table
Reference in a new issue