[arch-commits] Commit in util-linux/repos (14 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 18:22:09 UTC 2015


    Date: Saturday, September 19, 2015 @ 20:22:09
  Author: foutrelis
Revision: 246676

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  util-linux/repos/staging-i686/
  util-linux/repos/staging-i686/PKGBUILD
    (from rev 246675, util-linux/trunk/PKGBUILD)
  util-linux/repos/staging-i686/pam-common
    (from rev 246675, util-linux/trunk/pam-common)
  util-linux/repos/staging-i686/pam-login
    (from rev 246675, util-linux/trunk/pam-login)
  util-linux/repos/staging-i686/pam-su
    (from rev 246675, util-linux/trunk/pam-su)
  util-linux/repos/staging-i686/util-linux.install
    (from rev 246675, util-linux/trunk/util-linux.install)
  util-linux/repos/staging-i686/uuidd.tmpfiles
    (from rev 246675, util-linux/trunk/uuidd.tmpfiles)
  util-linux/repos/staging-x86_64/
  util-linux/repos/staging-x86_64/PKGBUILD
    (from rev 246675, util-linux/trunk/PKGBUILD)
  util-linux/repos/staging-x86_64/pam-common
    (from rev 246675, util-linux/trunk/pam-common)
  util-linux/repos/staging-x86_64/pam-login
    (from rev 246675, util-linux/trunk/pam-login)
  util-linux/repos/staging-x86_64/pam-su
    (from rev 246675, util-linux/trunk/pam-su)
  util-linux/repos/staging-x86_64/util-linux.install
    (from rev 246675, util-linux/trunk/util-linux.install)
  util-linux/repos/staging-x86_64/uuidd.tmpfiles
    (from rev 246675, util-linux/trunk/uuidd.tmpfiles)

-----------------------------------+
 staging-i686/PKGBUILD             |   97 ++++++++++++++++++++++++++++++++++++
 staging-i686/pam-common           |    6 ++
 staging-i686/pam-login            |    7 ++
 staging-i686/pam-su               |    9 +++
 staging-i686/util-linux.install   |   12 ++++
 staging-i686/uuidd.tmpfiles       |    1 
 staging-x86_64/PKGBUILD           |   97 ++++++++++++++++++++++++++++++++++++
 staging-x86_64/pam-common         |    6 ++
 staging-x86_64/pam-login          |    7 ++
 staging-x86_64/pam-su             |    9 +++
 staging-x86_64/util-linux.install |   12 ++++
 staging-x86_64/uuidd.tmpfiles     |    1 
 12 files changed, 264 insertions(+)

Copied: util-linux/repos/staging-i686/PKGBUILD (from rev 246675, util-linux/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgbase=util-linux
+pkgname=(util-linux libutil-linux)
+pkgver=2.27
+pkgrel=3
+pkgdesc="Miscellaneous system utilities for Linux"
+url="https://www.kernel.org/pub/linux/utils/util-linux/"
+arch=('i686' 'x86_64')
+makedepends=('systemd' 'python')
+license=('GPL2')
+options=('strip' 'debug')
+validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284')  # Karel Zak
+source=("https://www.kernel.org/pub/linux/utils/util-linux/v2.27/$pkgname-$pkgver.tar."{xz,sign}
+        uuidd.tmpfiles
+        pam-{login,common,su})
+md5sums=('5b06bbda9309624ee7add15bc8d8ca22'
+         'SKIP'
+         'a39554bfd65cccfd8254bb46922f4a67'
+         '4368b3f98abd8a32662e094c54e7f9b1'
+         'a31374fef2cba0ca34dfc7078e2969e4'
+         'fa85e5cce5d723275b14365ba71a8aad')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib \
+              --bindir=/usr/bin \
+              --localstatedir=/run \
+              --enable-fs-paths-extra=/usr/bin \
+              --enable-raw \
+              --enable-vipw \
+              --enable-newgrp \
+              --enable-chfn-chsh \
+              --enable-write \
+              --enable-mesg \
+              --enable-libmount-force-mountinfo \
+              --enable-socket-activation \
+              --with-python=3
+
+  make
+}
+
+package_util-linux() {
+  conflicts=('util-linux-ng' 'eject' 'zramctl')
+  provides=("util-linux-ng=$pkgver" 'eject' 'zramctl')
+  replaces=('zramctl')
+  depends=('pam' 'shadow' 'coreutils' 'libsystemd' 'libutil-linux')
+  optdepends=('python: python bindings to libmount')
+  install=util-linux.install
+  groups=('base' 'base-devel')
+  backup=(etc/pam.d/chfn
+          etc/pam.d/chsh
+          etc/pam.d/login
+          etc/pam.d/su
+          etc/pam.d/su-l)
+
+  cd "$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # setuid chfn and chsh
+  chmod 4755 "$pkgdir"/usr/bin/{newgrp,ch{sh,fn}}
+
+  # install PAM files for login-utils
+  install -Dm644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chfn"
+  install -m644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chsh"
+  install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login"
+  install -m644 "$srcdir/pam-su" "$pkgdir/etc/pam.d/su"
+  install -m644 "$srcdir/pam-su" "$pkgdir/etc/pam.d/su-l"
+
+  # include tmpfiles fragment for uuidd
+  # TODO(dreisner): offer this upstream?
+  install -Dm644 "$srcdir/uuidd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/uuidd.conf"
+
+  # usrmove
+  cd "$pkgdir"
+  mv {,usr/}sbin/* usr/bin
+  rmdir sbin usr/sbin
+
+  ### create libutil-linux split
+  rm -rf "$srcdir/_libutil-linux"
+  install -dm755 "$srcdir"/_libutil-linux/usr/lib
+  cd "$srcdir"/_libutil-linux
+  mv "$pkgdir"/usr/lib/lib*.{a,so}* usr/lib
+}
+
+package_libutil-linux() {
+  pkgdesc="util-linux runtime libraries"
+  provides=('libblkid.so' 'libfdisk.so' 'libmount.so' 'libsmartcols.so' 'libuuid.so')
+
+  mv "$srcdir/_libutil-linux"/* "$pkgdir"
+}

Copied: util-linux/repos/staging-i686/pam-common (from rev 246675, util-linux/trunk/pam-common)
===================================================================
--- staging-i686/pam-common	                        (rev 0)
+++ staging-i686/pam-common	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so
+password	required	pam_permit.so

Copied: util-linux/repos/staging-i686/pam-login (from rev 246675, util-linux/trunk/pam-login)
===================================================================
--- staging-i686/pam-login	                        (rev 0)
+++ staging-i686/pam-login	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth       required     pam_securetty.so
+auth       requisite    pam_nologin.so
+auth       include      system-local-login
+account    include      system-local-login
+session    include      system-local-login

Copied: util-linux/repos/staging-i686/pam-su (from rev 246675, util-linux/trunk/pam-su)
===================================================================
--- staging-i686/pam-su	                        (rev 0)
+++ staging-i686/pam-su	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,9 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+# Uncomment the following line to implicitly trust users in the "wheel" group.
+#auth		sufficient	pam_wheel.so trust use_uid
+# Uncomment the following line to require a user to be in the "wheel" group.
+#auth		required	pam_wheel.so use_uid
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so

Copied: util-linux/repos/staging-i686/util-linux.install (from rev 246675, util-linux/trunk/util-linux.install)
===================================================================
--- staging-i686/util-linux.install	                        (rev 0)
+++ staging-i686/util-linux.install	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,12 @@
+post_install() {
+  # we don't want use systemd-tmpfiles here because
+  # the package dependency would create a circular dep.
+  if [[ ! -d run/uuidd ]]; then
+    # refer to uid/gid by number to avoid dependency on filesystem
+    install -o 68 -g 68 -dm755 run/uuidd
+  fi
+}
+
+post_upgrade() {
+  post_install
+}

Copied: util-linux/repos/staging-i686/uuidd.tmpfiles (from rev 246675, util-linux/trunk/uuidd.tmpfiles)
===================================================================
--- staging-i686/uuidd.tmpfiles	                        (rev 0)
+++ staging-i686/uuidd.tmpfiles	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1 @@
+d /run/uuidd 0755 uuidd uuidd

Copied: util-linux/repos/staging-x86_64/PKGBUILD (from rev 246675, util-linux/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgbase=util-linux
+pkgname=(util-linux libutil-linux)
+pkgver=2.27
+pkgrel=3
+pkgdesc="Miscellaneous system utilities for Linux"
+url="https://www.kernel.org/pub/linux/utils/util-linux/"
+arch=('i686' 'x86_64')
+makedepends=('systemd' 'python')
+license=('GPL2')
+options=('strip' 'debug')
+validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284')  # Karel Zak
+source=("https://www.kernel.org/pub/linux/utils/util-linux/v2.27/$pkgname-$pkgver.tar."{xz,sign}
+        uuidd.tmpfiles
+        pam-{login,common,su})
+md5sums=('5b06bbda9309624ee7add15bc8d8ca22'
+         'SKIP'
+         'a39554bfd65cccfd8254bb46922f4a67'
+         '4368b3f98abd8a32662e094c54e7f9b1'
+         'a31374fef2cba0ca34dfc7078e2969e4'
+         'fa85e5cce5d723275b14365ba71a8aad')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  ./configure --prefix=/usr \
+              --libdir=/usr/lib \
+              --bindir=/usr/bin \
+              --localstatedir=/run \
+              --enable-fs-paths-extra=/usr/bin \
+              --enable-raw \
+              --enable-vipw \
+              --enable-newgrp \
+              --enable-chfn-chsh \
+              --enable-write \
+              --enable-mesg \
+              --enable-libmount-force-mountinfo \
+              --enable-socket-activation \
+              --with-python=3
+
+  make
+}
+
+package_util-linux() {
+  conflicts=('util-linux-ng' 'eject' 'zramctl')
+  provides=("util-linux-ng=$pkgver" 'eject' 'zramctl')
+  replaces=('zramctl')
+  depends=('pam' 'shadow' 'coreutils' 'libsystemd' 'libutil-linux')
+  optdepends=('python: python bindings to libmount')
+  install=util-linux.install
+  groups=('base' 'base-devel')
+  backup=(etc/pam.d/chfn
+          etc/pam.d/chsh
+          etc/pam.d/login
+          etc/pam.d/su
+          etc/pam.d/su-l)
+
+  cd "$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # setuid chfn and chsh
+  chmod 4755 "$pkgdir"/usr/bin/{newgrp,ch{sh,fn}}
+
+  # install PAM files for login-utils
+  install -Dm644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chfn"
+  install -m644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chsh"
+  install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login"
+  install -m644 "$srcdir/pam-su" "$pkgdir/etc/pam.d/su"
+  install -m644 "$srcdir/pam-su" "$pkgdir/etc/pam.d/su-l"
+
+  # include tmpfiles fragment for uuidd
+  # TODO(dreisner): offer this upstream?
+  install -Dm644 "$srcdir/uuidd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/uuidd.conf"
+
+  # usrmove
+  cd "$pkgdir"
+  mv {,usr/}sbin/* usr/bin
+  rmdir sbin usr/sbin
+
+  ### create libutil-linux split
+  rm -rf "$srcdir/_libutil-linux"
+  install -dm755 "$srcdir"/_libutil-linux/usr/lib
+  cd "$srcdir"/_libutil-linux
+  mv "$pkgdir"/usr/lib/lib*.{a,so}* usr/lib
+}
+
+package_libutil-linux() {
+  pkgdesc="util-linux runtime libraries"
+  provides=('libblkid.so' 'libfdisk.so' 'libmount.so' 'libsmartcols.so' 'libuuid.so')
+
+  mv "$srcdir/_libutil-linux"/* "$pkgdir"
+}

Copied: util-linux/repos/staging-x86_64/pam-common (from rev 246675, util-linux/trunk/pam-common)
===================================================================
--- staging-x86_64/pam-common	                        (rev 0)
+++ staging-x86_64/pam-common	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so
+password	required	pam_permit.so

Copied: util-linux/repos/staging-x86_64/pam-login (from rev 246675, util-linux/trunk/pam-login)
===================================================================
--- staging-x86_64/pam-login	                        (rev 0)
+++ staging-x86_64/pam-login	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth       required     pam_securetty.so
+auth       requisite    pam_nologin.so
+auth       include      system-local-login
+account    include      system-local-login
+session    include      system-local-login

Copied: util-linux/repos/staging-x86_64/pam-su (from rev 246675, util-linux/trunk/pam-su)
===================================================================
--- staging-x86_64/pam-su	                        (rev 0)
+++ staging-x86_64/pam-su	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,9 @@
+#%PAM-1.0
+auth		sufficient	pam_rootok.so
+# Uncomment the following line to implicitly trust users in the "wheel" group.
+#auth		sufficient	pam_wheel.so trust use_uid
+# Uncomment the following line to require a user to be in the "wheel" group.
+#auth		required	pam_wheel.so use_uid
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so

Copied: util-linux/repos/staging-x86_64/util-linux.install (from rev 246675, util-linux/trunk/util-linux.install)
===================================================================
--- staging-x86_64/util-linux.install	                        (rev 0)
+++ staging-x86_64/util-linux.install	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1,12 @@
+post_install() {
+  # we don't want use systemd-tmpfiles here because
+  # the package dependency would create a circular dep.
+  if [[ ! -d run/uuidd ]]; then
+    # refer to uid/gid by number to avoid dependency on filesystem
+    install -o 68 -g 68 -dm755 run/uuidd
+  fi
+}
+
+post_upgrade() {
+  post_install
+}

Copied: util-linux/repos/staging-x86_64/uuidd.tmpfiles (from rev 246675, util-linux/trunk/uuidd.tmpfiles)
===================================================================
--- staging-x86_64/uuidd.tmpfiles	                        (rev 0)
+++ staging-x86_64/uuidd.tmpfiles	2015-09-19 18:22:09 UTC (rev 246676)
@@ -0,0 +1 @@
+d /run/uuidd 0755 uuidd uuidd



More information about the arch-commits mailing list