mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-22 18:14:19 +08:00
Compare commits
5 Commits
dynamic-co
...
devel-netm
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b861b97bb | ||
|
|
ccb4e65f34 | ||
|
|
011f586731 | ||
|
|
90aff84618 | ||
|
|
e81718ab54 |
58
fatrace/Makefile
Normal file
58
fatrace/Makefile
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
|
PKG_NAME:=fatrace
|
||||||
|
PKG_VERSION:=0.12
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE_VERSION:=98af6019a4a1b478a6fa35f74528cb3cd404ae40
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=https://git.launchpad.net/fatrace
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
# support parallel build
|
||||||
|
#PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
#re create configure scripts if not present.
|
||||||
|
#PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
# run install target when cross compiling. basically, make install DESTDIR=$(PKG_INSTALL_DIR)
|
||||||
|
# this way we don't need to pick out the resulting files from the build dir.
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS := CONFIG_KERNEL_FANOTIFY
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/fatrace
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
TITLE:=Report system wide file access events
|
||||||
|
URL:=
|
||||||
|
DEPENDS := +@KERNEL_FANOTIFY
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/fatrace/description
|
||||||
|
Report system wide file access events.
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKE_INSTALL_FLAGS += PREFIX="/"
|
||||||
|
|
||||||
|
define Package/fatrace/install
|
||||||
|
$(INSTALL_DIR) $(1)/sbin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/fatrace $(1)/sbin/
|
||||||
|
# $(CP) ./files/* $(1)/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,fatrace))
|
||||||
|
|
||||||
|
|
||||||
14
fatrace/patches/001-fix-O_LARGEFILE.patch
Normal file
14
fatrace/patches/001-fix-O_LARGEFILE.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/fatrace.c b/fatrace.c
|
||||||
|
index 1c0899a..b7d1560 100644
|
||||||
|
--- a/fatrace.c
|
||||||
|
+++ b/fatrace.c
|
||||||
|
@@ -44,7 +44,8 @@
|
||||||
|
* http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1e2ee49f7
|
||||||
|
* O_LARGEFILE is usually 0, so hardcode it here
|
||||||
|
*/
|
||||||
|
-#define KERNEL_O_LARGEFILE 00100000
|
||||||
|
+//#define KERNEL_O_LARGEFILE 00100000
|
||||||
|
+#define KERNEL_O_LARGEFILE O_LARGEFILE
|
||||||
|
|
||||||
|
/* command line options */
|
||||||
|
static char* option_output = NULL;
|
||||||
12
fatrace/patches/002-fflush.patch
Normal file
12
fatrace/patches/002-fflush.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/fatrace.c b/fatrace.c
|
||||||
|
index b7d1560..6179272 100644
|
||||||
|
--- a/fatrace.c
|
||||||
|
+++ b/fatrace.c
|
||||||
|
@@ -149,6 +149,7 @@ print_event(const struct fanotify_event_metadata *data,
|
||||||
|
printf ("%li.%06li ", event_time->tv_sec, event_time->tv_usec);
|
||||||
|
}
|
||||||
|
printf ("%s(%i): %s %s\n", procname, data->pid, mask2str (data->mask), pathname);
|
||||||
|
+ fflush(stdout);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
@@ -5,14 +5,21 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=inteno-netmodes
|
PKG_NAME:=inteno-netmodes
|
||||||
PKG_RELEASE:=1
|
PKG_VERSION:=0.1.0
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
|
PKG_SOURCE_VERSION:=8c97bebc03c1c61553c30b9fcdcd63bf9abe439d
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=http://public.inteno.se:/netmoded
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/inteno-netmodes
|
define Package/inteno-netmodes
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEPENDS:=+fping
|
DEPENDS:=+fping +ubus +libubox
|
||||||
TITLE:=Predefined Network Modes
|
TITLE:=Predefined Network Modes
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@@ -20,14 +27,6 @@ define Package/inteno-netmodes/description
|
|||||||
Predefined Network Modes
|
Predefined Network Modes
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
|
||||||
mkdir -p $(PKG_BUILD_DIR)
|
|
||||||
$(CP) ./files/* $(PKG_BUILD_DIR)/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/inteno-netmodes/install
|
define Package/inteno-netmodes/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user