Here my documentation on howto procinfo:
Quote:
# Sourcing back to LFS 3.2 Chap 06 basic system software
# https://pkgs.org/download/procinfo for procinfo-18-alt1.qa1.x86_64.rpm
# extract procinfo-18.tar.bz2 from the rpm package. check md5 as below:
md5sum f3fc519b82df488fd549e73e40d35911 procinfo-18.tar.bz2
md5sum 16da7af298b184918e35edfc801a3885 procinfo-18.patch
# or md5sum -c procinfo-18.md5
tar vxf procinfo-18.tar.bz2
cd procinfo-18
# Makefile need a modification on using ncurses and corrected paths on man
patch -Np1 -i ../procinfo-18.patch
# This should do it all for lfs
make procinfo
sudo make install
cd ..
rm -rf procinfo-18
# Depends on: binutils, ncurses, fileutil, make, gcc, perl
|
This should work on any lfs system as long as depends are met. sharing this to help anyone. Please feel free to alter anything or comment on errors.
Copy and paste in console for making files:
procinfo-18.md5
Code:
cat > procinfo-18.md5 << "EOF"
16da7af298b184918e35edfc801a3885 procinfo-18.patch
f3fc519b82df488fd549e73e40d35911 procinfo-18.tar.bz2
EOF
procinfo-18.patch
Code:
cat > procinfo-18.patch << "EOF"
Submitted by: RoLoR
Date: 2018-02-19
Initial Package Version: 18
Upstream Status: Unknown
Origin: Based on procinfo-18.tar.bz2 is included in rpm on page below
https://altlinux.pkgs.org/sisyphus/classic-x86_64/procinfo-18-alt1.qa1.x86_64.rpm.html
Description: switch termcap to ncurses, add /share on install man
diff -Naurp procinfo-18-org/Makefile procinfo-18/Makefile
--- procinfo-18-org/Makefile 2001-02-25 00:29:53.000000000 +0100
+++ procinfo-18/Makefile 2018-02-19 16:14:19.943819961 +0100
@@ -10,7 +10,7 @@ LDFLAGS = -s
# If you get lots of `undefined references', you probably need -lncurses
# instead:
-LDLIBS = -ltermcap
+LDLIBS = -lncurses
### Add to taste:
@@ -36,10 +36,10 @@ install: procinfo procinfo.8 lsdev.pl so
install procinfo $(prefix)/bin/procinfo
install lsdev.pl $(prefix)/bin/lsdev
install socklist.pl $(prefix)/bin/socklist
- -mkdir -p $(prefix)/man/man8
- install -m 644 procinfo.8 $(prefix)/man/man8/procinfo.8
- install -m 644 lsdev.8 $(prefix)/man/man8/lsdev.8
- install -m 644 socklist.8 $(prefix)/man/man8/socklist.8
+ -mkdir -p $(prefix)/share/man/man8
+ install -m 644 procinfo.8 $(prefix)/share/man/man8/procinfo.8
+ install -m 644 lsdev.8 $(prefix)/share/man/man8/lsdev.8
+ install -m 644 socklist.8 $(prefix)/share/man/man8/socklist.8
clean:
rm -f procinfo procinfo.0 *.o *~ out
EOF