Index: head/net/onedrive/Makefile =================================================================== --- head/net/onedrive/Makefile (revision 500473) +++ head/net/onedrive/Makefile (revision 500474) @@ -1,63 +1,63 @@ # $FreeBSD$ PORTNAME= onedrive DISTVERSIONPREFIX= v DISTVERSION= 2.3.3 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= hiroo.ono+freebsd@gmail.com COMMENT= OneDrive Free client LICENSE= GPLv3 LIB_DEPENDS= libcurl.so:ftp/curl \ libinotify.so:devel/libinotify BUILD_DEPENDS= ldc2:lang/ldc RUN_DEPENDS= ${LOCALBASE}/sbin/logrotate:sysutils/logrotate USES= gmake pkgconfig sqlite USE_GITHUB= yes GH_ACCOUNT= abraunegg -DFLAGS+= -g PKGCONFIG= pkgconf MAKE_ARGS= DC=ldc2 INSTALL_TARGET= install.noservice OPTIONS_DEFINE= DOCS NOTIFY BASH ZSH OPTIONS_DEFAULT= DOCS NOTIFY BASH ZSH OPTIONS_SUB= yes DOCFILES= README.md README.Office365.md config CHANGELOG.md NOTIFY_VARS= NOTIFICATIONS=1 NOTIFY_USES= gnome NOTIFY_USE= GNOME=glib20 NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify BASH_COMPLETION_DIR= ${LOCALBASE}/share/bash-completion/completions ZSH_COMPLETION_DIR= ${LOCALBASE}/share/zsh/site-functions post-extract: ${CP} ${FILESDIR}/freebsd_inotify.d ${WRKSRC}/src do-install-DOCS-on: .for f in ${DOCFILES} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor do-install-BASH-on: @${MKDIR} ${STAGEDIR}${BASH_COMPLETION_DIR} ${INSTALL_DATA} ${WRKSRC}/completions/complete.bash \ ${STAGEDIR}${BASH_COMPLETION_DIR}/onedrive do-install-ZSH-on: @${MKDIR} ${STAGEDIR}${ZSH_COMPLETION_DIR} ${INSTALL_DATA} ${WRKSRC}/completions/complete.zsh \ ${STAGEDIR}${ZSH_COMPLETION_DIR}/_onedrive post-install-DOCS-on: ${INSTALL_MAN} ${WRKSRC}/onedrive.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include Index: head/net/onedrive/files/freebsd_inotify.d =================================================================== --- head/net/onedrive/files/freebsd_inotify.d (revision 500473) +++ head/net/onedrive/files/freebsd_inotify.d (revision 500474) @@ -1,67 +1,69 @@ /** * D header file for libinotify (incomplete) */ module freebsd_inotify; import core.stdc.stdint; struct inotify_event { int wd; /* Watch descriptor. */ uint32_t mask; /* Watch mask. */ uint32_t cookie; /* Cookie to synchronize two events. */ uint32_t len; /* Length (including NULLs) of name. */ - char[] name; /* Name. */ + char[0] name; /* Name. */ + + @disable this(this); }; /* Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH. */ enum IN_ACCESS = 0x00000001; /* File was accessed. */ enum IN_MODIFY = 0x00000002; /* File was modified. */ enum IN_ATTRIB = 0x00000004; /* Metadata changed. */ enum IN_CLOSE_WRITE = 0x00000008; /* Writtable file was closed. */ enum IN_CLOSE_NOWRITE = 0x00000010; /* Unwrittable file closed. */ enum IN_CLOSE = (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE); /* Close. */ enum IN_OPEN = 0x00000020; /* File was opened. */ enum IN_MOVED_FROM = 0x00000040; /* File was moved from X. */ enum IN_MOVED_TO = 0x00000080; /* File was moved to Y. */ enum IN_MOVE = (IN_MOVED_FROM | IN_MOVED_TO); /* Moves. */ enum IN_CREATE = 0x00000100; /* Subfile was created. */ enum IN_DELETE = 0x00000200; /* Subfile was deleted. */ enum IN_DELETE_SELF = 0x00000400; /* Self was deleted. */ enum IN_MOVE_SELF = 0x00000800; /* Self was moved. */ /* Additional events and flags. Some of these flags are unsupported, but still should be present */ enum IN_UNMOUNT = 0x00002000; /* Backing fs was unmounted. */ enum IN_Q_OVERFLOW = 0x00004000; /* Event queued overflowed. */ enum IN_IGNORED = 0x00008000; /* File was ignored. */ enum IN_ONLYDIR = 0x01000000; /* Only watch the path if it is a directory. */ enum IN_DONT_FOLLOW = 0x02000000; /* Do not follow a sym link. */ enum IN_EXCL_UNLINK = 0x04000000; /* Exclude events on unlinked objects. */ enum IN_MASK_ADD = 0x20000000; /* Add to the mask of an already existing watch. */ enum IN_ISDIR = 0x40000000; /* Event occurred against dir. */ enum IN_ONESHOT = 0x80000000; /* Only send event once. */ /* Create and initialize inotify-kqueue instance. */ extern (C) int inotify_init (); /* Create and initialize inotify-kqueue instance. */ extern (C) int inotify_init1 (int flags); /* Add watch of object NAME to inotify-kqueue instance FD. Notify about events specified by MASK. */ extern (C) int inotify_add_watch (int fd, const char *name, uint32_t mask); /* Remove the watch specified by WD from the inotify instance FD. */ extern (C) int inotify_rm_watch (int fd, int wd); /* Libinotify specific. Set inotify instance parameter. */ extern (C) int inotify_set_param (int fd, int param, intptr_t value);