mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-25 14:00:17 +00:00
Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e745cde2a0 | ||
|
|
5e4e122d58 | ||
|
|
873c3606f3 | ||
|
|
7640cb99d4 | ||
|
|
585fc93270 | ||
|
|
5b49be4d3d | ||
|
|
2dee87ca02 | ||
|
|
5c6bf645b5 | ||
|
|
1ca19300b4 | ||
|
|
9b37ec8545 | ||
|
|
143131c8c0 | ||
|
|
0d765b965d | ||
|
|
efeddebd32 | ||
|
|
3a44b767ac | ||
|
|
291db35466 | ||
|
|
66b2a2a226 | ||
|
|
574490fb79 | ||
|
|
e7e9f10486 | ||
|
|
a320ae144c | ||
|
|
f6529d9be0 | ||
|
|
38bf42863d | ||
|
|
b4bdd3818d | ||
|
|
7e84fd2a26 | ||
|
|
55edc3f59a | ||
|
|
cc5ff87ef6 | ||
|
|
e75140dc5f | ||
|
|
2f50988983 | ||
|
|
6049930109 | ||
|
|
f581595af6 | ||
|
|
72599080d2 |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
debian/changelog merge=dpkg-mergechangelogs
|
||||||
@@ -331,14 +331,18 @@ package was unpacked, it is time now to wipe out the temporary directory.
|
|||||||
sub DESTROY {
|
sub DESTROY {
|
||||||
my $this=shift;
|
my $this=shift;
|
||||||
|
|
||||||
|
my $exitcode=$?;
|
||||||
|
|
||||||
return if (! defined $this->unpacked_tree || $this->unpacked_tree eq '');
|
return if (! defined $this->unpacked_tree || $this->unpacked_tree eq '');
|
||||||
# This should never happen, but it pays to check.
|
# This should never happen, but it pays to check.
|
||||||
if ($this->unpacked_tree eq '/') {
|
if ($this->unpacked_tree eq '/') {
|
||||||
die "alien internal error: unpacked_tree is set to '/'. Please file a bug report!";
|
die "alien internal error: unpacked_tree is set to '/'. Please file a bug report!";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Just in case some dir perms are too screwed up for rm to work and
|
if (-d $this->unpacked_tree) {
|
||||||
# we're not running as root. NB: can't use xargs
|
# Just in case some dir perms are too screwed up for
|
||||||
|
# rm to work and we're not running as root. NB: can't
|
||||||
|
# use xargs
|
||||||
$this->do('find', $this->unpacked_tree, '-type', 'd',
|
$this->do('find', $this->unpacked_tree, '-type', 'd',
|
||||||
'-exec', 'chmod', '755', '{}', ';');
|
'-exec', 'chmod', '755', '{}', ';');
|
||||||
|
|
||||||
@@ -347,6 +351,9 @@ sub DESTROY {
|
|||||||
$this->unpacked_tree('');
|
$this->unpacked_tree('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$?=$exitcode;
|
||||||
|
}
|
||||||
|
|
||||||
=item AUTOLOAD
|
=item AUTOLOAD
|
||||||
|
|
||||||
Handles all fields, by creating accessor methods for them the first time
|
Handles all fields, by creating accessor methods for them the first time
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ sub test {
|
|||||||
return map { s/\n//; $_ }
|
return map { s/\n//; $_ }
|
||||||
grep {
|
grep {
|
||||||
! /unknown-section alien/
|
! /unknown-section alien/
|
||||||
} $this->runpipe(1, "lintian $deb");
|
} $this->runpipe(1, "lintian '$deb'");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return "lintian not available, so not testing";
|
return "lintian not available, so not testing";
|
||||||
@@ -130,7 +130,7 @@ sub getcontrolfile {
|
|||||||
my $file=$this->filename;
|
my $file=$this->filename;
|
||||||
|
|
||||||
if ($this->have_dpkg_deb) {
|
if ($this->have_dpkg_deb) {
|
||||||
return $this->runpipe(1, "dpkg-deb --info $file $controlfile 2>/dev/null");
|
return $this->runpipe(1, "dpkg-deb --info '$file' $controlfile 2>/dev/null");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# Solaris tar doesn't support O
|
# Solaris tar doesn't support O
|
||||||
@@ -139,10 +139,10 @@ sub getcontrolfile {
|
|||||||
|
|
||||||
return "(mkdir /tmp/tar_out.$$ &&".
|
return "(mkdir /tmp/tar_out.$$ &&".
|
||||||
" cd /tmp/tar_out.$$ &&".
|
" cd /tmp/tar_out.$$ &&".
|
||||||
" tar xf - ./$file &&".
|
" tar xf - './$file' &&".
|
||||||
" cat $file; cd /; rm -rf /tmp/tar_out.$$)";
|
" cat '$file'; cd /; rm -rf /tmp/tar_out.$$)";
|
||||||
}
|
}
|
||||||
my $getcontrol = "ar -p $file control.tar.gz | gzip -dc | ".tar_out($controlfile)." 2>/dev/null";
|
my $getcontrol = "ar -p '$file' control.tar.gz | gzip -dc | ".tar_out($controlfile)." 2>/dev/null";
|
||||||
return $this->runpipe(1, $getcontrol);
|
return $this->runpipe(1, $getcontrol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,11 +212,11 @@ sub scan {
|
|||||||
my @filelist;
|
my @filelist;
|
||||||
if ($this->have_dpkg_deb) {
|
if ($this->have_dpkg_deb) {
|
||||||
@filelist=map { chomp; s:\./::; "/$_" }
|
@filelist=map { chomp; s:\./::; "/$_" }
|
||||||
$this->runpipe(0, "dpkg-deb --fsys-tarfile $file | tar tf -");
|
$this->runpipe(0, "dpkg-deb --fsys-tarfile '$file' | tar tf -");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@filelist=map { chomp; s:\./::; "/$_" }
|
@filelist=map { chomp; s:\./::; "/$_" }
|
||||||
$this->runpipe(0, "ar -p $file data.tar.gz | gzip -dc | tar tf -");
|
$this->runpipe(0, "ar -p '$file' data.tar.gz | gzip -dc | tar tf -");
|
||||||
}
|
}
|
||||||
$this->filelist(\@filelist);
|
$this->filelist(\@filelist);
|
||||||
|
|
||||||
@@ -307,7 +307,7 @@ sub prep {
|
|||||||
or die "patch error: $!";
|
or die "patch error: $!";
|
||||||
# Look for .rej files.
|
# Look for .rej files.
|
||||||
die "patch failed with .rej files; giving up"
|
die "patch failed with .rej files; giving up"
|
||||||
if $this->runpipe(1, "find $dir -name \"*.rej\"");
|
if $this->runpipe(1, "find '$dir' -name \"*.rej\"");
|
||||||
$this->do('find', '.', '-name', '*.orig', '-exec', 'rm', '{}', ';');
|
$this->do('find', '.', '-name', '*.orig', '-exec', 'rm', '{}', ';');
|
||||||
$this->do("chmod", 755, "$dir/debian/rules");
|
$this->do("chmod", 755, "$dir/debian/rules");
|
||||||
|
|
||||||
@@ -383,6 +383,11 @@ sub prep {
|
|||||||
close OUT;
|
close OUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Use debhelper v7
|
||||||
|
open (OUT, ">$dir/debian/compat") || die "$dir/debian/compat: $!";
|
||||||
|
print OUT "7\n";
|
||||||
|
close OUT;
|
||||||
|
|
||||||
# A minimal rules file.
|
# A minimal rules file.
|
||||||
open (OUT, ">$dir/debian/rules") || die "$dir/debian/rules: $!";
|
open (OUT, ">$dir/debian/rules") || die "$dir/debian/rules: $!";
|
||||||
my $fixpermscomment = $this->fixperms ? "" : "#";
|
my $fixpermscomment = $this->fixperms ? "" : "#";
|
||||||
@@ -390,12 +395,6 @@ sub prep {
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# debian/rules for alien
|
# debian/rules for alien
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
|
||||||
#export DH_VERBOSE=1
|
|
||||||
|
|
||||||
# Use v4 compatability mode, so ldconfig gets added to maint scripts.
|
|
||||||
export DH_COMPAT=4
|
|
||||||
|
|
||||||
PACKAGE=\$(shell dh_listpackages)
|
PACKAGE=\$(shell dh_listpackages)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -411,7 +410,7 @@ binary-indep: build
|
|||||||
binary-arch: build
|
binary-arch: build
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_clean -k -d
|
dh_prep
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
|
|
||||||
dh_installdocs
|
dh_installdocs
|
||||||
@@ -489,12 +488,26 @@ Build a deb.
|
|||||||
sub build {
|
sub build {
|
||||||
my $this=shift;
|
my $this=shift;
|
||||||
|
|
||||||
|
# Detect architecture mismatch and abort with a comprehensible
|
||||||
|
# error message.
|
||||||
|
my $arch=$this->arch;
|
||||||
|
if ($arch ne 'all') {
|
||||||
|
my $ret=system("dpkg-architecture", "-i".$arch);
|
||||||
|
if ($ret != 0) {
|
||||||
|
die $this->filename." is for architecture ".$this->arch." ; the package cannot be built on this system"."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chdir $this->unpacked_tree;
|
chdir $this->unpacked_tree;
|
||||||
my $log=$this->runpipe(1, "debian/rules binary 2>&1");
|
my $log=$this->runpipe(1, "debian/rules binary 2>&1");
|
||||||
if ($?) {
|
chdir "..";
|
||||||
|
my $err=$?;
|
||||||
|
if ($err) {
|
||||||
|
if (! defined $log) {
|
||||||
|
die "Package build failed; could not run generated debian/rules file.\n";
|
||||||
|
}
|
||||||
die "Package build failed. Here's the log:\n", $log;
|
die "Package build failed. Here's the log:\n", $log;
|
||||||
}
|
}
|
||||||
chdir "..";
|
|
||||||
|
|
||||||
return $this->name."_".$this->version."-".$this->release."_".$this->arch.".deb";
|
return $this->name."_".$this->version."-".$this->release."_".$this->arch.".deb";
|
||||||
}
|
}
|
||||||
@@ -583,6 +596,8 @@ sub version {
|
|||||||
# get
|
# get
|
||||||
return unless defined wantarray; # optimization
|
return unless defined wantarray; # optimization
|
||||||
$_=$this->{version};
|
$_=$this->{version};
|
||||||
|
# filter out some characters not allowed in debian versions
|
||||||
|
s/[^-.+~:A-Za-z0-9]//g; # see lib/dpkg/parsehelp.c parseversion
|
||||||
# Make sure the version contains digets.
|
# Make sure the version contains digets.
|
||||||
unless (/[0-9]/) {
|
unless (/[0-9]/) {
|
||||||
# Drat. Well, add some. dpkg-deb won't work
|
# Drat. Well, add some. dpkg-deb won't work
|
||||||
@@ -734,7 +749,7 @@ sub postinst {
|
|||||||
return $postinst unless ref $owninfo;
|
return $postinst unless ref $owninfo;
|
||||||
|
|
||||||
# If there is no postinst, let's make one up..
|
# If there is no postinst, let's make one up..
|
||||||
$postinst="#!/bin/sh\n" unless length $postinst;
|
$postinst="#!/bin/sh\n" unless defined $postinst && length $postinst;
|
||||||
|
|
||||||
return $postinst unless %$owninfo;
|
return $postinst unless %$owninfo;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ sub checkfile {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $file=shift;
|
my $file=shift;
|
||||||
return unless $file =~ m/^lsb-.*\.rpm$/;
|
return unless $file =~ m/^lsb-.*\.rpm$/;
|
||||||
my @deps=$this->runpipe(1, "LANG=C rpm -qp -R $file");
|
my @deps=$this->runpipe(1, "LANG=C rpm -qp -R '$file'");
|
||||||
return 1 if grep { s/\s+//g; $_ eq 'lsb' } @deps;
|
return 1 if grep { s/\s+//g; $_ eq 'lsb' } @deps;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,13 +76,15 @@ sub scan {
|
|||||||
POSTIN => 'postinst',
|
POSTIN => 'postinst',
|
||||||
PREUN => 'prerm',
|
PREUN => 'prerm',
|
||||||
POSTUN => 'postrm',
|
POSTUN => 'postrm',
|
||||||
|
LICENSE => 'copyright',
|
||||||
);
|
);
|
||||||
|
|
||||||
# Use --queryformat to pull out all the fields we need.
|
# Use --queryformat to pull out all the fields we need.
|
||||||
foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT
|
foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT
|
||||||
SUMMARY DESCRIPTION COPYRIGHT PREFIXES},
|
SUMMARY DESCRIPTION PREFIXES},
|
||||||
keys(%fieldtrans)) {
|
keys(%fieldtrans)) {
|
||||||
my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file");
|
my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} '$file'");
|
||||||
|
next if $? || $value eq '(none)';
|
||||||
my $key;
|
my $key;
|
||||||
if (exists $fieldtrans{$field}) {
|
if (exists $fieldtrans{$field}) {
|
||||||
$key=$fieldtrans{$field};
|
$key=$fieldtrans{$field};
|
||||||
@@ -90,21 +92,20 @@ sub scan {
|
|||||||
else {
|
else {
|
||||||
$key=lc($field);
|
$key=lc($field);
|
||||||
}
|
}
|
||||||
$value='' if $value eq '(none)';
|
|
||||||
$this->$key($value);
|
$this->$key($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get the conffiles list.
|
# Get the conffiles list.
|
||||||
$this->conffiles([map { chomp; $_ } $this->runpipe(0, "LANG=C rpm -qcp $file")]);
|
$this->conffiles([map { chomp; $_ } $this->runpipe(0, "LANG=C rpm -qcp '$file'")]);
|
||||||
if (defined $this->conffiles->[0] &&
|
if (defined $this->conffiles->[0] &&
|
||||||
$this->conffiles->[0] eq '(contains no files)') {
|
$this->conffiles->[0] eq '(contains no files)') {
|
||||||
$this->conffiles([]);
|
$this->conffiles([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->binary_info(scalar $this->runpipe(0, "rpm -qpi $file"));
|
$this->binary_info(scalar $this->runpipe(0, "rpm -qpi '$file'"));
|
||||||
|
|
||||||
# Get the filelist.
|
# Get the filelist.
|
||||||
$this->filelist([map { chomp; $_ } $this->runpipe(0, "LANG=C rpm -qpl $file")]);
|
$this->filelist([map { chomp; $_ } $this->runpipe(0, "LANG=C rpm -qpl '$file'")]);
|
||||||
if (defined $this->filelist->[0] &&
|
if (defined $this->filelist->[0] &&
|
||||||
$this->filelist->[0] eq '(contains no files)') {
|
$this->filelist->[0] eq '(contains no files)') {
|
||||||
$this->filelist([]);
|
$this->filelist([]);
|
||||||
@@ -122,12 +123,18 @@ sub scan {
|
|||||||
$this->summary('Converted RPM package');
|
$this->summary('Converted RPM package');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unless (defined $this->copyright) {
|
|
||||||
$this->copyright('unknown');
|
|
||||||
}
|
|
||||||
unless (defined $this->description) {
|
unless (defined $this->description) {
|
||||||
$this->description($this->summary);
|
$this->description($this->summary);
|
||||||
}
|
}
|
||||||
|
unless (defined $this->copyright) {
|
||||||
|
# Older rpms have no licence tag, but have a copyright.
|
||||||
|
$this->copyright($this->runpipe(0, "LANG=C rpm -qp --queryformat \%{COPYRIGHT} '$file'"));
|
||||||
|
|
||||||
|
# Fallback.
|
||||||
|
if (! $this->copyright) {
|
||||||
|
$this->copyright('unknown');
|
||||||
|
}
|
||||||
|
}
|
||||||
if (! defined $this->release || ! defined $this->version ||
|
if (! defined $this->release || ! defined $this->version ||
|
||||||
! defined $this->name) {
|
! defined $this->name) {
|
||||||
die "Error querying rpm file";
|
die "Error querying rpm file";
|
||||||
@@ -152,7 +159,13 @@ sub unpack {
|
|||||||
$this->SUPER::unpack(@_);
|
$this->SUPER::unpack(@_);
|
||||||
my $workdir=$this->unpacked_tree;
|
my $workdir=$this->unpacked_tree;
|
||||||
|
|
||||||
$this->do("rpm2cpio ".$this->filename." | (cd $workdir; cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1")
|
# Check if we need to use lzma to uncompress the cpio archive
|
||||||
|
my $decomp='';
|
||||||
|
if ($this->do("rpm2cpio ".$this->filename." | lzma -t -q > /dev/null 2>&1")) {
|
||||||
|
$decomp = 'lzma -d -q |';
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->do("rpm2cpio ".$this->filename." | (cd $workdir; $decomp cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1")
|
||||||
or die "Unpacking of '".$this->filename."' failed";
|
or die "Unpacking of '".$this->filename."' failed";
|
||||||
|
|
||||||
# cpio does not necessarily store all parent directories in an
|
# cpio does not necessarily store all parent directories in an
|
||||||
@@ -161,7 +174,7 @@ sub unpack {
|
|||||||
# Find those directories and make them mode 755, which is more
|
# Find those directories and make them mode 755, which is more
|
||||||
# reasonable.
|
# reasonable.
|
||||||
my %seenfiles;
|
my %seenfiles;
|
||||||
open (RPMLIST, "rpm2cpio ".$this->filename." | cpio -it --quiet |")
|
open (RPMLIST, "rpm2cpio ".$this->filename." | $decomp cpio -it --quiet |")
|
||||||
or die "File list of '".$this->filename."' failed";
|
or die "File list of '".$this->filename."' failed";
|
||||||
while (<RPMLIST>) {
|
while (<RPMLIST>) {
|
||||||
chomp;
|
chomp;
|
||||||
@@ -258,9 +271,13 @@ sub unpack {
|
|||||||
}
|
}
|
||||||
$gid=0;
|
$gid=0;
|
||||||
}
|
}
|
||||||
if (defined($owninfo{$file}) && ($mode & 07000 > 0)) {
|
if (defined($owninfo{$file}) && (($mode & 07000) > 0)) {
|
||||||
$modeinfo{$file} = sprintf "%lo", $mode;
|
$modeinfo{$file} = sprintf "%lo", $mode;
|
||||||
}
|
}
|
||||||
|
# Note that ghost files exist in the metadata but not
|
||||||
|
# in the cpio archive, so check that the file exists
|
||||||
|
# before trying to access it
|
||||||
|
if (-e "$workdir/$file") {
|
||||||
if ($> == 0) {
|
if ($> == 0) {
|
||||||
$this->do("chown", "$uid:$gid", "$workdir/$file")
|
$this->do("chown", "$uid:$gid", "$workdir/$file")
|
||||||
|| die "failed chowning $file to $uid\:$gid\: $!";
|
|| die "failed chowning $file to $uid\:$gid\: $!";
|
||||||
@@ -268,6 +285,7 @@ sub unpack {
|
|||||||
$this->do("chmod", sprintf("%lo", $mode), "$workdir/$file")
|
$this->do("chmod", sprintf("%lo", $mode), "$workdir/$file")
|
||||||
|| die "failed changing mode of $file to $mode\: $!";
|
|| die "failed changing mode of $file to $mode\: $!";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->owninfo(\%owninfo);
|
$this->owninfo(\%owninfo);
|
||||||
$this->modeinfo(\%modeinfo);
|
$this->modeinfo(\%modeinfo);
|
||||||
|
|
||||||
@@ -406,7 +424,7 @@ sub build {
|
|||||||
$opts="--buildarch ".$this->arch;
|
$opts="--buildarch ".$this->arch;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# Presumably we're delaing with rpm 3.0 or above, which
|
# Presumably we're dealing with rpm 3.0 or above, which
|
||||||
# doesn't output rpmdir in any format I'd care to try to
|
# doesn't output rpmdir in any format I'd care to try to
|
||||||
# parse. Instead, rpm is now of a late enough version to
|
# parse. Instead, rpm is now of a late enough version to
|
||||||
# notice the %define's in the spec file, that will make the
|
# notice the %define's in the spec file, that will make the
|
||||||
@@ -421,7 +439,7 @@ sub build {
|
|||||||
$opts.=" $ENV{RPMBUILDOPT}" if exists $ENV{RPMBUILDOPT};
|
$opts.=" $ENV{RPMBUILDOPT}" if exists $ENV{RPMBUILDOPT};
|
||||||
my $pwd=`pwd`;
|
my $pwd=`pwd`;
|
||||||
chomp $pwd;
|
chomp $pwd;
|
||||||
my $command="cd $dir; $buildcmd --buildroot=$pwd/$dir -bb $opts ".$this->name."-".$this->version."-".$this->release.".spec";
|
my $command="cd $dir; $buildcmd --buildroot='$pwd/$dir' -bb $opts '".$this->name."-".$this->version."-".$this->release.".spec'";
|
||||||
my $log=$this->runpipe(1, "$command 2>&1");
|
my $log=$this->runpipe(1, "$command 2>&1");
|
||||||
if ($?) {
|
if ($?) {
|
||||||
die "Package build failed. Here's the log of the command ($command):\n", $log;
|
die "Package build failed. Here's the log of the command ($command):\n", $log;
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ sub scan {
|
|||||||
# Read in the file list.
|
# Read in the file list.
|
||||||
my @filelist;
|
my @filelist;
|
||||||
# FIXME: support gzip files too!
|
# FIXME: support gzip files too!
|
||||||
foreach ($this->runpipe(0, "bzip2 -d < $file | tar -tf -")) {
|
foreach ($this->runpipe(0, "bzip2 -d < '$file' | tar -tf -")) {
|
||||||
chomp;
|
chomp;
|
||||||
s:^\./:/:;
|
s:^\./:/:;
|
||||||
$_="/$_" unless m:^/:;
|
$_="/$_" unless m:^/:;
|
||||||
@@ -179,7 +179,7 @@ sub scan {
|
|||||||
$this->distribution('Stampede');
|
$this->distribution('Stampede');
|
||||||
$this->origformat('slp');
|
$this->origformat('slp');
|
||||||
$this->changelogtext('');
|
$this->changelogtext('');
|
||||||
$this->binary_info($this->runpipe(0, "ls -l $file"));
|
$this->binary_info($this->runpipe(0, "ls -l '$file'"));
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ sub scan {
|
|||||||
$this->group("unknown");
|
$this->group("unknown");
|
||||||
$this->origformat('tgz');
|
$this->origformat('tgz');
|
||||||
$this->changelogtext('');
|
$this->changelogtext('');
|
||||||
$this->binary_info($this->runpipe(0, "ls -l $file"));
|
$this->binary_info($this->runpipe(0, "ls -l '$file'"));
|
||||||
|
|
||||||
# Now figure out the conffiles. Assume anything in etc/ is a
|
# Now figure out the conffiles. Assume anything in etc/ is a
|
||||||
# conffile.
|
# conffile.
|
||||||
@@ -152,7 +152,7 @@ sub scan {
|
|||||||
|
|
||||||
# Now get the scripts.
|
# Now get the scripts.
|
||||||
foreach my $script (keys %{scripttrans()}) {
|
foreach my $script (keys %{scripttrans()}) {
|
||||||
$this->$script(scalar $this->runpipe(1, "tar Oxf $file install/${scripttrans()}{$script} 2>/dev/null"));
|
$this->$script(scalar $this->runpipe(1, "tar Oxf '$file' install/${scripttrans()}{$script} 2>/dev/null"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
31
alien.pl
31
alien.pl
@@ -67,6 +67,9 @@ standard linux directory tree. Do NOT run B<alien> on tar files with source
|
|||||||
code in them, unless you want this source code to be installed in your root
|
code in them, unless you want this source code to be installed in your root
|
||||||
directory when you install the package!
|
directory when you install the package!
|
||||||
|
|
||||||
|
When using B<alien> to convert a tgz package, all files in /etc in are assumed
|
||||||
|
to be configuration files.
|
||||||
|
|
||||||
=item pkg
|
=item pkg
|
||||||
|
|
||||||
To manipulate packages in the Solaris pkg format (which is really the SV
|
To manipulate packages in the Solaris pkg format (which is really the SV
|
||||||
@@ -127,6 +130,16 @@ Like B<-g>, but do not generate the packagename.orig directory. This is only
|
|||||||
useful when you are very low on disk space and are generating a debian
|
useful when you are very low on disk space and are generating a debian
|
||||||
package.
|
package.
|
||||||
|
|
||||||
|
=item B<-c>, B<--scripts>
|
||||||
|
|
||||||
|
Try to convert the scripts that are meant to be run when the
|
||||||
|
package is installed and removed. Use this with caution, because these
|
||||||
|
scripts might be designed to work on a system unlike your own, and could
|
||||||
|
cause problems. It is recommended that you examine the scripts by hand
|
||||||
|
and check to see what they do before using this option.
|
||||||
|
|
||||||
|
This is enabled by default when converting from lsb packages.
|
||||||
|
|
||||||
=item B<--patch=>I<patch>
|
=item B<--patch=>I<patch>
|
||||||
|
|
||||||
Specify the patch to be used instead of automatically looking the patch up
|
Specify the patch to be used instead of automatically looking the patch up
|
||||||
@@ -156,16 +169,6 @@ information.
|
|||||||
|
|
||||||
Note that without an argument, this displays the version of B<alien> instead.
|
Note that without an argument, this displays the version of B<alien> instead.
|
||||||
|
|
||||||
=item B<-c>, B<--scripts>
|
|
||||||
|
|
||||||
Try to convert the scripts that are meant to be run when the
|
|
||||||
package is installed and removed. Use this with caution, because these
|
|
||||||
scripts might be designed to work on a system unlike your own, and could
|
|
||||||
cause problems. It is recommended that you examine the scripts by hand
|
|
||||||
and check to see what they do before using this option.
|
|
||||||
|
|
||||||
This is enabled by default when converting from lsb packages.
|
|
||||||
|
|
||||||
=item B<-T>, B<--test>
|
=item B<-T>, B<--test>
|
||||||
|
|
||||||
Test the generated packages. Currently this is only supported for debian
|
Test the generated packages. Currently this is only supported for debian
|
||||||
@@ -258,14 +261,6 @@ included in generated debian packages.
|
|||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 NOTES
|
|
||||||
|
|
||||||
When using B<alien> to convert a tgz package, all files in /etc in are assumed
|
|
||||||
to be configuration files.
|
|
||||||
|
|
||||||
If B<alien> is not run as root, the files in the generated package will have
|
|
||||||
incorrect owners and permissions.
|
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
B<alien> was written by Christoph Lameter, B<<clameter@debian.org>>.
|
B<alien> was written by Christoph Lameter, B<<clameter@debian.org>>.
|
||||||
|
|||||||
63
debian/changelog
vendored
63
debian/changelog
vendored
@@ -1,3 +1,66 @@
|
|||||||
|
alien (8.86) unstable; urgency=low
|
||||||
|
|
||||||
|
* Filter out illegal characters in version number when building a deb.
|
||||||
|
Closes: #648531
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sat, 12 Nov 2011 13:12:35 -0400
|
||||||
|
|
||||||
|
alien (8.85) unstable; urgency=low
|
||||||
|
|
||||||
|
* Avoid breaking on spaces in filenames. Closes: #618636
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 19 Jun 2011 15:43:49 -0400
|
||||||
|
|
||||||
|
alien (8.84) unstable; urgency=low
|
||||||
|
|
||||||
|
* Silence error message when deleting build tree after making an rpm,
|
||||||
|
if rpmbuild has already deleted it. Closes: #622846
|
||||||
|
* Squash an uninitialized value when creating a deb.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Fri, 15 Apr 2011 14:13:20 -0400
|
||||||
|
|
||||||
|
alien (8.83) unstable; urgency=low
|
||||||
|
|
||||||
|
* Correct handling of arch all packages in deb arch check. Closes: #596209
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 09 Sep 2010 08:24:58 -0400
|
||||||
|
|
||||||
|
alien (8.82) unstable; urgency=low
|
||||||
|
|
||||||
|
* Use debhelper compat level v7 when building packages. All changes
|
||||||
|
since v4 seem safe for alien's generated rules files.
|
||||||
|
* Use dh_prep instead of deprecated dh_clean -k.
|
||||||
|
* Print a nice error message when attempting to build a deb from a package
|
||||||
|
of an unsupported architecture. Closes: #592625
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Mon, 30 Aug 2010 17:04:24 -0400
|
||||||
|
|
||||||
|
alien (8.81) unstable; urgency=low
|
||||||
|
|
||||||
|
* Avoid uninitialized value warning when debian/rules fails to run
|
||||||
|
due to alien being run in a noexec directory. Closes: #579216
|
||||||
|
* Prevent DESTROY stomping on alien's exit code sometimes.
|
||||||
|
* Support extracting lzma compressed RPMs.
|
||||||
|
(Patch by unnamed person on some bug tracking system I don't frequent.)
|
||||||
|
* Suggest lzma. If not installed, alien will still fail to decompress
|
||||||
|
RPMs using it, but will support most rpms, which are not.
|
||||||
|
* Fix precedence problem that prevented alien from preserving permissions
|
||||||
|
of suid/sgid binaries that are not owned by root.
|
||||||
|
(Patch by Duane Waddle, on a bug tracking system I don't frequent, that
|
||||||
|
was about the "expire" it 4 days from now. We got lucky Duane, but please
|
||||||
|
use the Debian BTS next time!)
|
||||||
|
* Support RPMs containing ghost files.
|
||||||
|
(Patch by Ben Webb, who would get his patches applied quicker if he
|
||||||
|
actually communicated them to the program's author.)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Mon, 17 May 2010 20:56:59 -0400
|
||||||
|
|
||||||
|
alien (8.80) unstable; urgency=low
|
||||||
|
|
||||||
|
* Support querying rpm LICENSE field. (Alexey Khoroshilov)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 18 Apr 2010 15:44:52 -0400
|
||||||
|
|
||||||
alien (8.79) unstable; urgency=low
|
alien (8.79) unstable; urgency=low
|
||||||
|
|
||||||
* Typo. Closes: #554379
|
* Typo. Closes: #554379
|
||||||
|
|||||||
6
debian/control
vendored
6
debian/control
vendored
@@ -3,15 +3,15 @@ Section: admin
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 7.0.50)
|
Build-Depends: debhelper (>= 7.0.50)
|
||||||
Maintainer: Joey Hess <joeyh@debian.org>
|
Maintainer: Joey Hess <joeyh@debian.org>
|
||||||
Standards-Version: 3.8.3
|
Standards-Version: 3.9.2
|
||||||
Vcs-Git: git://git.kitenet.net/alien
|
Vcs-Git: git://git.kitenet.net/alien
|
||||||
Homepage: http://kitenet.net/~joey/code/alien/
|
Homepage: http://kitenet.net/~joey/code/alien/
|
||||||
|
|
||||||
Package: alien
|
Package: alien
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Section: admin
|
Section: admin
|
||||||
Depends: debhelper (>= 3), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio
|
Depends: debhelper (>= 7), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio
|
||||||
Suggests: patch, bzip2, lsb-rpm, lintian
|
Suggests: patch, bzip2, lsb-rpm, lintian, lzma
|
||||||
Description: convert and install rpm and other packages
|
Description: convert and install rpm and other packages
|
||||||
Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages
|
Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages
|
||||||
into Debian packages, which can be installed with dpkg.
|
into Debian packages, which can be installed with dpkg.
|
||||||
|
|||||||
40
debian/copyright
vendored
40
debian/copyright
vendored
@@ -1,35 +1,13 @@
|
|||||||
This is a program originally written by Christoph Lameter
|
Format: http://dep.debian.net/deps/dep5/
|
||||||
<clameter@debian.org>.
|
Source: native package
|
||||||
|
|
||||||
Deb to rpm conversion code was taken from the Martian program by
|
|
||||||
Randolph Chung <randolph@tausq.org>.
|
|
||||||
|
|
||||||
The Solaris pkg code was written by Mark A. Hershberger
|
|
||||||
<mah@everybody.org>.
|
|
||||||
|
|
||||||
This program is now maintained by Joey Hess <joeyh@debian.org>.
|
|
||||||
|
|
||||||
Copyright 1996, 1997 Christoph Lameter
|
|
||||||
Portions copyright 1997 Randolph Chung
|
|
||||||
Portions copyright 2001 Mark A. Hershberger
|
|
||||||
Copyright 1997-2007 Joey Hess
|
|
||||||
|
|
||||||
License:
|
|
||||||
|
|
||||||
alien is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright:
|
||||||
|
1996, 1997 Christoph Lameter
|
||||||
|
1997 Randolph Chung
|
||||||
|
2001 Mark A. Hershberger
|
||||||
|
1997-2011 Joey Hess
|
||||||
|
License: GPL-2+
|
||||||
On Debian systems, the complete text of the GPL can be found in
|
On Debian systems, the complete text of the GPL can be found in
|
||||||
/usr/share/common-licenses/GPL.
|
/usr/share/common-licenses/GPL.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user