LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-27-2004, 08:02 AM   #1
bisailb
LQ Newbie
 
Registered: Sep 2004
Location: Toronto, Ontario, Canada
Distribution: SUSE 9.2
Posts: 8

Rep: Reputation: 0
Thumbs up AHLFS (Automated Hardened LFS) Profile for nALFS - See progress reports here...


The AHLFS profile is now based on the latest SVN profile from the ALFS project. The AHLFS profile shall include the latest patches from both the FTP and the WWW sites including the HLFS patches for each package. Finally, a simple package management option shall be included that uses diff/find/tar commands to create logs and tarballs. This way, tarballs of your compiled/installed LFS packages can be automatically generated for you. You can then use the logs and the resulting tarballs any way you wish. You are not constrained to any one package manager.

Last edited by bisailb; 09-30-2004 at 02:04 PM.
 
Old 09-27-2004, 01:31 PM   #2
bisailb
LQ Newbie
 
Registered: Sep 2004
Location: Toronto, Ontario, Canada
Distribution: SUSE 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
Simple Package Management Explained

The following command is used to generate pre-install logs (i.e. this one is for bash). The logs are stored in /var/lib/AHLFS/pre-install.

<execute command="find / -xdev | grep -Ev '/var/lib/AHLFS|/tools' | sort > /var/lib/AHLFS/pre-install/bash-&bash-version;.log" />

The following command is used to generate post-install logs (i.e. this one is for bash). The logs are stored in /var/lib/AHLFS/post-install.

<execute command="find / -xdev | grep -Ev '/var/lib/AHLFS|/tools' | sort > /var/lib/AHLFS/post-install/bash-&bash-version;.log" />

The following command is used to compare the pre/post install logs to create logs of all of the directories and files created after a make install (i.e. this one is for bash). The logs are stored in /var/lib/AHLFS/contents.

<execute command="diff /var/lib/AHLFS/pre-install/bash-&bash-version;.log /var/lib/AHLFS/post-install/bash-&bash-version;.log | cut -d '/' -f 2- -s | sed 's|^|/|' | grep -Ev '/var/lib/AHLFS|/tools' | sort > /var/lib/AHLFS/contents/bash-&bash-version;.log" />

The following command uses the new logs to generate tarballs (i.e. this one is for bash). Tarballs are stored in /var/lib/AHLFS/tarballs.

<execute command="tar -jcpvf /var/lib/AHLFS/tarballs/bash-&bash-version;.tar.bz2 `cat /var/lib/AHLFS/contents/bash-&bash-version;.log`" />

The /var/lib/AHLFS/scripts directory is a placeholder for user-generated scripts. For example, I might create a script to parse logs to remove directories and files for a package.

Last edited by bisailb; 10-05-2004 at 01:22 PM.
 
Old 09-28-2004, 01:13 PM   #3
bisailb
LQ Newbie
 
Registered: Sep 2004
Location: Toronto, Ontario, Canada
Distribution: SUSE 9.2
Posts: 8

Original Poster
Rep: Reputation: 0
Current Status of AHLFS Profile

The following packages are currently included in the AHLFS profile:

autoconf-2.59.tar.bz2
automake-1.9.1.tar.bz2
bash-3.0.tar.bz2
binutils-2.15.91.0.2.tar.bz2
bison-1.875a.tar.bz2
bzip2-1.0.2.tar.bz2
coreutils-5.2.1.tar.bz2
dejagnu-1.4.4.tar.bz2
diffutils-2.8.1.tar.bz2
e2fsprogs-1.35.tar.bz2
expect-5.42.1.tar.bz2
file-4.10.tar.bz2
findutils-4.1.20.tar.bz2
flex-2.5.4a.tar.bz2
gawk-3.1.4.tar.bz2
gcc-core-3.4.2.tar.bz2
gcc-g++-3.4.2.tar.bz2
gcc-testsuite-3.4.2.tar.bz2
gettext-0.14.1.tar.bz2
glibc-2.3.4-20040828.tar.bz2
grep-2.5.1.tar.bz2
groff-1.19.1.tar.bz2
grub-0.95.tar.bz2
gzip-1.3.5.tar.bz2
hotplug-2004_09_20.tar.bz2
iana-etc-1.01.tar.bz2
inetutils-1.4.2.tar.bz2
iproute2-2.6.9-ss040831.tar.bz2
kbd-1.12.tar.bz2
less-382.tar.bz2
lfs-bootscripts-2.2.3.tar.bz2
libol-0.3.14.tar.bz2
libtool-1.5.8.tar.bz2
libxml2-2.6.14.tar.bz2
linux-2.6.8.1.tar.bz2
linux-libc-headers-2.6.8.1.tar.bz2
m4-1.4.2.tar.bz2
make-3.80.tar.bz2
man-1.5o.tar.bz2
man-pages-1.67.tar.bz2
mktemp-1.5.tar.bz2
module-init-tools-3.0.tar.bz2
nALFS-1.2.4.tar.bz2
ncurses-5.4.tar.bz2
patch-2.5.4.tar.bz2
perl-5.8.5.tar.bz2
procps-3.2.3.tar.bz2
psmisc-21.5.tar.bz2
readline-5.0.tar.bz2
sed-4.1.2.tar.bz2
shadow-4.0.4.1.tar.bz2
syslog-ng-1.6.5.tar.bz2
sysvinit-2.85.tar.bz2
tar-1.14.tar.bz2
tcl8.4.7-src.tar.bz2
texinfo-4.7.tar.bz2
udev-032.tar.bz2
util-linux-2.12e.tar.bz2
vim-6.3-lang.tar.bz2
vim-6.3.tar.bz2
zlib-1.2.1.tar.bz2

The following patches are currently included in the AHLFS profile:

bash-3.0-fixes-1.patch
bzip2-1.0.2-use_mktemp-1.patch
coreutils-5.2.1-chown_retains_suid_guid-1.patch
coreutils-5.2.1-dupes-1.patch
coreutils-5.2.1-uname-2.patch
expect-5.42.1-spawn-1.patch
findutils-4.1.20-missing_newlines-1.patch
findutils-4.1.20-no_login_shell-1.patch
flex-2.5.4a-redhat_fixes.patch
gawk-3.1.4-datadir-1.patch
gcc-3.4-ssp-1.patch
gcc-3.4-sspspecs-1.patch
gcc-3.4.2-linkonce-1.patch
gcc-3.4.2-no_fixincludes-1.patch
gcc-3.4.2-specs-1.patch
grep-2.5.1-option_io_combo-1.patch
grep-2.5.1-option_w-1.patch
grub-0.95-oneshot-1.patch
inetutils-1.4.2-fix_installation-1.patch
inetutils-1.4.2-ftpd_noisy_530_msg-1.patch
inetutils-1.4.2-kernel_headers-1.patch
inetutils-1.4.2-no_server_man_pages-1.patch
inetutils-1.4.2-ping-1.patch
inetutils-1.4.2-syslogd-1.patch
inetutils-1.4.2-talk-1.patch
inetutils-1.4.2-telnet-1.patch
inetutils-1.4.2-telnetd-1.patch
inetutils-1.4.2-typos-1.patch
iproute2-2.6.9_ss040831-remove_db-1.patch
kbd-1.12-more_programs-1.patch
kbd-1.12-openvtdevfs-1.patch
linux-2.6.8.1-frandom-1.patch
make-3.80-crash-1.patch
make-3.80-eval-1.patch
make-3.80-variables-1.patch
man-1.5o1-80cols-1.patch
mktemp-1.5-add_tempfile-1.patch
mktemp-1.5-frandom-1.patch
perl-5.8.5-libc-1.patch
readline-5.0-fixes-1.patch
shadow-4.0.4.1-fix_symlinks-1.patch
shadow-4.0.4.1-lastlog_brokenness-1.patch
shadow-4.0.4.1-malloc-1.patch
shadow-4.0.4.1-no_groups-1.patch
shadow-4.0.4.1-pam-1.patch
shadow-4.0.4.1-xmalloc-1.patch
sysvinit-2.85-posix-1.patch
sysvinit-2.85-proclen-1.patch
texinfo-4.7-segfault-1.patch
udev-032-etcdir-2.patch
util-linux-2.12e-sfdisk-1.patch
zlib-1.2.1-fixinstall-1.patch
zlib-1.2.1-inflate_fix-1.patch
zlib-1.2.1-security-1.patch

Some of the packages are more up-to-date than those included in the latest SVN release. More patches have also been included. As you can probably tell, not all of the HLFS patches are present. This is because I'm waiting for the HLFS team to come out with new patches.

Last edited by bisailb; 09-30-2004 at 02:17 PM.
 
  


Reply



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
hardened linux from scratch glibc build hardened-specs.sh problem behmjoe Linux From Scratch 2 09-04-2005 02:06 PM
My LFS Progress/Status. rvijay Linux From Scratch 15 01-28-2005 09:42 AM
Unable to install nALFS 1.2.1 and 1.2.2 cuco76 Linux From Scratch 2 05-20-2004 01:34 PM
nALFS perl jnsc Linux From Scratch 2 06-08-2003 12:34 PM
.profile & .bash_profile on $LFS cbates55 Linux - Distributions 1 01-02-2002 02:25 PM

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

All times are GMT -5. The time now is 01:05 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