diff options
Diffstat (limited to 'net-nds/pamldapd')
-rwxr-xr-x | net-nds/pamldapd/files/pamldapd.initd | 9 | ||||
-rw-r--r-- | net-nds/pamldapd/pamldapd-0.3.ebuild | 4 |
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 } |