aboutsummaryrefslogtreecommitdiffstats
path: root/FAQ.html
diff options
context:
space:
mode:
authorJason Woodward2005-07-21 01:56:20 +0000
committerJason Woodward2005-07-21 01:56:20 +0000
commitf19092ed35790529820c2a713f914bb223841f11 (patch)
tree0933892cab50ad27f3478dd30c63c5bcb18cf206 /FAQ.html
parentd803957cc89d19aa850ca9ba8544a041d9148439 (diff)
downloadslapt-get-f19092ed35790529820c2a713f914bb223841f11.tar.gz
updated FAQs for gzipping package data files
Diffstat (limited to 'FAQ.html')
-rw-r--r--FAQ.html80
1 files changed, 41 insertions, 39 deletions
diff --git a/FAQ.html b/FAQ.html
index a06dc44..41d77d3 100644
--- a/FAQ.html
+++ b/FAQ.html
@@ -332,7 +332,7 @@
repository.
The CHECKSUMS.md5 file can be generated with find:
- rm CHECKSUMS.md5; find . -name '*.tgz' -exec md5sum {} >> CHECKSUMS.MD5 \;
+ rm CHECKSUMS.md5; find . -name '*.tgz' -exec md5sum {} >> CHECKSUMS.MD5 \;
The PACKAGES.TXT can be generated by the following script:
@@ -345,13 +345,15 @@
# any later version.
function gen_packages_txt {
- echo '' > PACKAGES.TXT
- find . -type f -name '*.meta' -exec cat {} \; >> PACKAGES.TXT
+ echo '' > PACKAGES.TXT
+ find . -type f -name '*.meta' -exec cat {} \; >> PACKAGES.TXT
+ cat PACKAGES.TXT | gzip -c - > PACKAGES.TXT.gz
}
function gen_md5_checksums {
- echo '' > CHECKSUMS.md5
- find . -type f -name '*.tgz' -exec md5sum {} \; >> CHECKSUMS.md5
+ echo '' > CHECKSUMS.md5
+ find . -type f -name '*.tgz' -exec md5sum {} \; >> CHECKSUMS.md5
+ cat CHECKSUMS.md5 | gzip -c - > CHECKSUMS.md5.gz
}
function gen_meta {
@@ -366,23 +368,23 @@
LOCATION=$(echo $1|sed -re "s/(.*)\/(.*.tgz)$/\1/")
SIZE=$( expr `gunzip -l $1 |tail -1|awk '{print $1}'` / 1024 )
USIZE=$( expr `gunzip -l $1 |tail -1|awk '{print $2}'` / 1024 )
- REQUIRED=$(tar xzfO $1 install/slack-required 2>/dev/null|xargs -r -iZ echo -n "Z,"|sed -e "s/,$//")
- CONFLICTS=$(tar xzfO $1 install/slack-conflicts 2>/dev/null|xargs -r -iZ echo -n "Z,"|sed -e "s/,$//")
- SUGGESTS=$(tar xzfO $1 install/slack-suggests 2>/dev/null|xargs -r )
+ REQUIRED=$(tar xzfO $1 install/slack-required 2>/dev/null|xargs -r -iZ echo -n "Z,"|sed -e "s/,$//")
+ CONFLICTS=$(tar xzfO $1 install/slack-conflicts 2>/dev/null|xargs -r -iZ echo -n "Z,"|sed -e "s/,$//")
+ SUGGESTS=$(tar xzfO $1 install/slack-suggests 2>/dev/null|xargs -r )
METAFILE=${NAME%tgz}meta
- echo "PACKAGE NAME: $NAME" > $LOCATION/$METAFILE
+ echo "PACKAGE NAME: $NAME" > $LOCATION/$METAFILE
if [ -n "$DL_URL" ]; then
- echo "PACKAGE MIRROR: $DL_URL" >> $LOCATION/$METAFILE
+ echo "PACKAGE MIRROR: $DL_URL" >> $LOCATION/$METAFILE
fi
- echo "PACKAGE LOCATION: $LOCATION" >> $LOCATION/$METAFILE
- echo "PACKAGE SIZE (compressed): $SIZE K" >> $LOCATION/$METAFILE
- echo "PACKAGE SIZE (uncompressed): $USIZE K" >> $LOCATION/$METAFILE
- echo "PACKAGE REQUIRED: $REQUIRED" >> $LOCATION/$METAFILE
- echo "PACKAGE CONFLICTS: $CONFLICTS" >> $LOCATION/$METAFILE
- echo "PACKAGE SUGGESTS: $SUGGESTS" >> $LOCATION/$METAFILE
- echo "PACKAGE DESCRIPTION:" >> $LOCATION/$METAFILE
- tar xzfO $1 install/slack-desc |grep -E '\w+\:'|grep -v '^#' >> $LOCATION/$METAFILE
- echo "" >> $LOCATION/$METAFILE
+ echo "PACKAGE LOCATION: $LOCATION" >> $LOCATION/$METAFILE
+ echo "PACKAGE SIZE (compressed): $SIZE K" >> $LOCATION/$METAFILE
+ echo "PACKAGE SIZE (uncompressed): $USIZE K" >> $LOCATION/$METAFILE
+ echo "PACKAGE REQUIRED: $REQUIRED" >> $LOCATION/$METAFILE
+ echo "PACKAGE CONFLICTS: $CONFLICTS" >> $LOCATION/$METAFILE
+ echo "PACKAGE SUGGESTS: $SUGGESTS" >> $LOCATION/$METAFILE
+ echo "PACKAGE DESCRIPTION:" >> $LOCATION/$METAFILE
+ tar xzfO $1 install/slack-desc |grep -E '\w+\:'|grep -v '^#' >> $LOCATION/$METAFILE
+ echo "" >> $LOCATION/$METAFILE
}
case "$1" in
@@ -454,9 +456,9 @@
where [condition] is
- =, >=, =<, <, or >
+ =, &gt;=, =&lt;, &lt;, or &gt;
- <= and =< should both work, just in case of editing errors.
+ &lt;= and =&lt; should both work, just in case of editing errors.
Version should include the arch and build if using '='. That is the full
Slackware package version designation. 1.1.0-386-1 is valid. 1.1.0 is not.
@@ -464,20 +466,20 @@
You can specify multiple packages to satisfy a dependency. The alternate
packages are separated by a pipe, |.
- jre = 1.4.1-i586-1 | j2sdk >= 1.4.2-i386-1 | jdk > 1.5.0-i386-1
+ jre = 1.4.1-i586-1 | j2sdk &gt;= 1.4.2-i386-1 | jdk &gt; 1.5.0-i386-1
The package names are case sensitive. So make sure you keep the case of the
package name as it appears in the package filename.
An example slack-required file is present within the slapt-get slack package.
- This data will then need to be extracted when the mirror's PACKAGES.TXT file
+ This data will then need to be extracted when the mirrors PACKAGES.TXT file
is generated. See <a href="#slgFAQ17">FAQ #17</a> for an example of how to generate the
PACKAGES.TXT file. The following is an example entry:
PACKAGE NAME: man-pages-1.56-noarch-1.tgz
...(snip)
- PACKAGE REQUIRED: man >= 1.5l-i386-1
+ PACKAGE REQUIRED: man &gt;= 1.5l-i386-1
An example command to pull that data:
tar xzfO pkg-name-version-arch-rel.tgz install/slack-required |xargs -iZ echo -n "Z,"|sed -e "s/,$//"
@@ -663,15 +665,15 @@
if [ -f ${MF}.bz2 ]; then rm ${MF}.bz2;fi
wget -q ${url}/${MF}.bz2
if [ -f ${MF}.bz2 ]; then
- bunzip2 -c ${MF}.bz2 >> ${MF}; rm ${MF}.bz2
+ bunzip2 -c ${MF}.bz2 &gt;&gt; ${MF}; rm ${MF}.bz2
else
wget -q ${url}/slackware/${MF}.bz2
- if [ -f ${MF}.bz2 ]; then bunzip2 -c ${MF}.bz2 >> ${MF}; rm ${MF}.bz2; fi
+ if [ -f ${MF}.bz2 ]; then bunzip2 -c ${MF}.bz2 &gt;&gt; ${MF}; rm ${MF}.bz2; fi
fi
done
if [ ! -f ${MF} ]; then echo "Failed to download MANIFEST"; exit 1; fi
echo "extracting package data"
- grep -n ' Package\: ' ${MF}|awk '{print $1 $3}'|sed -re "s/\|//g" > ${PKGLINES}
+ grep -n ' Package\: ' ${MF}|awk '{print $1 $3}'|sed -re "s/\|//g" &gt; ${PKGLINES}
}
function map_to_pkg {
@@ -732,7 +734,7 @@
if [ "$1" == "--update" ]; then get_pkg_cache_data; exit; fi
if [ ! -f ${PKGLINES} ]; then get_pkg_cache_data; fi
# read pkg data into memory
- while read line;do DEPDATA[${DEPDATACOUNT}]=$line; DEPDATACOUNT=$((DEPDATACOUNT + 1)); done < ${PKGLINES}
+ while read line;do DEPDATA[${DEPDATACOUNT}]=$line; DEPDATACOUNT=$((DEPDATACOUNT + 1)); done &lt; ${PKGLINES}
# install with slapt-get, then call the resolve_dependencies
slapt-get $SLAPT_OPTS --install "$@" || exit
resolve_dependencies $@
@@ -804,12 +806,12 @@
<a name="slgFAQ34"><b>34. Why is upgradepkg complaining it cannot find installpkg or removepkg, with sudo?</b></a>
- Right from the sudo man page's Security Notes section:
+ Right from the sudo man pages Security Notes section:
"Note, however, that the actual PATH environment variable is not modified and
is passed unchanged to the program that sudo executes."
- Make sure you include /sbin in your shell's PATH environment variable before using
+ Make sure you include /sbin in your shells PATH environment variable before using
slapt-get via sudo. Or use su - -c 'slapt-get [options] [arg]s'.
@@ -866,9 +868,9 @@
{
cur=${COMP_WORDS[COMP_CWORD]}
if [ "${COMP_WORDS[$[$COMP_CWORD-1]]}" = "--remove" ]; then
- COMPREPLY=( $( cd /var/log/packages; ls "$cur"* 2> /dev/null | sed -e 's/-[^-]*-[^-]*-[^-]*$//') )
+ COMPREPLY=( $( cd /var/log/packages; ls "$cur"* 2&gt; /dev/null | sed -e 's/-[^-]*-[^-]*-[^-]*$//') )
else
- COMPREPLY=( $( slapt-get --search "^$cur" 2> /dev/null | awk '{print $1}' ) )
+ COMPREPLY=( $( slapt-get --search "^$cur" 2&gt; /dev/null | awk '{print $1}' ) )
fi
}
complete -F complete_slaptget -o default slapt-get
@@ -913,7 +915,7 @@
You can use different slapt-getrc files. For example:
- slapt-get --config /etc/slapt-get/slapt-getrc.official --update && \
+ slapt-get --config /etc/slapt-get/slapt-getrc.official --update &amp;&amp; \
slapt-get --dist-upgrade
You will have to run --update every time you change your config file. Also,
@@ -924,7 +926,7 @@
<a name="slgFAQ44"><b>44. How do I specify an addon that is not a dependency of my package?</b></a>
- You can include a slack-suggests file within your package's ./install/ directory.
+ You can include a slack-suggests file within your packages ./install/ directory.
The format of this file follows the slack-required, except version information
is to be left out. This version information is useless as you are just making
a suggestion, not a requirement. If there is a required version of a package
@@ -955,7 +957,7 @@
<a name="slgFAQ46"><b>46. What is a meta package and how can I take advantage of it?</b></a>
- A meta package is a package that only contains it's dependencies in the
+ A meta package is a package that only contains its dependencies in the
slack-required file. There is nothing in the package to install, it just
provides a name and a dependency list. A good example would be GNOME. If a
"gnome" meta package existed that required the gtk libraries and gnome
@@ -1000,7 +1002,7 @@
The same can be done with the MANIFEST.bz2 file. You can use one of the
following solutions:
- Put something like this in your shell's rc file (or /etc/profile) would do
+ Put something like this in your shells rc file (or /etc/profile) would do
just as well:
# begin
@@ -1015,7 +1017,7 @@
fi
if [ ! -f ${MANIFEST/MANIFEST.bz2/package_list} ]; then
- bzgrep -n ' Package\: ' ${MANIFEST}|awk '{print $1 $3}'|sed -re "s/\|//g" >
+ bzgrep -n ' Package\: ' ${MANIFEST}|awk '{print $1 $3}'|sed -re "s/\|//g" &gt;
${MANIFEST/MANIFEST.bz2/package_list}
fi
@@ -1053,7 +1055,7 @@
use warnings;
use PerlIO::gzip;
- open FOO, "<:gzip", "/home/jidar/MANIFEST.gz" or die $!;
+ open FOO, "&lt;:gzip", "/home/jidar/MANIFEST.gz" or die $!;
my $temp;
while (<FOO>){ # And it will be uncompressed...
@@ -1094,7 +1096,7 @@
./$PROG.[sS]lack[bB]uild )
fi
- For a more advanced version of this, check out Piotr's site:
+ For a more advanced version of this, check out Piotrs site:
<a href="http://www.tenboard.com/slackware/index.php?path=SlackBuilds/">http://www.tenboard.com/slackware/index.php?path=SlackBuilds/</a>