base-[files|passwd]
John Morrison
john.r.morrison@ntlworld.com
Wed Jul 31 07:38:00 GMT 2002
Hi All,
OK, I've split the profile package into two;
base-files and base-passwd.
base-files/setup.hint
sdesc: "A set of important system configuration and setup files"
ldesc: "A set of important system configuration and setup files"
requires: ash fileutils sh-utils textutils
category: base
base-passwd/setup.hint
sdesc: "A script to set up initial passwords and groups"
ldesc: "A script to set up initial passwords and groups"
requires: cygwin ash
category: base
Packages can be found at:
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-files/base-file
s-1.0-1.tar.bz2
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-files/setup.hin
t
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-files/md5sum
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-passwd/base-pas
swd-1.0-1.tar.bz2
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-passwd/setup.hi
nt
http://homepage.ntlworld.com/j-n-s.morrison/john/cygwin/base-passwd/md5sum
I also wrote a little script to write out (html) the contents
of all the packages on a system. It might be useful to somebody:
-----------------------------------------------------
#!/bin/sh
packages=`find . -iname '*.tar.gz' -or -iname '*.tar.bz2' | sed
'/.\/package/d' | sort -f | uniq`
echo "<html><body><h1>Cygwin Packages</h1>"
for fullPackage in $packages ; do
package=`echo $fullPackage | sed 's/^.*\///'`
echo "<hr/><h2>Package: $package</h2>"
if [ "`echo $package | sed 's/^.*\.bz2//'`" == "" ] ; then
echo "<ul>"
for f in `tar -tjf $fullPackage` ; do
echo "<li>$f</li>"
done
echo "</ul>"
elif [ "`echo $package | sed 's/^.*\.gz//'`" == "" ] ; then
echo "<ul>"
for f in `tar -tzf $fullPackage` ; do
echo "<li>$f</li>"
done
echo "</ul>"
else
echo "<p class='unknown'>Unknown package type.</p>"
fi
done
echo "</body></html>"
-----------------------------------------------------
Takes a couple of minutes to run and (on my system) created
a 2.5meg file.
I prob could enhance it, but it did the job (I needed to
find out what package contained mk[passwd|group] and this
was easier than doing it hit-and-miss by hand!).
J.
More information about the Cygwin-apps
mailing list