logsurfer: new package
authorDominik Faessler <faessler@was.ch>
Mon, 14 May 2012 21:36:22 +0000 (21:36 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 19 May 2012 18:53:03 +0000 (20:53 +0200)
[Peter: fix target installation, install man pages, AUTOTARGETS args]
Signed-off-by: Dominik Faessler <faessler@was.ch>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/logsurfer/Config.in [new file with mode: 0644]
package/logsurfer/logsurfer.mk [new file with mode: 0644]

index 75d5c46beadc721cdf06e7785e8cfe2b88176656..359ba4759d9ce6cc2e55bb12f26e56d9ffcf363a 100644 (file)
@@ -621,6 +621,7 @@ source "package/file/Config.in"
 source "package/inotify-tools/Config.in"
 source "package/lockfile-progs/Config.in"
 source "package/logrotate/Config.in"
+source "package/logsurfer/Config.in"
 source "package/screen/Config.in"
 source "package/sudo/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
diff --git a/package/logsurfer/Config.in b/package/logsurfer/Config.in
new file mode 100644 (file)
index 0000000..27d1881
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LOGSURFER
+       bool "logsurfer"
+       help
+         Logsurfer is a program for monitoring system logs in real-time,
+         and reporting on the occurrence of events.
+
+         http://www.crypt.gen.nz/logsurfer/
diff --git a/package/logsurfer/logsurfer.mk b/package/logsurfer/logsurfer.mk
new file mode 100644 (file)
index 0000000..89f6bbd
--- /dev/null
@@ -0,0 +1,29 @@
+#############################################################
+#
+# logsurfer
+#
+#############################################################
+
+LOGSURFER_VERSION = 1.8
+LOGSURFER_SOURCE = logsurfer-$(LOGSURFER_VERSION).tar.gz
+LOGSURFER_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/logsurfer/logsurfer/logsurfer-$(LOGSURFER_VERSION)
+
+define LOGSURFER_INSTALL_TARGET_CMDS
+       $(INSTALL) -D -m 0755 $(@D)/src/logsurfer \
+               $(TARGET_DIR)/usr/bin/logsurfer
+endef
+
+ifeq ($(BR2_HAVE_DOCUMENTATION),y)
+
+define LOGSURFER_INSTALL_TARGET_MAN
+       $(INSTALL) -D -m 0644 $(@D)/man/logsurfer.1 \
+               $(TARGET_DIR)/usr/man/man1/logsurfer.1
+       $(INSTALL) -D -m 0644 $(@D)/man/logsurfer.conf.4 \
+               $(TARGET_DIR)/usr/man/man4/logsurfer.conf.4
+endef
+
+LOGSURFER_POST_INSTALL_TARGET_HOOKS += LOGSURFER_INSTALL_TARGET_MAN
+
+endif
+
+$(eval $(call AUTOTARGETS))