[arch-commits] Commit in shadow/trunk (PKGBUILD)
Dave Reisner
dreisner at archlinux.org
Sun Oct 2 17:08:08 UTC 2016
Date: Sunday, October 2, 2016 @ 17:08:07
Author: dreisner
Revision: 277558
upgpkg: shadow 4.4-1
- switch to github-based upstream (FS#50504)
- add makedeps for building manpages (https://github.com/shadow-maint/shadow/issues/38)
Modified:
shadow/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-02 14:56:07 UTC (rev 277557)
+++ PKGBUILD 2016-10-02 17:08:07 UTC (rev 277558)
@@ -3,14 +3,15 @@
# Maintainer: Aaron Griffin <aaron at archlinux.org>
pkgname=shadow
-pkgver=4.2.1
-pkgrel=3
+pkgver=4.4
+pkgrel=1
pkgdesc="Password and account management tool suite with support for shadow files and PAM"
arch=('i686' 'x86_64')
-url='http://pkg-shadow.alioth.debian.org/'
+url='https://github.com/shadow-maint/shadow'
license=('BSD')
groups=('base')
depends=('bash' 'pam' 'acl')
+makedepends=('git' 'libxslt' 'docbook-xsl' 'gnome-doc-utils')
backup=(etc/login.defs
etc/pam.d/{chage,passwd,shadow,useradd,usermod,userdel}
etc/pam.d/{chpasswd,newusers,groupadd,groupdel,groupmod}
@@ -19,7 +20,7 @@
options=(strip debug)
install='shadow.install'
validpgpkeys=('D5C2F9BFCA128BBA22A77218872F702C4D6E25A8') # Christian Perrier
-source=("http://pkg-shadow.alioth.debian.org/releases/$pkgname-$pkgver.tar.xz"{,.sig}
+source=("git+https://github.com/shadow-maint/shadow.git#tag=$pkgver"
LICENSE
chgpasswd
chpasswd
@@ -32,8 +33,7 @@
xstrdup.patch
shadow-strncpy-usage.patch
lastlog.tmpfiles)
-sha1sums=('0917cbadd4ce0c7c36670e5ecd37bbed92e6d82d'
- 'SKIP'
+sha1sums=('SKIP'
'33a6cf1e44a1410e5c9726c89e5de68b78f5f922'
'4ad0e059406a305c8640ed30d93c2a1f62c2f4ad'
'12427b1ca92a9b85ca8202239f0d9f50198b818f'
@@ -48,19 +48,27 @@
'21e12966a6befb25ec123b403cd9b5c492fe5b16'
'f57ecde3f72b4738fad75c097d19cf46a412350f')
+pkgver() {
+ cd "$pkgname"
+
+ git describe
+}
+
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
# need to offer these upstream
patch -Np1 <"$srcdir/xstrdup.patch"
patch -Np1 <"$srcdir/shadow-strncpy-usage.patch"
+ autoreconf -v -f --install
+
# supress etc/pam.d/*, we provide our own
sed -i '/^SUBDIRS/s/pam\.d//' etc/Makefile.in
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
./configure \
LIBS="-lcrypt" \
@@ -69,6 +77,7 @@
--sbindir=/usr/bin \
--libdir=/usr/lib \
--mandir=/usr/share/man \
+ --enable-man \
--sysconfdir=/etc \
--with-libpam \
--with-group-name-max-length=32 \
@@ -78,7 +87,7 @@
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
make DESTDIR="$pkgdir" install
More information about the arch-commits
mailing list