8.29. rpcsvc-proto-1.4.3

8.29.1. Introduction to rpcsvc-proto

The rpcsvc-proto package contains the rcpsvc protocol files and headers, formerly included with glibc, that are not included in replacement libtirpc-1.3.6, along with the rpcgen program.

Approximate build time: less than 0.1 SBU
Required disk space: 2.1 MB

8.29.2. Installation of rpcsvc-proto

Create the PKGBUILD for the rpcsvc-propo package with the following commands:

mkdir /sources/rpcsvc-proto
cd /sources/rpcsvc-proto
cat > PKGBUILD << "REALEOF"
# Maintainer: Linux From Scratch <lfs-dev@lists.linuxfromscratch.org>

pkgname="rpcsvc-proto"
pkgver="1.4.3"
pkgrel="1"
pkgdesc="The rpcsvc-proto package contains the rcpsvc protocol files and headers, formerly included with glibc."
arch=('x86'
      'x86_64')
license=('BSD3C')
groups=('core')
depends=('glibc')
makedepends=('binutils'
             'coreutils'
             'gettext'
             'gcc'
             'glibc'
             'grep'
             'make'
             'sed')
source=("https://github.com/thkukuk/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
md5sums=('5cc9a871db85e34ab68a9cecfb448a97')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --sysconfdir=/etc
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="$pkgdir" install
}
REALEOF

Prepare the build directory for the pacman user and build the package:

chown -R root:pacman .
chmod 2775 .
chmod 664 PKGBUILD
su pacman -c 'makepkg -L --nodeps'

Add the newly created package to the central package repository:

repo-add /srv/pacman/repos/LFS/LFS.db.tar.xz \
         /srv/pacman/repos/LFS/rpcsvc-proto-1.4.3-1-$(uname -m).pkg.tar.xz

Update the local cache and install the rpcsvc-proto package:

pacman -Syu
pacman -S rpcsvc-proto --overwrite \* -dd --noconfirm

Finally, copy the source files into the source repository and clean up the build directory:

mkdir /srv/pacman/source/LFS/rpcsvc-proto
cp PKGBUILD /srv/pacman/source/LFS/rpcsvc-proto
cd /sources
rm -rf rpcsvc-proto

8.29.3. Contents

Installed Programs: rpcgen
Installed Libraries: None
Installed Directories: /usr/include/rpcsvc

Short Descriptions

rpcgen

Generates C code to implement the RPC protocol