[arch-commits] Commit in opensmtpd/trunk (PKGBUILD)

Lukas Fleischer lfleischer at nymeria.archlinux.org
Sun Mar 16 15:50:19 UTC 2014


    Date: Sunday, March 16, 2014 @ 16:50:19
  Author: lfleischer
Revision: 107285

upgpkg: opensmtpd 5.4.2p1-1

* Upstream update.
* PKGBUILD cleanups.

Modified:
  opensmtpd/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-16 13:21:07 UTC (rev 107284)
+++ PKGBUILD	2014-03-16 15:50:19 UTC (rev 107285)
@@ -1,9 +1,9 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Sébastien Luttringer
 
 pkgname=opensmtpd
-pkgver=5.4.1p1
-pkgrel=2
+pkgver=5.4.2p1
+pkgrel=1
 pkgdesc='Free implementation of the server-side SMTP protocol'
 arch=('i686' 'x86_64')
 url='http://www.opensmtpd.org/'
@@ -17,16 +17,17 @@
 source=("http://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz"
         'smtpd.service'
         'smtpd.socket')
-md5sums=('74551342985b78eb687995f7953d1790'
+md5sums=('c76b39a5fcc0ad05eea541e74b16e62a'
          'a278f272d97a9fe5a8aac784a7c98d67'
          'c2c01e9ca78df3f65efe40a7c0e17ee0')
 
 prepare() {
-  sed -ri 's,/etc/mail,/etc/smtpd,g' $pkgname-$pkgver/smtpd/smtpd.conf
+  sed -ri 's,/etc/mail,/etc/smtpd,g' "$pkgname-$pkgver/smtpd/smtpd.conf"
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd "$pkgname-$pkgver"
+
   # Remove _FORTIFY_SOURCES: FS#38124
   export CPPFLAGS=''
   ./configure \
@@ -45,17 +46,15 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd "$pkgname-$pkgver"
+
   make DESTDIR="$pkgdir/" install
-  # license
+
+  # install license and systemd unit files
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  # working directory
-  cd "$pkgdir"
-  # install systemd units
-  install -Dm644 "$srcdir/smtpd.service" usr/lib/systemd/system/smtpd.service
-  install -Dm644 "$srcdir/smtpd.socket" usr/lib/systemd/system/smtpd.socket
-  # empty aliases file (used by default config)
-  install -Dm644 /dev/null etc/smtpd/aliases
+  install -Dm644 "$srcdir/smtpd.service" "$pkgdir/usr/lib/systemd/system/smtpd.service"
+  install -Dm644 "$srcdir/smtpd.socket" "$pkgdir/usr/lib/systemd/system/smtpd.socket"
+
+  # install an empty aliases file (used by the default config)
+  install -Dm644 /dev/null "$pkgdir/etc/smtpd/aliases"
 }
-
-# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list