summaryrefslogtreecommitdiff
path: root/community/mailman
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-05 00:07:38 -0800
committerroot <root@rshg054.dnsready.net>2013-02-05 00:07:38 -0800
commitb91dca65217b7c35be84df053692c9fd1b012560 (patch)
tree1ab70184cb03b2ac7a5123daed51de63f9df742b /community/mailman
parent3e78397cb031dee2b5874f1c0c9e4c9977f0dbb7 (diff)
Tue Feb 5 00:07:38 PST 2013
Diffstat (limited to 'community/mailman')
-rw-r--r--community/mailman/PKGBUILD14
-rw-r--r--community/mailman/mailman.install9
2 files changed, 10 insertions, 13 deletions
diff --git a/community/mailman/PKGBUILD b/community/mailman/PKGBUILD
index 74db47b4b..91ef3a656 100644
--- a/community/mailman/PKGBUILD
+++ b/community/mailman/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 74799 2012-08-05 16:06:17Z seblu $
-# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
+# $Id: PKGBUILD 83707 2013-02-04 14:51:45Z seblu $
+# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Paul Mattal <paul@archlinux.org>
pkgname=mailman
pkgver=2.1.15
-pkgrel=2
+pkgrel=3
pkgdesc='The GNU Mailing List Manager'
arch=(i686 x86_64)
license=('GPL')
@@ -19,13 +19,11 @@ source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tgz"
'mailman-2.1-build.patch'
"$pkgname.profile.sh"
"$pkgname.profile.csh"
- "$pkgname.rc"
"$pkgname.service")
md5sums=('7d207489e8e9de0727cb334d46029833'
'ed04d062379eb21e39ce1e70e6b1ade2'
'a9c71ec940c56173415fbd49087d10b0'
'85a8c30ffc444e677b286f54df530482'
- '3a4014c15e9923451f5f282860896057'
'f3ea6ef02ab135274406ce52ea8bbb7b')
build() {
@@ -73,12 +71,10 @@ package() {
chmod 2755 "$pkgdir"/usr/lib/mailman/cgi-bin/*
chmod 2755 "$pkgdir"/usr/lib/mailman/mail/mailman
cd "$srcdir"
- # install initscripts
- install -Dm 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
- # install systemd service
+ # systemd
install -Dm 644 $pkgname.service \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
- # install profiles
+ # profiles
install -Dm 755 $pkgname.profile.sh "$pkgdir/etc/profile.d/$pkgname.sh"
install -Dm 755 $pkgname.profile.csh "$pkgdir/etc/profile.d/$pkgname.csh"
}
diff --git a/community/mailman/mailman.install b/community/mailman/mailman.install
index 62a364e1a..98864b3d3 100644
--- a/community/mailman/mailman.install
+++ b/community/mailman/mailman.install
@@ -17,13 +17,14 @@ post_install() {
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
- post_install "$1"
+ # check file permissions
+ cd /usr/lib/mailman && bin/check_perms > /dev/null
}
## arg 1: the old package version
-pre_remove() {
- userdel mailman >/dev/null || true
- groupdel mailman >/dev/null || true
+post_remove() {
+ userdel -f mailman >/dev/null 2>&1 || true
+ groupdel mailman >/dev/null 2>&1 || true
}
# vim:set ts=2 sw=2 ft=sh et: