debian: initial syslogd/logger/libsyslog0/libsylog-dev packaging
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
ca6b36c63a
commit
2db6f712ce
@ -53,10 +53,16 @@ release-hook:
|
|||||||
echo; \
|
echo; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate .deb package(s)
|
||||||
|
#
|
||||||
|
package:
|
||||||
|
@debuild -uc -us -B --lintian-opts --profile debian -i -I --show-overrides
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target to run when building a release
|
# Target to run when building a release
|
||||||
#
|
#
|
||||||
release: release-hook distcheck
|
release: release-hook distcheck package
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
md5sum $$file > ../$$file.md5; \
|
md5sum $$file > ../$$file.md5; \
|
||||||
sha256sum $$file > ../$$file.sha256; \
|
sha256sum $$file > ../$$file.sha256; \
|
||||||
|
15
debian/.gitignore
vendored
Normal file
15
debian/.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
*.log
|
||||||
|
*.substvars
|
||||||
|
.debhelper/
|
||||||
|
autoreconf.*
|
||||||
|
debhelper-build-stamp
|
||||||
|
files
|
||||||
|
libsyslog0/
|
||||||
|
libsyslog-dev/
|
||||||
|
libsyslog/
|
||||||
|
logger/
|
||||||
|
syslogd.debhelper.log
|
||||||
|
syslogd.post*
|
||||||
|
syslogd.pre*
|
||||||
|
syslogd/
|
||||||
|
tmp/
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
sysklogd (2.2.2) stable; urgency=low
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Joachim Wiberg <troglobit@gmail.com> Sun, 21 Feb 2021 13:43:49 +0100
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
61
debian/control
vendored
Normal file
61
debian/control
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
Source: sysklogd
|
||||||
|
Priority: important
|
||||||
|
Section: admin
|
||||||
|
Maintainer: Joachim Wiberg <troglobit@gmail.com>
|
||||||
|
Build-Depends: debhelper (>= 10), pkg-config
|
||||||
|
Standards-Version: 4.3.0
|
||||||
|
Homepage: https://troglobit.com/sysklogd.html
|
||||||
|
Vcs-Browser: https://github.com/troglobit/sysklogd
|
||||||
|
Vcs-Git: https://github.com/troglobit/sysklogd.git
|
||||||
|
|
||||||
|
Package: syslogd
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6)
|
||||||
|
Provides: syslogd, linux-kernel-log-daemon, system-log-daemon
|
||||||
|
Conflicts: syslogd, linux-kernel-log-daemon, system-log-daemon
|
||||||
|
Recommends: logrotate
|
||||||
|
Description: system logging daemon
|
||||||
|
Continuation of the original syslog daemon for Linux, based on the *BSD
|
||||||
|
syslog daemon. Now with kernel logging and log rotation built-in. It
|
||||||
|
can both receive from and send to remote syslog servers. Since v2.0 it
|
||||||
|
also includes support for RFC5424 with the new syslogp() API extension
|
||||||
|
from NetBSD for clients.
|
||||||
|
|
||||||
|
Package: libsyslog-dev
|
||||||
|
Priority: optional
|
||||||
|
Section: libdevel
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends}, libsyslog0 (= ${binary:Version})
|
||||||
|
Description: new syslogp() API from NetBSD, development files
|
||||||
|
Development files for building applications that use the syslogp()
|
||||||
|
API from NetBSD.
|
||||||
|
.
|
||||||
|
This package includes the static library, header files, and docs.
|
||||||
|
|
||||||
|
Package: libsyslog0
|
||||||
|
Priority: optional
|
||||||
|
Section: libs
|
||||||
|
Provides: libsyslog
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Description: new syslogp() API from NetBSD for use with sysklogd
|
||||||
|
This library provides the new syslogp() API from NetBSD. It provides
|
||||||
|
applications with the full RFC5424 logging API. The intended use is
|
||||||
|
with the sysklogd package.
|
||||||
|
|
||||||
|
Package: logger
|
||||||
|
Priority: optional
|
||||||
|
Section: admin
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, libsyslog0 (= ${binary:Version})
|
||||||
|
Conflicts: bsdutils
|
||||||
|
Description: enter messages into the system log
|
||||||
|
This version of logger is receommended for use with sysklogd.
|
||||||
|
It makes use of the new syslogp() API for RFC5424 style logs,
|
||||||
|
e.g. MSGID, strucutred data (SD), etc.
|
||||||
|
.
|
||||||
|
The BusyBox, or util-linux, logger tools can also be used, but
|
||||||
|
are limited to RFC3164 style messages.
|
||||||
|
.
|
||||||
|
Note: on Debian this conflicts with bsdutils, which is the
|
||||||
|
main package for providing logger. Use that.
|
37
debian/copyright
vendored
Normal file
37
debian/copyright
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: sysklogd
|
||||||
|
Upstream-Contact: troglobit@gmail.com
|
||||||
|
Source: https://github.com/troglobit/sysklogd
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2021 Joachim Wiberg <troglobit@gmail.com>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 1983, 1988, 1993 The Regents of the University of California. All rights reserved.
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
License: BSD-3-clause
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the University nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
.
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
1
debian/docs
vendored
Normal file
1
debian/docs
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
README.md
|
103
debian/init.d
vendored
Executable file
103
debian/init.d
vendored
Executable file
@ -0,0 +1,103 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: syslogd
|
||||||
|
# Required-Start: $network $remote_fs $time
|
||||||
|
# Required-Stop: $network $remote_fs $time
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: System logging daemon
|
||||||
|
# Description: The original Linux syslog daemon
|
||||||
|
### END INIT INFO
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
DESC="System logging daemon"
|
||||||
|
NAME=syslogd
|
||||||
|
|
||||||
|
DAEMON=/usr/sbin/syslogd
|
||||||
|
PIDFILE=/var/run/syslogd.pid
|
||||||
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
# Exit if the package is not installed
|
||||||
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
|
||||||
|
# Read configuration variable file if it is present
|
||||||
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
# Define LSB log_* functions.
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
do_start()
|
||||||
|
{
|
||||||
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $SYSLOGD_OPTS
|
||||||
|
}
|
||||||
|
|
||||||
|
do_signal()
|
||||||
|
{
|
||||||
|
start-stop-daemon --stop --quiet --signal $1 $2 --pidfile $PIDFILE --exec $DAEMON
|
||||||
|
}
|
||||||
|
|
||||||
|
do_stop()
|
||||||
|
{
|
||||||
|
do_signal TERM --oknodo
|
||||||
|
}
|
||||||
|
|
||||||
|
do_reload()
|
||||||
|
{
|
||||||
|
do_signal HUP
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
|
do_start
|
||||||
|
case "$?" in
|
||||||
|
0) log_end_msg 0 ;;
|
||||||
|
1) log_progress_msg "already started"
|
||||||
|
log_end_msg 0 ;;
|
||||||
|
*) log_end_msg 1 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
|
do_stop
|
||||||
|
case "$?" in
|
||||||
|
0) log_end_msg 0 ;;
|
||||||
|
1) log_progress_msg "already stopped"
|
||||||
|
log_end_msg 0 ;;
|
||||||
|
*) log_end_msg 1 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
reload)
|
||||||
|
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||||
|
do_reload
|
||||||
|
case "$?" in
|
||||||
|
0) log_end_msg 0 ;;
|
||||||
|
1) log_progress_msg "not running"
|
||||||
|
log_end_msg 1 ;;
|
||||||
|
*) log_end_msg 1 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart|force-reload)
|
||||||
|
$0 stop
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
|
||||||
|
try-restart)
|
||||||
|
$0 status >/dev/null 2>&1 && $0 restart
|
||||||
|
;;
|
||||||
|
|
||||||
|
status)
|
||||||
|
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $SCRIPTNAME {start|stop|reload|restart|force-reload|try-restart|status}" >&2
|
||||||
|
exit 3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
:
|
6
debian/libsyslog-dev.install
vendored
Normal file
6
debian/libsyslog-dev.install
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
usr/include/syslog/*.h
|
||||||
|
usr/lib/*/libsyslog.a
|
||||||
|
usr/lib/*/libsyslog.so
|
||||||
|
usr/lib/*/pkgconfig/lib*.pc
|
||||||
|
usr/share/doc/sysklogd/example/*
|
||||||
|
usr/share/man/man3/*
|
1
debian/libsyslog0.install
vendored
Normal file
1
debian/libsyslog0.install
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/lib/*/lib*.so.*
|
22
debian/libsyslog0.symbols
vendored
Normal file
22
debian/libsyslog0.symbols
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
libsyslog.so.0 libsyslog0 #MINVER#
|
||||||
|
* Build-Depends-Package: libsyslog-dev
|
||||||
|
__pidfile@Base 2.0
|
||||||
|
__pidfile_name@Base 2.0
|
||||||
|
__pidfile_path@Base 2.0
|
||||||
|
__strlcat@Base 2.0
|
||||||
|
__strlcpy@Base 2.0
|
||||||
|
__syslog_chk@Base 2.0
|
||||||
|
closelog@Base 2.0
|
||||||
|
closelog_r@Base 2.0
|
||||||
|
openlog@Base 2.0
|
||||||
|
openlog_r@Base 2.0
|
||||||
|
setlogmask@Base 2.0
|
||||||
|
setlogmask_r@Base 2.0
|
||||||
|
syslog@Base 2.0
|
||||||
|
syslog_r@Base 2.0
|
||||||
|
syslogp@Base 2.0
|
||||||
|
syslogp_r@Base 2.0
|
||||||
|
vsyslog@Base 2.0
|
||||||
|
vsyslog_r@Base 2.0
|
||||||
|
vsyslogp@Base 2.0
|
||||||
|
vsyslogp_r@Base 2.0
|
2
debian/logger.install
vendored
Normal file
2
debian/logger.install
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
usr/bin/logger
|
||||||
|
usr/share/man/man1/logger.1
|
19
debian/rules
vendored
Executable file
19
debian/rules
vendored
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# export DH_VERBOSE=1
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
export DEB_CFLAGS_MAINT_APPEND = -g -Og -rdynamic
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with autoreconf,systemd
|
||||||
|
|
||||||
|
override_dh_installchangelogs:
|
||||||
|
dh_installchangelogs ChangeLog.md
|
||||||
|
|
||||||
|
# Remove LICENSE and ChangeLog.md per Debian Policy
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install
|
||||||
|
rm -v debian/tmp/usr/share/doc/sysklogd/LICENSE
|
||||||
|
rm -v debian/tmp/usr/share/doc/sysklogd/ChangeLog.md
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
$(MAKE) check
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (native)
|
7
debian/syslogd.default
vendored
Normal file
7
debian/syslogd.default
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# syslogd defaults
|
||||||
|
#
|
||||||
|
|
||||||
|
# Secure mode enabled, forwarding to remote servers allowed, disable
|
||||||
|
# with another '-s', logging from remote servers disallowed.
|
||||||
|
SYSLOGD_OPTS="-s"
|
5
debian/syslogd.install
vendored
Normal file
5
debian/syslogd.install
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
syslog.conf etc
|
||||||
|
lib/systemd/system/syslogd.service
|
||||||
|
usr/sbin/syslogd
|
||||||
|
usr/share/man/man5/syslog.conf.5
|
||||||
|
usr/share/man/man8/syslogd.8
|
Loading…
Reference in New Issue
Block a user