summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/ivykis/Makefile25
-rw-r--r--package/syslog-ng/Makefile39
-rw-r--r--package/syslog-ng/files/syslog-ng.conf16
-rw-r--r--package/syslog-ng/files/syslog-ng.conffiles1
-rw-r--r--package/syslog-ng/files/syslog-ng.postinst3
-rw-r--r--package/syslog-ng/files/syslog_ng.init32
6 files changed, 116 insertions, 0 deletions
diff --git a/package/ivykis/Makefile b/package/ivykis/Makefile
new file mode 100644
index 000000000..2384688e6
--- /dev/null
+++ b/package/ivykis/Makefile
@@ -0,0 +1,25 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= ivykis
+PKG_VERSION:= git
+PKG_RELEASE:= 1
+PKG_DESCR:= asynchronous i/o readiness notification
+PKG_SECTION:= libs/misc
+PKG_URL:= https://github.com/buytenh/ivykis
+PKG_SITES:= https://github.com/buytenh/ivykis.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,IVYKIS,ivykis,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+AUTOTOOL_STYLE:= autoreconf
+
+ivykis-install:
+ $(INSTALL_DIR) $(IDIR_IVYKIS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libivykis.so* \
+ $(IDIR_IVYKIS)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/syslog-ng/Makefile b/package/syslog-ng/Makefile
new file mode 100644
index 000000000..81ac044f3
--- /dev/null
+++ b/package/syslog-ng/Makefile
@@ -0,0 +1,39 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${ADK_TOPDIR}/rules.mk
+
+PKG_NAME:= syslog-ng
+PKG_VERSION:= 3.14.1
+PKG_RELEASE:= 1
+PKG_HASH:= 235b1ac46fe4f3b06b3e945d000276f07deb8243be05d63c04aff06ab6123b64
+PKG_DESCR:= powerful syslog daemon
+PKG_SECTION:= sys/misc
+PKG_BUILDDEP:= cmake-host glib ivykis libressl json-c libnet flex
+PKG_DEPENDS:= glib ivykis libressl json-c libnet
+PKG_URL:= http://www.balabit.com/
+PKG_SITES:= https://github.com/balabit/syslog-ng/archive/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
+
+include ${ADK_TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,SYSLOG_NG,syslog-ng,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= cmake
+CMAKE_FLAGS+= -DSYSLOG_NG_ENABLE_SYSTEMD=OFF \
+ -DSYSLOG_NG_ENABLE_TCP_WRAPPER=OFF \
+ -DENABLE_CURL=OFF \
+ -DENABLE_JAVA=OFF \
+ -DENABLE_JAVA_MODULES=OFF
+
+syslog-ng-install:
+ ${INSTALL_DIR} ${IDIR_SYSLOG_NG}/usr/sbin \
+ ${IDIR_SYSLOG_NG}/etc/syslog-ng
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/syslog-ng \
+ ${IDIR_SYSLOG_NG}/usr/sbin/
+ ${INSTALL_DATA} ./files/syslog-ng.conf \
+ ${IDIR_SYSLOG_NG}/etc/syslog-ng/
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/syslog-ng/files/syslog-ng.conf b/package/syslog-ng/files/syslog-ng.conf
new file mode 100644
index 000000000..658abead2
--- /dev/null
+++ b/package/syslog-ng/files/syslog-ng.conf
@@ -0,0 +1,16 @@
+options {
+ chain_hostnames(off);
+ sync(0);
+
+ # The default action of syslog-ng 1.6.0 is to log a STATS line
+ # to the file every 10 minutes. That's pretty ugly after a while.
+ # Change it to every 12 hours so you get a nice daily update of
+ # how many messages syslog-ng missed (0).
+ stats(43200);
+};
+
+source src { unix-stream("/dev/log"); internal(); };
+
+destination messages { file("/var/log/messages"); };
+
+log { source(src); destination(messages); };
diff --git a/package/syslog-ng/files/syslog-ng.conffiles b/package/syslog-ng/files/syslog-ng.conffiles
new file mode 100644
index 000000000..453ebbe66
--- /dev/null
+++ b/package/syslog-ng/files/syslog-ng.conffiles
@@ -0,0 +1 @@
+/etc/syslog-ng/syslog-ng.conf
diff --git a/package/syslog-ng/files/syslog-ng.postinst b/package/syslog-ng/files/syslog-ng.postinst
new file mode 100644
index 000000000..331ddd948
--- /dev/null
+++ b/package/syslog-ng/files/syslog-ng.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf syslog_ng NO
diff --git a/package/syslog-ng/files/syslog_ng.init b/package/syslog-ng/files/syslog_ng.init
new file mode 100644
index 000000000..ef39eab76
--- /dev/null
+++ b/package/syslog-ng/files/syslog_ng.init
@@ -0,0 +1,32 @@
+#!/bin/sh
+#PKG syslog-ng
+#INIT 05
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${syslog_ng:-NO}" = x"NO" && exit 0
+ test x"$syslog_ng" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
+ exec sh $0 start
+ ;;
+start)
+ [ -f /etc/syslog-ng/syslog-ng.conf ] || {
+ echo "/etc/syslog-ng/syslog-ng.conf does not exist !";
+ exit 0;
+ };
+ /usr/sbin/syslog-ng
+ ;;
+stop)
+ kill $(pgrep -f /usr/sbin/syslog-ng)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?