Difference between revisions of "Portmap"
From CBLFS
Jump to navigationJump to search (I added the package description from BLFS.) |
|||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | ftp://ftp.porcupine.org/pub/security/ | + | | ftp://ftp.porcupine.org/pub/security/portmap_{{Portmap-Version}}.tar.gz |
|- | |- | ||
!Download Patch: | !Download Patch: | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/portmap/portmap- | + | | http://svn.cross-lfs.org/svn/repos/patches/portmap/portmap-{{Portmap-Version}}-compilation_fixes-3.patch |
|- | |- | ||
!Download Patch | !Download Patch | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/portmap/portmap- | + | | http://svn.cross-lfs.org/svn/repos/patches/portmap/portmap-{{Portmap-Version}}-glibc_errno_fix-1.patch |
|} | |} | ||
Line 32: | Line 32: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-compilation_fixes-3.patch && |
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-glibc_errno_fix-1.patch && |
make | make | ||
Line 47: | Line 47: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-compilation_fixes-3.patch && |
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-glibc_errno_fix-1.patch && |
make CC="gcc ${BUILD32}" | make CC="gcc ${BUILD32}" | ||
Line 59: | Line 59: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-compilation_fixes-3.patch && |
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-glibc_errno_fix-1.patch && |
make CC="gcc ${BUILDN32}" | make CC="gcc ${BUILDN32}" | ||
Line 71: | Line 71: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-compilation_fixes-3.patch && |
− | patch -Np1 -i ../portmap- | + | patch -Np1 -i ../portmap-{{Portmap-Version}}-glibc_errno_fix-1.patch && |
make CC="gcc ${BUILD64}" | make CC="gcc ${BUILD64}" | ||
Revision as of 13:30, 17 December 2006
Contents
Introduction to Portmap
The portmap package is a more secure replacement for the original SUN portmap package. Portmap is used to forward RPC requests to RPC daemons such as NFS and NIS.
Dependencies
Required
Creating the bin User
Portmap runs as a daemon with a uid of 1 which is not configurable.
useradd -u 1 -g 1 -d /dev/null -s /bin/false bin
Non-Multilib
Compile the package:
patch -Np1 -i ../portmap-6.0-compilation_fixes-3.patch && patch -Np1 -i ../portmap-6.0-glibc_errno_fix-1.patch && make
Install the package
make install
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
Compile the package:
patch -Np1 -i ../portmap-6.0-compilation_fixes-3.patch && patch -Np1 -i ../portmap-6.0-glibc_errno_fix-1.patch && make CC="gcc ${BUILD32}"
Install the package
make install
N32
Compile the package:
patch -Np1 -i ../portmap-6.0-compilation_fixes-3.patch && patch -Np1 -i ../portmap-6.0-glibc_errno_fix-1.patch && make CC="gcc ${BUILDN32}"
Install the package
make install
64Bit
Compile the package:
patch -Np1 -i ../portmap-6.0-compilation_fixes-3.patch && patch -Np1 -i ../portmap-6.0-glibc_errno_fix-1.patch && make CC="gcc ${BUILD64}"
Install the package
make install
Configuring
Bootscript
Install the init script provided by the blfs-bootscripts package:
make install-portmap