summaryrefslogtreecommitdiff
path: root/pcr/ulogd2
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-21 03:22:19 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-21 03:22:19 +0000
commitd0f33415f254cb2fee06fd89f9cfed4535322f37 (patch)
tree66c13d72eac4f0110772b4675231c891334137bc /pcr/ulogd2
parent7e108c74958ec076a3734822f61f145d0d69547f (diff)
Fri Mar 21 03:19:28 UTC 2014
Diffstat (limited to 'pcr/ulogd2')
-rw-r--r--pcr/ulogd2/PKGBUILD42
-rw-r--r--pcr/ulogd2/logrotate10
-rw-r--r--pcr/ulogd2/ulogd254
3 files changed, 0 insertions, 106 deletions
diff --git a/pcr/ulogd2/PKGBUILD b/pcr/ulogd2/PKGBUILD
deleted file mode 100644
index c00c462e5..000000000
--- a/pcr/ulogd2/PKGBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# Contributor: Andrzej Boreczko <0rion@wp.pl>
-# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>
-
-pkgname=ulogd2
-pkgver=2.0.0
-pkgrel=6
-pkgdesc="Userspace Packet Logging for netfilter"
-arch=(i686 x86_64)
-url="http://www.netfilter.org/projects/ulogd/index.html"
-license=('GPL')
-depends=('libnetfilter_conntrack>=1.0.0' 'libnetfilter_log>=1.0.0' 'libnfnetlink>=1.0.0' 'libmnl>=1.0.0' 'libnetfilter_acct>=1.0.0')
-optdepends=('ulogd2_output_mysql: MySQL output' 'ulogd2_output_pgsql: PostgreSQL output' \
- 'ulogd2_output_sqlite3: Sqlite3 output' 'ulogd2_output_pcap: libpcap-style logfiles output' \
- 'ulogd2_output_dbi: Libdbi framework output')
-conflicts=('ulogd>1.24')
-backup=('etc/ulogd2.conf')
-source=("http://www.netfilter.org/projects/ulogd/files/ulogd-${pkgver}.tar.bz2" 'ulogd2' 'logrotate')
-
-build() {
- export MAKEFLAGS="-j1"
- cd $startdir/src/ulogd-${pkgver}
- ./configure --prefix=/usr --sysconfdir=/etc --with-mysql \
- --with-pgsql --with-dbi --program-suffix=2
- make || return 1
-}
-
-package() {
- cd $startdir/src/ulogd-${pkgver}
- make DESTDIR=$startdir/pkg install || return 1
- rm $startdir/pkg/usr/lib/ulogd/*.la
- [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_MYSQL.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_MYSQL.*
- [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_PGSQL.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_PGSQL.*
- [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_SQLITE3.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_SQLITE3.*
- [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_PCAP.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_PCAP.*
- [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_DBI.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_DBI.*
- install -D -m755 $startdir/src/ulogd2 $startdir/pkg/etc/rc.d/ulogd2
- sed 's/\/var\/log\/ulogd.log/\/var\/log\/ulogd2.log/' ulogd.conf > $startdir/pkg/etc/ulogd2.conf
- mkdir -p $startdir/pkg/usr/share/ulogd2
- install -m644 doc/*.table $startdir/pkg/usr/share/ulogd2
- install -m644 doc/*.sql $startdir/pkg/usr/share/ulogd2
- install -D -m644 ${srcdir}/logrotate $pkgdir/etc/logrotate.d/ulogd2
-}
diff --git a/pcr/ulogd2/logrotate b/pcr/ulogd2/logrotate
deleted file mode 100644
index 7a53c4d52..000000000
--- a/pcr/ulogd2/logrotate
+++ /dev/null
@@ -1,10 +0,0 @@
-/var/log/ulogd2.log {
- missingok
- notifempty
- sharedscripts
- create 0640 root root
-
- postrotate
- [ -e /var/run/ulogd2.pid ] && /etc/rc.d/ulogd2 restart > /dev/null
- endscript
-}
diff --git a/pcr/ulogd2/ulogd2 b/pcr/ulogd2/ulogd2
deleted file mode 100644
index 09ef2756f..000000000
--- a/pcr/ulogd2/ulogd2
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
- pidof /usr/sbin/ulogd2
-}
-
-case "$1" in
- start)
- stat_busy "Starting ulogd2"
-
- [ -f /var/run/ulogd2.pid ] && rm -f /var/run/ulogd2.pid
- PID=`get_pid`
- if [ -z "$PID" ]; then
- /usr/sbin/ulogd2 -d -c /etc/ulogd2.conf
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- echo `get_pid` > /var/run/ulogd2.pid
- add_daemon ulogd2
- stat_done
- fi
- else
- stat_fail
- exit 1
- fi
- ;;
-
- stop)
- stat_busy "Stopping ulogd2"
- PID=`get_pid`
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- rm -f /var/run/ulogd2.pid &> /dev/null
- rm_daemon ulogd2
- stat_done
- fi
- ;;
-
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0