-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ebuild backend #274
base: main
Are you sure you want to change the base?
Ebuild backend #274
Changes from all commits
986b47e
e475bcb
eae5f75
16e9fc0
11806c7
38b215a
6c9da5c
36c202b
396803f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
EXTRA_DIST = \ | ||
data/fapolicyd-filter.conf \ | ||
data/fapolicyd.conf \ | ||
data/fapolicyd.trust \ | ||
openrc/conf.d/fapolicyd \ | ||
openrc/init.d/fapolicyd \ | ||
systemd/fapolicyd.service \ | ||
fapolicyd-tmpfiles.conf \ | ||
fapolicyd-magic \ | ||
fapolicyd.bash_completion \ | ||
fagenrules | ||
|
||
fapolicyddir = $(sysconfdir)/fapolicyd | ||
|
||
dist_fapolicyd_DATA = \ | ||
data/fapolicyd.conf \ | ||
data/fapolicyd-filter.conf \ | ||
data/fapolicyd.trust | ||
|
||
systemdservicedir = $(systemdsystemunitdir) | ||
dist_systemdservice_DATA = systemd/fapolicyd.service | ||
|
||
openrcinitdir = $(sysconfdir)/init.d | ||
dist_openrcinit_DATA = openrc/init.d/fapolicyd | ||
openrcconfdir = $(sysconfdir)/conf.d | ||
dist_openrcconf_DATA = openrc/conf.d/fapolicyd | ||
|
||
sbin_SCRIPTS = fagenrules | ||
|
||
completiondir = $(sysconfdir)/bash_completion.d/ | ||
dist_completion_DATA = fapolicyd.bash_completion | ||
|
||
MAGIC = fapolicyd-magic.mgc | ||
pkgdata_DATA = ${MAGIC} | ||
CLEANFILES = ${MAGIC} | ||
|
||
${MAGIC}: $(EXTRA_DIST) | ||
file -C -m ${top_srcdir}/extra/fapolicyd-magic |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fapolicyd_opts="--permissive --debug" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/sbin/openrc-run | ||
|
||
name=$RC_SVCNAME | ||
cfgfile="/etc/$RC_SVCNAME/$RC_SVCNAME.conf" | ||
command="/usr/sbin/fapolicyd" | ||
command_args="${fapolicyd_opts}" | ||
command_user="fapolicyd" | ||
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid" | ||
|
||
# Depend on local disks being mounted | ||
depend() { | ||
need localmount | ||
} | ||
|
||
# Before starting the service update the rulesfile in /etc/fapolicyd | ||
# from the fragments in /etc/fapolicyd/rules.d | ||
start_pre() { | ||
/usr/sbin/fagenrules | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,16 +74,26 @@ libfapolicyd_la_SOURCES += \ | |
|
||
endif | ||
|
||
if NEED_MD5 | ||
libfapolicyd_la_SOURCES += \ | ||
library/md5-backend.c \ | ||
library/md5-backend.h | ||
endif | ||
|
||
if WITH_DEB | ||
libfapolicyd_la_SOURCES += library/deb-backend.c | ||
libfapolicyd_la_SOURCES += library/deb-backend.c \ | ||
library/md5-backend.c \ | ||
library/md5-backend.h | ||
fapolicyd_CFLAGS += -DLIBDPKG_VOLATILE_API | ||
fapolicyd_LDFLAGS += -ldpkg | ||
endif | ||
|
||
if NEED_MD5 | ||
libfapolicyd_la_SOURCES += \ | ||
if WITH_EBUILD | ||
libfapolicyd_la_SOURCES += library/ebuild-backend.c \ | ||
library/md5-backend.c \ | ||
Kangie marked this conversation as resolved.
Show resolved
Hide resolved
|
||
library/md5-backend.h | ||
library/md5-backend.h \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since |
||
library/filter.c \ | ||
library/filter.h | ||
endif | ||
|
||
fapolicyd_cli_CFLAGS = $(fapolicyd_CFLAGS) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
AS_IF
. Bareif
has issues with quoting and is no longer recommended in the autoconf manual.