summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRuoxi Wang2020-03-29 21:29:26 +0800
committerRuoxi Wang2020-03-29 21:29:26 +0800
commit51cfdff0c92b347b43daa2576b255fb9e0d21278 (patch)
treef43a62a18e706cc6641303b3d829c7f3443f0c48 /PKGBUILD
parent78a97af48dfea9f4a907a9a9eeee3e9b5252f582 (diff)
downloadaur-mkinitcpio-nfs4-hooks.tar.gz
Include nfsv4 module and mount.nfs4 binary in the install hook.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e0b8ce09c59f..b837b40dd26f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,22 @@
-# Maintainer: Edvinas Valatka <edacval@gmail.com>
+# Maintainer: Reese Wang <thuwrx10 at gmail dot com>
+# Contributor: Edvinas Valatka <edacval@gmail.com>
pkgname=mkinitcpio-nfs4-hooks
pkgver=0.3
-pkgrel=5
+pkgrel=7
pkgdesc="Hooks for NFS v4 root support in mkinitcpio"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://www.archlinux.org/"
license=('GPL2')
-depends=("mkinitcpio-nfs-utils=$pkgver-$pkgrel")
+depends=("nfs-utils" "mkinitcpio-nfs-utils=$pkgver-$pkgrel")
package() {
install -Dm644 "/usr/lib/initcpio/install/net" "$pkgdir/usr/lib/initcpio/install/net_nfs4"
install -Dm644 "/usr/lib/initcpio/hooks/net" "$pkgdir/usr/lib/initcpio/hooks/net_nfs4"
sed -i s/nfsmount/mount.nfs4/ "$pkgdir/usr/lib/initcpio/hooks/net_nfs4"
+ sed -i s/nfsv3/nfsv4/ "$pkgdir/usr/lib/initcpio/install/net_nfs4"
+ sed -i s/usr\\/lib\\/initcpio\\/nfsmount/usr\\/bin\\/mount.nfs4/ "$pkgdir/usr/lib/initcpio/install/net_nfs4"
+ sed -i s/bin\\/nfsmount/bin\\/mount.nfs4/ "$pkgdir/usr/lib/initcpio/install/net_nfs4"
}