summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-06-04 15:58:19 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-06-04 15:58:19 +0200
commitf0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c (patch)
treee5cffdf0945585d0ce7b3f8273e713db8311a01f
parentpamldapd-0.3 (diff)
downloadg-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar.gz
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar.bz2
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar.lz
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar.xz
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.tar.zst
g-f0f4c7cfb170ee9a90bd4022a16b5a1a9d43491c.zip
Diffstat (limited to '')
-rwxr-xr-xnet-nds/pamldapd/files/pamldapd.initd9
-rw-r--r--net-nds/pamldapd/pamldapd-0.3.ebuild4
2 files changed, 13 insertions, 0 deletions
diff --git a/net-nds/pamldapd/files/pamldapd.initd b/net-nds/pamldapd/files/pamldapd.initd
new file mode 100755
index 0000000..d171339
--- /dev/null
+++ b/net-nds/pamldapd/files/pamldapd.initd
@@ -0,0 +1,9 @@
+#!/sbin/openrc-run
+name="pamldapd daemon"
+description="Simple LDAP server, uses PAM as backend"
+command=/usr/bin/pamldapd
+command_args="-c /etc/pamldapd.json -l /var/log/pamldapd.log"
+command_background="yes"
+command_user="pamldapd:pamldapd"
+output_log="/var/log/pamldapd/stdout.log"
+error_log="/var/log/pamldapd/stdout.log"
diff --git a/net-nds/pamldapd/pamldapd-0.3.ebuild b/net-nds/pamldapd/pamldapd-0.3.ebuild
index 11365aa..db8c233 100644
--- a/net-nds/pamldapd/pamldapd-0.3.ebuild
+++ b/net-nds/pamldapd/pamldapd-0.3.ebuild
@@ -29,6 +29,10 @@ src_compile() {
}
src_install() {
+ keepdir /var/log/pamldapd
+ fowners pamldapd:pamldapd /var/log/pamldapd
+ fperms 750 /var/log/pamldapd
+ newinitd "${FILESDIR}/pamldapd.initd" pamldapd
dobin pamldapd
default
}