1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/clapf/clapf.pre-install
Przemyslaw Pawelczyk 071c1400c2 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.
2016-06-20 13:35:25 +00:00

6 lines
134 B
Bash

#!/bin/sh
addgroup -S clapf 2>/dev/null
adduser -S -D -H -h /var/lib/clapf -s /bin/false -G clapf -g clapf clapf 2>/dev/null
exit 0