upg syslog-ng nvme-cli

add artix-socklog
This commit is contained in:
joborun linux 2023-10-02 11:24:30 +03:00
parent 1d2ceec712
commit 47cef0bc49
33 changed files with 807 additions and 24 deletions

123
artix-socklog/PKGBUILD Normal file
View File

@ -0,0 +1,123 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# Many thanks to artixlinux.org ## This was great work!
pkgname=artix-socklog
_pkgname=socklog
pkgver=2.1.0
pkgrel=06
pkgdesc="Small and secure syslogd replacement for use with Runit - great work from Artix"
depends=('glibc' 'runit')
makedepends=('make')
url="http://smarden.org/socklog/"
source=(http://smarden.org/socklog/$_pkgname-$pkgver.tar.gz
headers.patch
klog.sv.run
socklog.sv.check
socklog.sv.logrun
socklog.sv.run
cron.config
daemon.config
debug.config
errors.config
everything.config
lpr.config
mail.config
messages.config
remote-udp.config
secure.config
tty12.config
user.config)
provides=('socklog')
conflicts=('socklog')
install=socklog.install
prepare() {
cd "$srcdir/admin/$_pkgname-$pkgver/src"
msg 'Patching headers...'
patch -p1 < "$srcdir/headers.patch"
msg 'Setting default kernel message path to /proc/kmsg...'
sed -i -e 's:^#define _PATH_KLOG "\/dev\/klog"$:#define _PATH_KLOG "\/proc\/kmsg":' socklog-conf.c
}
build() {
cd "$srcdir/admin/$_pkgname-$pkgver/src"
msg 'Building...'
echo "${CC:-gcc} ${CFLAGS:-O2 -Wall}" > conf-cc
echo "${LD:-gcc -s}" > conf-ld
make
}
check() {
cd "$srcdir/admin/$_pkgname-$pkgver/src"
msg 'Testing...'
make check
}
package() {
cd "$srcdir/admin/$_pkgname-$pkgver/src"
msg 'Installing license...'
install -D -m644 "$srcdir/admin/$_pkgname-$pkgver/package/COPYING" "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
msg 'Installing documentation...'
install -d "$pkgdir/usr/share/doc/socklog"
install -D -m644 "$srcdir/admin/$_pkgname-$pkgver/doc"/*.html "$pkgdir/usr/share/doc/socklog"
msg 'Installing man pages...'
install -d "$pkgdir/usr/share/man/man8"
install -D -m644 "$srcdir/admin/$_pkgname-$pkgver/man"/* "$pkgdir/usr/share/man/man8"
msg 'Installing executables...'
install -d "$pkgdir/usr/bin"
for i in `cat $srcdir/admin/$_pkgname-$pkgver/package/commands`; do
install -s -D -m755 "$srcdir/admin/$_pkgname-$pkgver/src/$i" "$pkgdir/usr/bin"
done
msg 'Installing Runit service files...'
install -D -m755 "$srcdir/klog.sv.run" "$pkgdir/usr/lib/runit/sv/artix-klog/run"
install -D -m755 "$srcdir/socklog.sv.check" "$pkgdir/usr/lib/runit/sv/artix-socklog/check"
install -D -m755 "$srcdir/socklog.sv.logrun" "$pkgdir/usr/lib/runit/sv/artix-socklog/log/run"
install -D -m755 "$srcdir/socklog.sv.run" "$pkgdir/usr/lib/runit/sv/artix-socklog/run"
msg 'Installing default socklog configs...'
for file in cron daemon debug errors everything lpr mail messages \
remote-udp secure tty12 user; do
install -D -m644 "$srcdir/$file.config" "$pkgdir/var/log/socklog/$file/config"
done
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455 # socklog-2.1.0.tar.gz
6687d9d7c93c993b99f47948999c03b6b1402cda78d5f854d093ac881171ddf3 # headers.patch
ae9864e8dc86fb9d0de74bc988bb0f896c4811d12d52a649374903bd3257246a # klog.sv.run
f84241c1dff3b67499ecec7be9385c6c190b3b43c839956df8458fb2c0b58f2b # socklog.sv.check
1176635347a8816b16798eff5b0aec788b355b1bd3c675d99f71878fee156cc0 # socklog.sv.logrun
f62fd60c54e735f95153d1f0018cadb556c56833235f24653855445dc91e152f # socklog.sv.run
34922844f408018d94e890bffa76cdaa273d520b24a45731cd38f1f1f16ee9a8 # cron.config
d5ccc2d25d74fba548dfd5bd03b0266a9a3cc629a5791a3ef44d49865328b463 # daemon.config
2cf4ba89e89dc879c8ed34eb5d919a62b666b8f855dfaf7a709637ac4f29dc6c # debug.config
5bdbdd1af786943021bf9876d0348c9b90d997a3476f5343949147f609a05b60 # errors.config
c9c88aeeb84fdc3ea0d50df969b3d6a01f8616c2ddaff8b093fffc08097c71ca # everything.config
22283d75bd2944c1bb7e7a3dc98f542be66c511fe8476db099abdb22692c44ce # lpr.config
1aab46e8b58b107ab69ea3f635dc52b2ad6e8a00b2d6397918bbdfabc11254dd # mail.config
8bf9051d8f57bc95e37cd1f19a681a84369e551663416ec5e3fd43f6fdc3d00b # messages.config
c9f6cf0ffe8f4304b9d130a736605f18e86be37f36be389d9f7d377e477269c5 # remote-udp.config
60b152f2f5fe65d1647fd03dcce72fb0db44537377640d879cbf41c631f8f03f # secure.config
05afefc343026350f8057a85e09c4306b5f9045705c409d55b72e72c593d6f3e # tty12.config
1cc218670b456d2653da199dd79dab0fccd1364fb3206755674237442b11cadf) # user.config
## 5ff0afdfd9ae6af99abeedb16c394f16616f0086ad1ca691c1fdd915d4908020 artix-socklog-2.1.0-06-x86_64.pkg.tar.lz

View File

@ -0,0 +1,110 @@
# Maintainer: Muhammad Herdiansyah <herdiansyah@netc.eu>
# Contributor: Rafli Akmal <thefallenrat@artixlinux.org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=socklog
pkgver=2.1.0
pkgrel=5.1
pkgdesc="Small and secure syslogd replacement for use with Runit"
arch=('i686' 'x86_64')
depends=('glibc' 'runit')
makedepends=('make')
url="http://smarden.org/socklog/"
license=('BSD')
source=(http://smarden.org/socklog/$pkgname-$pkgver.tar.gz
headers.patch
klog.sv.run
socklog.sv.check
socklog.sv.logrun
socklog.sv.run
cron.config
daemon.config
debug.config
errors.config
everything.config
lpr.config
mail.config
messages.config
remote-udp.config
secure.config
tty12.config
user.config)
sha256sums=('aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455'
'6687d9d7c93c993b99f47948999c03b6b1402cda78d5f854d093ac881171ddf3'
'ae9864e8dc86fb9d0de74bc988bb0f896c4811d12d52a649374903bd3257246a'
'f84241c1dff3b67499ecec7be9385c6c190b3b43c839956df8458fb2c0b58f2b'
'1176635347a8816b16798eff5b0aec788b355b1bd3c675d99f71878fee156cc0'
'f62fd60c54e735f95153d1f0018cadb556c56833235f24653855445dc91e152f'
'34922844f408018d94e890bffa76cdaa273d520b24a45731cd38f1f1f16ee9a8'
'd5ccc2d25d74fba548dfd5bd03b0266a9a3cc629a5791a3ef44d49865328b463'
'2cf4ba89e89dc879c8ed34eb5d919a62b666b8f855dfaf7a709637ac4f29dc6c'
'5bdbdd1af786943021bf9876d0348c9b90d997a3476f5343949147f609a05b60'
'c9c88aeeb84fdc3ea0d50df969b3d6a01f8616c2ddaff8b093fffc08097c71ca'
'22283d75bd2944c1bb7e7a3dc98f542be66c511fe8476db099abdb22692c44ce'
'1aab46e8b58b107ab69ea3f635dc52b2ad6e8a00b2d6397918bbdfabc11254dd'
'8bf9051d8f57bc95e37cd1f19a681a84369e551663416ec5e3fd43f6fdc3d00b'
'c9f6cf0ffe8f4304b9d130a736605f18e86be37f36be389d9f7d377e477269c5'
'60b152f2f5fe65d1647fd03dcce72fb0db44537377640d879cbf41c631f8f03f'
'05afefc343026350f8057a85e09c4306b5f9045705c409d55b72e72c593d6f3e'
'1cc218670b456d2653da199dd79dab0fccd1364fb3206755674237442b11cadf')
provides=('socklog')
prepare() {
cd "$srcdir/admin/$pkgname-$pkgver/src"
msg 'Patching headers...'
patch -p1 < "$srcdir/headers.patch"
msg 'Setting default kernel message path to /proc/kmsg...'
sed -i -e 's:^#define _PATH_KLOG "\/dev\/klog"$:#define _PATH_KLOG "\/proc\/kmsg":' socklog-conf.c
}
build() {
cd "$srcdir/admin/$pkgname-$pkgver/src"
msg 'Building...'
echo "${CC:-gcc} ${CFLAGS:-O2 -Wall}" > conf-cc
echo "${LD:-gcc -s}" > conf-ld
make
}
check() {
cd "$srcdir/admin/$pkgname-$pkgver/src"
msg 'Testing...'
make check
}
package() {
cd "$srcdir/admin/$pkgname-$pkgver/src"
msg 'Installing license...'
install -D -m644 "$srcdir/admin/$pkgname-$pkgver/package/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
msg 'Installing documentation...'
install -d "$pkgdir/usr/share/doc/socklog"
install -D -m644 "$srcdir/admin/$pkgname-$pkgver/doc"/*.html "$pkgdir/usr/share/doc/socklog"
msg 'Installing man pages...'
install -d "$pkgdir/usr/share/man/man8"
install -D -m644 "$srcdir/admin/$pkgname-$pkgver/man"/* "$pkgdir/usr/share/man/man8"
msg 'Installing executables...'
install -d "$pkgdir/usr/bin"
for i in `cat $srcdir/admin/$pkgname-$pkgver/package/commands`; do
install -s -D -m755 "$srcdir/admin/$pkgname-$pkgver/src/$i" "$pkgdir/usr/bin"
done
msg 'Installing Runit service files...'
install -D -m755 "$srcdir/klog.sv.run" "$pkgdir/etc/runit/sv/klog/run"
install -D -m755 "$srcdir/socklog.sv.check" "$pkgdir/etc/runit/sv/socklog/check"
install -D -m755 "$srcdir/socklog.sv.logrun" "$pkgdir/etc/runit/sv/socklog/log/run"
install -D -m755 "$srcdir/socklog.sv.run" "$pkgdir/etc/runit/sv/socklog/run"
msg 'Installing default socklog configs...'
for file in cron daemon debug errors everything lpr mail messages \
remote-udp secure tty12 user; do
install -D -m644 "$srcdir/$file.config" "$pkgdir/var/log/socklog/$file/config"
done
}

1
artix-socklog/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,socklog*.tar.gz}

View File

@ -0,0 +1,2 @@
-*
+cron.*

View File

@ -0,0 +1,2 @@
-*
+daemon.*

View File

@ -0,0 +1,2 @@
-*
+*.debug:*

1
artix-socklog/deps Normal file
View File

@ -0,0 +1 @@
runit

View File

@ -0,0 +1,6 @@
-*
+*.err:*
+*.error:*
+*.emerg:*
+*.alert:*
+*.crit:*

View File

@ -0,0 +1,2 @@
-auth.*
-authpriv.*

View File

@ -0,0 +1,54 @@
add missing headers for misc funcs and types
--- a/chkshsgr.c
+++ b/chkshsgr.c
@@ -1,10 +1,11 @@
/* Public domain. */
#include <unistd.h>
+#include <grp.h>
int main()
{
- short x[4];
+ gid_t x[4];
x[0] = x[1] = 0;
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
--- a/pathexec_run.c
+++ b/pathexec_run.c
@@ -1,5 +1,6 @@
/* Public domain. */
+#include <unistd.h>
#include "error.h"
#include "stralloc.h"
#include "str.h"
--- a/prot.c
+++ b/prot.c
@@ -1,12 +1,15 @@
/* Public domain. */
+#include <unistd.h>
+#include <grp.h>
+
#include "hasshsgr.h"
#include "prot.h"
int prot_gid(int gid)
{
#ifdef HASSHORTSETGROUPS
- short x[2];
+ gid_t x[2];
x[0] = gid; x[1] = 73; /* catch errors */
if (setgroups(1,x) == -1) return -1;
#else
--- a/seek_set.c
+++ b/seek_set.c
@@ -1,5 +1,6 @@
/* Public domain. */
+#include <unistd.h>
#include <sys/types.h>
#include "seek.h"

12
artix-socklog/klog.sv.run Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh -e
svname=kernel
if [ ! -d /var/log/$svname ]
then
mkdir /var/log/$svname
chown root:root /var/log/$svname
chmod 700 /var/log/$svname
fi
exec < /proc/kmsg svlogd -tt /var/log/$svname

2
artix-socklog/lpr.config Normal file
View File

@ -0,0 +1,2 @@
-*
+lpr.*

View File

@ -0,0 +1,2 @@
-*
+mail.*

View File

@ -0,0 +1,9 @@
-*
+*.info:*
+*.notice:*
+*.warn:*
-auth.*
-authpriv.*
-mail.*
-news.*
-cron.*

View File

@ -0,0 +1,3 @@
-*
# uncomment to forward to a remote syslog host. IPv4 only, sorry.
#U192.0.2.42:514

View File

@ -0,0 +1,3 @@
-*
+auth.*
+authpriv.*

View File

@ -0,0 +1,18 @@
post_upgrade() {
echo ">> "
echo ">> to enable and start the service instead of socklog runit service originally"
echo ">> supplied by the runit-service-scripts pkg use artix-socklog"
echo ">> "
echo ">> to do so: ln -s /usr/lib/runit/sv/artix-socklog /etc/runit/runsvdir/default/"
echo ">> "
echo ">> better yet copy the entire directory from usr/lib to /etc/runit/sv/ and"
echo ">> edit the scripts for just the services you use, to minimize pointless scans"
echo ">> then: ln -s /etc/runit/sv/artix-socklog /etc/runit/runsvdir/default/"
echo ">> "
echo ">> this way your customized service will be preserved by possible upgrades"
echo ">> "
}
post_install() {
post_upgrade
}

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>/dev/null
exec socklog-check unix /dev/log

View File

@ -0,0 +1,8 @@
#!/bin/sh
if [ ! -d /var/log/socklog ]; then
for folder in cron daemon debug errors everything lpr \
mail messages remote-udp secure tty12 user ;do
mkdir -p /var/log/socklog/$folder
done
fi
exec chpst -uroot svlogd /var/log/socklog/*

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -Uroot socklog unix /dev/log

6
artix-socklog/time Normal file
View File

@ -0,0 +1,6 @@
real 0m24.897s
user 0m4.767s
sys 0m1.429s

View File

@ -0,0 +1,6 @@
-*
# uncomment to output logs to tty12
# (also change /etc/sv/socklog-unix/log/run)
#e*
#Eauth.*
#Eauthpriv.*

View File

@ -0,0 +1,2 @@
-*
+user.*

View File

@ -6,8 +6,8 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=nvme-cli
pkgver=2.5
pkgrel=02
pkgver=2.6
pkgrel=01
pkgdesc="NVM-Express user space tooling for Linux w/o systemd"
url="https://github.com/linux-nvme/nvme-cli"
# git is needed to provide the source with a workaround file to cover for the absense of libnvme.so
@ -54,7 +54,6 @@ arch=(x86_64)
license=('GPL')
sha256sums=(e84bdba276aadcddda8cf5d412e934cc5673af15132ea02180deb5d06af73146) # nvme-cli-2.5.tar.gz
## abd374100d30f6a51273701ad23e5fbe732a41b06a6ee2cbca2772a1ff1af05f nvme-cli-2.5-02-x86_64.pkg.tar.lz
sha256sums=(7e2f11eb7a9c1b9343d537a32ae5c78f51de20cd4a6cdddb2bc2459c259b33d6) # nvme-cli-2.6.tar.gz
## 3c35127ee47523c1538beb027491ee44c1635926734b2b243bdcda6744f68e07 nvme-cli-2.6-01-x86_64.pkg.tar.lz

View File

@ -5,7 +5,7 @@
# Contributor: Martin Schrodt <martin@schrodt.org>
pkgname=nvme-cli
pkgver=2.5
pkgver=2.6
pkgrel=1
pkgdesc="NVM-Express user space tooling for Linux"
arch=('x86_64')
@ -17,7 +17,7 @@ options=(strip)
install=nvme-cli.install
# checkdepends=('python2-nose' 'python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('e84bdba276aadcddda8cf5d412e934cc5673af15132ea02180deb5d06af73146')
sha256sums=('7e2f11eb7a9c1b9343d537a32ae5c78f51de20cd4a6cdddb2bc2459c259b33d6')
build() {
cd "${pkgname}-${pkgver}"

View File

@ -7,8 +7,8 @@ xmlto
cmake
git
mypy
swig
nvme-cli
libnvme

View File

@ -1,6 +1,6 @@
real 1m9.045s
user 2m45.477s
sys 0m16.126s
real 0m54.243s
user 2m32.688s
sys 0m16.963s

View File

@ -6,11 +6,11 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=syslog-ng
pkgver=4.2.0
pkgver=4.4.0
pkgrel=01
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities - w/o systemd and ipv6"
url="https://www.syslog-ng.com/products/open-source-log-management/"
depends=('awk' 'glib2' 'libnsl' 'json-c' 'curl' 'libnet' 'openssl' 'pcre' 'libcap')
depends=('awk' 'glib2' 'libnsl' 'json-c' 'curl' 'libnet' 'openssl' 'pcre2' 'protobuf' 'libcap')
makedepends=('libxslt' 'mongo-c-driver' 'librabbitmq-c' 'python' 'libesmtp' 'hiredis'
'libdbi' 'libmaxminddb' 'net-snmp' 'librdkafka')
checkdepends=('python-nose' 'python-ply')
@ -72,6 +72,7 @@ build() {
--enable-spoof-source \
--disable-ipv6 \
--disable-systemd \
--disable-grpc \
--with-systemdsystemunitdir=no \
--enable-manpages \
--enable-all-modules \
@ -108,10 +109,9 @@ arch=(x86_64)
license=('GPL2' 'LGPL2.1')
sha256sums=(092bd17fd47002c988aebdf81d0ed3f3cfd0e82b388d2453bcaa5e67934f4dda # syslog-ng-4.2.0.tar.gz
sha256sums=(583b147f3ec17fbc2dbbf31aafb1e3966237d7541313de5b41ea885dc16d932e # syslog-ng-4.4.0.tar.gz
d2e3328e2ac344ccddf1b38eab226f36c11ade1971c0c8c8ac8cd4d97c8b02e8 # syslog-ng.conf
93c935eca56854011ea9e353b7a1da662ad40b2e8452954c5b4b5a1d5b2d5317) # syslog-ng.logrotate
## a76ca1278034f6b4761c29b3a9408c3a34313313ffd3144934b1c2e0b25798d1 syslog-ng-4.2.0-01-x86_64.pkg.tar.lz
## 93061febcaadd166ec244cd21f326f951a219021a010cf88f5505f60bff27cf9 syslog-ng-4.4.0-01-x86_64.pkg.tar.lz

View File

@ -2,7 +2,7 @@
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgname=syslog-ng
pkgver=4.2.0
pkgver=4.4.0
pkgrel=1
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
arch=('x86_64')
@ -14,12 +14,14 @@ depends=(
'curl'
'glib2'
'glibc'
'grpc'
'json-c'
'libcap'
'libnet'
'libnsl'
'openssl'
'pcre'
'pcre2'
'protobuf'
'systemd-libs'
)
makedepends=('libxslt' 'mongo-c-driver' 'librabbitmq-c' 'python' 'libesmtp' 'hiredis'
@ -38,14 +40,15 @@ optdepends=('logrotate: for rotating log files'
'python-ply: for debugger CLI')
conflicts=('eventlog')
replaces=('eventlog')
# The default scl.conf moved in 4.3.0, but it is still supported here for overrides so we keep this entry. See https://github.com/syslog-ng/syslog-ng/pull/4534 for details.
backup=('etc/syslog-ng/scl.conf'
'etc/syslog-ng/syslog-ng.conf'
'etc/logrotate.d/syslog-ng'
'etc/default/syslog-ng@default')
source=(https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$pkgver/$pkgname-$pkgver.tar.gz
syslog-ng.conf syslog-ng.logrotate)
sha512sums=('85442b57b7934e8afbb4e7d8285ed1fd16aaad2a8d853e3765db4f885d88bee4910a3b5d271f1cbd100c2d3a3f81f1a4fe845bc948fe68c22d32bc9b730af04b'
'73239e783b6c4f8aabc30579153f531b022278aefecd84454935038274cc29f674a7093d68a3d797531e40c8f5d81e0b7e6b80d94e36fb11b60cfac6c2e93562'
sha512sums=('1cf18c43321e523d0f49b25a4839fd10ec301b207da1b2c407df5167dba557ac0a7781b07f1c1e5d18241376966b8099d9e41dffa55030f6a8052388139c4107'
'cbcc5f6e6d0ed75add8a38bf35a5bee9f0cce487e0eda76d34bf807e1fe1f49bd86db707c7457205e502f0c7de78f44c5b9cb8a8e993880095089e75248906c2'
'cd39f545a6a855c866a466bf846e33940b2c2dd1fc2eaf50cce29c68e1a5753c7c4b56411e4f01c152f32e155104a98dd755a96319767f47c73a8853f720b2cc')
prepare() {

322
syslog-ng/configure vendored Normal file
View File

@ -0,0 +1,322 @@
`configure' configures syslog-ng 4.4.0 to adapt to many kinds of systems.
Usage: src/syslog-ng-4.4.0/configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/syslog-ng]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-forced-server-mode Enable forced server mode.
--enable-debug Enable debugging code.
--enable-force-gnu99 Enforce C99 with gnu extensions.
--enable-extra-warnings Enable extra compiler warnings (recommended).
--enable-env-wrapper Enable wrapper program to set up various environment variables
--enable-gprof Enable gcc profiling.
--enable-memtrace Enable alternative leak debugging code.
--enable-dynamic-linking Link everything dynamically.
--enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically
--enable-ipv6 Enable support for IPv6.
--enable-tcp-wrapper Enable support for TCP wrappers.
--enable-spoof-source Enable support for spoofed source addresses.
--enable-sun-streams Enable support for Solaris /dev/log STREAMS device.
--enable-openbsd-system-source Enable support for OpenBSD /dev/klog device.
--enable-sql Enable support for SQL destinations. (default: auto)
--enable-pacct Enable support for reading Process Accounting files (EXPERIMENTAL, Linux only).
--enable-linux-caps Enable support for managing Linux capabilities (default: auto)
--enable-ebpf Enable support for loading of eBPF programs (default: no)
--enable-gcov Enable coverage profiling (default: no)
--enable-mongodb Enable mongodb destination (default: auto)
--enable-json=yes/no Enable JSON support (default: yes)
--enable-amqp Enable amqp destination (default: auto)
--enable-stomp Enable stomp destination (default: yes)
--disable-smtp Disable SMTP support (default: auto)
--disable-mqtt Disable MQTT support (default: auto)
--enable-grpc Enable GRPC based driver support (OpenTelemetry) (default: auto)
--enable-cpp Enable C++ support (default: auto)
--disable-http Disable http support (default: auto)
--disable-redis Disable REDIS support (default: auto)
--enable-systemd Enable systemd support (default: auto)
--enable-geoip2 Enable GeoIP2 support (default: auto)
--disable-riemann Disable riemann destination
--enable-kafka Enable rdkafka support
--disable-python Disable Python module
--disable-python-modules Disable Python based syslog-ng addons while installing the core Python modules
--enable-manpages Enable generation of manpages (default: no)
--enable-manpages-install
Enable installation of manpages (default: auto)
--enable-java Enable java destination (default: auto)
--enable-java-modules Compile all Java modules (default: auto)
--enable-native Enable native bindings (default: auto)
--enable-afsnmp Enable afsnmp module (default: auto)
--enable-all-modules Forcibly enable all modules. (default: auto)
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-static[=PKGS] build static libraries [default=no]
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--disable-largefile omit support for large files
--enable-valgrind Whether to enable Valgrind on the unit tests
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-libnet=path use path to libnet-config script
--with-net-snmp=path use path to net-snmp-config script
--with-pidfile-dir=path Use path as the directory for storing pidfiles
--with-module-dir=path Use path as the directory to install modules into
--with-loggen-plugin-dir=path Use path as the directory to install loggen plugins into
--with-python-venv-dir=path Use path as the directory to install the Python venv into
--with-module-path=path Use path as the list of ':' separated directories looked up when searching for modules
--with-timezone-dir=path Use path as the directory to get the timezone files
--with-ld-library-path=path Set LD_LIBRARY_PATH during runtime to the value given
--with-systemdsystemunitdir=DIR
Directory for systemd service files
--with-package-name=package name Package name is printed out when syslog-ng started with --version
--with-sanitizer=address/undefined/etc...
Enables compiler sanitizer supports (default: no)
--with-jsonc=yes/no
Link against the system supplied jsonc library or explicitly disable it. (default: yes)
--with-ivykis=system/internal
Link against the system supplied or the built-in ivykis library.
--with-libesmtp=DIR use libesmtp library from (prefix) directory DIR
--with-libpaho-mqtt=DIR use libpaho-mqtt library from (prefix) directory DIR
--with-protoc=PATH use protoc binary at PATH
--with-protoc-gen-grpc-cpp-plugin=PATH
use protoc-gen-grpc-cpp plugin at PATH
--with-libcurl=DIR use libcurl library from (prefix) directory DIR
--with-libhiredis=DIR use libhiredis library from (prefix) directory DIR
--without-compile-date Do not include the compile date in the binary
--with-systemd-journal=system/optional/auto
Link against the system supplied or the wrapper library. (default: auto)
--with-python=VERSION Build with a specific version of python
--with-python-packages=system|venv|none Use Python packages from the system or a private virtualenv or skip their installation (default: venv)
--with-python3-home=path Use path as a hard-coded Python home directory that can not be overwritten by the PYTHONHOME environment variable
--with-pylint=ABSOLUTE_PATH Specify pylint location
--with-docbook=FILE Compiling manpages using docbook in the specified path, if not set, it will be searched on the system, or online version will be used from http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]
--with-aix-soname=aix|svr4|both
shared library versioning (aka "SONAME") variant to
provide on AIX, [default=aix].
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
compiler's sysroot if not specified).
--with-python-sys-prefix
use Python's sys.prefix and sys.exec_prefix values
--with-python_prefix override the default PYTHON_PREFIX
--with-python_exec_prefix
override the default PYTHON_EXEC_PREFIX
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
YACC The `Yet Another Compiler Compiler' implementation to use.
Defaults to the first program found out of: `bison -y', `byacc',
`yacc'.
YFLAGS The list of arguments that will be passed by default to $YACC.
This script will default YFLAGS to the empty string to avoid a
default value of `-d' given by some make applications.
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
LT_SYS_LIBRARY_PATH
User-defined run-time library search path.
PYTHON the Python interpreter
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
CPP C preprocessor
LIBDBI_CFLAGS
C compiler flags for LIBDBI, overriding pkg-config
LIBDBI_LIBS linker flags for LIBDBI, overriding pkg-config
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
GLIB_LIBS linker flags for GLIB, overriding pkg-config
PCRE2_CFLAGS
C compiler flags for PCRE2, overriding pkg-config
PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
OPENSSL_CFLAGS
C compiler flags for OPENSSL, overriding pkg-config
OPENSSL_LIBS
linker flags for OPENSSL, overriding pkg-config
CRITERION_CFLAGS
C compiler flags for CRITERION, overriding pkg-config
CRITERION_LIBS
linker flags for CRITERION, overriding pkg-config
IVYKIS_CFLAGS
C compiler flags for IVYKIS, overriding pkg-config
IVYKIS_LIBS linker flags for IVYKIS, overriding pkg-config
IVYKIS_VERSION_CHECK_CFLAGS
C compiler flags for IVYKIS_VERSION_CHECK, overriding pkg-config
IVYKIS_VERSION_CHECK_LIBS
linker flags for IVYKIS_VERSION_CHECK, overriding pkg-config
JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
JSON_LIBS linker flags for JSON, overriding pkg-config
LIBMONGO_CFLAGS
C compiler flags for LIBMONGO, overriding pkg-config
LIBMONGO_LIBS
linker flags for LIBMONGO, overriding pkg-config
LIBESMTP_CFLAGS
C compiler flags for LIBESMTP, overriding pkg-config
LIBESMTP_LIBS
linker flags for LIBESMTP, overriding pkg-config
PROTOBUF_CFLAGS
C compiler flags for PROTOBUF, overriding pkg-config
PROTOBUF_LIBS
linker flags for PROTOBUF, overriding pkg-config
GRPCPP_CFLAGS
C compiler flags for GRPCPP, overriding pkg-config
GRPCPP_LIBS linker flags for GRPCPP, overriding pkg-config
HIREDIS_CFLAGS
C compiler flags for HIREDIS, overriding pkg-config
HIREDIS_LIBS
linker flags for HIREDIS, overriding pkg-config
LIBRABBITMQ_CFLAGS
C compiler flags for LIBRABBITMQ, overriding pkg-config
LIBRABBITMQ_LIBS
linker flags for LIBRABBITMQ, overriding pkg-config
LIBRDKAFKA_CFLAGS
C compiler flags for LIBRDKAFKA, overriding pkg-config
LIBRDKAFKA_LIBS
linker flags for LIBRDKAFKA, overriding pkg-config
RIEMANN_CLIENT_CFLAGS
C compiler flags for RIEMANN_CLIENT, overriding pkg-config
RIEMANN_CLIENT_LIBS
linker flags for RIEMANN_CLIENT, overriding pkg-config
libsystemd_CFLAGS
C compiler flags for libsystemd, overriding pkg-config
libsystemd_LIBS
linker flags for libsystemd, overriding pkg-config
libsystemd_namespaces_CFLAGS
C compiler flags for libsystemd_namespaces, overriding
pkg-config
libsystemd_namespaces_LIBS
linker flags for libsystemd_namespaces, overriding pkg-config
PYTHON_CFLAGS
C compiler flags for PYTHON, overriding pkg-config
PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
LIBCAP_CFLAGS
C compiler flags for LIBCAP, overriding pkg-config
LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config
libsystemd_daemon_CFLAGS
C compiler flags for libsystemd_daemon, overriding pkg-config
libsystemd_daemon_LIBS
linker flags for libsystemd_daemon, overriding pkg-config
LIBSYSTEMD_JOURNAL_CFLAGS
C compiler flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
LIBSYSTEMD_JOURNAL_LIBS
linker flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
LIBBPF_CFLAGS
C compiler flags for LIBBPF, overriding pkg-config
LIBBPF_LIBS linker flags for LIBBPF, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to the package provider.

View File

@ -0,0 +1,78 @@
This is syslog-ng building configuration:
See grpc configuration
Following is grpc building
Also search for interesting words as "telemetry" "google"
grep -i systemd configure
--enable-systemd Enable systemd support (default: auto)
--with-systemdsystemunitdir=DIR
Directory for systemd service files
--with-systemd-journal=system/optional/auto
libsystemd_CFLAGS
C compiler flags for libsystemd, overriding pkg-config
libsystemd_LIBS
linker flags for libsystemd, overriding pkg-config
libsystemd_namespaces_CFLAGS
C compiler flags for libsystemd_namespaces, overriding
libsystemd_namespaces_LIBS
linker flags for libsystemd_namespaces, overriding pkg-config
libsystemd_daemon_CFLAGS
C compiler flags for libsystemd_daemon, overriding pkg-config
libsystemd_daemon_LIBS
linker flags for libsystemd_daemon, overriding pkg-config
LIBSYSTEMD_JOURNAL_CFLAGS
C compiler flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
LIBSYSTEMD_JOURNAL_LIBS
linker flags for LIBSYSTEMD_JOURNAL, overriding pkg-config
grep -i grpc configure
--enable-grpc Enable GRPC based driver support (OpenTelemetry) (default: auto)
--with-protoc-gen-grpc-cpp-plugin=PATH
use protoc-gen-grpc-cpp plugin at PATH
GRPCPP_CFLAGS
C compiler flags for GRPCPP, overriding pkg-config
GRPCPP_LIBS linker flags for GRPCPP, overriding pkg-config
_______________________________________________________________________
A look on building grpc
patching file cmake/protobuf.cmake
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDC_FORMAT_MACROS
-- Performing Test HAVE_STDC_FORMAT_MACROS - Success
-- Found c-ares: /usr/lib/cmake/c-ares/c-ares-config.cmake (found suitable version "1.19.1", minimum required is "1.13.0")
-- Found ZLIB: /usr/lib/libz.so (found version "1.3")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found RE2 via pkg-config.
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.1.3")
-- Checking for module 'libsystemd>=233'
-- Package 'libsystemd', required by 'virtual:world', not found
-- Downloading from https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz, if failed, please try configuring again
-- Configuring done (14.0s)
-- Generating done (2.8s)
CMake Warning:

View File

@ -1,5 +1,4 @@
libnsl
libnet
libxslt
mongo-c-driver
@ -15,5 +14,7 @@ python-nose
python-ply
autoconf
automake
protobuf
python-typing_extensions

View File

@ -1,6 +1,6 @@
real 4m54.039s
user 3m40.121s
sys 0m29.019s
real 5m40.085s
user 4m18.298s
sys 0m32.860s