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.
|