LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-19-2018, 09:35 AM   #1
RoLoR
Member
 
Registered: Feb 2018
Posts: 60

Rep: Reputation: Disabled
[SOLVED] Where is procinfo (lsdev and socklist) for lfs?


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

Last edited by RoLoR; 02-19-2018 at 09:44 AM. Reason: wrong md5sum on procinfo-18.patch
 
  


Reply

Tags
procinfo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error compiling gcc in LFS z3r0phr34k Linux From Scratch 4 11-07-2015 04:58 PM
Socklist lincoln.runwal Linux - Newbie 1 03-25-2009 05:05 AM
lsdev for linux redhawk1973 Linux - Software 4 05-24-2007 11:44 AM
how put lsdev on debian? xcore_on Linux - Newbie 2 04-19-2006 09:21 AM
Looking for procinfo package rc_cohn Linux - Hardware 1 09-27-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration