upg mesa mercurial bind alsa-lib

added syslog-ng
This commit is contained in:
joborun linux 2022-06-18 15:41:58 +03:00
parent a4aa3899b7
commit 05bf64b4d4
18 changed files with 481 additions and 53 deletions

View File

@ -6,8 +6,8 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=alsa-lib
pkgver=1.2.7
pkgrel=02
pkgver=1.2.7.1
pkgrel=01
pkgdesc="An alternative implementation of Linux sound support"
arch=(x86_64)
url="https://www.alsa-project.org"
@ -15,12 +15,10 @@ depends=(glibc alsa-topology-conf alsa-ucm-conf)
provides=(libasound.so libatopology.so)
install=$pkgname.install
# options=(debug) ## uncomment this like to have the debug pkg produced
source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig}
$pkgname-1.2.7-fix_decoding_for_older_hardware.patch::https://github.com/alsa-project/alsa-lib/commit/89ee61914756a6f8bcafbad7fb1eca674b0a012f.patch)
source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
# $pkgname-1.2.7-fix_decoding_for_older_hardware.patch::https://github.com/alsa-project/alsa-lib/commit/89ee61914756a6f8bcafbad7fb1eca674b0a012f.patch)
prepare() {
# fix issues with older hardware: https://github.com/alsa-project/alsa-lib/issues/233
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.2.7-fix_decoding_for_older_hardware.patch
cd $pkgname-$pkgver
autoreconf -fiv
}
@ -54,15 +52,5 @@ license=(LGPL2.1)
validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
sha512sums=('6bd48b07d659fddad792876326a93b2a549ce94bc191131670365599c31f81f737bfd8e94dec6fe296bc5d86df2e3e381bbb7a694d24fe7e8e501f1c994ed084'
'SKIP'
'50b9036e58720ba7e726a73d94d99dc557c777682f3d977e51a5fd31cb3b54dfd33ab9567546ba59fa7bfa8c00c6db5c33d6b04fd1c6e27679fde22435636390')
b2sums=('a3bfbbfcf31625be0749218b3c02b307da9077d4bd82e9f980b8e3d6f9275f3a3f3c8158bb28fb1c61724a35e794eb3f6cc8872202ff42fb847725058109087e'
'SKIP'
'46328cbaac187222b57efc86e10db67d58499a103affbadbe8b60b5c3b226bd18702c7b5ffb80dc4ced5c0e3e9dacdb447d15db5afb1a50d9a26e31e7426adf5')
sha256sums=(8814e61f7ec6812c76e23a85cab00e0b0d3bba40816af36b726beb1bc04c74a7 # alsa-lib-1.2.7.tar.bz2
c78216421d4fc87cad55852a54b771aeccaa0b5bbe59eaea87cda9c20975e075 # alsa-lib-1.2.7.tar.bz2.sig
a6a9aa8b02f462c73a9db550a427ae62882a41fe73a0c4fb7f0f9bac53b18aa8) # alsa-lib-1.2.7-fix_decoding_for_older_hardware.patch
sha256sums=(046dc42dfcfad269217be05954686137e5e7397f3041372f8c6dcd7d79461e61 # alsa-lib-1.2.7.1.tar.bz2
23a613bad7376ecd4462dc614024361e400fbb30816e613eca320862ec392902) # alsa-lib-1.2.7.1.tar.bz2.sig

View File

@ -2,8 +2,8 @@
# Contributor: judd <jvinet@zeroflux.org>
pkgname=alsa-lib
pkgver=1.2.7
pkgrel=2
pkgver=1.2.7.1
pkgrel=1
pkgdesc="An alternative implementation of Linux sound support"
arch=(x86_64)
url="https://www.alsa-project.org"
@ -12,21 +12,14 @@ depends=(glibc alsa-topology-conf alsa-ucm-conf)
provides=(libasound.so libatopology.so)
install=$pkgname.install
options=(debug)
source=(
https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig}
$pkgname-1.2.7-fix_decoding_for_older_hardware.patch::https://github.com/alsa-project/alsa-lib/commit/89ee61914756a6f8bcafbad7fb1eca674b0a012f.patch
)
sha512sums=('6bd48b07d659fddad792876326a93b2a549ce94bc191131670365599c31f81f737bfd8e94dec6fe296bc5d86df2e3e381bbb7a694d24fe7e8e501f1c994ed084'
'SKIP'
'50b9036e58720ba7e726a73d94d99dc557c777682f3d977e51a5fd31cb3b54dfd33ab9567546ba59fa7bfa8c00c6db5c33d6b04fd1c6e27679fde22435636390')
b2sums=('a3bfbbfcf31625be0749218b3c02b307da9077d4bd82e9f980b8e3d6f9275f3a3f3c8158bb28fb1c61724a35e794eb3f6cc8872202ff42fb847725058109087e'
'SKIP'
'46328cbaac187222b57efc86e10db67d58499a103affbadbe8b60b5c3b226bd18702c7b5ffb80dc4ced5c0e3e9dacdb447d15db5afb1a50d9a26e31e7426adf5')
source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
sha512sums=('2a0b4205e8bf602b56a6f5007ba219799e5443827393058e439adf5b391bb6c4815a48bb994b5d108b9f31a90db0eb43a96a0d7741216e2d710dc63d372de27e'
'SKIP')
b2sums=('b7be12a51453a82d0eb2e57fb8f9391c8778e8c63b78b6e6f46437bca39e3efb13394ba0e060547781ccde75fcdc19da532d5aed24fe0d5cfb885c1604e4e8ce'
'SKIP')
validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
prepare() {
# fix issues with older hardware: https://github.com/alsa-project/alsa-lib/issues/233
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.2.7-fix_decoding_for_older_hardware.patch
cd $pkgname-$pkgver
autoreconf -fiv
}

View File

@ -2,3 +2,6 @@ alsa-topology-conf
alsa-ucm-conf
autoconf
automake

View File

@ -5,7 +5,7 @@
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
_pkgver=9.18.3
_pkgver=9.18.4
pkgname=bind
pkgver=${_pkgver//-/.}
pkgrel=01
@ -102,13 +102,11 @@ license=('MPL2')
validpgpkeys=('7E1C91AC8030A5A59D1EFAB9750F3C87723E4012') #ISC Code Signing Key 2021 2022 (codesign@isc.org)
sha256sums=(0ad8da773bd93cba0ef66cc81999698ebdf9c3e51faed5e5c8c1eb75cad2ae6f # bind-9.18.3.tar.xz
94f8c3bcddb7bc1ac9f2743f86884709fa19a37ba0db5a27fa2e959c0b0dae4a # bind-9.18.3.tar.xz.asc
sha256sums=(f277ae50159a00c300eb926a9c5d51953038a936bd8242d6913dfb6eac42761d # bind-9.18.4.tar.xz
8892229de659ba9c4605a4d2bef10c2e5ea6c48d91565ff5a6051f3677dc9f7f # bind-9.18.4.tar.xz.asc
f0423c4ee8495da487e07e9144bec1d25f46a0cd2dfa7cfd7a761ef15bfefc98 # tmpfiles.conf
7c0acefcfcc3ae093550caed7ec90fe84bec8f7477459ffa7e71dda76bcbdb2c # sysusers.conf
e08a01d41b18bdb771d534daca99642314939aafdb088e5cfcf0ef2d33f8e7eb # named.conf
0011708e516128647dd25b59b6ebc465f36e85bbe0a8fbdc3eb04b7f28c2197f # localhost.zone
# c06fc270e32a843c8b6d86335a2ec607d405dfba6875de8d8a9abde39a9e2c17 # localhost.ip6.zone
b88fd2b99e7d42d414b329b814b9ff3304fa0ef9c67df81bde235bbfa0f3a3b8) # 127.0.0.zone

View File

@ -3,7 +3,7 @@
# Contributor: judd <jvinet@zeroflux.org>
# Contributor: Mario Vazquez <mario_vazq@hotmail.com>
_pkgver=9.18.3
_pkgver=9.18.4
pkgname=bind
pkgver=${_pkgver//-/.}
pkgrel=1
@ -35,7 +35,7 @@ source=("https://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.xz"{,.asc}
'localhost.zone'
'localhost.ip6.zone'
'127.0.0.zone')
sha256sums=('0ad8da773bd93cba0ef66cc81999698ebdf9c3e51faed5e5c8c1eb75cad2ae6f'
sha256sums=('f277ae50159a00c300eb926a9c5d51953038a936bd8242d6913dfb6eac42761d'
'SKIP'
'f0423c4ee8495da487e07e9144bec1d25f46a0cd2dfa7cfd7a761ef15bfefc98'
'7c0acefcfcc3ae093550caed7ec90fe84bec8f7477459ffa7e71dda76bcbdb2c'

View File

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mercurial
pkgver=6.1.3
pkgver=6.1.4
pkgrel=01
pkgdesc='A scalable distributed SCM tool'
arch=(x86_64)
@ -81,7 +81,8 @@ validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5
818D87CD1AC180C394C86E633A33DE460D9EC39F # Pulkit Goyal <7895pulkit@gmail.com>
1F66F8CDF654E905C11DA061A11E01CD0E05D956) # Raphaël Gomès <alphare@raphaelgomes.dev>
sha256sums=(e022c1ef28e5502793f4306724e8443c5d72714841906f46ca351efd7ba91b7c # mercurial-6.1.3.tar.gz
10c780a20e945978f487e88495effc0340a970f9d138f5397d8932d049d4d11f # mercurial-6.1.3.tar.gz.asc
sha256sums=(f361f9802b36e357ac019ceb712ca11de8332b07deadeed8dfa904f05bf7ca78 # mercurial-6.1.4.tar.gz
378c7666e8366a9d1593d8562334b546955965a385d01ad9a9408ea47fd201fe # mercurial-6.1.4.tar.gz.asc
87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5) # mercurial.profile

View File

@ -3,7 +3,7 @@
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=mercurial
pkgver=6.1.3
pkgver=6.1.4
pkgrel=1
pkgdesc='A scalable distributed SCM tool'
arch=(x86_64)
@ -28,7 +28,7 @@ validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5
1F66F8CDF654E905C11DA061A11E01CD0E05D956) # Raphaël Gomès <alphare@raphaelgomes.dev>
source=(https://www.mercurial-scm.org/release/${pkgname}-${pkgver}.tar.gz{,.asc}
mercurial.profile)
sha512sums=('dfa4754bc561a0c037d1682c30b0555ebde5a008ffa0622c5b13130df233811c80b094c558d522911b29cf5e4a735ef95a5527d6f676d6e99aa86dd36b2b6f12'
sha512sums=('b43221c078efd4978fd47414d9442f423a97660e1f4c10d704a8d3403051778d2a25a0b4be6315d0a2126d01c14910ccbe9a5be6242b561a2bea0c522f54b731'
'SKIP'
'710dcddb24d928efc97370e869d9caa083107929ed9a1086dd2a3ae0caaf2c71e2f29060597e29315b6b15b1616251c42412e268ce737109c48ae4d7aa1b9555')

View File

@ -1,4 +1,2 @@
python-docutils

View File

@ -8,8 +8,8 @@
pkgbase=mesa
pkgname=('vulkan-mesa-layers' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'vulkan-swrast' 'libva-mesa-driver' 'mesa-vdpau' 'mesa')
pkgdesc="An open-source implementation of the OpenGL specification w/o zstd"
pkgver=22.1.1
pkgrel=02
pkgver=22.1.2
pkgrel=01
arch=('x86_64')
#options=(debug) # uncomment this if you want the debug package built
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
@ -224,7 +224,8 @@ validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D' # Emil Velikov <emil.l
'71C4B75620BC75708B4BDB254C95FAAB3EB073EC' # Dylan Baker <dylan@pnwbakers.com>
'57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom <eric@engestrom.ch>
sha256sums=(46940865ffe794db73ac2bc7ab7ff2570042a0b61a8ac43ca1688863e2bc0ef1 # mesa-22.1.1.tar.xz
0b6d38f984cb88578d23108103684a1dd410145f66b2f722a2c4d3873f500fc0 # mesa-22.1.1.tar.xz.sig
sha256sums=(0971226b4a6a3d10cfc255736b33e4017e18c14c9db1e53863ac1f8ae0deb9ea # mesa-22.1.2.tar.xz
81b087223b6ae0befe4f94228561d19f25db0983fae14c69d2713df0f3a19aa4 # mesa-22.1.2.tar.xz.sig
7052ba73bb07ea78873a2431ee4e828f4e72bda7d176d07f770fa48373dec537) # LICENSE

View File

@ -6,8 +6,8 @@
pkgbase=mesa
pkgname=('vulkan-mesa-layers' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'vulkan-swrast' 'libva-mesa-driver' 'mesa-vdpau' 'mesa')
pkgdesc="An open-source implementation of the OpenGL specification"
pkgver=22.1.1
pkgrel=2
pkgver=22.1.2
pkgrel=1
arch=('x86_64')
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
'libxdamage' 'libvdpau' 'libva' 'wayland' 'wayland-protocols' 'zstd' 'elfutils' 'llvm'
@ -18,7 +18,7 @@ license=('custom')
options=('debug')
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE)
sha512sums=('4d4ad8b0e9bd0584635153af809bfbc5dc61e1f6994ae2719a3298b5a6e26dee96d28d151483e258a793313d19c54ca365a58a0849b5238964ae48941f423ae4'
sha512sums=('2bcce3dcb6f151de7717153a0745c1c754dec7e63dae6923a2123d2149562f13ef8faaa0f15e54c434e80b0562932a8cf8be007d181777c82ccf7a1b1bb621cc'
'SKIP'
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D' # Emil Velikov <emil.l.velikov@gmail.com>

98
syslog-ng/PKGBUILD Normal file
View File

@ -0,0 +1,98 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=syslog-ng
pkgver=3.37.1
pkgrel=01
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities - w/o systemd and ipv6"
arch=('x86_64')
url="https://www.syslog-ng.com/products/open-source-log-management/"
depends=('awk' 'glib2' 'libnsl' 'json-c' 'curl' 'libnet' 'openssl')
makedepends=('libxslt' 'mongo-c-driver' 'librabbitmq-c' 'python' 'libesmtp' 'hiredis'
'libdbi' 'libmaxminddb' 'net-snmp' 'librdkafka' 'libcap')
checkdepends=('python-nose' 'python-ply')
optdepends=('logrotate: for rotating log files'
'libdbi: for the SQL plugin'
'librabbitmq-c: for the AMQP plugin'
'mongo-c-driver: for the MongoDB plugin'
'libesmtp: for the SMTP plugin'
'hiredis: for the Redis plugin'
'libmaxminddb: for the GeoIP2 plugin'
'net-snmp: for the SNMP plugin'
'librdkafka: for the Kafka C plugin'
'python: for Python-based plugins')
conflicts=('eventlog')
replaces=('eventlog')
backup=('etc/syslog-ng/scl.conf'
'etc/syslog-ng/syslog-ng.conf'
'etc/logrotate.d/syslog-ng'
'etc/default/syslog-ng')
source=(https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$pkgver/$pkgname-$pkgver.tar.gz
syslog-ng.conf syslog-ng.logrotate)
prepare() {
cd $pkgname-$pkgver
# sed -i -e 's,/bin/,/usr/bin/,' -e 's,/sbin/,/bin/,' contrib/systemd/syslog-ng@.service
# sed -i -e 's|/var/run|/run|g' contrib/systemd/syslog-ng@default
}
build() {
cd $pkgname-$pkgver
# https://archlinux.org/todo/lto-fat-objects/
export CFLAGS+=" -ffat-lto-objects"
export CXXFLAGS+=" -ffat-lto-objects"
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc/syslog-ng \
--libexecdir=/usr/lib \
--sbindir=/usr/bin \
--localstatedir=/var/lib/syslog-ng \
--datadir=/usr/share \
--with-pidfile-dir=/run \
--enable-spoof-source \
--disable-ipv6 \
--disable-systemd \
--with-systemdsystemunitdir=no \
--enable-manpages \
--enable-all-modules \
--disable-java \
--disable-java-modules \
--disable-mqtt \
--disable-riemann \
--with-python=3 \
--with-jsonc=system
make
}
check() {
cd $pkgname-$pkgver
make check || /usr/bin/true # unit test requires criterion
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
install -dm755 "$pkgdir/var/lib/syslog-ng" "$pkgdir/etc/syslog-ng/patterndb.d"
install -Dm644 "$srcdir/syslog-ng.conf" "$pkgdir/etc/syslog-ng/syslog-ng.conf"
install -Dm644 "$srcdir/syslog-ng.logrotate" "$pkgdir/etc/logrotate.d/syslog-ng"
install -Dm644 "$srcdir"/$pkgname-$pkgver/contrib/systemd/syslog-ng@default "$pkgdir"/etc/default/syslog-ng
}
#---- license gpg-key sha256sums ----
license=('GPL2' 'LGPL2.1')
sha512sums=('beebd89c54a415469dc58630ac1900d632ef351f6a13fad4a95ce7bb1760b16d6cfdcede02225a35e97ebce7dae151c6aa228f3d378463e8b873c4f71ed86ab7'
'36629a566a8343574dc07430e744e20ce90574be0cc856bc43340f834cd6642a8f08889b9ba15996d088aeebeee4bc3ca64411265046c17c8e125fbed8948ded'
'cd39f545a6a855c866a466bf846e33940b2c2dd1fc2eaf50cce29c68e1a5753c7c4b56411e4f01c152f32e155104a98dd755a96319767f47c73a8853f720b2cc')
sha256sums=(d67a320cb896cd5d62f24d9e1bec138847fa4618ae13a3946cae2b75c528ee14 # syslog-ng-3.37.1.tar.gz
d2e3328e2ac344ccddf1b38eab226f36c11ade1971c0c8c8ac8cd4d97c8b02e8 # syslog-ng.conf
93c935eca56854011ea9e353b7a1da662ad40b2e8452954c5b4b5a1d5b2d5317) # syslog-ng.logrotate

72
syslog-ng/PKGBUILD-arch Normal file
View File

@ -0,0 +1,72 @@
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgname=syslog-ng
pkgver=3.37.1
pkgrel=1
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
arch=('x86_64')
url="https://www.syslog-ng.com/products/open-source-log-management/"
license=('GPL2' 'LGPL2.1')
depends=('awk' 'systemd-libs' 'glib2' 'libnsl' 'json-c' 'curl' 'libnet' 'openssl')
makedepends=('libxslt' 'mongo-c-driver' 'librabbitmq-c' 'python' 'libesmtp' 'hiredis'
'libdbi' 'libmaxminddb' 'net-snmp' 'librdkafka' 'libcap' 'systemd')
checkdepends=('python-nose' 'python-ply')
optdepends=('logrotate: for rotating log files'
'libdbi: for the SQL plugin'
'librabbitmq-c: for the AMQP plugin'
'mongo-c-driver: for the MongoDB plugin'
'libesmtp: for the SMTP plugin'
'hiredis: for the Redis plugin'
'libmaxminddb: for the GeoIP2 plugin'
'net-snmp: for the SNMP plugin'
'librdkafka: for the Kafka C plugin'
'python: for Python-based plugins')
conflicts=('eventlog')
replaces=('eventlog')
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=('beebd89c54a415469dc58630ac1900d632ef351f6a13fad4a95ce7bb1760b16d6cfdcede02225a35e97ebce7dae151c6aa228f3d378463e8b873c4f71ed86ab7'
'36629a566a8343574dc07430e744e20ce90574be0cc856bc43340f834cd6642a8f08889b9ba15996d088aeebeee4bc3ca64411265046c17c8e125fbed8948ded'
'cd39f545a6a855c866a466bf846e33940b2c2dd1fc2eaf50cce29c68e1a5753c7c4b56411e4f01c152f32e155104a98dd755a96319767f47c73a8853f720b2cc')
prepare() {
cd $pkgname-$pkgver
sed -i -e 's,/bin/,/usr/bin/,' -e 's,/sbin/,/bin/,' contrib/systemd/syslog-ng@.service
sed -i -e 's|/var/run|/run|g' contrib/systemd/syslog-ng@default
}
build() {
cd $pkgname-$pkgver
# https://archlinux.org/todo/lto-fat-objects/
export CFLAGS+=" -ffat-lto-objects"
export CXXFLAGS+=" -ffat-lto-objects"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc/syslog-ng --libexecdir=/usr/lib \
--sbindir=/usr/bin --localstatedir=/var/lib/syslog-ng --datadir=/usr/share \
--with-pidfile-dir=/run --enable-spoof-source --enable-ipv6 \
--enable-systemd --with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-manpages --enable-all-modules --disable-java --disable-java-modules \
--disable-mqtt --disable-riemann --with-python=3 --with-jsonc=system
make
}
check() {
cd $pkgname-$pkgver
make check || /usr/bin/true # unit test requires criterion
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
install -dm755 "$pkgdir/var/lib/syslog-ng" "$pkgdir/etc/syslog-ng/patterndb.d"
install -Dm644 "$srcdir/syslog-ng.conf" "$pkgdir/etc/syslog-ng/syslog-ng.conf"
install -Dm644 "$srcdir/syslog-ng.logrotate" "$pkgdir/etc/logrotate.d/syslog-ng"
install -Dm644 "$srcdir"/$pkgname-$pkgver/contrib/systemd/syslog-ng@default -t "$pkgdir"/etc/default
}

154
syslog-ng/PKGBUILD-oba Normal file
View File

@ -0,0 +1,154 @@
# Copyright : Obarun
#------------------------
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
# Maintainer : YianIris <yianiris At disroot Dot org>
#----------------
# Obarun PkgSrc : https://git.obarun.org/pkg/obextra/syslog-ng
#--------------------------------------------------------------
# DESCRIPTION ]
pkgname=syslog-ng
pkgver=3.36.1
pkgrel=2
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
url='https://www.syslog-ng.com/products/open-source-log-management/'
track="releases/download/syslog-ng-$pkgver"
target="$pkgname-$pkgver"
source=(
"https://github.com/balabit/syslog-ng/${track}/${target}.tar.gz"
syslog-ng.conf
syslog-ng.logrotate
)
#----------------------
# BUILD CONFIGURATION ]
makedepends=(
'libxslt'
'mongo-c-driver'
'librabbitmq-c'
'python'
'libesmtp'
'hiredis'
'libdbi'
'libmaxminddb'
'net-snmp'
'librdkafka'
'libcap'
)
checkdepends=(
'python-nose'
'python-ply'
)
#------------------------
# INSTALL CONFIGURATION ]
depends=(
'awk'
'glib2'
'libnsl'
'json-c'
'curl'
'libnet'
'openssl'
)
optdepends=(
'logrotate: for rotating log files'
'libdbi: for the SQL plugin'
'librabbitmq-c: for the AMQP plugin'
'mongo-c-driver: for the MongoDB plugin'
'libesmtp: for the SMTP plugin'
'hiredis: for the Redis plugin'
'libmaxminddb: for the GeoIP2 plugin'
'net-snmp: for the SNMP plugin'
'librdkafka: for the Kafka C plugin'
'python: for Python-based plugins'
)
backup=(
'etc/syslog-ng/scl.conf'
'etc/syslog-ng/syslog-ng.conf'
'etc/logrotate.d/syslog-ng'
)
conflicts=(
'eventlog'
)
replaces=(
'eventlog'
)
#----------------
# BUILD CONTROL ]
_flags=(
--prefix=/usr
--sysconfdir=/etc/syslog-ng
--libexecdir=/usr/libexec
--sbindir=/usr/bin
--localstatedir=/var/lib/syslog-ng
--datadir=/usr/share
--with-pidfile-dir=/run
--disable-spoof-source
--enable-ipv6
--disable-systemd
--with-systemdsystemunitdir=no
--enable-manpages
--enable-all-modules
--disable-java
--disable-java-modules
--disable-riemann
--disable-mqtt
--with-python=3
--with-jsonc=system
)
#--------
# BUILD ]
build() {
cd $pkgname-$pkgver
## https://archlinux.org/todo/lto-fat-objects/
export CFLAGS+=" -ffat-lto-objects"
export CXXFLAGS+=" -ffat-lto-objects"
./autogen.sh
./configure "${_flags[@]}"
make
}
#--------
# CHECK ]
check() {
cd $pkgname-$pkgver
make check || /usr/bin/true # unit test requires criterion
}
#----------
# PACKAGE ]
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
install -dm755 "$pkgdir"/var/lib/syslog-ng "$pkgdir"/etc/syslog-ng/patterndb.d
install -Dm644 "$srcdir"/syslog-ng.conf "$pkgdir"/etc/syslog-ng/syslog-ng.conf
install -Dm644 "$srcdir"/syslog-ng.logrotate "$pkgdir"/etc/logrotate.d/syslog-ng
install -Dm644 "$srcdir"/$pkgname-$pkgver/contrib/systemd/syslog-ng@default -t "$pkgdir"/etc/default
}
#--------------------
# ARCH LICENSE AUTH ]
arch=(x86_64)
license=(GPL2 LGPL2.1)
sha512sums=('')

1
syslog-ng/clean Normal file
View File

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

17
syslog-ng/deps Normal file
View File

@ -0,0 +1,17 @@
libnsl
json-c
libnet
libxslt
mongo-c-driver
librabbitmq-c
python
libesmtp
hiredis
libdbi
libmaxminddb
net-snmp
librdkafka
python-nose
python-ply
autoconf
automake

93
syslog-ng/syslog-ng.conf Normal file
View File

@ -0,0 +1,93 @@
@version: 3.35
@include "scl.conf"
#
# /etc/syslog-ng/syslog-ng.conf
#
options {
stats_freq (0);
flush_lines (0);
time_reopen (10);
log_fifo_size (10000);
chain_hostnames (off);
dns_cache (no);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
perm(0640);
group("log");
};
source src {
system();
internal();
};
destination d_authlog { file("/var/log/auth.log"); };
destination d_syslog { file("/var/log/syslog.log"); };
destination d_cron { file("/var/log/crond.log"); };
destination d_daemon { file("/var/log/daemon.log"); };
destination d_kernel { file("/var/log/kernel.log"); };
destination d_lpr { file("/var/log/lpr.log"); };
destination d_user { file("/var/log/user.log"); };
destination d_uucp { file("/var/log/uucp.log"); };
destination d_mail { file("/var/log/mail.log"); };
destination d_news { file("/var/log/news.log"); };
destination d_ppp { file("/var/log/ppp.log"); };
destination d_debug { file("/var/log/debug.log"); };
destination d_messages { file("/var/log/messages.log"); };
destination d_errors { file("/var/log/errors.log"); };
destination d_everything { file("/var/log/everything.log"); };
destination d_iptables { file("/var/log/iptables.log"); };
destination d_acpid { file("/var/log/acpid.log"); };
destination d_console { usertty("root"); };
# Log everything to tty12
destination console_all { file("/dev/tty12"); };
filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };
filter f_syslog { program(syslog-ng); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_kernel { facility(kern) and not filter(f_iptables); };
filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_news { facility(news); };
filter f_user { facility(user); };
filter f_uucp { facility(uucp); };
filter f_ppp { facility(local2); };
filter f_debug { not facility(auth, authpriv, news, mail); };
filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news, cron) and not program(syslog-ng) and not filter(f_iptables); };
filter f_everything { level(debug..emerg) and not facility(auth, authpriv); };
filter f_emergency { level(emerg); };
filter f_info { level(info); };
filter f_notice { level(notice); };
filter f_warn { level(warn); };
filter f_crit { level(crit); };
filter f_err { level(err); };
filter f_iptables { match("IN=" value("MESSAGE")) and match("OUT=" value("MESSAGE")); };
filter f_acpid { program("acpid"); };
log { source(src); filter(f_acpid); destination(d_acpid); };
log { source(src); filter(f_authpriv); destination(d_authlog); };
log { source(src); filter(f_syslog); destination(d_syslog); };
log { source(src); filter(f_cron); destination(d_cron); };
log { source(src); filter(f_daemon); destination(d_daemon); };
log { source(src); filter(f_kernel); destination(d_kernel); };
log { source(src); filter(f_lpr); destination(d_lpr); };
log { source(src); filter(f_mail); destination(d_mail); };
log { source(src); filter(f_news); destination(d_news); };
log { source(src); filter(f_ppp); destination(d_ppp); };
log { source(src); filter(f_user); destination(d_user); };
log { source(src); filter(f_uucp); destination(d_uucp); };
#log { source(src); filter(f_debug); destination(d_debug); };
log { source(src); filter(f_messages); destination(d_messages); };
log { source(src); filter(f_err); destination(d_errors); };
log { source(src); filter(f_emergency); destination(d_console); };
log { source(src); filter(f_everything); destination(d_everything); };
log { source(src); filter(f_iptables); destination(d_iptables); };
# Log everything to tty12
#log { source(src); destination(console_all); };

View File

@ -0,0 +1,7 @@
/var/log/messages.log /var/log/auth.log /var/log/mail.log /var/log/kernel.log /var/log/errors.log /var/log/daemon.log /var/log/user.log /var/log/iptables.log /var/log/everything.log /var/log/syslog.log /var/log/acpid.log /var/log/crond.log /var/log/lpr.log /var/log/uucp.log /var/log/news.log /var/log/ppp.log /var/log/debug.log {
missingok
sharedscripts
postrotate
/bin/kill -HUP $(cat /run/syslog-ng.pid 2>/dev/null) 2>/dev/null || true
endscript
}

4
syslog-ng/time Normal file
View File

@ -0,0 +1,4 @@
real 1m44.128s
user 4m13.673s
sys 0m26.254s