smlinux/base/sysklogd/smbuild
PktSurf 9d657e0a1d Upgraded base/perl to 5.38.0
Renamed .SMBuild files to smbuild for simplicity
Added musl-fts, musl-obstack, glslang, python-glad, libptytty, libmilter, elfutils and fuse to base section build list
Discarded fuse2 and fuse3 from base section
Temporarily discarded slapt-get, syslinux, p7zip, acpid, libelf-compat, gnu-eif, libtirpc, mozilla-nss,
lua53, qpdf, kernel-source and signify from base section build list
Disabled nls and made amends to base/e2fsprogs
Upgraded base/git to 2.46.2
Upgraded extra/gnumeric to 1.12.57
Disabled nls in base/gnutls, extra/dia
Disabled a patch and made amends in base/llvm
Fixed configure.local file in base/mandoc
Upgraded base/rust to 1.79
Fixed a ton of build files to use build prefix as /usr and miscellaneous changes
Discarded extra/bluez,blueman,scrcpy,adafruit-io
Added tomb to extra
Added new build option to extra/libass
Upgraded extra/mpv to 0.37.0
Disabled tests in gtk/gdk-pixbuf
Upgraded gtk/goffice to 0.10.57
Added gtk-doc to gtk section
Fixed build options in gtk/gtk2
Added new patches to gtk/gtk3
Added gtksourceview to gtk section
Added vulkan-headers to xorg section
Upgraded xorg/mesa to 23.1.9
Added libplacebo to xorg section
Fixed build stuff in xorg/glew
2024-10-29 20:25:20 +05:30

59 lines
1.9 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sysklogd
version=1.5
build=1sml
homepage="https://github.com/troglobit/sysklogd"
download="https://github.com/troglobit/sysklogd/archive/refs/tags/v1.5.0.tar.gz"
desc="Linux system logging utilities"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
# Use memmove() instead of strcpy() in syslogd.c
applypatch $srcdir/use_memmove_not_strcpy.diff
applypatch $srcdir/fix-includes.patch
}
build() {
make all syslog_tst CC+=" -static"
# install binaries
install -Dm 755 klogd $pkg/usr/bin/klogd
install -Dm 755 syslog_tst $pkg/usr/bin/syslog_tst
install -Dm 755 syslogd $pkg/usr/bin/syslogd
# install man pages
install -Dm 644 syslog.conf.5 $pkg/usr/share/man/man5/syslog.conf.5
install -Dm 644 klogd.8 $pkg/usr/share/man/man8/klogd.8
install -Dm 644 sysklogd.8 $pkg/usr/share/man/man8/sysklogd.8
# install conf files
install -Dm 644 $srcdir/syslog.conf.new $pkg/etc/syslog.conf.new
install -Dm 644 $srcdir/syslog.logrotate $pkg/etc/logrotate.d/syslog.new
cp COPYING $pkgdocs/
mkdir -p $pkg/var/log
for i in cron debug maillog messages secure spooler syslog ; do
touch $pkg/var/log/$i.new
chmod 640 $pkg/var/log/$i.new
done
preprunitservice -s syslogd -f
preprunitservice -s klogd -f
chmod 755 $pkg/etc/service/{klogd,syslogd/finish}
mkfinalpkg
}
sha512sums="
c4d3057b1e6ed67379bffe2a801d17e036ee6907e5166b80ece5b99f25526e9de1e9f9f22b2105f3130a9fcb928f1527f7d3d3cb714a03f0c6bc1aa150689840 sysklogd-1.5.tar.lz
0208662a0158ecb6b0a387bd1bf467c866105dac02767209aeaaaeb02762d6c2b814a2707315f8f6cd40f46c4b7744b74653e30973c31354998c27cd7c966dbd fix-includes.patch
90b990cdc52f908889f51a1f24cee1cc29c72369c2900d4dd6397440ee73e52fcc52dd5b8f59bb9d227d2238f8330ff0fb98ff1814062ecf1e0f4743f429bea6 use_memmove_not_strcpy.diff
"