* Checked into cvs. Added a fixlinks script to generate all symlinks.

* Integrated into my build system for automatic home page updates.
This commit is contained in:
joey
1999-09-05 06:35:38 +00:00
parent 351268835c
commit e759383ff8
19 changed files with 794 additions and 2446 deletions

1024
CHANGES

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,43 @@
# This makefile is really small. Most of the # Set this to wherever you want alien to install. Eg, /usr/local or /usr
# intelligence is in debian/debstd PREFIX=/usr
VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)
VERFILES=alien.spec alien.lsm
all: all:
clean: clean:
-rm build -rm build
-rm *.bak *.out
install: install:
install -d $(DESTDIR)/usr/bin install -d $(DESTDIR)/$(PREFIX)/bin
install alien $(DESTDIR)/usr/bin perl -pe '$$_="\t\$$prefix=\"$(PREFIX)\";" if /PREFIX_AUTOREPLACE/;\
install -d $(DESTDIR)/usr/lib/alien $(DESTDIR)/var/lib/alien $$_="\tmy \$$version_string=\"$(VER)\";" if /VERSION_AUTOREPLACE/' alien \
cp -a lib/* $(DESTDIR)/usr/lib/alien > $(DESTDIR)/$(PREFIX)/bin/alien
chmod 755 $(DESTDIR)/$(PREFIX)/bin/alien
install -d $(DESTDIR)/$(PREFIX)/lib/alien/patches \
$(DESTDIR)/var/lib/alien
cp -fr lib/* $(DESTDIR)/$(PREFIX)/lib/alien
cp -f patches/* $(DESTDIR)/$(PREFIX)/lib/alien/patches/
-rm -f $(DESTDIR)/$(PREFIX)/lib/alien/patches/*.gz
gzip -qf9 $(DESTDIR)/$(PREFIX)/lib/alien/patches/*
install -d $(DESTDIR)/$(PREFIX)/man/man1
cp -f alien.1 $(DESTDIR)/$(PREFIX)/man/man1
# This updates the version number in various files.
version:
@echo Updating version info....
perl -i -pe "s/\@version\@/$(VER)/g" <alien.spec.in >alien.spec
perl -i -pe "s/\@version\@/$(VER)/g" <alien.lsm.in >alien.lsm
debian:
dpkg-buildpackage -tc -rfakeroot
rpm:
sudo rpm -ba -v alien.spec --target noarch
stampede:
fakeroot alien --to-slp ../alien_$(VER)_all.deb ; \
.PHONY: debian

295
alien.sh
View File

@@ -1,295 +0,0 @@
#!/bin/sh
# Script to handle alien packages under Debian
#
# Options:
# -p<Patch> Manually specify a patch
# -n Build an alien package using heuristics
# -g Prepare directories for development
# -s Like -g, but prepare single directory for debian-only package
# -i Do not install package after building it.
#
# Christoph Lameter, <clameter@debian.org> October 30, 1996
set -e
#set -v
LIB=/usr/lib/alien
while expr "$1" : '-.*' >/dev/null; do
case $1 in
--auto|--nopatch|-n)
NOPATCH=1
;;
--generate|-g)
GENERATE=1
;;
--noinstall|-i)
NOINSTALL=1
;;
--single|-s)
SINGLE=1
NOPATCH=1
NOBUILD=1
NOINSTALL=1
;;
--patch=*)
PATCHFILE=`expr "$1" : '--patch=\(.*\)'`
if [ ! -f "$PATCHFILE" ]; then
echo "$PATCHFILE not found"
exit 1
fi
;;
-p*) PATCHFILE=`expr "$1" : '-p\(.*\)'`
if [ ! -f "$PATCHFILE" ]; then
echo "$PATCHFILE not found"
exit 1
fi
;;
*) echo "Bad option $1"
exit 1
;;
esac
shift
done
if [ "$NOPATCH" -a "$PATCHFILE" ]; then
echo "Cannot handle -n and -p options simultaneously"
exit 1
fi
FILE=$1
if [ "$FILE" = "" ]; then
echo "Usage: alien [-n] [-i] [-g] [-s] [-p<patchfile>] <filename>"
exit 1
fi
if [ ! -f $FILE ]; then
echo "File $FILE not found"
exit 1
fi
DATE="`822-date`"
# Cut off the directory name
if echo $FILE|grep -q "/"; then
X=`expr $FILE : '.*/\(.*\)'`
else
X="$FILE"
fi
if expr $X : '.*\.rpm' >/dev/null; then
RPM=1
if [ ! -f /usr/bin/rpm ]; then
echo "RPM Package Manager not installed"
exit 1
fi
X=`expr $X : '\(.*\)\.rpm'`
else
case $X in
*.tgz) X=`expr $X : '\(.*\).tgz'` ;;
*.tar.gz) X=`expr $X : '\(.*\).tar.gz'` ;;
*) echo "Format of filename bad $FILE" ;;
esac
fi
if [ "$RPM" ]; then
# Use --queryformat to pull out all the values we need.
eval `rpm -qp $FILE --queryformat '
PACKAGE="%{NAME}"
VERSION="%{VERSION}"
DELTA="%{RELEASE}"
ARCHNUM="%{ARCH}"
CHANGELOG="%{CHANGELOGTEXT}"
SUMMARY="%{SUMMARY}"
DESCRIPTION="%{DESCRIPTION}"
COPYRIGHT="%{COPYRIGHT}"
'`
if [ "$SUMMARY" = "" -o "$SUMMARY" = "(none)" ] ; then
SUMMARY="Converted RPM package"
fi
if [ "$COPYRIGHT" = "" -o "$COPYRIGHT" = "(none)" ] ; then
COPYRIGHT="unknown"
fi
if [ "$CHANGELOG" = "(none)" ] ; then
CHANGELOG=""
fi
# Fix up the description field to debian standards (indented at
# least one space, no empty lines in it.)
DESCRIPTION=" $SUMMARY"
# Convert ARCH number into string, if it isn't already a string.
case $ARCHNUM in
1) ARCHIT=i386
;;
2) ARCHIT=alpha
;;
3) ARCHIT=sparc
;;
6) ARCHIT=m68k
;;
i386|alpha|sparc|m68k)
# Seems that some rpms have the actual arch in them.
ARCHIT=$ARCHNUM
;;
esac
if [ "$DELTA" = "" -o "$VERSION" = "" -o "$PACKAGE" = "" ]; then
echo "Error querying rpm file."
exit 1
fi
if [ "$ARCHIT" = "" ]; then
echo "Unable to determine architecture: arch number is $ARCHNUM."
echo "Please report this as a bug to the maintainer of alien."
exit 1
fi
CDIR=rpm
else
# Generic handling for slackware and tar.gz packages
if echo $X | grep -q "-"; then
PACKAGE=`expr $X : '\(.*\)-.*'`
VERSION=`expr $X : '.*-\(.*\)'`
else
PACKAGE=$X
VERSION=1
fi
if [ "$VERSION" = "" -o "$PACKAGE" = "" ]; then
echo "Filename must have the form Package-Version.tgz"
exit 1
fi
ARCHIT=i386
DELTA=1
CDIR=tgz
fi
if [ "$NOPATCH" = "" ]; then
if [ "$PATCHFILE" = "" ]; then
PATCHFILE=/var/lib/alien/$PACKAGE*.diff.gz
fi
if [ ! -f $PATCHFILE -a "$GENERATE" = "" ]; then
echo "Patchfile $PATCHFILE not found."
echo "You may need to rerun this command with -n added to the command line."
exit 1
fi
if [ ! -f $PATCHFILE ]; then
PATCHFILE=
fi
fi
mkdir $PACKAGE-$VERSION
cd $PACKAGE-$VERSION
mkdir debian
echo "-- Unpacking $FILE"
if [ "$RPM" ]; then
(cd ..;rpm2cpio $FILE) | cpio --extract --make-directories --no-absolute-filenames
# install script could be located here.
else
# Must be a tar file
tar zxpf ../$FILE
# Make install script to postinst
if [ -e install/doinst.sh ]; then
mv install/doinst.sh debian/postinst
if ! rmdir install; then
echo "Other files besides doinst.sh present in install directory"
echo "Install script cannot be used as postinst script!"
mv debian/postinst install/doinst.sh
fi
fi
fi
if [ "$GENERATE" ]; then
cd ..
cp -a $PACKAGE-$VERSION $PACKAGE-$VERSION.orig
echo "Directories $PACKAGE-$VERSION.orig + $PACKAGE-$VERSION prepared."
cd $PACKAGE-$VERSION
elif [ "$SINGLE" ]; then
echo "Directory $PACKAGE-$VERSION prepared."
fi
# Now lets patch it!
if [ "$PATCHFILE" ]; then
echo "-- Patching in $PATCHFILE"
# cd .. here in case the patchfile's name was a relative path.
(cd .. && zcat $PATCHFILE) | patch -p1
X=`find . -name "*.rej"`
if [ "$X" ]; then
echo "Patch failed: giving up"
exit 1
fi
rm `find . -name "*.orig"`
else
echo "-- Automatic package debianization"
# Generate all the values we need
if [ "$EMAIL" = "" ]; then
EMAIL="$USER@`cat /etc/mailname`"
fi
USERNAME=`awk -F: -vUSER=$USER '$1 == USER { print $5; }' /etc/passwd`
if [ "$USERNAME" = "" -a -x /usr/bin/ypmatch ]; then
# Give NIS a try
USERNAME=`ypmatch $USER passwd.byname|awk -F: '{ print $5; }'`
fi
if echo $USERNAME | grep -q "\,"; then
X=`expr index "$USERNAME" ","`
X=`expr $X - 1`
USERNAME=`expr substr "$USERNAME" 1 $X`
fi
cd debian
X=`(cd $LIB/$CDIR;ls)`
for i in $X; do
sed <$LIB/$CDIR/$i >$i -e "s/#PACKAGE#/$PACKAGE/g" \
-e "s/#VERSION#/$VERSION/g" \
-e "s/#DELTA#/$DELTA/g" \
-e "s/#ARCHIT#/$ARCHIT/g" \
-e "s/#EMAIL#/$EMAIL/g" \
-e "s/#USERNAME#/$USERNAME/g" \
-e "s/#CHANGELOG#/$CHANGELOG/g" \
-e "s/#SUMMARY#/$SUMMARY/g" \
-e "s/#DESCRIPTION#/$DESCRIPTION/g" \
-e "s/#COPYRIGHT#/$COPYRIGHT/g" \
-e "s/#DATE#/$DATE/g"
done
if [ "$RPM" ]; then
(cd ../..;rpm -qpi $FILE) >>copyright
fi
cd ..
# Assume all files in etc are conffiles
if [ -d etc ]; then
find etc -type f -printf "/%p\n" >debian/conffiles
fi
fi
chmod a+x debian/rules
if [ "$GENERATE" = "" -a "$NOBUILD" = "" ]; then
echo "-- Building the package $PACKAGE-$VERSION-$DELTA.deb"
debian/rules binary
cd ..
rm -rf $PACKAGE-$VERSION
fi
if [ "$NOINSTALL" = "" -a "$GENERATE" = "" ]; then
echo "-- Installing generated .deb package"
dpkg -i $PACKAGE*.deb
rm $PACKAGE\_$VERSION-$DELTA*.deb
fi
echo "-- Successfully finished"
exit 0

View File

@@ -1,6 +0,0 @@
alien for DEBIAN
----------------
Please read the manpage for the alien command.
Christoph Lameter <clameter@waterf.org>

699
debian/changelog vendored
View File

@@ -1,3 +1,702 @@
alien (6.45) unstable; urgency=low
* Checked into cvs. Added a fixlinks script to generate all symlinks.
* Integrated into my build system for automatic home page updates.
-- Joey Hess <joeyh@master.debian.org> Sat, 4 Sep 1999 23:17:50 -0700
alien (6.44) unstable; urgency=low
* Depend on cpio. It is used in the rpm unpack phase after all, since
alien uses rpm2cpio (Closes: #38969)
-- Joey Hess <joeyh@master.debian.org> Mon, 12 Jul 1999 11:15:38 -0700
alien (6.43) unstable; urgency=low
* Now depends on perl5 | perl, I'll kill the | perl bit later on, but it
seems to make sense for the transition.
-- Joey Hess <joeyh@master.debian.org> Sun, 4 Jul 1999 10:57:20 -0700
alien (6.42) unstable; urgency=low
* Don't call dh_fixperms. As bug #36700 points out, some things you'll
want to convert have odd permissions intentionally. I suppose this
change will make a lot of stuff that has odd permissions accidentially
come through with bad perms, but that's life..
-- Joey Hess <joeyh@master.debian.org> Mon, 28 Jun 1999 15:51:37 -0700
alien (6.41) unstable; urgency=low
* Fixed the makefile so it doesn't keep files owned by 500.500.
* --version, -v works.
-- Joey Hess <joeyh@master.debian.org> Thu, 24 Jun 1999 11:30:22 -0700
alien (6.40) unstable; urgency=low
* D'oh corrected powerpc problem.
-- Joey Hess <joeyh@master.debian.org> Wed, 16 Jun 1999 10:41:46 -0700
alien (6.39) unstable; urgency=low
* When converting from rpm, ppc -> powerpc (Closes: #39550), patch by
Chris Lawrence <lawrencc@debian.org>
-- Joey Hess <joeyh@master.debian.org> Tue, 15 Jun 1999 09:12:03 -0700
alien (6.38) unstable; urgency=low
* Disable localization when getting the rpm --version output.
-- Joey Hess <joeyh@master.debian.org> Thu, 20 May 1999 14:55:29 -0700
alien (6.37) unstable; urgency=low
* If the package that is being made into a deb has a release with no
number in it, dpkg-deb barfs, so add "-1" to the release in that
case. (#3755)
-- Joey Hess <joeyh@master.debian.org> Sun, 16 May 1999 17:44:01 -0700
alien (6.36) unstable; urgency=low
* Updated XBF-i740 xserver diff.
-- Joey Hess <joeyh@master.debian.org> Wed, 5 May 1999 13:44:03 -0700
alien (6.35) unstable; urgency=low
* Fixed rpm minor version test.
-- Joey Hess <joeyh@master.debian.org> Mon, 3 May 1999 13:35:18 -0700
alien (6.34) unstable; urgency=low
* Adjusted the rpm version test - rpm 2.92 and above need --target.
-- Joey Hess <joeyh@master.debian.org> Fri, 30 Apr 1999 13:04:03 -0700
alien (6.33) unstable; urgency=low
* Fixes for rpm 3.0:
- Since rpm --showrc has changed to a format that is now very
difficult to machine parse for the topdir value, don't. Instead,
force rpm to output the rpm into the cirrent directory. This is
more consistent anyway.
- Detect rpm version and use --target or --buildarch appropriatly.
- Fixed alien.rpm's own build process to work again (stupid macro
substitutions...).
-- Joey Hess <joeyh@master.debian.org> Fri, 23 Apr 1999 13:20:27 -0700
alien (6.32) unstable; urgency=low
* Dropped in diff files for the XBF-i740 xserver, thanks to Agustín
Martín <agmartin@aq.upm.es>
-- Joey Hess <joeyh@master.debian.org> Thu, 22 Apr 1999 12:57:54 -0700
alien (6.31) unstable; urgency=low
* Actually included the fixed file to make the relocatrable packages work.
-- Joey Hess <joeyh@master.debian.org> Sat, 10 Apr 1999 14:14:27 -0700
alien (6.30) unstable; urgency=low
* Fixed applix 4.4.1 menu.
* Fixed a problem with converting relocatable packages that contained
the directory they claimed they could relocate into. This fixes the
problem someone was having converting a Glide rpm - I forget who.
-- Joey Hess <joeyh@master.debian.org> Sat, 10 Apr 1999 00:02:53 -0700
alien (6.29) unstable; urgency=low
* You don't need to be root to run alien -g or alien -s, so disabled the
check there.
* Removed extraneous install -d in debian/rules template file.
* Added support for applix 4.4.1.
* Fixed patch support, it's been broken.
-- Joey Hess <joeyh@master.debian.org> Wed, 7 Apr 1999 19:43:51 -0700
alien (6.28) unstable; urgency=low
* Don't call dh_installmanpages when converting to .deb, it can do the
wrong thing in some instances.
* Handling of relocatable packages was broken. (#31868) Fixed it by
looking at the rpm PREFIXES tag.
-- Joey Hess <joeyh@master.debian.org> Thu, 14 Jan 1999 13:28:41 -0800
alien (6.27) unstable; urgency=low
* Depends on debhelper >= 0.88 so it can use -X option.
-- Joey Hess <joeyh@master.debian.org> Sun, 27 Dec 1998 21:00:36 -0800
alien (6.26) unstable; urgency=low
* If 822-date fails, the error now suggests installing dpkg-dev. This is
way up there in the alien faw and I'm tired of answering it.
-- Joey Hess <joeyh@master.debian.org> Mon, 7 Dec 1998 19:02:26 -0800
alien (6.25) unstable; urgency=low
* Alien can now be installed into eg, /usr/local via a PREFIX variaible
in the Makefile, based on work by Roman Shterenzon <roman@xpert.com>.
* Typo fix from Roman Shterenzon.
* Moved the patch files that come with alien out of /var/lib/alien
into /usr/lib/alien/patches. Alien will now check both directories for
patches, /var first.
-- Joey Hess <joeyh@master.debian.org> Mon, 30 Nov 1998 17:12:10 -0800
alien (6.24) unstable; urgency=low
* I hope this will work with i586.deb files.
-- Joey Hess <joeyh@master.debian.org> Wed, 25 Nov 1998 21:19:19 -0800
alien (6.23) unstable; urgency=low
* It seems perl 5.003 breaks alien, so I set up dependancies on 5.004, and
updated documentation accordingly.
-- Joey Hess <joeyh@master.debian.org> Tue, 24 Nov 1998 00:26:21 -0800
alien (6.22) unstable; urgency=low
* Updated urls to the alien-extra stuff, it's now hosted on Bruce S.
Babcock's machine.
-- Joey Hess <joeyh@master.debian.org> Tue, 24 Nov 1998 00:04:53 -0800
alien (6.21) unstable; urgency=low
* Exclude .Z files from compression by dh_compress when converting to .deb
package.
-- Joey Hess <joeyh@master.debian.org> Fri, 20 Nov 1998 15:54:01 -0800
alien (6.20) unstable; urgency=low
* Convert tar.Z files too.
-- Joey Hess <joeyh@master.debian.org> Wed, 18 Nov 1998 19:32:13 -0800
alien (6.19) unstable; urgency=low
* Don't fail even if dh_shlibdeps fails.
-- Joey Hess <joeyh@master.debian.org> Sun, 1 Nov 1998 21:44:32 -0800
alien (6.18) unstable; urgency=low
* Hack so it'll work on packages where the upstream version doesn't
contain any digets.
-- Joey Hess <joeyh@master.debian.org> Tue, 15 Sep 1998 18:06:13 -0700
alien (6.17) unstable; urgency=low
* Rebuilt with debhelper 1.1.15 so that patches arn't installed as man
pages.
-- Joey Hess <joeyh@master.debian.org> Mon, 31 Aug 1998 13:31:56 -0700
alien (6.16) unstable; urgency=low
* When converting from .tgz files, use arch: all. Sort of a hack, but
since we don't know what arch of stuff is in them, it's as good a
guess as any. This will let people use the conversion on other
architectures. (#26253).
-- Joey Hess <joeyh@master.debian.org> Sun, 30 Aug 1998 21:57:39 -0700
alien (6.15) unstable; urgency=low
* Fixed a bug converting slp -> rpm, where filenames in the generated
filelist didn't start with "/".
-- Joey Hess <joeyh@master.debian.org> Mon, 17 Aug 1998 15:39:31 -0700
alien (6.14) unstable; urgency=low
* Die early if converting to a .deb and not root. Debhelper command will
cause it to die later on, anyway. (#25775)
-- Joey Hess <joeyh@master.debian.org> Sun, 16 Aug 1998 17:45:38 -0700
alien (6.13) unstable; urgency=low
* Don't bother calling dh_strip when converting to a .deb. This has caused
more trouble than it's worth.
-- Joey Hess <joeyh@master.debian.org> Thu, 13 Aug 1998 13:13:50 -0700
alien (6.12) unstable; urgency=low
* Will now properly convert rpm's that have things like + in their name.
(#25656).
-- Joey Hess <joeyh@master.debian.org> Wed, 12 Aug 1998 15:09:30 -0700
alien (6.11) unstable; urgency=low
* There was a problem converting rpm packages to tgz and slp formats (and
to a much lesser degree converting them to dpkg format): any parent
directories that were not in the rpm, but did have children in the rpm,
would end up with bad permissions (700). Alien now does a smart scan to
detect this and changes the permissions to a more sane 755.
* When converting to slp or tgz, with -g or -s, output informative
message, same as when converting to rpm or deb.
-- Joey Hess <joeyh@master.debian.org> Sat, 20 Jun 1998 21:06:37 -0700
alien (6.10) unstable; urgency=low
* Remove a junk file that crept in in the last version.
-- Joey Hess <joeyh@master.debian.org> Wed, 17 Jun 1998 18:00:32 -0700
alien (6.09) unstable; urgency=low
* Added a short document on how to generate a diff file for use by alien.
* Fixed a security hole in alien generated rpm files that had scripts in
them, that could allow a user to clobber files on the filesystem. Any
such alien generated rpm files currently in existence already contain
this bug, so be careful with them. Such files should be rare, they have
to be generated by "alien --to-rpm --scripts".
* That bug is even less likely, becuase it turns out --scripts has been
broken since alien version 6.0. Oops. Fixed.
* --single and --description were also broken since 6.0, and are fixed
now.
* It used to be that only shell scripts could be converted to rpm format,
because of a stupid bug. Fixed.
* There has been a change in how rpm outputs the file list for a
relocatable package - it used to strip the prefix from each filename,
and I could get at it in the DEFAULTPREFIX tag. Now it doesn't, and that
tag doesn't exist. The only change I actually had to make was to make
alien send rpm's error about DEFAULTPREFIX not being a valid tag to
/dev/null. All the code for dealing with DEFAULTPREFIX has been left in,
for backwards compatability.
-- Joey Hess <joeyh@master.debian.org> Wed, 10 Jun 1998 14:33:17 -0500
alien (6.08) unstable; urgency=low
* Automatic installation of .tgz and .rpm files was broken.
* Removed yet another use of tar -I.
* Generated .slp files now properly contain filenames all starting with
"./", just like normal Stampede packages.
-- Joey Hess <joeyh@master.debian.org> Sat, 9 May 1998 14:28:54 -0700
alien (6.07) unstable; urgency=low
* New alien-extra's are available; updated the README to point to them.
-- Joey Hess <joeyh@master.debian.org> Fri, 8 May 1998 23:01:37 -0700
alien (6.06) unstable; urgency=low
* Noted in README that you need bzip2 for stampede conversions.
* For compatability with non-debian systems, don't use tar -I, pipe bzip2,
instead.
* Fixed Toslp.pm to generate slp packages with the correct BINFORMAT
settings.
-- Joey Hess <joeyh@master.debian.org> Thu, 7 May 1998 16:36:48 -0700
alien (6.05) unstable; urgency=low
* Fixed -k switch (#22168).
-- Joey Hess <joeyh@master.debian.org> Wed, 6 May 1998 12:22:02 -0700
alien (6.04) unstable; urgency=low
* Added support for generating slp packages -- alien is now capable of 16
different types of conversions!
* Cleaned up some of Fromslp.pm.
* Added support for converting from .slp packages that use .gz
compression, as well as .bz2.
* Still TODO: handling postinst script when converting to/from .slp
packages.
* Updated Makefile to build .slp package of alien too, it will now appear
on alien's homepage.
-- Joey Hess <joeyh@master.debian.org> Sun, 3 May 1998 12:35:45 -0700
alien (6.03) unstable; urgency=low
* Added support for converting from v5 Stampede linux packages. Still a
little rough and mostly untested.
* Note that though the documentation says it can convert to Stampede
packages as well, this isn't implemented yet. But I wanted to get a
snapshot of my work so far out for testing by the Stampede people.
* Changed hard links back to symlinks.
* Got rid of standards-version in the created .deb files, that was stilly
to have in there.
* Standardized warnings.
* Fixed some documentation.
-- Joey Hess <joeyh@master.debian.org> Sat, 2 May 1998 21:25:05 -0700
alien (6.02) frozen unstable; urgency=low
* Fixed typo in README (#21126).
-- Joey Hess <joeyh@master.debian.org> Tue, 14 Apr 1998 23:25:17 -0700
alien (6.01) frozen unstable; urgency=low
* alien -i was broken, now fixed.
-- Joey Hess <joeyh@master.debian.org> Thu, 9 Apr 1998 19:03:38 -0700
alien (6.00) unstable; urgency=low
* Changed the module interface to be much cleaner. Probably broke many
things in the process.
* use strict throughout.
* It is now possible to do multiple conversions with a single run of
alien.
* Reworked the rules file used to convert to a debian package so it uses
debhelper. Alien no longer uses debstd at all. Adjusted dependancies
accordingly.
-- Joey Hess <joeyh@master.debian.org> Sun, 8 Mar 1998 16:22:50 -0800
alien (5.21) unstable; urgency=low
* Updated standards-version.
* Fixed how it handles symlinks so the kernel 2.1.8x symlink bug doesn't
prevent the package from building, by using hardlinks instead.
-- Joey Hess <joeyh@master.debian.org> Mon, 9 Feb 1998 13:39:49 -0800
alien (5.20) unstable; urgency=low
* added --description= flag, that lets the description of slackware
packages be set.
* Put packages converted to .deb format into a section called "alien".
* s/kite.ml.org/kitenet.net/g
-- Joey Hess <joeyh@master.debian.org> Sun, 23 Nov 1997 18:05:14 -0500
alien (5.19) unstable; urgency=low
* Applied fix to preserve modification time when converting from rpm
format. Thanks to Oberhumer Markus <k3040e4@c210.edvz.uni-linz.ac.at>
* Modified lsm to place alien into /pub/Linux/utils/packages.
* Added md5sums file back in.
-- Joey Hess <joeyh@master.debian.org> Mon, 20 Oct 1997 22:30:29 -0400
alien (5.18) unstable; urgency=low
* Use debhelper to build alien (still uses debstd to convert packages).
* Use dpkg-deb if available, instead of using ar. This fixes #12318: alien
can now handle old format deb files.
-- Joey Hess <joeyh@master.debian.org> Sat, 27 Sep 1997 15:52:08 -0400
alien (5.17) unstable; urgency=low
* Added version info to filename of generated .tgz files.
* Added --keep-version flag, which makes alien not increment the
release number/debian version number.
* Man page fixups.
* Fixes for epochs (for now, just remove epochs, since rpm cannot handle
them.)
-- Joey Hess <joeyh@master.debian.org> Fri, 12 Sep 1997 13:08:03 -0400
alien (5.16) unstable; urgency=low
* Fixed binary-indep target.
-- Joey Hess <joeyh@master.debian.org> Thu, 4 Sep 1997 18:33:18 -0400
alien (5.15) unstable; urgency=low
* Exit with an understandable error if we can't write to the pwd.
* Standardized error messages.
-- Joey Hess <joeyh@master.debian.org> Sat, 30 Aug 1997 20:20:18 -0400
alien (5.14) unstable; urgency=low
* Reccommend rpm >= 2.4.4-2, so noarch works, and /usr/src/redhat/BUILD/
and /usr/src/redhat/RPMS/{noarch,<arch>} exist. Fixes #12220 and #12218.
* Escape out variables in m// and s/// operators, fixes Bug #12219.
-- Joey Hess <joeyh@master.debian.org> Fri, 22 Aug 1997 12:31:06 -0400
alien (5.13) unstable; urgency=low
* Preliminary support for converting install scripts with the --scripts
option. We have to uuencode them for rpm's.
* Revised documentation.
* Routine update of debian/rules:
Fakeroot and sudo fixes (#11325).
-- Joey Hess <joeyh@master.debian.org> Sat, 26 Jul 1997 21:24:49 -0400
alien (5.12) unstable; urgency=low
* Fixed problem converting tgz files that contained files in the install/
directory into rpm.
* Ok, I'll announce this version to cola, instead of 5.11..
* Updated .lsm description.
-- Joey Hess <joeyh@master.debian.org> Sun, 13 Jul 1997 13:26:13 -0400
alien (5.11) unstable; urgency=low
* Announce on cola again.
* Added noarch support into alien.
* Changed rpm package to noarch version.
* Other fixes to spec file.
* Routine update of debian/rules:
Only run sudo when really necessary - makes fakeroot work.
-- Joey Hess <joeyh@master.debian.org> Wed, 9 Jul 1997 20:58:56 -0400
alien (5.10) unstable; urgency=low
* Fixed an error in rpm package - all symlinks were being omitted from the
package.
-- Joey Hess <joeyh@master.debian.org> Thu, 26 Jun 1997 18:23:53 -0400
alien (5.9) unstable; urgency=low
* Fixed stupid ugly bug in last version. "=~ tr" and "= ~tr" are very
different things!
* Reorganized some of the code.
-- Joey Hess <joeyh@master.debian.org> Mon, 23 Jun 1997 11:57:38 -0400
alien (5.8) unstable; urgency=low
* Rpm doesn't like version numbers that contain dashes, so change to
underscores when converting to rpm. Thanks to Arne Elofsson.
* Added some examples to the man page.
-- Joey Hess <joeyh@master.debian.org> Sun, 22 Jun 1997 23:05:51 -0400
alien (5.7) unstable; urgency=low
* Use installpkg to install slackware packages.
-- Joey Hess <joeyh@master.debian.org> Tue, 3 Jun 1997 17:55:51 -0400
alien (5.6) unstable; urgency=low
* For slackware systems: added docs to README about alien-extra slackware
package.
* For redhat systems: include CHANGES, COPYING, lsm file in alien.rpm.
-- Joey Hess <joeyh@master.debian.org> Mon, 2 Jun 1997 13:06:40 -0400
alien (5.5) unstable; urgency=low
* Added some more documentation and warnings about file ownerships getting
screwed up if you run alien as non-root.
* Added basic support for converting to Slackware tgz format. Mostly
untested. I confess, I did this just to simplify the documentation of
what alien can do. It was only 10 lines of code to add this, anyway. :-)
* Had a hard drive crash and reassembled this package from bits and
pieces. Hope it's not broken..
-- Joey Hess <joeyh@master.debian.org> Sat, 31 May 1997 17:31:26 -0400
alien (5.4) unstable; urgency=low
* Fixed a bug that occurred if the full name field in the password file
was empty, and ypmatch was installed.
* Fixed another bug, that occurred if NIS is actually being used, where
alien hung forever.
* For non-debian systems, fix upgrades.
-- Joey Hess <joeyh@master.debian.org> Mon, 26 May 1997 20:01:03 -0400
alien (5.3) unstable; urgency=low
* For non-debian systems: falls back to the hostname if /etc/mailname
isn't set
-- Joey Hess <joeyh@master.debian.org> Sun, 25 May 1997 19:50:07 -0400
alien (5.2) unstable; urgency=low
* Turns out alien has been broken for processing slackware packages since
version 3.0. It was leaving an /install directory behind. Fixed this.
-- Joey Hess <joeyh@master.debian.org> Tue, 20 May 1997 21:10:50 -0400
alien (5.1) unstable; urgency=low
* Added partial support for relocatable packages: DEFAULTPREFIX is
examined, and if set, a subdirectory by the same name is created in the
build directory of the package. This means relocatable packages end up
in a sane location, not scattered in the root directory as they were
previously.
* Smarter guessing of patch file name to use, now looks at version number
and revision number if neccessary.
* Added a patch file for applix 4.3 (and one for the applix-english package).
-- Joey Hess <joeyh@master.debian.org> Thu, 15 May 1997 18:35:46 -0400
alien (5.0) unstable; urgency=low
* Added some cautions to man page about not using alien to replace
important packages.
* This version will be released to the linux community at large, not just
debian.
* Added a README file.
-- Joey Hess <joeyh@master.debian.org> Wed, 7 May 1997 16:02:53 -0400
alien (4.3) unstable; urgency=low
* Fixed a bug that made alien choke on packages that had 0 for their
release or version number.
* Removed obsolete alien.sh from the source package.
-- Joey Hess <joeyh@master.debian.org> Wed, 7 May 1997 15:17:33 -0400
alien (4.2) unstable; urgency=low
* When installing deb file, alien will use --no-force-overwrite
The idea behind this is to make it difficult to trash your debian system
by installing alien packages that overwrite files in it. This only works
if you use alien --install, not if you install the resulting .deb file by
hand. This is a temporary fix until dpkg has --force-overwrite turned
off by default.
-- Joey Hess <joeyh@master.debian.org> Wed, 16 Apr 1997 17:03:27 -0400
alien (4.1) unstable; urgency=low
* If a package has underscores in it's name and is being converted to deb
format, change the underscores to dashes. Thanks to
Robert Coie <rac@mata.intrigue.com>
* Strip out any other disallowed characters in package name when
converting to deb.
-- Joey Hess <joeyh@master.debian.org> Fri, 4 Apr 1997 20:12:07 -0500
alien (4.00) unstable; urgency=low
* Added support for converting deb to rpm, based on the "martian" program
by Randolph Chung <rc42@cornell.edu>.
* Huge reorganization, rewrite, and code cleanup.
* As a side effect of the above, alien can also convert tgz into rpm now.
* Use rpm -qcp to list conffiles from rpm files.
* Reworked how conffiles are found from tar files.
* Removed --noinstall option, changed alien to default to not installing
generated packages, added --install option to make it install packages.
* Removed --nopatch/--auto option, and changed patch lookup behavior. See
the man page for an explination of the new behavior.
* Now Recommends: dpkg-dev and make and Suggests: patch
* Dropped feature of making slackware package install scripts into
postinst. If there is any demand, I'll try to work this back into the
program.
* Rewrote most of the man page.
* Fixed the version number so there are two digets in the minor revision
number.
-- Joey Hess <joeyh@master.debian.org> Sat, 29 Mar 1997 21:49:30 -0500
alien (3.2) frozen unstable; urgency=low
* Fixed bug that was preventing alien from figuring out the version number
of a tar file. (#8284)
* Man page fixes, related to #8284.
* Fixed a bug, present since 3.0, which was messing up conffile detection.
* Removed README.debian. (It just pointed users to the man page, which is
rather pointless.)
-- Joey Hess <joeyh@master.debian.org> Mon, 24 Mar 1997 14:03:04 -0500
alien (3.1) unstable; urgency=low
* Force package names to lowercase.
* Fixed --noinstall option.
-- Joey Hess <joeyh@master.debian.org> Mon, 17 Mar 1997 18:35:46 -0500
alien (3.00) unstable; urgency=low
* Rewrote alien in perl.
* Command line options can be specified in any order.
* -ppatch will no longer work. use --patch=<patchfile> instead.
* Improved usage help.
* Include extended description from rpm, if available.
* Fixed a bug with descriptions/summaries/changelogs/copyrights on rpms
that contained the '/' character crashing alien.
* Increment revision number of rpms when they are alianized.
* Recommends: cpio becuase it is needed for rpm2cpio extraction.
* Patch files do not have to be compressed.
* Routine update of debian/rules:
Clean up junk files in subdirs.
-- Joey Hess <joeyh@master.debian.org> Fri, 7 Mar 1997 16:08:02 -0500
alien (2.82) unstable; urgency=low
* Use CHANGELOGTEXT, not CHANGELOG, when querying rpm files for
changelogs. Fixes bug #7445.
* Modification to work with rpm verison 2.3.7. This breaks compatability
with previous versions of rpm. Modified control file to reflect this.
-- Joey Hess <joeyh@master.debian.org> Tue, 25 Feb 1997 21:09:18 -0500
alien (2.81) unstable; urgency=low
* Corrected maintainer in debian/control.
* Routine update of debian/rules:
Modifications for multiple binary package support.
-- Joey Hess <joeyh@master.debian.org> Fri, 7 Feb 1997 22:25:40 -0500
alien (2.80) unstable; urgency=low
* Added a patch file for Applixware.
* I'm looking for patch files for other commercial software, to add to the
package. If you own commerical linux software and would like to
contribute a patch, please contact me.
* Generated debian/rules files will no longer pass package name to debstd
(And neither does the debian/rules file for this package.)
* Added -s switch for low disk space situations.
* Added -i switch to build a package but not install it.
* Added long options (--option), as I can never remember the short ones.
* Fixed bug in guessing name of patch file to use.
* Fixed bug that would not let you specify a patch file in the current
directory, or a relative path to a patch file.
* Don't use /etc/rpmrc as an indiciation of whether rpm is present, as
this is a conffile, and might be deleted. Test for actual rpm binary.
* More friendly error message if patch file is not found, suggesting that
you try -n option.
* Rewrote the code that figures out information about the rpm files so it
uses rpm --queryformat to determine everything.
* If a rpm has a changelog, add it to the end of debian/changelog.
* Add summary to the Description: field of generated control files.
* Add info from a rpm's copyright field to to the copyright file.
-- Joey Hess <joeyh@master.debian.org> Thu, 30 Jan 1997 20:35:10 -0500
alien (2.79) unstable; urgency=low alien (2.79) unstable; urgency=low
* New maintainer. * New maintainer.

61
debian/config vendored
View File

@@ -1,61 +0,0 @@
# Edit this file to configure debian/rules to build a package.
# No modification of debian/rules should be neccessary. (Famous last words!)
#
# File by Joey Hess <joeyh@master.debian.org>
# What is the name of this package?
package=alien
# Files that go in directories under /doc.
docs=
# What file must exist in the current directory if the package is
# properly unpacked here?
test_file=$(package)
# Does this package build from an Imakefile?
# If so, uncomment the line below.
#use_imakefile=y
# Does this package build from a Configure script?
# If so, uncomment the line below and enter the command to run to run the
# Configure script (ie: "./Configure")
#use_configure=./Configure
# What commands to run to build the package?
define build_command
endef
# What commands to run to clean up after a build?
define clean_command
endef
# List here any files that must be removed during "debian/rules clean"
# that clean_command doesn't take care of.
clean_files=
# List here any files that should be preserved during a build, and restored
# to their original state during a clean. For example, if the package comes
# with both an Imakefile and a Makefile, and xmkmf is run, list the original
# Makefile here so it will be backed up before it is overwritten my xmkmf.
preserve_files=
# What command to run to install the package into debian/tmp?
# You might want to edit the package's Makefile and add $(PREFIX)
# to all the paths it installs files to. or, you can just write
# your own install commands here instead.
#
# Note that debian/* and the files in /usr/doc will be installed
# properly for you, you don't need to do that here.
#
define install_command
$(MAKE) DESTDIR=debian/tmp install
endef
# After being installed in debian/tmp, everything is chowned to root.root,
# and chmod g-ws is run on everything. Enter below any chmod commands you
# need to run to set files to the proper permissions. This is where you
# can make programs be suid, etc.
# (Note that these commands will be run as root.)
define ch_commands
endef

10
debian/fixlinks vendored Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh -e
# Clean up after cvs's dreadful symlink handling, by making all the symlinks
# this package needs.
ln -sf ../rpm/rules lib/to-deb/tgz/rules
ln -sf ../rpm/conffiles lib/to-deb/tgz/conffiles
ln -sf ../rpm/conffiles lib/to-deb/slp/conffiles
ln -sf ../rpm/rules lib/to-deb/slp/rules
ln -sf ../deb/spec lib/to-rpm/tgz/spec
ln -sf ../deb/spec lib/to-rpm/slp/spec
ln -sf debian/changelog CHANGES

162
debian/rules vendored
View File

@@ -1,126 +1,62 @@
#!/usr/bin/make -f #!/usr/bin/make -f
############################################################################## # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Generic debian/rules file. Based on:
#
#> Sample debian.rules file - for GNU Hello (1.3).
#> Copyright 1994,1995 by Ian Jackson.
#> I hereby give you perpetual unlimited permission to copy,
#> modify and relicense this file, provided that you do not remove
#> my name from the file itself. (I assert my moral right of
#> paternity under the Copyright, Designs and Patents Act 1988.)
#
# Heavily modified by Joey Hess <joeyh@master.debian.org>
#
##############################################################################
#
# NOTE: You shouldn't have to edit this file. Edit debian/config instead.
# If you must edit this file to get your package to build properly, then
# I have failed. Let me know; mail me.
#
# (Currently not handled: multiple binary packages from 1 source package,
# and binary-indep rule.)
#
# NOTE: This file is designed so it doesn't need to be run as root. For
# actions that require that the user be root, the root password will be
# prompted for, if you're not already root.
#
##############################################################################
#
# Changelog:
# * Use build-stamp instead of build.
# * New email address.
# * Added changelog.
#
##############################################################################
# Include config file. # Uncomment this to turn on verbose mode.
include debian/config #export DH_VERBOSE=1
# Generate a makefile (via configure scriopt or xmkmf). build: link-stamp build-stamp
makefile-stamp: build-stamp:
ifeq ($(strip $(use_imakefile)),y) dh_testdir
xmkmf -a $(MAKE) version
endif
$(use_configure)
touch makefile-stamp
# Preserve some files that may get deleted/overwritten/modified otherwise.
preserve-stamp:
ifneq ($(strip $(preserve_files)),)
$(foreach file,$(preserve_files),-cp $(file) $(file).preserved)
endif
touch preserve-stamp
build-stamp: preserve-stamp makefile-stamp
$(checkdir)
$(build_command)
touch build-stamp touch build-stamp
build: build-stamp clean: link-stamp
dh_testdir
clean: preserve-stamp makefile-stamp dh_testroot
$(checkdir) rm -f build-stamp
# Do actual cleaning up here. dh_clean
-rm -f build-stamp
$(clean_command)
-rm -rf *~ debian/*~ debian/files* $(clean_files)
$(clean_tmp)
# Remove Makefile that xmkmf creates.
ifeq ($(strip $(use_imakefile)),y)
-rm -f Makefile
endif
# If we preserved some files, we need to restore them now.
ifneq ($(strip $(preserve_files)),)
$(foreach file,$(preserve_files),-mv -f $(file).preserved $(file))
endif
-rm -f preserve-stamp makefile-stamp
# Build architecture-independent files here.
# (not yet set up to be used)
binary-indep: build
$(checkdir)
# Build architecture-dependent files here. # Build architecture-dependent files here.
binary-arch: build binary-arch: link-stamp build
$(checkdir) # We have nothing to do by default.
$(clean_tmp)
$(install_command)
# Debstd handles lots of nasty details. This requires that the debmake
# package is installed.
debstd $(package) $(docs)
# Generate control file. # Build architecture-independent files here.
dpkg-gencontrol binary-indep: link-stamp build
# Set permissions. dh_testdir
@[ "`whoami`" != root ] && \ dh_testroot
echo -e "\n ** Enter root password to set file permissions."; \ dh_clean
sudo debian/rules setperms $(MAKE) DESTDIR=debian/tmp install
# Actually build the .deb file. dh_installdocs README gendiff.txt
dpkg --build debian/tmp .. dh_installexamples
dh_installmenu
dh_installmanpages
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# This must be run suid root, it sets the file permissions in debian/tmp # Fix links when checking out of cvs by calling this target.
setperms: link-stamp:
chown -R root.root debian/tmp sh -e debian/fixlinks
chmod -R g-ws debian/tmp touch link-stamp
$(ch_commands)
define checkdir VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)')
@test -f $(test_file) -a -f debian/rules || (echo -e "\n\
** \"$(test_file)\" or \"debian/rules\" does not exist.\n\
** Either \"$(package)\" is not unpacked in this directory, or\n\
** an incorrect test_file is specified in debian/config.\n" && false)
endef
# This rm's the debian/tmp directory. # Update the web page. Not intended for use by anyone except the author.
define clean_tmp installhook:
-rm -rf debian/tmp >/dev/null 2>&1 cp debian/changelog /home/pub/programs/alien/CHANGES
@if [ -d debian/tmp ]; then \ echo $(VERSION) > /home/pub/programs/alien/LATEST-VERSION-IS
if [ "`whoami`" != root ]; then \ rm /home/ftp/pub/code/alien/* || true
echo -e "\n ** Enter root password to remove debian/tmp."; \ cd /home/ftp/pub/code/alien; \
fi; \ ln -sf ../debian/alien_$(VERSION).tar.gz alien_$(VER).tar.gz; \
sudo rm -rf debian/tmp; \ ln -sf ../debian/alien_$(VERSION).tar.gz alien.tar.gz
fi $(MAKE) stampede rpm
endef mv alien-$(VERSION).slp /home/ftp/pub/code/alien/
ln -s /home/ftp/pub/code/alien/alien-$(VERSION).slp \
/home/ftp/pub/code/alien/alien.slp
binary: binary-indep binary-arch binary: binary-indep binary-arch
.PHONY: clean setperms binary .PHONY: build clean binary-indep binary-arch binary

378
foo
View File

@@ -1,378 +0,0 @@
execve("/sbin/taper", ["taper"], [/* 34 vars */]) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000
mprotect(0x40000000, 20301, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 154781, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=7705, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 6
mmap(0, 7705, PROT_READ, MAP_SHARED, 6, 0) = 0x40008000
close(6) = 0
stat("/etc/ld.so.preload", 0xbffff948) = -1 ENOENT (No such file or directory)
open("/usr/lib/libform.so.3.0", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 40960, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000
mmap(0x4000a000, 35349, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0x4000a000
mmap(0x40013000, 3928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x8000) = 0x40013000
close(6) = 0
mprotect(0x4000a000, 35349, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/lib/libncurses.so.3.0", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 249856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
mmap(0x40014000, 198134, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0x40014000
mmap(0x40045000, 30592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x30000) = 0x40045000
mmap(0x4004d000, 13444, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4004d000
close(6) = 0
mprotect(0x40014000, 198134, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/lib/libc.so.5", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 761856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40051000
mmap(0x40051000, 528723, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0x40051000
mmap(0x400d3000, 19388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x81000) = 0x400d3000
mmap(0x400d8000, 205344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400d8000
close(6) = 0
mprotect(0x40051000, 528723, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x40008000, 7705) = 0
mprotect(0x8048000, 154781, PROT_READ|PROT_EXEC) = 0
mprotect(0x4000a000, 35349, PROT_READ|PROT_EXEC) = 0
mprotect(0x40014000, 198134, PROT_READ|PROT_EXEC) = 0
mprotect(0x40051000, 528723, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 20301, PROT_READ|PROT_EXEC) = 0
personality(PER_LINUX) = 0
geteuid() = 0
getuid() = 0
getgid() = 0
getegid() = 0
brk(0x80c1cb0) = 0x80c1cb0
brk(0x80c2000) = 0x80c2000
open("/root/taper_prefs", O_RDONLY) = 6
close(6) = 0
open("/root/taper_prefs", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0664, st_size=1248, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000
read(6, "append = yes\ncompress-type = 1\n"..., 4096) = 1248
read(6, "", 4096) = 0
close(6) = 0
munmap(0x40008000, 4096) = 0
brk(0x80cb000) = 0x80cb000
shmget(IPC_PRIVATE, 60, IPC_CREAT|IPC_EXCL|0x1b6|0666) = 8448
shmat(8448, 0, 0) = 0x40008000
shmget(IPC_PRIVATE, 65536, IPC_CREAT|IPC_EXCL|0x1b6|0666) = 8449
shmat(8449, 0, 0) = 0x4010b000
shmget(IPC_PRIVATE, 65536, IPC_CREAT|IPC_EXCL|0x1b6|0666) = 8450
shmat(8450, 0, 0) = 0x4011b000
mmap(0, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4012b000
shmget(IPC_PRIVATE, 32768, IPC_CREAT|IPC_EXCL|0x1b6|0666) = 8451
shmat(8451, 0, 0) = 0x40150000
open("/root/.terminfo/x/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/root/.terminfo/x", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/terminfo/x/xterm", O_RDONLY) = 6
read(6, "\32\1:\0\25\0\3\0d\0013\2", 12) = 12
read(6, "xterm|vs100|xterm terminal emula"..., 58) = 58
read(6, "\0\1\0\0\1\0\0\0\1\0\0\0\0\1\1\0"..., 21) = 21
read(6, "\0", 1) = 1
read(6, "P\0\10\0A\0", 6) = 6
read(6, "\377\377\0\0\2\0\4\0\25\0\32\0\""..., 712) = 712
read(6, "\7\0\r\0\33[%i%p1%d;%p2%dr\0\33["..., 563) = 563
close(6) = 0
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=28, ws_col=80, ws_xpixel=503, ws_ypixel=368}) = 0
brk(0x80cc000) = 0x80cc000
brk(0x80cd000) = 0x80cd000
brk(0x80ce000) = 0x80ce000
brk(0x80cf000) = 0x80cf000
brk(0x80d0000) = 0x80d0000
brk(0x80d1000) = 0x80d1000
brk(0x80d2000) = 0x80d2000
brk(0x80d3000) = 0x80d3000
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
sigaction(SIGINT, NULL, {SIG_DFL}) = 0
sigaction(SIGINT, {0x40037750, [], SA_RESTART}, NULL) = 0
sigaction(SIGTERM, NULL, {SIG_DFL}) = 0
sigaction(SIGTERM, {0x40037750, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, NULL, {SIG_DFL}) = 0
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_START, {B9600 opost isig icanon -echo ...}) = 0
ioctl(1, TCGETS, {B9600 opost isig icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_START, {B9600 -opost -isig -icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_START, {B9600 -opost -isig -icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_START, {B9600 -opost isig -icanon -echo ...}) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33(B\33)0\0337\33[?47h\33[H\33["..., 2408) = 2408
write(1, " "..., 150) = 150
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
brk(0x80d4000) = 0x80d4000
brk(0x80d5000) = 0x80d5000
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[2;1H\16lqqqqqqqqqqqqqqqqqqqq"..., 185) = 185
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[1;80H", 7) = 7
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[27B", 5) = 5
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
write(1, "\33[?1h\33=", 7) = 7
write(1, "\33[?1h\33=", 7) = 7
sigaction(SIGINT, {0x8060590, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {0x40037750, [], SA_RESTART}) = 0
sigaction(SIGSEGV, {0x80605b0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGABRT, {0x80605b0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
lstat(".", {st_mode=S_IFDIR|0775, st_size=1024, ...}) = 0
lstat("/", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("..", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
brk(0x80d7000) = 0x80d7000
getdents(6, /* 17 entries */, 4096) = 416
lstat("../alien-3.2", {st_mode=S_IFDIR|0775, st_size=1024, ...}) = 0
close(6) = 0
lstat("../..", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
stat("../..", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
open("../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 13 entries */, 4096) = 232
lstat("../../build", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
close(6) = 0
lstat("../../..", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
stat("../../..", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
open("../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 58 entries */, 4096) = 1184
lstat("../../../debian", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
close(6) = 0
lstat("../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("../../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 34 entries */, 4096) = 596
lstat("../../../../joey", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
close(6) = 0
lstat("../../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("../../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("../../../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 30 entries */, 4096) = 576
lstat("../../../../../lost+found", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("../../../../../usr", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../System.old", {st_mode=S_IFREG|0664, st_size=71282, ...}) = 0
lstat("../../../../../etc", {st_mode=S_IFDIR|0755, st_size=6144, ...}) = 0
lstat("../../../../../root", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../dev", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
lstat("../../../../../sbin", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../var", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=204800, ...}) = 0
lstat("../../../../../bin", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat("../../../../../floppy", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0
lstat("../../../../../boot", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0
lstat("../../../../../lib", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../mnt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
close(6) = 0
lstat(".", {st_mode=S_IFDIR|0775, st_size=1024, ...}) = 0
lstat("/", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("..", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 17 entries */, 4096) = 416
lstat("../alien-3.2", {st_mode=S_IFDIR|0775, st_size=1024, ...}) = 0
close(6) = 0
lstat("../..", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
stat("../..", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
open("../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 13 entries */, 4096) = 232
lstat("../../build", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
close(6) = 0
lstat("../../..", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
stat("../../..", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
open("../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 58 entries */, 4096) = 1184
lstat("../../../debian", {st_mode=S_IFDIR|S_ISUID|0775, st_size=2048, ...}) = 0
close(6) = 0
lstat("../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("../../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 34 entries */, 4096) = 596
lstat("../../../../joey", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
close(6) = 0
lstat("../../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("../../../../..", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("../../../../..", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
getdents(6, /* 30 entries */, 4096) = 576
lstat("../../../../../lost+found", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("../../../../../usr", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../System.old", {st_mode=S_IFREG|0664, st_size=71282, ...}) = 0
lstat("../../../../../etc", {st_mode=S_IFDIR|0755, st_size=6144, ...}) = 0
lstat("../../../../../root", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../dev", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
lstat("../../../../../sbin", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../var", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=204800, ...}) = 0
lstat("../../../../../bin", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat("../../../../../floppy", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0
lstat("../../../../../boot", {st_mode=S_IFDIR|S_ISGID|0775, st_size=1024, ...}) = 0
lstat("../../../../../lib", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
lstat("../../../../../mnt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("../../../../../home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
close(6) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[28;15HTaper 6.7.4 by Yusuf N"..., 60) = 60
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[1;26HTaper - Linux Backup fo"..., 37) = 37
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[27;80H", 8) = 8
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[7;35H\33[7mBackup Module\33["..., 182) = 182
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
read(0, "\r", 1) = 1
open("/root/taper_log", O_RDWR|O_APPEND|O_CREAT, 0600) = 6
time(NULL) = 859232262
open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 7
read(7, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 6460) = 1410
close(7) = 0
time(NULL) = 859232262
write(6, "Mon Mar 24 14:37:22 1997: Start"..., 50) = 50
brk(0x80d8000) = 0x80d8000
write(1, "\33[?1h\33=", 7) = 7
write(1, "\33[?1h\33=", 7) = 7
write(1, "\33[?1h\33=", 7) = 7
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[2;49H\16l\17\n\10\16x\17\n\10"..., 124) = 124
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[2;48H\16k\17\n\10\16x\17\n\10"..., 229) = 229
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\r\n\16lqqqqqqqqqqqqqqqqqqqqqqqq"..., 128) = 128
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
stat("/mnt/home-and-etc.taper", 0xbffff814) = -1 ENOENT (No such file or directory)
stat("/etc/locale/C/libc.cat", 0xbffff304) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbffff304) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/libc/C", 0xbffff304) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbffff304) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbffff304) = -1 ENOENT (No such file or directory)
time(NULL) = 859232262
write(6, "Mon Mar 24 14:37:22 1997: No su"..., 81) = 81
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[10;9H\16lqqqqqqqqqqqqqqqqqqq"..., 515) = 515
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
write(1, "\33[?1h\33=", 7) = 7
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[12;14HNo such file or direct"..., 78) = 78
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
read(0, "\r", 1) = 1
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\10\10\33[1mOK\33[m", 11) = 11
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[2;48H\16qq\17\33[3;48H \33["..., 749) = 749
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
fsync(6) = 0
fstat(6, {st_mode=S_IFREG|0600, st_size=2097334, ...}) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[11;21H\16lqqqqqqqqqqqqqqqqqq"..., 354) = 354
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[14;24HLog file too big - mak"..., 41) = 41
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
lseek(6, 182, SEEK_SET) = 182
getpid() = 3550
stat("/usr/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=12288, ...}) = 0
geteuid() = 0
stat("/usr/tmp/taper03550aaa", 0xbffff66c) = -1 ENOENT (No such file or directory)
open("/usr/tmp/taper03550aaa", O_RDWR|O_APPEND|O_CREAT, 0600) = 7
read(6, "Thu Mar 20 16:21:20 1997: Backi"..., 150000) = 150000
write(7, "Thu Mar 20 16:21:20 1997: Backi"..., 150000) = 150000
read(6, "ory /home/joey/mail/\nFri Mar 21"..., 150000) = 150000
write(7, "ory /home/joey/mail/\nFri Mar 21"..., 150000) = 150000
read(6, "5/\nFri Mar 21 16:22:50 1997: S"..., 150000) = 150000
write(7, "5/\nFri Mar 21 16:22:50 1997: S"..., 150000) = 150000
read(6, "lib/dwww/dwww.html; actual size "..., 150000) = 150000
write(7, "lib/dwww/dwww.html; actual size "..., 150000) = 150000
read(6, "\nSun Mar 23 16:16:14 1997: Bac"..., 150000) = 150000
write(7, "\nSun Mar 23 16:16:14 1997: Bac"..., 150000) = 150000
read(6, "shift.prp; actual size 776, on t"..., 150000) = 150000
write(7, "shift.prp; actual size 776, on t"..., 150000) = 150000
read(6, "esk/FileTags; actual size 2180, "..., 150000) = 150000
write(7, "esk/FileTags; actual size 2180, "..., 150000) = 150000
read(6, "rs/GIFEncoder.java; actual size "..., 150000) = 150000
write(7, "rs/GIFEncoder.java; actual size "..., 150000) = 150000
read(6, "tape size 3187.\nSun Mar 23 16:2"..., 150000) = 150000
write(7, "tape size 3187.\nSun Mar 23 16:2"..., 150000) = 150000
read(6, "ssion/Blood0.db; actual size 393"..., 150000) = 150000
write(7, "ssion/Blood0.db; actual size 393"..., 150000) = 150000
read(6, "3937, on tape size 23937.\nSun M"..., 150000) = 150000
write(7, "3937, on tape size 23937.\nSun M"..., 150000) = 150000
read(6, "n tape size 355.\nSun Mar 23 16:"..., 150000) = 150000
write(7, "n tape size 355.\nSun Mar 23 16:"..., 150000) = 150000
read(6, ".d/lambdamoo]\nSun Mar 23 17:13:"..., 150000) = 150000
write(7, ".d/lambdamoo]\nSun Mar 23 17:13:"..., 150000) = 150000
read(6, "size 1453, on tape size 812.\nSu"..., 150000) = 147152
write(7, "size 1453, on tape size 812.\nSu"..., 147152) = 147152
read(6, "", 150000) = 0
close(6) = 0
unlink("/root/taper_log") = 0
time(NULL) = 859232263
write(7, "Mon Mar 24 14:37:23 1997: Backu"..., 44) = 44
write(7, "\n\n", 2) = 2
close(7) = 0
rename("/usr/tmp/taper03550aaa", "/root/taper_log") = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[28;67H", 8) = 8
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[1;56H", 7) = 7
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[11;21H "..., 337) = 337
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[7;35H\33[7mBackup Module\33["..., 182) = 182
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
read(0, "\33", 1) = 1
oldselect(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {1, 0})
read(0, "O", 1) = 1
oldselect(1, [0], NULL, NULL, {1, 0}) = 1 (in [0], left {1, 0})
read(0, "A", 1) = 1
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[13DBackup Module\33[21;39H\33"..., 37) = 37
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
read(0, "\r", 1) = 1
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[2;1H\33[K\n\33[K\n\33[K\n\33"..., 115) = 115
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[H\33[K", 6) = 6
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
sigaction(SIGTSTP, {SIG_IGN}, {0x40037680, [], SA_RESTART}) = 0
write(1, "\33[27B\33[J", 8) = 8
sigaction(SIGTSTP, {0x40037680, [], SA_RESTART}, NULL) = 0
write(1, "\33[28;1H\0337\33[1;28r\0338\33["..., 30) = 30
write(1, "\33[?1l\33>", 7) = 7
ioctl(1, SNDCTL_TMR_START, {B9600 opost isig icanon echo ...}) = 0
munmap(0x4012b000, 151552) = 0
shmdt(0x40150000) = 0
shmdt(0x4010b000) = 0
shmdt(0x4011b000) = 0
shmdt(0x40008000) = 0
shmctl(8448, IPC_RMID, 0) = 0
shmctl(8451, IPC_RMID, 0) = 0
shmctl(8449, IPC_RMID, 0) = 0
shmctl(8450, IPC_RMID, 0) = 0
sigaction(SIGINT, {SIG_DFL}, {0x8060590, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}) = 0
sigaction(SIGSEGV, {SIG_DFL}, {0x80605b0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}) = 0
sigaction(SIGABRT, {SIG_DFL}, {0x80605b0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}) = 0
_exit(0) = ?

View File

@@ -1,67 +0,0 @@
#!/usr/bin/perl
#
# Package for converting from a .deb file.
# Query a deb file for fields, and return a hash of the fields found.
# Pass the filename of the deb file to query.
sub GetFields { my $file=shift;
my %fields;
# Extract the control file from the deb file.
my @control = `ar p $file control.tar.gz | tar Oxzf - control`;
# Parse control file and extract fields.
my $i=0;
while ($i<=$#control) {
$_ = $control[$i];
chomp;
$fields{NAME} = $1 if (/^Package: (.+)/i);
$fields{VERSION} = $1 if (/^Version: (.+)/i);
$fields{ARCH} = $1 if (/^Architecture: (.+)/i);
$fields{MAINTAINER} = $1 if (/^Maintainer: (.+)/i);
$fields{DEPENDS} = $1 if (/^Depends: (.+)/i);
$fields{REQUIRES} = $1 if (/^Requires: (.+)/i);
$fields{GROUP} = $1 if (/^Section: (.+)/i);
if (/^Description: (.+)/i) {
$fields{SUMMARY} = "$1";
$i++;
while (($i<=$#control) && ($control[$i])) {
$control[$i] =~ s/^ //g; #remove leading space
$control[$i] = "\n" if ($control[$i] eq ".\n");
$fields{DESCRIPTION}.=$control[$i];
$i++;
}
$i--;
}
$i++;
}
$fields{COPYRIGHT}="see /usr/doc/$fields{NAME}/copyright";
$fields{GROUP}="unknown" if (!$fields{GROUP});
$fields{DISTRIBUTION}="Debian";
if ($fields{VERSION} =~ /(.+)-(.+)/) {
$fields{VERSION} = $1;
$fields{RELEASE} = $2 + 1;
} else {
$fields{RELEASE} = '1';
}
# Read in the list of conffiles, if any.
$fields{CONFFILES}=`ar p $file control.tar.gz | tar Oxzf - conffiles 2>/dev/null`;
# Read in the list of all files.
# Note that tar doesn't supply a leading `/', so we have to add that.
$fields{FILELIST}=undef;
foreach $fn (`ar p $file data.tar.gz | tar tzf -`) {
$fields{FILELIST}.="/$fn";
}
return %fields;
}
# Handles unpacking of debs.
sub Unpack { my ($file)=@_;
SafeSystem ("(cd ..;ar p $file data.tar.gz) | tar zxpf -","Error unpacking $file\n");
}
1

View File

@@ -1,72 +0,0 @@
#!/usr/bin/perl
#
# Package for converting from a .rpm file.
# Query a rpm file for fields, and return a hash of the fields found.
# Pass the filename of the rpm file to query.
sub GetFields { my $file=shift;
my %fields;
# Use --queryformat to pull out all the fields we need.
foreach $field ('NAME','VERSION','RELEASE','ARCH','CHANGELOGTEXT',
'SUMMARY','DESCRIPTION','COPYRIGHT') {
$_=`rpm -qp $file --queryformat \%{$field}`;
$fields{$field}=$_ if $_ ne '(none)';
}
# Get the conffiles list.
$fields{CONFFILES}=`rpm -qcp $file`;
# Include the output of rpm -qi in the copyright file.
$fields{COPYRIGHT_EXTRA}=`rpm -qpi $file`;
# Sanity check fields.
if (!$fields{SUMMARY}) {
# Older rpms will have no summary, but will have a
# description. We'll take the 1st line out of the
# description, and use it for the summary.
($fields{SUMMARY})=($fields{DESCRIPTION}."\n")=~m/(.*?)\n/m;
# Fallback.
if (!$fields{SUMMARY}) {
$fields{SUMMARY}="Converted RPM package";
}
}
if (!$fields{COPYRIGHT}) {
$fields{COPYRIGHT}="unknown";
}
if (!$fields{DESCRIPTION}) {
$fields{DESCRIPTION}=$fields{SUMMARY};
}
# Convert ARCH into string, if it isn't already a string.
if ($fields{ARCH} eq 1) {
$fields{ARCH}='i386';
}
elsif ($fields{ARCH} eq 2) {
$fields{ARCH}='alpha';
}
elsif ($fields{ARCH} eq 3) {
$fields{ARCH}='sparc';
}
elsif ($fields{ARCH} eq 6) {
$fields{ARCH}='m68k';
}
if (!$fields{RELEASE} || !$fields{VERSION} || !$fields{NAME}) {
Error("Error querying rpm file.");
}
$fields{RELEASE}=$fields{RELEASE}+1;
$fields{DISTRIBUTION}="Red Hat";
return %fields;
}
# Unpack a rpm file.
sub Unpack { my ($file)=@_;
SafeSystem("(cd ..;rpm2cpio $file) | cpio --extract --make-directories --no-absolute-filenames",
"Error unpacking $file\n");
}
1

View File

@@ -1,65 +0,0 @@
#!/usr/bin/perl
#
# Package for converting from a tgz file.
# Query a tgz file for fields, and return a hash of the fields found.
# Pass the filename of the tgz file to query.
sub GetFields { my $file=shift;
my %fields;
# Get basename of the filename.
my ($basename)=('/'.$file)=~m#^/?.*/(.*?)$#;
# Strip out any tar extentions.
$basename=~s/\.(tgz|tar\.gz)$//;
if ($basename=~m/(.*)-(.*)/ ne undef) {
$fields{NAME}=$1;
$fields{VERSION}=$2;
}
else {
$fields{NAME}=$basename;
$fields{VERSION}=1;
}
$fields{ARCH}='i386';
$fields{SUMMARY}='Converted Slackware tgz package';
$fields{DESCRIPTION}=$fields{SUMMARY};
$fields{COPYRIGHT}="unknown";
$fields{RELEASE}=1;
$fields{DISTRIBUTION}="Slackware";
# Now figure out the conffiles. Assume anything in etc/ is a conffile.
# It's a little nasty to do it here, but it's much cleaner than waiting
# until the tar file is unpacked and then doing it.
$fields{CONFFILES}='';
open (FILELIST,"tar zvtf $file | grep etc/ |") || Error("Getting filelist: $!");
while (<FILELIST>) {
# Make sure it's a normal file. This is looking at the
# permissions, and making sure the first character is '-'.
# Ie: -rw-r--r--
if (m:^-:) {
# Strip it down to the filename.
m/^(.*) (.*)$/;
$fields{CONFFILES}.="/$2\n";
}
}
close FILELIST;
# Now get the whole filelist. We have to add leading /'s to the filenames.
$fields{FILELIST}='';
open (FILELIST, "tar ztf $file |");
while (<FILELIST>) {
$fields{FILELIST}.="/$_";
}
close FILELIST;
return %fields;
}
# Handles unpacking of tgz's.
sub Unpack { my ($file)=@_;
SafeSystem ("(cd ..;cat $file) | tar zxpf -","Error unpacking $file\n");
}
1

View File

@@ -1,4 +0,0 @@
use Alien;
use Fromslp;
%fields=From::slp::DecodeFooter(From::slp::GetFooter(shift));

View File

@@ -1 +0,0 @@
#CONFFILES#

View File

@@ -1,54 +0,0 @@
#!/usr/bin/make -f
#
# This is a special rules files for handling alien or binary packages
# Christoph Lameter, October 30, 1996
package=#NAME#
debian/build:
$(checkdir)
touch debian/build
clean:
$(checkdir)
-rm -f debian/build
-rm -rf *~ debian/tmp debian/*~ debian/files*
binary-indep: checkroot debian/build
$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: checkroot debian/build
$(checkdir)
-rm -rf debian/tmp
# Install binary package
install -d debian/tmp
cp -a `ls | grep -v debian` debian/tmp
#
# If you need to move files around in debian/tmp or do some
# binary patching ... Insert it here
#
debstd
dpkg-gencontrol
dpkg --build debian/tmp ..
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
build: debian/build
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot

View File

@@ -1,86 +0,0 @@
#!/usr/bin/perl
#
# Package for converting to .deb file.
# Create debian/* files, either from a patch, or automatically.
sub Convert { my ($workdir,%fields)=@_;
if ($generate && !$single) {
SafeSystem("cp -fa $workdir $workdir.orig", "Error creating $workdir.orig");
}
# Make sure package name is all lower case.
$fields{NAME}=lc($fields{NAME});
# Fix up the description field to Debian standards (indented at
# least one space, no empty lines.)
my $description=undef;
foreach $line (split(/\n/,$fields{DESCRIPTION})) {
$line=~s/\t/ /g; # change tabs to spaces.
$line=~s/\s+$//g; # remove trailing whitespace.
if (!$line) { # empty lines
$line=" .";
}
else { # normal lines
$line=" $line";
}
$description.=$line."\n";
}
chomp $description;
$fields{DESCRIPTION}=$description."\n";
# Do the actual conversion here.
mkdir "$fields{NAME}-$fields{VERSION}/debian",0755
|| Error("Unable to make debian directory");
$patchfile=GetPatch($fields{NAME}) if !$patchfile;
if ($patchfile) {
Patch($patchfile,$workdir);
}
else {
AutoDebianize($workdir,%fields);
}
chmod 0755,"$workdir/debian/rules";
# Make the .orig directory if we were instructed to do so.
if ($single) {
print "Directory $workdir prepared.\n";
}
elsif ($generate) {
print "Directories $workdir and $workdir.orig prepared.\n";
}
}
# Fill out templates to create debian/* files.
# Pass it the work directory, and the type of package we are debianizing.
sub AutoDebianize { my ($workdir,%fields)=@_;
Status("Automatic package debianization");
# Generate some more fields we need.
$fields{DATE}=GetDate();
$fields{EMAIL}=GetEmail();
$fields{USERNAME}=GetUserName();
# Fill out all the templates.
foreach $fn (glob("$libdir/to-$desttype/$filetype/*")) {
my $destfn=$fn;
$destfn=~s#^$libdir/to-$desttype/$filetype/##;
FillOutTemplate($fn,"$workdir/debian/$destfn",%fields);
}
}
# Passed the available info about the package in a hash, return the name of
# the debian package that will be made.
sub GetPackageName { my %fields=@_;
return "$fields{NAME}_$fields{VERSION}-$fields{RELEASE}_$fields{ARCH}.deb";
}
# Build the debian package.
sub Build {
SafeSystem("debian/rules binary","Package build failed.\n");
}
# Install the debian package that is passed.
sub Install { my $package=shift;
SafeSystem("dpkg -i $package");
}
1

View File

@@ -1,72 +0,0 @@
#!/usr/bin/perl
#
# Package for converting to .rpm file.
# Generate the spec file.
sub Convert { my ($workdir,%fields)=@_;
Status("Automatic spec file generation");
# Create some more fields we will need.
my $pwd=`pwd`;
chomp $pwd;
$fields{BUILDROOT}="$pwd/$workdir"; # must be absolute filename.
# Remove directories from the filelist. Place %config in front of files
# that are conffiles.
my @conffiles=split(/\n/,$fields{CONFFILES});
my $filelist;
foreach $fn (split(/\n/,$fields{FILELIST})) {
if ($fn=~m:/$: eq undef) { # not a directory
if (grep(m:^$fn$:,@conffiles)) { # it's a conffile
$filelist.="%config $fn\n";
}
else { # normal file
$filelist.="$fn\n";
}
}
}
$fields{FILELIST}=$filelist;
FillOutTemplate("$libdir/to-$desttype/$filetype/spec",
"$workdir/$fields{NAME}-$fields{VERSION}-$fields{RELEASE}.spec",%fields);
if ($generate) {
print "Directory $workdir prepared.\n";
}
}
# Passed the available info about the package in a hash, return the name of
# the rpm package that will be made.
sub GetPackageName { my %fields=@_;
# Ask rpm how it's set up. We want to know what architecture it will output,
# and where it will place rpms.
my $rpmarch, $rpmdir;
foreach (`rpm --showrc`) {
chomp;
if (/^build arch\s+:\s(.*)$/) {
$rpmarch=$1;
}
elsif (/^rpmdir\s+:\s(.*)$/) {
$rpmdir=$1;
}
}
if (!$rpmarch || !$rpmdir) {
Error("rpm --showrc failed.");
}
return "$rpmdir/$rpmarch/$fields{NAME}-$fields{VERSION}-$fields{RELEASE}.$rpmarch.rpm";
}
# Build a rpm file.
sub Build { my (%fields)=@_;
SafeSystem("rpm -bb $ENV{RPMBUILDOPT} $fields{NAME}-$fields{VERSION}-$fields{RELEASE}.spec",
"Error putting together the RPM package.\n");
}
# Install the passed rpm file.
sub Install { my $package=shift;
SafeSystem("rpm -ivh $ENV{RPMINSTALLOPT} $package");
}
1

View File

@@ -1,27 +0,0 @@
#!/usr/bin/perl
#
# Package for converting to .tgz file.
sub Convert { my ($workdir,%fields)=@_;
# Nothing to do.
}
# Passed the available info about the package in a hash, return the name of
# the tgz package that will be made.
sub GetPackageName { my %fields=@_;
return "$fields{NAME}.tgz";
}
# Build a tgz file.
sub Build { my (%fields)=@_;
SafeSystem("tar czf ../".GetPackageName(%fields)." .");
}
# Install the passed tgz file.
sub Install { my $package=shift;
# Not yet supported. (I really don't like unpacking tgz files into the
# root directory. :-)
print STDERR "Sorry, installing generated .tgz files in not yet supported.\n";
}
1

View File

@@ -1,115 +0,0 @@
--- xf86config-glibc-1.0.0.i386.orig/debian/changelog
+++ xf86config-glibc-1.0.0.i386/debian/changelog
@@ -0,0 +1,10 @@
+xf86config-glibc (1.0.0.i386-1) unstable; urgency=low
+
+ * Added preinst and postrm for xf86config and Card files diversion
+ * Converted from Slackware .tgz binary format to debian
+
+ -- Agustín Martín Domingo <agmartin@aq.upm.es> Thu, 15 Apr 1999 15:47:14 +0200
+
+Local variables:
+mode: debian-changelog
+End:
--- xf86config-glibc-1.0.0.i386.orig/debian/control
+++ xf86config-glibc-1.0.0.i386/debian/control
@@ -0,0 +1,10 @@
+Source: xf86config-glibc
+Section: unknown
+Priority: extra
+Maintainer: Agustín Martín Domingo <agmartin@aq.upm.es>
+
+Package: xf86config-i740g
+Architecture: any
+Depends: ${shlibs:Depends}, xbf-i740-glibc
+Description: xf86config for Intel i740 based graphics cards
+ xf86 configuration tool for Intel i740 chipset based graphic cards
--- xf86config-glibc-1.0.0.i386.orig/debian/copyright
+++ xf86config-glibc-1.0.0.i386/debian/copyright
@@ -0,0 +1,4 @@
+This package was debianized by the alien program by converting
+a binary Slackware tgz Package on Thu, 15 Apr 1999 15:47:14 +0200.
+
+Copyright: Unknown
--- xf86config-glibc-1.0.0.i386.orig/debian/rules
+++ xf86config-glibc-1.0.0.i386/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# debian/rules that uses debhelper and alien
+# GNU copyright 1997 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build:
+ dh_testdir
+ # Nothing to do.
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+
+# Build architecture-independent files here.
+binary-indep: build
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build
+# dh_testversion
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ install -d debian/tmp
+ cp -a `ls |grep -v debian` debian/tmp
+#
+# If you need to move files around in debian/tmp or do some
+# binary patching ... Insert it here
+#
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installinit
+ dh_installcron
+ dh_installmanpages
+# dh_undocumented
+ dh_installchangelogs
+# dh_strip
+ dh_compress
+ dh_fixperms
+ dh_suidregister
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_makeshlibs
+ dh_md5sums
+ dh_builddeb
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- xf86config-glibc-1.0.0.i386.orig/debian/preinst
+++ xf86config-glibc-1.0.0.i386/debian/preinst
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+if [ install = "$1" ]; then
+ dpkg-divert --package xf86config-i740g --add --rename \
+ --divert /usr/X11R6/bin/xf86config.dpkg-old /usr/X11R6/bin/xf86config
+ dpkg-divert --package xf86config-i740g --add --rename \
+ --divert /usr/X11R6/lib/X11/Cards.dpkg-old /usr/X11R6/lib/X11/Cards
+fi
--- xf86config-glibc-1.0.0.i386.orig/debian/postrm
+++ xf86config-glibc-1.0.0.i386/debian/postrm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+if [ remove = "$1" ]; then
+ dpkg-divert --package xf86config-i740g --remove --rename \
+ --divert /usr/X11R6/bin/xf86config.dpkg-old /usr/X11R6/bin/xf86config
+ dpkg-divert --package xf86config-i740g --remove --rename \
+ --divert /usr/X11R6/lib/X11/Cards.dpkg-old /usr/X11R6/lib/X11/Cards
+fi