From 071c1400c272c0f381651a0dc9b181ab0abfc1fc Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Fri, 17 Jun 2016 03:47:30 +0200 Subject: testing/clapf: Fix a lot of problems. * APKBUILD: Leverage default_prepare and use builddir (no _). * APKBUILD: Update url and source url. Original tar seems not available anymore and there are no tags in clapf's bitbucket repository, so use commit marked as release of version that was shipped before. * APKBUILD: Introduce some constants for better DRY-ness, reformat package() function, create there a workdir (otherwise clapf won't start) and fix permissions. * APKBUILD: make -j1 is deliberate, as it fails with more jobs, but I am not willing to spend any more time on this package. * ldflags.patch: Set soname (otherwise -dev subpkg will haunt you). * clapf.confd: Make it somewhat usable. TMPDIR seemed useless. * clapf.initd: Rewrite using openrc-run default ssd functions. * clapf.pre-install: Change user and group to clapf. It has not been tested with mta, but at least it starts now if you have virus databases present. Run freshclam if you don't have them yet. --- testing/clapf/clapf.confd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'testing/clapf/clapf.confd') diff --git a/testing/clapf/clapf.confd b/testing/clapf/clapf.confd index f31009d75d..8edf00cfb2 100644 --- a/testing/clapf/clapf.confd +++ b/testing/clapf/clapf.confd @@ -1,4 +1,6 @@ -# -# Config file for /etc/init.d/clapf -# -TMPDIR="/var/lib/clapf" +# /etc/conf.d/clapf: config file for /etc/init.d/clapf + +#CLAPF_USER=clapf +#CLAPF_GROUP=clapf +#CLAPF_CONF=/etc/clapf.conf +#CLAPF_OPTS="-c $CLAPF_CONF" -- cgit v1.2.3