Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
f57c5ba1
Commit
f57c5ba1
authored
4 years ago
by
Michał Polański
Committed by
Leo
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
main/ulogd: use supervise-daemon
parent
e02b59bc
No related branches found
No related tags found
1 merge request
!13433
main/ulogd: use supervise-daemon
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main/ulogd/APKBUILD
+8
-7
8 additions, 7 deletions
main/ulogd/APKBUILD
main/ulogd/ulogd.confd
+4
-2
4 additions, 2 deletions
main/ulogd/ulogd.confd
main/ulogd/ulogd.initd
+16
-23
16 additions, 23 deletions
main/ulogd/ulogd.initd
with
28 additions
and
32 deletions
main/ulogd/APKBUILD
+
8
−
7
View file @
f57c5ba1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname
=
ulogd
pkgver
=
2.0.7
pkgrel
=
6
pkgdesc
=
"
A u
serspace logging daemon for netfilter/iptables related logging"
pkgrel
=
7
pkgdesc
=
"
U
serspace logging daemon for netfilter/iptables related logging"
url
=
"https://netfilter.org/projects/ulogd/"
arch
=
"all"
license
=
"GPL-2.0-only"
...
...
@@ -45,9 +46,9 @@ build() {
package
()
{
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
install
-m644
-D
"
$srcdir
"
/
$pkgname
.logrotate
"
$pkgdir
"
/etc/logrotate.d/
$pkgname
install
-
D
m755
"
$srcdir
"
/
$pkgname
.initd
"
$pkgdir
"
/etc/init.d/
$pkgname
install
-
D
m644
"
$srcdir
"
/
$pkgname
.confd
"
$pkgdir
"
/etc/conf.d/
$pkgname
install
-
D
m644
"
$srcdir
"
/
$pkgname
.logrotate
"
$pkgdir
"
/etc/logrotate.d/
$pkgname
install
-dm755
"
$pkgdir
"
/usr/share/doc/ulogd
install
-Dm644
ulogd.conf
"
$pkgdir
"
/usr/share/doc/ulogd/ulogd.conf.sample
install
-Dm644
doc/ulogd.sgml
"
$pkgdir
"
/usr/share/doc/ulogd/ulogd.sgml
...
...
@@ -77,6 +78,6 @@ _plugin() {
}
sha512sums
=
"1ad12bcf91bebe8bf8580de38693318cdabd17146f1f65acf714334885cf13adf5f783abdf2dd67474ef12f82d2cfb84dd4859439bc7af10a0df58e4c7e48b09 ulogd-2.0.7.tar.bz2
f65e051520645c5e1618b1ef9d570ebac77ec8d05972c9b58ca93475a9612a725b26634a71e9fb8e117ae004a2dc13da2a1368b549d2808bd299e39b8f8d6bab musl-fixes.patch
ab60e36
7a18
d6dafcf5ee22562e303d74944f97b1e42717607db85f11d15d94be3e0e9aaa422c2bac13cdeee1aabc550f751f3e6419b1c7b16d86d0ee8fad55a
ulogd.initd
bdae1ff90c671b6847dfda1947a33e24bfbe16ad963f85769d923ba33021bc4ca315fd410b46fac102f0a24e879e4be4ad7bb5978c5a6755e74e6b5d7c3e18ee
ulogd.confd
8bfe0c6058a8f78af4d98895e6c75
7a1
1
8
18f06e56d801792999a3de57abfdd6f4a2ae4fd41c4013230e55d90df4a01b7855fd0bf42c815673987f8747310203
ulogd.initd
927475edf73605117ffaa6ae26316151b4c2cef6f49d2f552d0d57f2e294fc3799169c40db95b10d59a34d2176c1e0c263a7786aa4651d34a337fa906294950c
ulogd.confd
76d426411786010b73900b41cf2537c704cf48abbe464d10760d44420fd46fea72ae84f6b52c7c338f39630666ebe06ef05287d18e7dd7c5662bb72af0491b0e ulogd.logrotate"
This diff is collapsed.
Click to expand it.
main/ulogd/ulogd.confd
+
4
−
2
View file @
f57c5ba1
# Argument to be passed to ulog daemon
ARGS
=
"-d"
# Configuration for /etc/init.d/ulogd
# See ulogd(8) for available options
#ulogd_opts=""
This diff is collapsed.
Click to expand it.
main/ulogd/ulogd.initd
+
16
−
23
View file @
f57c5ba1
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-admin/ulogd/files/ulogd,v 1.2 2004/07/13 16:32:25 aliz Exp $
supervisor
=
supervise-daemon
description
=
"Netfilter userspace log daemon"
description_reload
=
"Reload configuration"
name
=
"ulogd"
description
=
"Netfilter userspace logging daemon"
command
=
"/usr/sbin/ulogd"
extra_started_commands
=
"reload"
description_reload
=
"Reload configuration"
command_args
=
"
$ulogd_opts
"
command_user
=
root:wheel
umask
=
027
depend
()
{
before firewall
...
...
@@ -14,28 +18,17 @@ depend() {
checkconfig
()
{
if
[
!
-e
/etc/ulogd.conf
]
;
then
eerror
"
You need
/etc/ulogd.conf"
eerror
"/etc/ulogd.conf
is missing
"
return
1
fi
}
start
()
{
checkconfig
||
return
1
ebegin
"Starting ulogd"
start-stop-daemon
--start
--quiet
--exec
/usr/sbin/ulogd
--group
wheel
\
--umask
027
--
$ARGS
>
/dev/null 2>&1
eend
$?
}
stop
()
{
ebegin
"Stopping ulogd"
start-stop-daemon
--stop
--quiet
--exec
/usr/sbin/ulogd
>
/dev/null 2>&1
eend
$?
}
reload
()
{
ebegin
"Reloading
ulogd.conf fil
e"
killal
l
-
HUP
ulogd &>/dev/null
ebegin
"Reloading
$nam
e
"
supervise-daemon
$RC_SVCNAME
--signa
l
HUP
eend
$?
}
}
start_pre
()
{
checkconfig
||
return
$?
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment