Gitlab will be down for a short time due to maintenance starting on Wed 2019-10-23 2:00AM UTC

Commit 52acbbba authored by Leonardo Arena's avatar Leonardo Arena

testing/ulogd: downgraded to stable v1.24

parent a1dfaa7b
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=ulogd
pkgver=2.0.0_beta3
_pkgver=2.0.0beta3
pkgrel=2
pkgver=1.24
pkgrel=0
pkgdesc="A userspace logging daemon for netfilter/iptables related logging"
url="http://netfilter.org/projects/ulogd/index.html"
license="GPL"
depends=
makedepends="sqlite-dev mysql-dev postgresql-dev libpcap-dev libnfnetlink-dev
libnetfilter_conntrack-dev libnetfilter_log-dev pkgconfig openssl-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-sqlite $pkgname-pgsql $pkgname-mysql"
source="http://netfilter.org/projects/ulogd/files/ulogd-2.0.0beta3.tar.bz2
ulogd.initd"
makedepends="sqlite-dev postgresql-dev libpcap-dev libnfnetlink-dev
libnetfilter_conntrack-dev pkgconfig openssl-dev"
subpackages="$pkgname-sqlite $pkgname-pgsql $pkgname-doc"
source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2
ulogd.initd
ulogd.confd"
_builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$srcdir/$pkgname-$_pkgver"
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
--infodir=/usr/share/info \
--with-pgsql \
--with-sqlite3 \
--with-pgsql-log-ip-as-string
make -j1|| return 1
}
package() {
cd "$srcdir/$pkgname-$_pkgver"
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -Dm644 ulogd.conf "$pkgdir"/etc/ulogd.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
mkdir -p $pkgdir/usr/share/doc/$pkgname
cp doc/*table* doc/*.txt doc/*.html $pkgdir/usr/share/doc/$pkgname
}
sqlite() {
depends="$pkgname sqlite"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_SQLITE3.so "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_SQLITE3.so "$subpkgdir"/usr/lib/ulogd/
}
pgsql() {
depends="$pkgname libpq"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_PGSQL.so "$subpkgdir"/usr/lib/ulogd/
}
mysql() {
depends="$pkgname libmysqlclient openssl"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_MYSQL.so "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_PGSQL.so "$subpkgdir"/usr/lib/ulogd/
}
md5sums="be8137d3b7ae70ebbce7ca8852b9e901 ulogd-2.0.0beta3.tar.bz2
5eedaae6102a4e90b3b89f051f54fbf1 ulogd.initd"
md5sums="05b4ed2926b9a22aaeaf642917bbf8ff ulogd-1.24.tar.bz2
bd2f808297a9c67e0dc51aa57a1805e0 ulogd.initd
b9b2fa217ee02211debee5a5dffdcda7 ulogd.confd"
# Argument to be passed to ulog daemon
ARGS="-d"
......@@ -20,7 +20,8 @@ checkconfig() {
start() {
checkconfig || return 1
ebegin "Starting ulogd"
start-stop-daemon --start --quiet --exec /usr/sbin/ulogd >/dev/null 2>&1
start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- \
$ARGS >/dev/null 2>&1
eend $?
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment