dma: need to split in pre-/post-install, pff

This commit is contained in:
Steffen Nurpmeso 2021-02-08 22:40:04 +01:00
parent 815639d673
commit f1d80413f4
4 changed files with 20 additions and 16 deletions

View File

@ -1,6 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/EdzEyNVESqkXBFWnWD4Ds5SjUnWmHEvVoy4/P06VhFSsBQKPU1TzvxtdLGhVP2hXfyz96okyqZsGLhjXexjgQ=
SHA256 (Pkgfile) = c24c2ada412468041a682ba721fa93eb016d4bff7dcc1a758e6b71294de776a2
RWSagIOpLGJF3489VSLCQlkcbkwH8IFGyslmkttJV2R8gM0PeZGlEUdwjLNyfn5hZ6lqrkh3AK80evziTIG//92GlOY79OprPQI=
SHA256 (Pkgfile) = 8ec77ecd5993778378fb9d042a3ec7ca4307abe61442e7d1e265d28a557e1845
SHA256 (.footprint) = 6c5a4e68ba5e38ef8a273560b907e1fac541f0c30c4f80e0c4b31c4318add08f
SHA256 (dma-20201022.tar.gz) = 890f785b4addada4dbd067751e8a8c0bc4fcff3c1a310ca12ad99dbb449448b3
SHA256 (post-install) = bbacf33124c2663ffafd8f86986bf5e10e7c18754ff19a1e2197d1cf895cd677
SHA256 (pre-install) = f849878441571c9072abc33fe732614a06c1998dff416b6c102060803c5b9fd5
SHA256 (post-install) = fc67774f1ffef17fee116003fdbbc5bb4fa59f0fddd2a28d365c2ca97fbe2f51
SHA256 (README) = 430794fbf37fde5409cb2142a253a431d17925a085d99fa477efa8e39302b249

View File

@ -6,22 +6,25 @@
name=dma
version=20201022
gitver=a9f892c0b161531548223cd1159d2adbf7e02e0a
release=1
source=(https://github.com/corecode/$name/archive/$gitver/$name-$version.tar.gz
post-install)
release=2
source=(
https://github.com/corecode/${name}/archive/\
${gitver}/${name}-${version}.tar.gz
pre-install post-install README
)
build() {
cd $name-$gitver
cd ${name}-${gitver}
make PREFIX=/usr LIBEXEC=/usr/lib/dma CONFDIR=/usr/etc/ \
DESTDIR=$PKG \
DESTDIR="${PKG}" \
all install install-etc
ln -s -f dma "$PKG"/usr/sbin/sendmail
ln -s -f dma "${PKG}"/usr/sbin/sendmail
mkdir -p "$PKG"/var/spool/dma
chown root:mail "$PKG"/var/spool/dma
chmod 2770 "$PKG"/var/spool/dma
mkdir -p "${PKG}"/var/spool/dma
chown root:mail "${PKG}"/var/spool/dma
chmod 2770 "${PKG}"/var/spool/dma
}
# s-sh-mode

View File

@ -1,8 +1,4 @@
#!/bin/sh -
getent group mail || groupadd -r mail
grep -q dma /etc/crontab ||
echo '*/15 * * * * exec dma -q' >> /etc/crontab
exit 0

3
dma/pre-install Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh -
getent group mail >/dev/null || groupadd -r mail