summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Can Celasun2020-07-18 08:10:17 +0100
committerD. Can Celasun2020-07-18 08:10:17 +0100
commitf1b15a728a0f61f976c34535e41c37e58bc3f363 (patch)
tree9be830ba9ce7a4a671880e7e64d024a287d2027c
parentc8306a4ac858684132bcc2aac8e345910c1993dc (diff)
downloadaur-f1b15a728a0f61f976c34535e41c37e58bc3f363.tar.gz
[ssmtp] Fix directory permissions
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 692dca44c4b..a22af8ffbfa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ssmtp
pkgdesc = Extremely simple MTA to get mail off the system to a mailhub (with Fedora patches)
pkgver = 2.64
- pkgrel = 12
+ pkgrel = 13
url = https://packages.debian.org/stable/mail/ssmtp
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 9897098f4c9..01107f527db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=ssmtp
pkgver=2.64
-pkgrel=12
+pkgrel=13
pkgdesc="Extremely simple MTA to get mail off the system to a mailhub (with Fedora patches)"
arch=('i686' 'x86_64' 'armv7')
license=('GPL')
@@ -60,7 +60,10 @@ package() {
yes | make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man/man8" etcdir="${pkgdir}/etc" install
install -D -m644 ssmtp.conf.5 "${pkgdir}/usr/share/man/man5/ssmtp.conf.5"
- install -m644 ssmtp.conf "${pkgdir}/etc/ssmtp.conf"
+ install -m644 ssmtp.conf "${pkgdir}/etc/ssmtp/ssmtp.conf"
+
+ chown -R root.mail "${pkgdir}/etc/ssmtp"
+ chmod 770 "${pkgdir}/etc/ssmtp"
ln -s ssmtp "${pkgdir}/usr/sbin/sendmail"
ln -s ssmtp "${pkgdir}/usr/sbin/newaliases"