[crux-commits] ports/contrib (3.6): dma: need to split in pre-/post-install, pff

crux at crux.nu crux at crux.nu
Mon Feb 8 23:09:48 UTC 2021


commit f1d80413f408834edfcf2bf5859f686eb94a390d
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Feb 8 22:40:04 2021 +0100

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

diff --git a/dma/.signature b/dma/.signature
index bb1222878..0d3d05e37 100644
--- a/dma/.signature
+++ b/dma/.signature
@@ -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
diff --git a/dma/Pkgfile b/dma/Pkgfile
index 6eed48c66..a02b65225 100644
--- a/dma/Pkgfile
+++ b/dma/Pkgfile
@@ -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
diff --git a/dma/post-install b/dma/post-install
index 789683ba9..f1c9a04c8 100644
--- a/dma/post-install
+++ b/dma/post-install
@@ -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
diff --git a/dma/pre-install b/dma/pre-install
new file mode 100644
index 000000000..b5aa77443
--- /dev/null
+++ b/dma/pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh -
+
+getent group mail >/dev/null || groupadd -r mail


More information about the crux-commits mailing list