[arch-commits] Commit in coreutils/trunk (PKGBUILD coreutils.install)

andyrtr at archlinux.org andyrtr at archlinux.org
Wed Feb 25 18:26:21 UTC 2009


    Date: Wednesday, February 25, 2009 @ 13:26:21
  Author: andyrtr
Revision: 27765

add install file

Added:
  coreutils/trunk/coreutils.install
Modified:
  coreutils/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   19 +++++++++++--------
 coreutils.install |   21 +++++++++++++++++++++
 2 files changed, 32 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-02-25 16:30:54 UTC (rev 27764)
+++ PKGBUILD	2009-02-25 18:26:21 UTC (rev 27765)
@@ -52,19 +52,22 @@
   make || return 1
   make DESTDIR=${pkgdir} install || return 1
 
-  rm -f $startdir/pkg/usr/bin/hostname $startdir/pkg/usr/share/man/man1/hostname.1 || return 1
-  rm -f $startdir/pkg/usr/bin/uptime $startdir/pkg/usr/share/man/man1/uptime.1 || return 1
-  rm -f $startdir/pkg/usr/bin/groups $startdir/pkg/usr/share/man/man1/groups.1 || return 1
-  rm -f $startdir/pkg/usr/bin/kill $startdir/pkg/usr/share/man/man1/kill.1|| return 1
-  cd $startdir/pkg/usr/bin
-  mkdir -p $startdir/pkg/bin $startdir/pkg/sbin $startdir/pkg/usr/sbin
+  rm -f ${pkgdir}/usr/bin/hostname ${pkgdir}/usr/share/man/man1/hostname.1 || return 1
+  rm -f ${pkgdir}/usr/bin/uptime ${pkgdir}/usr/share/man/man1/uptime.1 || return 1
+  rm -f ${pkgdir}/usr/bin/groups ${pkgdir}/usr/share/man/man1/groups.1 || return 1
+  rm -f ${pkgdir}/usr/bin/kill ${pkgdir}/usr/share/man/man1/kill.1|| return 1
+  cd ${pkgdir}/usr/bin
+  mkdir -p ${pkgdir}/bin ${pkgdir}/sbin ${pkgdir}/usr/sbin
   mv su date echo false pwd stty true uname cat tr cut readlink ../../bin
   mv dd cp df du ln ls mv rm dir sync vdir chgrp chmod chown ../../bin
   mv mkdir mknod rmdir shred touch mkfifo dircolors install sleep ../../bin
   mv chroot ../sbin
   ln -sf test [
-  ln -sf /bin/sleep $startdir/pkg/usr/bin/sleep
-  install -D -m644 $startdir/src/su $startdir/pkg/etc/pam.d/su
+  ln -sf /bin/sleep ${pkgdir}/usr/bin/sleep
+  install -D -m644 $startdir/src/su ${pkgdir}/etc/pam.d/su
 
+  ls -lha ${pkgdir}/bin/su
+  chmod -v 4555 ${pkgdir}/bin/su
+
   rm -f ${pkgdir}/usr/share/info/dir
 }

Added: coreutils.install
===================================================================
--- coreutils.install	                        (rev 0)
+++ coreutils.install	2009-02-25 18:26:21 UTC (rev 27765)
@@ -0,0 +1,21 @@
+infodir=/usr/share/info
+filelist=(coreutils.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+    usr/bin/install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    usr/bin/install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+




More information about the arch-commits mailing list