mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Compare commits
97 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb351ddbc8 | ||
|
|
3572ac62b9 | ||
|
|
6443b942ab | ||
|
|
919297f3d1 | ||
|
|
22709da70e | ||
|
|
06ae0587ac | ||
|
|
c1b64b0c48 | ||
|
|
93ad8ae367 | ||
|
|
d3750a8156 | ||
|
|
7a1afcfb97 | ||
|
|
2999238f34 | ||
|
|
887717f304 | ||
|
|
9cb511802b | ||
|
|
6f5a303f3b | ||
|
|
92933477e6 | ||
|
|
53751ccbbf | ||
|
|
41fc0d549f | ||
|
|
b1bd50cc90 | ||
|
|
dd38b4e86d | ||
|
|
7aee419bd2 | ||
|
|
db4ea6fa4a | ||
|
|
f545de15f5 | ||
|
|
2fb28d27d2 | ||
|
|
363deec1c6 | ||
|
|
b69f536367 | ||
|
|
f717997da1 | ||
|
|
3faa48b23f | ||
|
|
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 | ||
|
|
166d384024 | ||
|
|
140075f2d6 | ||
|
|
7ade57f401 | ||
|
|
577e2b11e2 | ||
|
|
72bd91a7f4 | ||
|
|
dc38bbb9e1 | ||
|
|
6ab9218809 | ||
|
|
9c28b11e6c | ||
|
|
e14d223117 | ||
|
|
f456bbf8b6 | ||
|
|
78734c0523 | ||
|
|
f680d3af91 | ||
|
|
5b605e1960 | ||
|
|
cbf330f982 | ||
|
|
bcd8dae206 | ||
|
|
edcd96f80f | ||
|
|
c21645ddfa | ||
|
|
0f8fa0df54 | ||
|
|
2a84d6e8ec | ||
|
|
66a1247dfd | ||
|
|
e921e1417f | ||
|
|
d15598e944 | ||
|
|
ee792cb76c | ||
|
|
ecabe240bc | ||
|
|
b2421b584a | ||
|
|
7893ffb4ed | ||
|
|
5e1d2c9fa4 | ||
|
|
3c8631f8fd | ||
|
|
17bcd710f7 | ||
|
|
ac38739a74 | ||
|
|
dbf7fdfa5b | ||
|
|
15b2f7ff92 | ||
|
|
7a06220ed7 | ||
|
|
d39d884f1b | ||
|
|
9edefc1c48 | ||
|
|
13b74f3141 | ||
|
|
6230493dfe | ||
|
|
cfc242e886 | ||
|
|
ffcb91fa04 | ||
|
|
f0c859c1c4 |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
debian/changelog merge=dpkg-mergechangelogs
|
||||||
@@ -331,20 +331,27 @@ 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', '{}', ';');
|
||||||
|
|
||||||
$this->do('rm', '-rf', $this->unpacked_tree)
|
$this->do('rm', '-rf', $this->unpacked_tree)
|
||||||
or die "unable to delete temporary directory '".$this->unpacked_tree."': $!";
|
or die "unable to delete temporary directory '".$this->unpacked_tree."': $!";
|
||||||
$this->unpacked_tree('');
|
$this->unpacked_tree('');
|
||||||
|
}
|
||||||
|
|
||||||
|
$?=$exitcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item AUTOLOAD
|
=item AUTOLOAD
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ Alien::Package::Deb - an object that represents a deb package
|
|||||||
package Alien::Package::Deb;
|
package Alien::Package::Deb;
|
||||||
use strict;
|
use strict;
|
||||||
use base qw(Alien::Package);
|
use base qw(Alien::Package);
|
||||||
|
use List::Util qw(first);
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
@@ -23,6 +24,10 @@ Alien::Package.
|
|||||||
|
|
||||||
Set to a true value if dpkg-deb is available.
|
Set to a true value if dpkg-deb is available.
|
||||||
|
|
||||||
|
=item deb_member_list
|
||||||
|
|
||||||
|
Set to the list of member names in the deb package.
|
||||||
|
|
||||||
=item dirtrans
|
=item dirtrans
|
||||||
|
|
||||||
After the build stage, set to a hash reference of the directories we moved
|
After the build stage, set to a hash reference of the directories we moved
|
||||||
@@ -87,8 +92,11 @@ sub install {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $deb=shift;
|
my $deb=shift;
|
||||||
|
|
||||||
|
my $v=$Alien::Package::verbose;
|
||||||
|
$Alien::Package::verbose=2;
|
||||||
$this->do("dpkg", "--no-force-overwrite", "-i", $deb)
|
$this->do("dpkg", "--no-force-overwrite", "-i", $deb)
|
||||||
or die "Unable to install";
|
or die "Unable to install";
|
||||||
|
$Alien::Package::verbose=$v;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item test
|
=item test
|
||||||
@@ -107,13 +115,33 @@ 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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=item get_deb_member_list
|
||||||
|
|
||||||
|
Helper method. Pass it the name of the deb and it will return the list of
|
||||||
|
ar members.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub get_deb_member_list {
|
||||||
|
my $this=shift;
|
||||||
|
my $file=$this->filename;
|
||||||
|
my $members=$this->deb_member_list;
|
||||||
|
|
||||||
|
unless (defined $members) {
|
||||||
|
$members = [ map { chomp; $_ } $this->runpipe(1, "ar -t '$file'") ];
|
||||||
|
$this->deb_member_list($members);
|
||||||
|
}
|
||||||
|
|
||||||
|
return @{$members};
|
||||||
|
}
|
||||||
|
|
||||||
=item getcontrolfile
|
=item getcontrolfile
|
||||||
|
|
||||||
Helper method. Pass it the name of a control file, and it will pull it out
|
Helper method. Pass it the name of a control file, and it will pull it out
|
||||||
@@ -127,7 +155,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
|
||||||
@@ -136,14 +164,61 @@ 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 $controlcomp;
|
||||||
|
my $controlmember = first { /^control\.tar/ }
|
||||||
|
$this->get_deb_member_list;
|
||||||
|
if (! defined $controlmember) {
|
||||||
|
die 'Cannot find control member!';
|
||||||
|
} elsif ($controlmember eq 'control.tar.gz') {
|
||||||
|
$controlcomp = 'gzip -dc';
|
||||||
|
} elsif ($controlmember eq 'control.tar.xz') {
|
||||||
|
$controlcomp = 'xz -dc';
|
||||||
|
} elsif ($controlmember eq 'control.tar') {
|
||||||
|
$controlcomp = 'cat';
|
||||||
|
} else {
|
||||||
|
die 'Unknown control member!';
|
||||||
|
}
|
||||||
|
my $getcontrol = "ar -p '$file' $controlmember | $controlcomp | ".tar_out($controlfile)." 2>/dev/null";
|
||||||
return $this->runpipe(1, $getcontrol);
|
return $this->runpipe(1, $getcontrol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=item get_datamember_cmd
|
||||||
|
|
||||||
|
Helper method. Pass it the name of the deb and it will return the raw
|
||||||
|
command needed to extract the data.tar member.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub get_datamember_cmd {
|
||||||
|
my $this=shift;
|
||||||
|
my $file=$this->filename;
|
||||||
|
|
||||||
|
my $datacomp;
|
||||||
|
my $datamember = first { /^data\.tar/ }
|
||||||
|
$this->get_deb_member_list;
|
||||||
|
if (! defined $datamember) {
|
||||||
|
die 'Cannot find data member!';
|
||||||
|
} elsif ($datamember eq 'data.tar.gz') {
|
||||||
|
$datacomp = 'gzip -dc';
|
||||||
|
} elsif ($datamember eq 'data.tar.bz2') {
|
||||||
|
$datacomp = 'bzip2 -dc';
|
||||||
|
} elsif ($datamember eq 'data.tar.xz') {
|
||||||
|
$datacomp = 'xz -dc';
|
||||||
|
} elsif ($datamember eq 'data.tar.lzma') {
|
||||||
|
$datacomp = 'xz -dc';
|
||||||
|
} elsif ($datamember eq 'data.tar') {
|
||||||
|
$datacomp = 'cat';
|
||||||
|
} else {
|
||||||
|
die 'Unknown data member!';
|
||||||
|
}
|
||||||
|
|
||||||
|
return "ar -p '$file' $datamember | $datacomp";
|
||||||
|
}
|
||||||
|
|
||||||
=item scan
|
=item scan
|
||||||
|
|
||||||
Implement the scan method to read a deb file.
|
Implement the scan method to read a deb file.
|
||||||
@@ -206,15 +281,15 @@ sub scan {
|
|||||||
|
|
||||||
# Read in the list of all files.
|
# Read in the list of all files.
|
||||||
# Note that tar doesn't supply a leading '/', so we have to add that.
|
# Note that tar doesn't supply a leading '/', so we have to add that.
|
||||||
my @filelist;
|
my $datamember_cmd;
|
||||||
if ($this->have_dpkg_deb) {
|
if ($this->have_dpkg_deb) {
|
||||||
@filelist=map { chomp; s:\./::; "/$_" }
|
$datamember_cmd = "dpkg-deb --fsys-tarfile '$file'";
|
||||||
$this->runpipe(0, "dpkg-deb --fsys-tarfile $file | tar tf -");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@filelist=map { chomp; s:\./::; "/$_" }
|
$datamember_cmd = $this->get_datamember_cmd($file);
|
||||||
$this->runpipe(0, "ar -p $file data.tar.gz | gzip -dc | tar tf -");
|
|
||||||
}
|
}
|
||||||
|
my @filelist=map { chomp; s:\./::; "/$_" }
|
||||||
|
$this->runpipe(0, "$datamember_cmd | tar tf -");
|
||||||
$this->filelist(\@filelist);
|
$this->filelist(\@filelist);
|
||||||
|
|
||||||
# Read in the scripts, if any.
|
# Read in the scripts, if any.
|
||||||
@@ -241,7 +316,9 @@ sub unpack {
|
|||||||
or die "Unpacking of '$file' failed: $!";
|
or die "Unpacking of '$file' failed: $!";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->do("ar -p $file data.tar.gz | gzip -dc | (cd ".$this->unpacked_tree."; tar xpf -)")
|
my $datamember_cmd = $this->get_datamember_cmd($file);
|
||||||
|
|
||||||
|
$this->do("$datamember_cmd | (cd ".$this->unpacked_tree."; tar xpf -)")
|
||||||
or die "Unpacking of '$file' failed: $!";
|
or die "Unpacking of '$file' failed: $!";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -304,7 +381,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");
|
||||||
|
|
||||||
@@ -314,6 +391,7 @@ sub prep {
|
|||||||
my $line=<$changelog>;
|
my $line=<$changelog>;
|
||||||
if ($line=~/^[^ ]+\s+\(([^)]+)\)\s/) {
|
if ($line=~/^[^ ]+\s+\(([^)]+)\)\s/) {
|
||||||
my $version=$1;
|
my $version=$1;
|
||||||
|
$version=~s/\s+//; # ensure no whitespace
|
||||||
if ($version=~/(.*)-(.*)/) {
|
if ($version=~/(.*)-(.*)/) {
|
||||||
$version=$1;
|
$version=$1;
|
||||||
$this->release($2);
|
$this->release($2);
|
||||||
@@ -331,10 +409,14 @@ sub prep {
|
|||||||
print OUT $this->name." (".$this->version."-".$this->release.") experimental; urgency=low\n";
|
print OUT $this->name." (".$this->version."-".$this->release.") experimental; urgency=low\n";
|
||||||
print OUT "\n";
|
print OUT "\n";
|
||||||
print OUT " * Converted from .".$this->origformat." format to .deb by alien version $Alien::Version\n";
|
print OUT " * Converted from .".$this->origformat." format to .deb by alien version $Alien::Version\n";
|
||||||
|
print OUT " \n";
|
||||||
|
if (defined $this->changelogtext) {
|
||||||
|
my $ct=$this->changelogtext;
|
||||||
|
$ct=~s/^/ /gm;
|
||||||
|
print OUT $ct."\n";
|
||||||
|
}
|
||||||
print OUT "\n";
|
print OUT "\n";
|
||||||
print OUT " -- ".$this->username." <".$this->email."> ".$this->date."\n";
|
print OUT " -- ".$this->username." <".$this->email."> ".$this->date."\n";
|
||||||
print OUT "\n";
|
|
||||||
print OUT $this->changelogtext."\n" if defined $this->changelogtext;
|
|
||||||
close OUT;
|
close OUT;
|
||||||
|
|
||||||
# Control file.
|
# Control file.
|
||||||
@@ -375,6 +457,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 ? "" : "#";
|
||||||
@@ -382,12 +469,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:
|
||||||
@@ -403,7 +484,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
|
||||||
@@ -436,18 +517,16 @@ EOF
|
|||||||
close OUT;
|
close OUT;
|
||||||
$this->do("chmod", 755, "$dir/debian/rules");
|
$this->do("chmod", 755, "$dir/debian/rules");
|
||||||
|
|
||||||
# Save any scripts.
|
|
||||||
if ($this->usescripts) {
|
if ($this->usescripts) {
|
||||||
foreach my $script (qw{postinst postrm preinst prerm}) {
|
foreach my $script (qw{postinst postrm preinst prerm}) {
|
||||||
my $data=$this->$script();
|
$this->savescript($script, $this->$script());
|
||||||
next unless defined $data;
|
|
||||||
next if $data =~ m/^\s*$/;
|
|
||||||
open (OUT,">$dir/debian/$script") ||
|
|
||||||
die "$dir/debian/$script: $!";
|
|
||||||
print OUT $data;
|
|
||||||
close OUT;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
# There may be a postinst with permissions fixups even when
|
||||||
|
# scripts are disabled.
|
||||||
|
$this->savescript("postinst", undef);
|
||||||
|
}
|
||||||
|
|
||||||
my %dirtrans=( # Note: no trailing slashes on these directory names!
|
my %dirtrans=( # Note: no trailing slashes on these directory names!
|
||||||
# Move files to FHS-compliant locations, if possible.
|
# Move files to FHS-compliant locations, if possible.
|
||||||
@@ -481,12 +560,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";
|
||||||
}
|
}
|
||||||
@@ -575,12 +668,13 @@ sub version {
|
|||||||
# get
|
# get
|
||||||
return unless defined wantarray; # optimization
|
return unless defined wantarray; # optimization
|
||||||
$_=$this->{version};
|
$_=$this->{version};
|
||||||
# Make sure the version contains digets.
|
# Make sure the version contains a digit at the start, as required
|
||||||
unless (/[0-9]/) {
|
# by dpkg-deb.
|
||||||
# Drat. Well, add some. dpkg-deb won't work
|
unless (/^[0-9]/) {
|
||||||
# on a version w/o numbers!
|
$_="0".$_;
|
||||||
return $_."0";
|
|
||||||
}
|
}
|
||||||
|
# filter out some characters not allowed in debian versions
|
||||||
|
s/[^-.+~:A-Za-z0-9]//g; # see lib/dpkg/parsehelp.c parseversion
|
||||||
return $_;
|
return $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -676,7 +770,7 @@ sub email {
|
|||||||
close MAILNAME;
|
close MAILNAME;
|
||||||
}
|
}
|
||||||
if (!$mailname) {
|
if (!$mailname) {
|
||||||
$mailname=$this->runpipe(1, "hostname -f");
|
$mailname=$this->runpipe(1, "hostname");
|
||||||
chomp $mailname;
|
chomp $mailname;
|
||||||
}
|
}
|
||||||
return "$login\@$mailname";
|
return "$login\@$mailname";
|
||||||
@@ -706,32 +800,52 @@ sub username {
|
|||||||
return $username;
|
return $username;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item postinst
|
=item savescript
|
||||||
|
|
||||||
Returns the postinst. This may include generated shell code to set owners
|
Saves script to debian directory.
|
||||||
and groups from the owninfo field, and update modes from the modeinfo field.
|
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub postinst {
|
sub savescript {
|
||||||
my $this=shift;
|
my $this=shift;
|
||||||
|
my $script=shift;
|
||||||
|
my $data=shift;
|
||||||
|
|
||||||
if (@_) {
|
if ($script eq 'postinst') {
|
||||||
$this->{postinst}=shift;
|
$data=$this->gen_postinst($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $dir=$this->unpacked_tree;
|
||||||
|
|
||||||
|
return unless defined $data;
|
||||||
|
next if $data =~ m/^\s*$/;
|
||||||
|
open (OUT,">$dir/debian/$script") ||
|
||||||
|
die "$dir/debian/$script: $!";
|
||||||
|
print OUT $data;
|
||||||
|
close OUT;
|
||||||
|
}
|
||||||
|
|
||||||
|
=item gen_postinst
|
||||||
|
|
||||||
|
Modifies or creates a postinst. This may include generated shell code to set
|
||||||
|
owners and groups from the owninfo field, and update modes from the modeinfo
|
||||||
|
field.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub gen_postinst {
|
||||||
|
my $this=shift;
|
||||||
|
my $postinst=shift;
|
||||||
|
|
||||||
my $owninfo = $this->owninfo;
|
my $owninfo = $this->owninfo;
|
||||||
my $modeinfo = $this->modeinfo;
|
my $modeinfo = $this->modeinfo;
|
||||||
my $postinst = $this->{postinst};
|
return $postinst unless ref $owninfo && %$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;
|
|
||||||
|
|
||||||
my ($firstline, $rest)=split(/\n/, $postinst, 2);
|
my ($firstline, $rest)=split(/\n/, $postinst, 2);
|
||||||
if ($firstline !~ m/^#!\s*\/bin\/sh/) {
|
if ($firstline !~ m/^#!\s*\/bin\/(ba)?sh/) {
|
||||||
print STDERR "warning: unable to add ownership fixup code to postinst as the postinst is not a shell script!\n";
|
print STDERR "warning: unable to add ownership fixup code to postinst as the postinst is not a shell script!\n";
|
||||||
return $postinst;
|
return $postinst;
|
||||||
}
|
}
|
||||||
@@ -747,7 +861,7 @@ sub postinst {
|
|||||||
return "$firstline\n$permscript\n$rest";
|
return "$firstline\n$permscript\n$rest";
|
||||||
}
|
}
|
||||||
|
|
||||||
=cut
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
@@ -96,8 +96,8 @@ sub revert {
|
|||||||
|
|
||||||
=item build
|
=item build
|
||||||
|
|
||||||
Uses the parent's build method. If a lsb-rpm is available, uses it to build
|
Uses the parent's build method. If a lsb-rpmbuild is available, uses it to
|
||||||
the package.
|
build the package.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
@@ -105,8 +105,8 @@ sub build {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $buildcmd=shift || 'rpmbuild';
|
my $buildcmd=shift || 'rpmbuild';
|
||||||
foreach (split(/:/,$ENV{PATH})) {
|
foreach (split(/:/,$ENV{PATH})) {
|
||||||
if (-x "$_/lsb-rpm") {
|
if (-x "$_/lsb-rpmbuild") {
|
||||||
$buildcmd='lsb-rpm';
|
$buildcmd='lsb-rpmbuild';
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,8 +106,11 @@ sub install {
|
|||||||
my $pkg=shift;
|
my $pkg=shift;
|
||||||
|
|
||||||
if (-x "/usr/sbin/pkgadd") {
|
if (-x "/usr/sbin/pkgadd") {
|
||||||
|
my $v=$Alien::Package::verbose;
|
||||||
|
$Alien::Package::verbose=2;
|
||||||
$this->do("/usr/sbin/pkgadd", "-d .", "$pkg")
|
$this->do("/usr/sbin/pkgadd", "-d .", "$pkg")
|
||||||
or die "Unable to install";
|
or die "Unable to install";
|
||||||
|
$Alien::Package::verbose=$v;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
die "Sorry, I cannot install the generated .pkg file because /usr/sbin/pkgadd is not present.\n";
|
die "Sorry, I cannot install the generated .pkg file because /usr/sbin/pkgadd is not present.\n";
|
||||||
@@ -259,7 +262,7 @@ sub prep {
|
|||||||
# grep {/^\./} readdir DIR;
|
# grep {/^\./} readdir DIR;
|
||||||
# closedir DIR;
|
# closedir DIR;
|
||||||
|
|
||||||
$this->do("cd $dir; find . -print | pkgproto > ./prototype")
|
$this->do("cd $dir; find . -print | sed -e '/.\\/prototype\$/d' | pkgproto > ./prototype")
|
||||||
|| die "error during pkgproto: $!\n";
|
|| die "error during pkgproto: $!\n";
|
||||||
|
|
||||||
open(PKGPROTO, ">>$dir/prototype")
|
open(PKGPROTO, ">>$dir/prototype")
|
||||||
@@ -324,6 +327,8 @@ sub build {
|
|||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
Mark Hershberger <mah@everybody.org>
|
Mark Hershberger <mah@everybody.org>
|
||||||
|
|||||||
@@ -53,8 +53,11 @@ sub install {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $rpm=shift;
|
my $rpm=shift;
|
||||||
|
|
||||||
|
my $v=$Alien::Package::verbose;
|
||||||
|
$Alien::Package::verbose=2;
|
||||||
$this->do("rpm -ivh ".(exists $ENV{RPMINSTALLOPT} ? $ENV{RPMINSTALLOPT} : '').$rpm)
|
$this->do("rpm -ivh ".(exists $ENV{RPMINSTALLOPT} ? $ENV{RPMINSTALLOPT} : '').$rpm)
|
||||||
or die "Unable to install";
|
or die "Unable to install";
|
||||||
|
$Alien::Package::verbose=$v;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item scan
|
=item scan
|
||||||
@@ -73,33 +76,36 @@ sub scan {
|
|||||||
POSTIN => 'postinst',
|
POSTIN => 'postinst',
|
||||||
PREUN => 'prerm',
|
PREUN => 'prerm',
|
||||||
POSTUN => 'postrm',
|
POSTUN => 'postrm',
|
||||||
|
LICENSE => 'copyright',
|
||||||
);
|
);
|
||||||
|
|
||||||
# These fields need no translation except case.
|
|
||||||
foreach (qw{name version release arch changelogtext summary
|
|
||||||
description copyright prefixes}) {
|
|
||||||
$fieldtrans{uc $_}=$_;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use --queryformat to pull out all the fields we need.
|
# Use --queryformat to pull out all the fields we need.
|
||||||
foreach my $field (keys(%fieldtrans)) {
|
foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT
|
||||||
$_=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file");
|
SUMMARY DESCRIPTION PREFIXES},
|
||||||
$field=$fieldtrans{$field};
|
keys(%fieldtrans)) {
|
||||||
$_='' if $_ eq '(none)';
|
my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} '$file'");
|
||||||
$this->$field($_);
|
next if $? || $value eq '(none)';
|
||||||
|
my $key;
|
||||||
|
if (exists $fieldtrans{$field}) {
|
||||||
|
$key=$fieldtrans{$field};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$key=lc($field);
|
||||||
|
}
|
||||||
|
$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([]);
|
||||||
@@ -117,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";
|
||||||
@@ -147,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
|
||||||
@@ -156,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;
|
||||||
@@ -166,7 +184,7 @@ sub unpack {
|
|||||||
foreach my $file (`cd $workdir; find ./`) {
|
foreach my $file (`cd $workdir; find ./`) {
|
||||||
chomp $file;
|
chomp $file;
|
||||||
if (! $seenfiles{$file} && -d "$workdir/$file" && ! -l "$workdir/$file") {
|
if (! $seenfiles{$file} && -d "$workdir/$file" && ! -l "$workdir/$file") {
|
||||||
$this->do("chmod 755 $workdir/$file");
|
$this->do("chmod 755 '$workdir/$file'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,6 +200,8 @@ sub unpack {
|
|||||||
#
|
#
|
||||||
# Test to see if the package contains the prefix directory already.
|
# Test to see if the package contains the prefix directory already.
|
||||||
if (defined $this->prefixes && ! -e "$workdir/".$this->prefixes) {
|
if (defined $this->prefixes && ! -e "$workdir/".$this->prefixes) {
|
||||||
|
my $relocate=1;
|
||||||
|
|
||||||
# Get the files to move.
|
# Get the files to move.
|
||||||
my @filelist=glob("$workdir/*");
|
my @filelist=glob("$workdir/*");
|
||||||
|
|
||||||
@@ -190,9 +210,21 @@ sub unpack {
|
|||||||
foreach (split m:/:, $this->prefixes) {
|
foreach (split m:/:, $this->prefixes) {
|
||||||
if ($_ ne '') { # this keeps us from using anything but relative paths.
|
if ($_ ne '') { # this keeps us from using anything but relative paths.
|
||||||
$collect.="/$_";
|
$collect.="/$_";
|
||||||
|
if (-d $collect) {
|
||||||
|
# The package contains a parent
|
||||||
|
# directory of the relocation
|
||||||
|
# directory. Since it's impossible
|
||||||
|
# to move a parent directory into
|
||||||
|
# its child, bail out and do
|
||||||
|
# nothing.
|
||||||
|
$relocate=0;
|
||||||
|
last;
|
||||||
|
}
|
||||||
$this->do("mkdir", $collect) || die "unable to mkdir $collect: $!";
|
$this->do("mkdir", $collect) || die "unable to mkdir $collect: $!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($relocate) {
|
||||||
# Now move all files in the package to the directory we made.
|
# Now move all files in the package to the directory we made.
|
||||||
if (@filelist) {
|
if (@filelist) {
|
||||||
$this->do("mv", @filelist, "$workdir/".$this->prefixes)
|
$this->do("mv", @filelist, "$workdir/".$this->prefixes)
|
||||||
@@ -207,6 +239,7 @@ sub unpack {
|
|||||||
}
|
}
|
||||||
$this->conffiles([@cf]);
|
$this->conffiles([@cf]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# rpm files have two sets of permissions; the set in the cpio
|
# rpm files have two sets of permissions; the set in the cpio
|
||||||
# archive, and the set in the control data; which override them.
|
# archive, and the set in the control data; which override them.
|
||||||
@@ -215,10 +248,13 @@ sub unpack {
|
|||||||
# postinst.
|
# postinst.
|
||||||
my %owninfo = ();
|
my %owninfo = ();
|
||||||
my %modeinfo = ();
|
my %modeinfo = ();
|
||||||
open (GETPERMS, 'rpm --queryformat \'[%{FILEMODES} %{FILEUSERNAME} %{FILEGROUPNAME} %{FILENAMES}\n]\' -qp '.$this->filename.' |');
|
open (GETPERMS, 'rpm --queryformat \'[%{FILEMODES} %{FILEUSERNAME} %{FILEGROUPNAME} %{FILENAMES}\n]\' -qp \''.$this->filename.'\' |');
|
||||||
while (<GETPERMS>) {
|
while (<GETPERMS>) {
|
||||||
chomp;
|
chomp;
|
||||||
my ($mode, $owner, $group, $file) = split(/ /, $_, 4);
|
my ($mode, $owner, $group, $file) = split(/ /, $_, 4);
|
||||||
|
|
||||||
|
next if -l "$workdir/$file";
|
||||||
|
|
||||||
$mode = $mode & 07777; # remove filetype
|
$mode = $mode & 07777; # remove filetype
|
||||||
my $uid = getpwnam($owner);
|
my $uid = getpwnam($owner);
|
||||||
if (! defined $uid || $uid != 0) {
|
if (! defined $uid || $uid != 0) {
|
||||||
@@ -235,18 +271,21 @@ 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;
|
||||||
}
|
}
|
||||||
next unless -e "$workdir/$file"; # skip broken links
|
# 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\: $!";
|
||||||
}
|
}
|
||||||
next if -l "$workdir/$file"; # skip links
|
|
||||||
$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);
|
||||||
|
|
||||||
@@ -385,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
|
||||||
@@ -398,7 +437,9 @@ sub build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$opts.=" $ENV{RPMBUILDOPT}" if exists $ENV{RPMBUILDOPT};
|
$opts.=" $ENV{RPMBUILDOPT}" if exists $ENV{RPMBUILDOPT};
|
||||||
my $command="cd $dir; $buildcmd -bb $opts ".$this->name."-".$this->version."-".$this->release.".spec";
|
my $pwd=`pwd`;
|
||||||
|
chomp $pwd;
|
||||||
|
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;
|
||||||
@@ -443,11 +484,16 @@ debian/slackware scripts can be anything -- perl programs or binary files
|
|||||||
-- and rpm is limited to only shell scripts, we need to encode the files
|
-- and rpm is limited to only shell scripts, we need to encode the files
|
||||||
and add a scrap of shell script to make it unextract and run on the fly.
|
and add a scrap of shell script to make it unextract and run on the fly.
|
||||||
|
|
||||||
When setting a value, we do some mangling too. Rpm maitainer scripts
|
When setting a value, we do some mangling too. Rpm maintainer scripts
|
||||||
are typically shell scripts, but often lack the leading #!/bin/sh
|
are typically shell scripts, but often lack the leading shebang line.
|
||||||
This can confuse dpkg, so add the #!/bin/sh if it looks like there
|
This can confuse dpkg, so add the shebang if it looks like there
|
||||||
is no shebang magic already in place.
|
is no shebang magic already in place.
|
||||||
|
|
||||||
|
Additionally, it's not uncommon for rpm maintainer scripts to contain
|
||||||
|
bashisms, which can be triggered when they are ran on systems where /bin/sh
|
||||||
|
is not bash. To work around this, the shebang line of the scripts is
|
||||||
|
changed to use bash.
|
||||||
|
|
||||||
Also, if the rpm is relocatable, the script could refer to
|
Also, if the rpm is relocatable, the script could refer to
|
||||||
RPM_INSTALL_PREFIX, which is set by rpm at run time. Deal with this by
|
RPM_INSTALL_PREFIX, which is set by rpm at run time. Deal with this by
|
||||||
adding code to the script to set RPM_INSTALL_PREFIX.
|
adding code to the script to set RPM_INSTALL_PREFIX.
|
||||||
@@ -469,9 +515,10 @@ sub _script_helper {
|
|||||||
|
|
||||||
my $value=shift;
|
my $value=shift;
|
||||||
if (length $value and $value !~ m/^#!\s*\//) {
|
if (length $value and $value !~ m/^#!\s*\//) {
|
||||||
$value="#!/bin/sh\n$prefixcode$value";
|
$value="#!/bin/bash\n$prefixcode$value";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$value=~s@^#!\s*/bin/sh(\s)@#!/bin/bash$1@;
|
||||||
$value=~s/\n/\n$prefixcode/s;
|
$value=~s/\n/\n$prefixcode/s;
|
||||||
}
|
}
|
||||||
$this->{$script} = $value;
|
$this->{$script} = $value;
|
||||||
@@ -560,9 +607,16 @@ sub arch {
|
|||||||
# Treat armv4l as arm.
|
# Treat armv4l as arm.
|
||||||
$arch='arm';
|
$arch='arm';
|
||||||
}
|
}
|
||||||
|
elsif ($arch eq 'armv7l') {
|
||||||
|
# Treat armv7l as armel.
|
||||||
|
$arch='armel';
|
||||||
|
}
|
||||||
elsif ($arch eq 'parisc') {
|
elsif ($arch eq 'parisc') {
|
||||||
$arch='hppa';
|
$arch='hppa';
|
||||||
}
|
}
|
||||||
|
elsif ($arch eq 'ppc64le') {
|
||||||
|
$arch='ppc64el';
|
||||||
|
}
|
||||||
|
|
||||||
$this->{arch}=$arch;
|
$this->{arch}=$arch;
|
||||||
}
|
}
|
||||||
@@ -582,6 +636,9 @@ sub arch {
|
|||||||
elsif ($arch eq 'all') {
|
elsif ($arch eq 'all') {
|
||||||
$arch='noarch';
|
$arch='noarch';
|
||||||
}
|
}
|
||||||
|
elsif ($arch eq 'ppc64el') {
|
||||||
|
$arch='ppc64le';
|
||||||
|
}
|
||||||
|
|
||||||
return $arch
|
return $arch
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,8 +114,11 @@ sub install {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $slp=shift;
|
my $slp=shift;
|
||||||
|
|
||||||
|
my $v=$Alien::Package::verbose;
|
||||||
|
$Alien::Package::verbose=2;
|
||||||
$this->do("slpi", $slp)
|
$this->do("slpi", $slp)
|
||||||
or die "Unable to install";
|
or die "Unable to install";
|
||||||
|
$Alien::Package::verbose=$v;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item getfooter
|
=item getfooter
|
||||||
@@ -163,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:^/:;
|
||||||
@@ -176,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;
|
||||||
}
|
}
|
||||||
@@ -355,6 +358,8 @@ sub release {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
Joey Hess <joey@kitenet.net>
|
Joey Hess <joey@kitenet.net>
|
||||||
|
|||||||
@@ -9,10 +9,14 @@ Alien::Package::Tgz - an object that represents a tgz package
|
|||||||
package Alien::Package::Tgz;
|
package Alien::Package::Tgz;
|
||||||
use strict;
|
use strict;
|
||||||
use base qw(Alien::Package);
|
use base qw(Alien::Package);
|
||||||
|
use Cwd qw(abs_path);
|
||||||
|
|
||||||
|
my $tarext=qr/\.(?:tgz|tar(?:\.(?:gz|Z|z|bz|bz2))?|taz)$/;
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
This is an object class that represents a tgz package, as used in Slackware.
|
This is an object class that represents a tgz package, as used in Slackware.
|
||||||
|
It also allows conversion of raw tar files.
|
||||||
It is derived from Alien::Package.
|
It is derived from Alien::Package.
|
||||||
|
|
||||||
=head1 CLASS DATA
|
=head1 CLASS DATA
|
||||||
@@ -49,7 +53,7 @@ sub checkfile {
|
|||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $file=shift;
|
my $file=shift;
|
||||||
|
|
||||||
return $file =~ m/.*\.(?:tgz|tar\.(?:gz|Z|z)|taz)$/;
|
return $file =~ m/$tarext$/;
|
||||||
}
|
}
|
||||||
|
|
||||||
=item install
|
=item install
|
||||||
@@ -66,8 +70,11 @@ sub install {
|
|||||||
my $tgz=shift;
|
my $tgz=shift;
|
||||||
|
|
||||||
if (-x "/sbin/installpkg") {
|
if (-x "/sbin/installpkg") {
|
||||||
|
my $v=$Alien::Package::verbose;
|
||||||
|
$Alien::Package::verbose=2;
|
||||||
$this->do("/sbin/installpkg", "$tgz")
|
$this->do("/sbin/installpkg", "$tgz")
|
||||||
or die "Unable to install";
|
or die "Unable to install";
|
||||||
|
$Alien::Package::verbose=$v;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
die "Sorry, I cannot install the generated .tgz file because /sbin/installpkg is not present. You can use tar to install it yourself.\n"
|
die "Sorry, I cannot install the generated .tgz file because /sbin/installpkg is not present. You can use tar to install it yourself.\n"
|
||||||
@@ -90,9 +97,9 @@ sub scan {
|
|||||||
my ($basename)=('/'.$file)=~m#^/?.*/(.*?)$#;
|
my ($basename)=('/'.$file)=~m#^/?.*/(.*?)$#;
|
||||||
|
|
||||||
# Strip out any tar extentions.
|
# Strip out any tar extentions.
|
||||||
$basename=~s/\.(tgz|tar\.(gz|Z))$//;
|
$basename=~s/$tarext//;
|
||||||
|
|
||||||
if ($basename=~m/(.*)-(.*?[0-9]+.*)/) {
|
if ($basename=~m/([\w-]+)-([0-9\.?]+).*/) {
|
||||||
$this->name($1);
|
$this->name($1);
|
||||||
$this->version($2);
|
$this->version($2);
|
||||||
}
|
}
|
||||||
@@ -103,20 +110,20 @@ sub scan {
|
|||||||
|
|
||||||
$this->arch('all');
|
$this->arch('all');
|
||||||
|
|
||||||
$this->summary("Converted Slackware tgz package");
|
$this->summary("Converted tgz package");
|
||||||
$this->description($this->summary);
|
$this->description($this->summary);
|
||||||
$this->copyright('unknown');
|
$this->copyright('unknown');
|
||||||
$this->release(1);
|
$this->release(1);
|
||||||
$this->distribution("Slackware");
|
$this->distribution("Slackware/tarball");
|
||||||
$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.
|
||||||
my @conffiles;
|
my @conffiles;
|
||||||
open (FILELIST,"tar zvtf $file | grep etc/ |") ||
|
open (FILELIST,"tar vtf $file | grep etc/ |") ||
|
||||||
die "getting filelist: $!";
|
die "getting filelist: $!";
|
||||||
while (<FILELIST>) {
|
while (<FILELIST>) {
|
||||||
# Make sure it's a normal file. This is looking at the
|
# Make sure it's a normal file. This is looking at the
|
||||||
@@ -133,7 +140,7 @@ sub scan {
|
|||||||
# Now get the whole filelist. We have to add leading /'s to the
|
# Now get the whole filelist. We have to add leading /'s to the
|
||||||
# filenames. We have to ignore all files under /install/
|
# filenames. We have to ignore all files under /install/
|
||||||
my @filelist;
|
my @filelist;
|
||||||
open (FILELIST, "tar ztf $file |") ||
|
open (FILELIST, "tar tf $file |") ||
|
||||||
die "getting filelist: $!";
|
die "getting filelist: $!";
|
||||||
while (<FILELIST>) {
|
while (<FILELIST>) {
|
||||||
chomp;
|
chomp;
|
||||||
@@ -145,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 Oxzf $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;
|
||||||
@@ -160,9 +167,9 @@ Unpack tgz.
|
|||||||
sub unpack {
|
sub unpack {
|
||||||
my $this=shift;
|
my $this=shift;
|
||||||
$this->SUPER::unpack(@_);
|
$this->SUPER::unpack(@_);
|
||||||
my $file=$this->filename;
|
my $file=abs_path($this->filename);
|
||||||
|
|
||||||
$this->do("cat $file | (cd ".$this->unpacked_tree."; tar zxpf -)")
|
$this->do("cd ".$this->unpacked_tree."; tar xpf $file")
|
||||||
or die "Unpacking of '$file' failed: $!";
|
or die "Unpacking of '$file' failed: $!";
|
||||||
# Delete the install directory that has slackware info in it.
|
# Delete the install directory that has slackware info in it.
|
||||||
$this->do("cd ".$this->unpacked_tree."; rm -rf ./install");
|
$this->do("cd ".$this->unpacked_tree."; rm -rf ./install");
|
||||||
@@ -215,6 +222,8 @@ sub build {
|
|||||||
return $tgz;
|
return $tgz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
Joey Hess <joey@kitenet.net>
|
Joey Hess <joey@kitenet.net>
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ extra_build:
|
|||||||
extra_install:
|
extra_install:
|
||||||
install -d $(PREFIX)/share/alien/patches \
|
install -d $(PREFIX)/share/alien/patches \
|
||||||
$(VARPREFIX)/var/lib/alien
|
$(VARPREFIX)/var/lib/alien
|
||||||
cp -f patches/*.diff $(PREFIX)/share/alien/patches/
|
|
||||||
-rm -f $(PREFIX)/share/alien/patches/*.gz
|
|
||||||
gzip -qf9 $(PREFIX)/share/alien/patches/*
|
|
||||||
|
|
||||||
alien:
|
alien:
|
||||||
perl -pe '$$_="" if /use lib/; $$_="our \$$Version=\"$(VER)\";\n" if /VERSION_AUTOREPLACE/' alien.pl > alien
|
perl -pe '$$_="" if /use lib/; $$_="our \$$Version=\"$(VER)\";\n" if /VERSION_AUTOREPLACE/' alien.pl > alien
|
||||||
|
|||||||
14
alien.lsm
Normal file
14
alien.lsm
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Begin3
|
||||||
|
Title: alien
|
||||||
|
Version: 8.93
|
||||||
|
Entered-date: 31MAR97
|
||||||
|
Description: Alien converts Slackware .tgz packages, Red Hat .rpm packages,
|
||||||
|
Debian .deb packages, and Stampede .slp packages. It can
|
||||||
|
convert from any of the formats to any other format. It works
|
||||||
|
only on binary packages. It also support LSB packages.
|
||||||
|
Keywords: debian dpkg deb red hat redhat rpm slackware tgz stampede slp convert package LSB
|
||||||
|
Author: joey@kitenet.net
|
||||||
|
Primary-site: sunsite.unc.edu /pub/Linux/utils/package
|
||||||
|
80 alien-8.93.tar.gz
|
||||||
|
Copying-policy: GPL
|
||||||
|
End
|
||||||
51
alien.pl
51
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
|
||||||
@@ -137,7 +150,7 @@ built.
|
|||||||
|
|
||||||
Be less strict about which patch file is used, perhaps attempting to use a patch
|
Be less strict about which patch file is used, perhaps attempting to use a patch
|
||||||
file for an older verson of the package. This is not guaranteed to always work;
|
file for an older verson of the package. This is not guaranteed to always work;
|
||||||
older patches may necessarily not work with newer packages.
|
older patches may not necessarily work with newer packages.
|
||||||
|
|
||||||
=item B<--nopatch>
|
=item B<--nopatch>
|
||||||
|
|
||||||
@@ -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, becuase 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
|
||||||
@@ -190,6 +193,10 @@ some things to mess with their permissions and owners to the degree this does,
|
|||||||
so it defaults to off. This can only be used when converting to debian
|
so it defaults to off. This can only be used when converting to debian
|
||||||
packages.
|
packages.
|
||||||
|
|
||||||
|
=item B<--target=>I<architecture>
|
||||||
|
|
||||||
|
Force the architecture of the generated package to the given string.
|
||||||
|
|
||||||
=item B<-v>, B<--verbose>
|
=item B<-v>, B<--verbose>
|
||||||
|
|
||||||
Be verbose: Display each command B<alien> runs in the process of converting a
|
Be verbose: Display each command B<alien> runs in the process of converting a
|
||||||
@@ -239,11 +246,11 @@ all 4 package formats.
|
|||||||
|
|
||||||
=head1 ENVIRONMENT
|
=head1 ENVIRONMENT
|
||||||
|
|
||||||
B<alien> recognizes the following environemnt variables:
|
B<alien> recognizes the following environment variables:
|
||||||
|
|
||||||
=over 4
|
=over 4
|
||||||
|
|
||||||
=item RPMBUILDOPTS
|
=item RPMBUILDOPT
|
||||||
|
|
||||||
Options to pass to rpm when it is building a package.
|
Options to pass to rpm when it is building a package.
|
||||||
|
|
||||||
@@ -258,14 +265,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>>.
|
||||||
@@ -335,6 +334,7 @@ Usage: alien [options] file [...]
|
|||||||
-i, --install Install generated package.
|
-i, --install Install generated package.
|
||||||
-g, --generate Generate build tree, but do not build package.
|
-g, --generate Generate build tree, but do not build package.
|
||||||
-c, --scripts Include scripts in package.
|
-c, --scripts Include scripts in package.
|
||||||
|
--target=<arch> Set architecture of the generated package.
|
||||||
-v, --verbose Display each command alien runs.
|
-v, --verbose Display each command alien runs.
|
||||||
--veryverbose Be verbose, and also display output of run commands.
|
--veryverbose Be verbose, and also display output of run commands.
|
||||||
-k, --keep-version Do not change version of generated package.
|
-k, --keep-version Do not change version of generated package.
|
||||||
@@ -349,7 +349,7 @@ EOF
|
|||||||
# Start by processing the parameters.
|
# Start by processing the parameters.
|
||||||
my (%destformats, $generate, $install, $single, $scripts, $patchfile,
|
my (%destformats, $generate, $install, $single, $scripts, $patchfile,
|
||||||
$nopatch, $tgzdescription, $tgzversion, $keepversion, $fixperms,
|
$nopatch, $tgzdescription, $tgzversion, $keepversion, $fixperms,
|
||||||
$test, $anypatch);
|
$test, $anypatch, $target);
|
||||||
my $versionbump=1;
|
my $versionbump=1;
|
||||||
|
|
||||||
# Bundling is nice anyway, and it is required or Getopt::Long will confuse
|
# Bundling is nice anyway, and it is required or Getopt::Long will confuse
|
||||||
@@ -371,6 +371,7 @@ GetOptions(
|
|||||||
"patch=s" => \$patchfile,
|
"patch=s" => \$patchfile,
|
||||||
"nopatch" => \$nopatch,
|
"nopatch" => \$nopatch,
|
||||||
"anypatch" => \$anypatch,
|
"anypatch" => \$anypatch,
|
||||||
|
"target=s" => \$target,
|
||||||
"description=s" => \$tgzdescription,
|
"description=s" => \$tgzdescription,
|
||||||
"V" => \&version,
|
"V" => \&version,
|
||||||
"version:s" => sub { length $_[1] ? $tgzversion=$_[1] : version() },
|
"version:s" => sub { length $_[1] ? $tgzversion=$_[1] : version() },
|
||||||
@@ -451,6 +452,10 @@ foreach my $file (@ARGV) {
|
|||||||
die "Unknown type of package, $file.\n";
|
die "Unknown type of package, $file.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($target) {
|
||||||
|
$package->arch($target);
|
||||||
|
}
|
||||||
|
|
||||||
if (! $package->usescripts && $package->scripts) {
|
if (! $package->usescripts && $package->scripts) {
|
||||||
$package->usescripts($scripts);
|
$package->usescripts($scripts);
|
||||||
if (! $scripts) {
|
if (! $scripts) {
|
||||||
@@ -513,7 +518,7 @@ foreach my $file (@ARGV) {
|
|||||||
# Make sure $package does not wipe out the
|
# Make sure $package does not wipe out the
|
||||||
# directory when it is destroyed.
|
# directory when it is destroyed.
|
||||||
$package->unpacked_tree('');
|
$package->unpacked_tree('');
|
||||||
exit;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $newfile=$package->build;
|
my $newfile=$package->build;
|
||||||
|
|||||||
34
alien.spec
Normal file
34
alien.spec
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
Summary: Install Debian, Slackware, and Stampede packages with rpm.
|
||||||
|
Name: alien
|
||||||
|
Packager: Joey Hess <joey@kitenet.net>
|
||||||
|
Version: 8.93
|
||||||
|
Release: 1
|
||||||
|
Source: ftp://kitenet.net/pub/code/debian/alien_8.93.tar.gz
|
||||||
|
License: GPL
|
||||||
|
Group: Utilities/File
|
||||||
|
Buildroot: /tmp/alien-8.93.build
|
||||||
|
Requires: perl
|
||||||
|
BuildArchitectures: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Alien allows you to convert Debian, Slackware, and Stampede Packages into Red
|
||||||
|
Hat packages, which can be installed with rpm.
|
||||||
|
|
||||||
|
It can also generate Slackware, Debian and Stampede packages.
|
||||||
|
|
||||||
|
This is a tool only suitable for binary packages.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n alien
|
||||||
|
rm -rf /tmp/alien-8.93.build
|
||||||
|
|
||||||
|
%install
|
||||||
|
perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr
|
||||||
|
make
|
||||||
|
make pure_install VARPREFIX=$RPM_BUILD_ROOT
|
||||||
|
find $RPM_BUILD_ROOT -not -type d -printf "/%%P\n" | \
|
||||||
|
sed '/\/man\//s/$/\*/' > manifest
|
||||||
|
|
||||||
|
%files -f manifest
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc debian/changelog GPL README alien.lsm
|
||||||
219
debian/changelog
vendored
219
debian/changelog
vendored
@@ -1,3 +1,222 @@
|
|||||||
|
alien (8.93) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Alien needs a new maintainer, both in Debian and upstream.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Fri, 07 Nov 2014 17:25:47 -0400
|
||||||
|
|
||||||
|
alien (8.92) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Remove suggests for lsb-rpm, which no longer exists.
|
||||||
|
Closes: #756873
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 31 Aug 2014 14:16:23 -0700
|
||||||
|
|
||||||
|
alien (8.91) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Support other deb data.tar compression schemes in fallback code.
|
||||||
|
Closes: #718364
|
||||||
|
Thanks, Guillem Jover
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Fri, 13 Jun 2014 12:03:54 -0400
|
||||||
|
|
||||||
|
alien (8.90) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Add --target=<arch> option for setting architecture. Closes: #260948
|
||||||
|
(Thanks, Teemu Ikonen)
|
||||||
|
* Add conversion from ppc64le (rpm) to ppc64el (deb).
|
||||||
|
* debhelper v9
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 27 Feb 2014 11:59:07 -0400
|
||||||
|
|
||||||
|
alien (8.89) unstable; urgency=low
|
||||||
|
|
||||||
|
* Correct man page to say RPMBUILDOPT (not RPMBUILDOPTS). Closes: #701106
|
||||||
|
* Handle whitespace in path to RPMs. Closes: #719776
|
||||||
|
(Thanks, Christopher Huhn)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 22 Aug 2013 21:53:44 -0400
|
||||||
|
|
||||||
|
alien (8.88) unstable; urgency=low
|
||||||
|
|
||||||
|
* Ensure that version numbers begin with well, a number, when building a
|
||||||
|
deb, otherwise dpkg-deb will refuse to build it.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 09 Aug 2012 14:44:49 -0400
|
||||||
|
|
||||||
|
alien (8.87) unstable; urgency=low
|
||||||
|
|
||||||
|
* Use lsb-rpmbuild, not lsb-rpm. Closes: #667044
|
||||||
|
* Fix adding of postinst script to deb, containing rpm permissions
|
||||||
|
fixups code. Closes: #667651
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 05 Apr 2012 13:53:29 -0400
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
* Typo. Closes: #554379
|
||||||
|
* Modify -g and -s to support running on multiple packages at once.
|
||||||
|
Closes: #554404
|
||||||
|
* Removed all built-in patches for converting specific packages
|
||||||
|
(j2sdk, jdk, lgtoclnt, motif) with alien. These were out of date,
|
||||||
|
and not maintained. Alien will not include such patches going forward.
|
||||||
|
* Depend on the new rpm2cpio package. Closes: #559061
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Tue, 01 Dec 2009 13:23:55 -0500
|
||||||
|
|
||||||
|
alien (8.78) unstable; urgency=low
|
||||||
|
|
||||||
|
* Add support for rpm 4.7.0, which ignores the buildroot setting in the
|
||||||
|
spec file, by passing --buildroot. (Thanks, Pavel Roskin)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Wed, 08 Jul 2009 13:53:05 -0400
|
||||||
|
|
||||||
|
alien (8.77) unstable; urgency=low
|
||||||
|
|
||||||
|
* Don't allow whitespace in package version when parsing debian/changelog.
|
||||||
|
* In rpm permission fixup code, avoid processing symlinks since that
|
||||||
|
would result in the file the link points to being "fixed". Closes: #535586
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Mon, 06 Jul 2009 13:37:01 -0400
|
||||||
|
|
||||||
|
alien (8.76) unstable; urgency=low
|
||||||
|
|
||||||
|
* Avoid using hostname -f for portability to unix systems,
|
||||||
|
such as Solaris, where any options _set_ the hostname.
|
||||||
|
* Fix bash shebang and recognise bash scripts as editable
|
||||||
|
shell scripts when converting to deb. Closes: #532330
|
||||||
|
(Thanks, Bruce Stephens)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Mon, 08 Jun 2009 13:22:35 -0400
|
||||||
|
|
||||||
|
alien (8.75) unstable; urgency=low
|
||||||
|
|
||||||
|
* Simplified rules file.
|
||||||
|
* Modify maintainer scripts from rpm files to use /bin/bash rather
|
||||||
|
than /bin/sh. Many such scripts are only tested on systems where /bin/sh
|
||||||
|
is bash, and contain bashisms, which can cause trouble when converting
|
||||||
|
the rpm to be used on eg, the Debian family of distributions, where
|
||||||
|
/bin/sh can legitimatly be dash. Closes: #495971
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Wed, 06 May 2009 17:22:02 -0400
|
||||||
|
|
||||||
|
alien (8.74) unstable; urgency=low
|
||||||
|
|
||||||
|
* Support bzipped and uncompressed tar files, using tar's auto-compression
|
||||||
|
detection. (Requires gnu tar 1.14.91)
|
||||||
|
* pod fixes
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 15 Feb 2009 19:51:54 -0500
|
||||||
|
|
||||||
|
alien (8.73) unstable; urgency=low
|
||||||
|
|
||||||
|
* Fix pkg generation to not include /prototype in all packages.
|
||||||
|
(Kim Bisgaard)
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 26 Oct 2008 23:43:47 -0400
|
||||||
|
|
||||||
|
alien (8.72) unstable; urgency=low
|
||||||
|
|
||||||
|
* Use debhelper 7, rules file minimisation.
|
||||||
|
* Improve parsing of tgz filenames, to avoid confusion when the filename
|
||||||
|
includes the package type (ie, "noarch"). Patch from Andrej Ricnik-Bay.
|
||||||
|
* When generating a debian changelog file, work around bug #478925 by
|
||||||
|
including the alien changelog text inside the debian changelog entry.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 01 May 2008 15:40:34 -0400
|
||||||
|
|
||||||
|
alien (8.71) unstable; urgency=low
|
||||||
|
|
||||||
|
* Deal with rpms that relocate ie, /usr into /usr/local, and don't
|
||||||
|
try to move /usr into /usr/local in this case. Closes: #470905
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Fri, 14 Mar 2008 13:35:33 -0400
|
||||||
|
|
||||||
|
alien (8.70) unstable; urgency=low
|
||||||
|
|
||||||
|
* Extract prefixes field before extracting scripts so that
|
||||||
|
RPM_INSTALL_PREFIX gets set.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Wed, 12 Mar 2008 11:05:40 -0400
|
||||||
|
|
||||||
|
alien (8.69) unstable; urgency=low
|
||||||
|
|
||||||
|
* Alien's repository has moved from subversion to git.
|
||||||
|
* Minor improvement to debian/rules clean.
|
||||||
|
* Improve the short description.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Fri, 19 Oct 2007 20:27:53 -0400
|
||||||
|
|
||||||
|
alien (8.68) unstable; urgency=low
|
||||||
|
|
||||||
|
* Show output of installation of package with -i, since some packages
|
||||||
|
install scripts may have important output or even be interactive.
|
||||||
|
Closes: #425732
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 24 May 2007 14:08:39 -0400
|
||||||
|
|
||||||
alien (8.67) unstable; urgency=low
|
alien (8.67) unstable; urgency=low
|
||||||
|
|
||||||
* Update the url to the web page, and remove several other broken urls from
|
* Update the url to the web page, and remove several other broken urls from
|
||||||
|
|||||||
2
debian/compat
vendored
2
debian/compat
vendored
@@ -1 +1 @@
|
|||||||
4
|
9
|
||||||
|
|||||||
15
debian/control
vendored
15
debian/control
vendored
@@ -1,17 +1,18 @@
|
|||||||
Source: alien
|
Source: alien
|
||||||
Section: admin
|
Section: admin
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 4), dpkg-dev (>= 1.9.0)
|
Build-Depends: debhelper (>= 9)
|
||||||
Maintainer: Joey Hess <joeyh@debian.org>
|
Maintainer: Debian QA Group <packages@qa.debian.org>
|
||||||
Standards-Version: 3.7.2
|
Standards-Version: 3.9.5
|
||||||
XS-Vcs-Svn: svn://svn.kitenet.net/joey/trunk/src/packages/alien
|
Vcs-Git: git://git.kitenet.net/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
|
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, lintian, lzma
|
||||||
Description: install non-native packages with dpkg
|
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.
|
||||||
.
|
.
|
||||||
|
|||||||
44
debian/copyright
vendored
44
debian/copyright
vendored
@@ -1,35 +1,13 @@
|
|||||||
This is a program originally written by Christoph Lameter
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
<clameter@debian.org>.
|
Source: native package
|
||||||
|
|
||||||
Deb to rpm conversion code was taken from the Martian program by
|
Files: *
|
||||||
Randolph Chung <randolph@tausq.org>.
|
Copyright:
|
||||||
|
1996, 1997 Christoph Lameter
|
||||||
The Solaris pkg code was written by Mark A. Hershberger
|
1997 Randolph Chung
|
||||||
<mah@everybody.org>.
|
2001 Mark A. Hershberger
|
||||||
|
1997-2011 Joey Hess
|
||||||
This program is now maintained by Joey Hess <joeyh@debian.org>.
|
License: GPL-2+
|
||||||
|
On Debian systems, the complete text of the GPL can be found in
|
||||||
Copyright 1996, 1997 Christoph Lameter
|
/usr/share/common-licenses/GPL.
|
||||||
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
|
|
||||||
|
|
||||||
On Debian systems, the complete text of the GPL can be found in
|
|
||||||
/usr/share/common-licenses/GPL.
|
|
||||||
|
|
||||||
|
|||||||
2
debian/docs
vendored
Normal file
2
debian/docs
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
README
|
||||||
|
gendiff.txt
|
||||||
43
debian/rules
vendored
43
debian/rules
vendored
@@ -1,47 +1,20 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
build: build-stamp
|
override_dh_auto_test:
|
||||||
build-stamp:
|
|
||||||
dh_testdir
|
|
||||||
perl Makefile.PL
|
|
||||||
$(MAKE)
|
|
||||||
# simple smoke test
|
# simple smoke test
|
||||||
./alien.pl -V
|
./alien.pl -V
|
||||||
touch build-stamp
|
|
||||||
|
|
||||||
clean:
|
override_dh_auto_install:
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
rm -f build-stamp
|
|
||||||
perl Makefile.PL
|
|
||||||
-$(MAKE) realclean
|
|
||||||
dh_clean
|
|
||||||
|
|
||||||
binary-arch: build
|
|
||||||
|
|
||||||
binary-indep: build
|
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
dh_clean -k
|
|
||||||
$(MAKE) pure_install INSTALLDIRS=vendor \
|
$(MAKE) pure_install INSTALLDIRS=vendor \
|
||||||
PREFIX=$(shell pwd)/debian/alien/$(shell perl -MConfig -e 'print $$Config{prefix}') \
|
PREFIX=$(shell pwd)/debian/alien/$(shell perl -MConfig -e 'print $$Config{prefix}') \
|
||||||
VARPREFIX=$(shell pwd)/debian/alien
|
VARPREFIX=$(shell pwd)/debian/alien
|
||||||
# Why does it make this empty directory? Sigh.
|
|
||||||
rm -rf debian/alien/usr/lib
|
override_dh_auto_clean:
|
||||||
dh_installdocs README gendiff.txt
|
# distclean moans about MANIFEST, this is quieter
|
||||||
dh_installexamples
|
if [ -e Makefile ]; then $(MAKE) realclean; fi
|
||||||
dh_installchangelogs
|
|
||||||
dh_compress
|
|
||||||
dh_fixperms
|
|
||||||
dh_perl
|
|
||||||
dh_installdeb
|
|
||||||
dh_gencontrol
|
|
||||||
dh_md5sums
|
|
||||||
dh_builddeb
|
|
||||||
|
|
||||||
# Not intended for use by anyone except the author.
|
# Not intended for use by anyone except the author.
|
||||||
announcedir:
|
announcedir:
|
||||||
@echo ${HOME}/src/joeywiki/code/alien/news
|
@echo ${HOME}/src/joeywiki/code/alien/news
|
||||||
|
|
||||||
binary: binary-indep binary-arch
|
|
||||||
.PHONY: build clean binary-indep binary-arch binary
|
|
||||||
|
|||||||
@@ -1,393 +0,0 @@
|
|||||||
--- j2sdk-1.4.2_05.orig/debian/dirs
|
|
||||||
+++ j2sdk-1.4.2_05/debian/dirs
|
|
||||||
@@ -0,0 +1,4 @@
|
|
||||||
+usr/share/doc
|
|
||||||
+usr/share/man
|
|
||||||
+usr/lib/netscape/plugins-libc6
|
|
||||||
+usr/lib/mozilla/plugins
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/control
|
|
||||||
+++ j2sdk-1.4.2_05/debian/control
|
|
||||||
@@ -0,0 +1,24 @@
|
|
||||||
+Source: j2sdk
|
|
||||||
+Section: non-free/devel
|
|
||||||
+Priority: optional
|
|
||||||
+Maintainer: Gerald Turner <gturner@unzane.com>
|
|
||||||
+
|
|
||||||
+Package: j2sdk1.4
|
|
||||||
+Architecture: i386
|
|
||||||
+Depends: ${shlibs:Depends}
|
|
||||||
+Provides: java-common, java-virtual-machine, java-runtime, java2-runtime, java-browser-plugin, java-compiler, java2-compiler, j2sdk1.4, j2re1.4
|
|
||||||
+Suggests: mozilla-browser (>= 1.2.1-10) | netscape
|
|
||||||
+Description: Java(TM) 2 SDK, Standard Edition, Sun Microsystems(TM)
|
|
||||||
+ The Java(TM) 2 SDK is a development environment for building
|
|
||||||
+ applications, applets, and components that can be deployed on the
|
|
||||||
+ Java platform.
|
|
||||||
+ .
|
|
||||||
+ The Java(TM) 2 SDK software includes tools useful for developing and
|
|
||||||
+ testing programs written in the Java programming language and running
|
|
||||||
+ on the Java platform. These tools are designed to be used from the
|
|
||||||
+ command line. Except for appletviewer, these tools do not provide a
|
|
||||||
+ graphical user interface.
|
|
||||||
+ .
|
|
||||||
+ This package has been converted from a rpm package by alien version
|
|
||||||
+ 8.46 using a special diff file to help make the package conform to
|
|
||||||
+ debian policy written by Gerald Turner.
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/prerm
|
|
||||||
+++ j2sdk-1.4.2_05/debian/prerm
|
|
||||||
@@ -0,0 +1,39 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+case "`uname -m`" in
|
|
||||||
+ i[3-7]86 | ia32 | ia64)
|
|
||||||
+ ARCH=i386
|
|
||||||
+ ;;
|
|
||||||
+ sparc*)
|
|
||||||
+ ARCH=sparc
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ ARCH="`uname -m`"
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+if [ $1 = remove ]
|
|
||||||
+then
|
|
||||||
+ for i in appletviewer extcheck idlj jar jarsigner java java-rmi.cgi javac \
|
|
||||||
+ javadoc javah javap jdb keytool kinit klist ktab native2ascii \
|
|
||||||
+ orbd policytool rmic rmid rmiregistry serialver servertool \
|
|
||||||
+ tnameserv HtmlConverter
|
|
||||||
+ do
|
|
||||||
+ update-alternatives --remove $i /usr/lib/j2sdk-1.4.2/bin/$i
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ for i in ControlPanel
|
|
||||||
+ do
|
|
||||||
+ update-alternatives --remove $i /usr/lib/j2sdk-1.4.2/jre/bin/$i
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --remove \
|
|
||||||
+ javaplugin.so \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/jre/plugin/${ARCH}/ns4/libjavaplugin.so
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --remove \
|
|
||||||
+ javaplugin_oji.so \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/jre/plugin/${ARCH}/ns610-gcc32/libjavaplugin_oji.so
|
|
||||||
+fi
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/rules
|
|
||||||
+++ j2sdk-1.4.2_05/debian/rules
|
|
||||||
@@ -0,0 +1,99 @@
|
|
||||||
+#!/usr/bin/make -f
|
|
||||||
+# 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)
|
|
||||||
+
|
|
||||||
+JAVA_HOME := debian/$(PACKAGE)/usr/lib/j2sdk-1.4.2
|
|
||||||
+MAN_DIR := debian/$(PACKAGE)/usr/share/man
|
|
||||||
+
|
|
||||||
+build:
|
|
||||||
+ dh_testdir
|
|
||||||
+
|
|
||||||
+clean:
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean
|
|
||||||
+
|
|
||||||
+binary-indep: build
|
|
||||||
+
|
|
||||||
+binary-arch: build
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean -k
|
|
||||||
+ dh_installdirs
|
|
||||||
+
|
|
||||||
+# Copy the packages's files.
|
|
||||||
+ find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
|
|
||||||
+ xargs -0 -r -i cp -a {} debian/$(PACKAGE)
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# If you need to move files around in debian/$(PACKAGE) or do some
|
|
||||||
+# binary patching, do it here
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+# Move RPM contents to a proper debian/blackdown directory
|
|
||||||
+ mv debian/$(PACKAGE)/usr/java/j2sdk1.4.2_05 $(JAVA_HOME)
|
|
||||||
+ rmdir debian/$(PACKAGE)/usr/java
|
|
||||||
+
|
|
||||||
+# Move man pages to /usr/share/man
|
|
||||||
+ mv $(JAVA_HOME)/man/* $(MAN_DIR)
|
|
||||||
+ rmdir $(JAVA_HOME)/man
|
|
||||||
+
|
|
||||||
+# Move Japanese man pages further
|
|
||||||
+ rm $(MAN_DIR)/ja
|
|
||||||
+ mv $(MAN_DIR)/ja_JP.eucJP $(MAN_DIR)/ja
|
|
||||||
+ for i in `find $(MAN_DIR) -type f` ; \
|
|
||||||
+ do mv $$i `echo $$i | sed 's/\.\([^.]*\)$$/.j2sdk-1_4_2.\1/'` ; \
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+# Unpack tripple compressed jars that showed up in 1.4.2
|
|
||||||
+ if [ -x $(JAVA_HOME)/lib/unpack ] ; then \
|
|
||||||
+ for i in `find $(JAVA_HOME) -name \*.pack` ; do \
|
|
||||||
+ $(JAVA_HOME)/lib/unpack \
|
|
||||||
+ $$i `dirname $$i`/`basename $$i .pack`.jar ; \
|
|
||||||
+ done ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+# Fix ControlPanel shell script incompatibilities
|
|
||||||
+ if [ -f $(JAVA_HOME)/jre/bin/ControlPanel ] ; then \
|
|
||||||
+ sed "s/\/usr\/bin\/ls/\/bin\/ls/g; \
|
|
||||||
+ s/expr \(.*\) : '^/expr \1 : '/;" \
|
|
||||||
+ $(JAVA_HOME)/jre/bin/ControlPanel \
|
|
||||||
+ > $(JAVA_HOME)/jre/bin/ControlPanel.tmp ; \
|
|
||||||
+ mv $(JAVA_HOME)/jre/bin/ControlPanel.tmp \
|
|
||||||
+ $(JAVA_HOME)/jre/bin/ControlPanel ; \
|
|
||||||
+ chmod 755 $(JAVA_HOME)/jre/bin/ControlPanel ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+# Include optional documentation
|
|
||||||
+ if [ -f ../j2sdk-1_4_2-doc.zip ] ; then \
|
|
||||||
+ unzip -q -d debian/$(PACKAGE)/usr/share/doc \
|
|
||||||
+ ../j2sdk-1_4_2-doc.zip ; \
|
|
||||||
+ mv debian/$(PACKAGE)/usr/share/doc/docs \
|
|
||||||
+ debian/$(PACKAGE)/usr/share/doc/$(PACKAGE) ; \
|
|
||||||
+ else \
|
|
||||||
+ echo j2sdk-1_4_2-doc.zip not found, skipping documentation ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ dh_installdocs
|
|
||||||
+ dh_installchangelogs
|
|
||||||
+
|
|
||||||
+# This has been known to break on some wacky binaries.
|
|
||||||
+# dh_strip
|
|
||||||
+ dh_compress
|
|
||||||
+ dh_fixperms
|
|
||||||
+ dh_makeshlibs
|
|
||||||
+ dh_installdeb
|
|
||||||
+ -dh_shlibdeps
|
|
||||||
+ dh_gencontrol
|
|
||||||
+ dh_md5sums
|
|
||||||
+ dh_builddeb
|
|
||||||
+
|
|
||||||
+binary: binary-indep binary-arch
|
|
||||||
+.PHONY: build clean binary-indep binary-arch binary
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/changelog
|
|
||||||
+++ j2sdk-1.4.2_05/debian/changelog
|
|
||||||
@@ -0,0 +1,86 @@
|
|
||||||
+j2sdk (2:1.4.2_05-1) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@unzane.com> Fri, 01 Oct 2004 10:01:53 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (2:1.4.2_03-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Mon, 19 Jan 2004 12:33:32 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (2:1.4.2-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Fix ControlPanel shell script incompatibilities. Closes: #200731
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 10 Jul 2003 09:59:23 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1:1.4.2-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * alien echoes the wrong filename, "j2sdk_1.4.2-1_i386.deb generated",
|
|
||||||
+ and fails to install when using the -i option. Reverted package name
|
|
||||||
+ j2sdk1.4 to j2sdk. Changed package version to 1 and use an epoch.
|
|
||||||
+ Closes: #199992
|
|
||||||
+ * The intent of the j2sdk1.4 package rename was so that that multiple
|
|
||||||
+ j2sdk versions could be installed simultaneously (i.e. j2sdk1.3).
|
|
||||||
+ This is no longer possible using this patch.
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Sun, 6 Jul 2003 13:39:31 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.2-6) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Mon, 30 Jun 2003 15:46:47 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1_02-5) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Fri, 14 Mar 2003 14:43:45 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1_01-4) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Tue, 14 Jan 2003 17:03:09 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-3) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_1-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Wed, 2 Oct 2002 16:41:24 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-2) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Added java-common Depends
|
|
||||||
+ * Added java-virtual-machine, java2-runtime, java-compiler, and
|
|
||||||
+ java2-compiler Provides
|
|
||||||
+ * Added netscape and mozilla Suggests
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 23 Aug 2002 09:07:09 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_1-rc-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 22 Aug 2002 16:22:33 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.0_01-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_0-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 22 Aug 2002 15:44:54 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.0-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Converted from .rpm format to .deb
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Wed, 22 May 2002 12:46:34 -0700
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/postinst
|
|
||||||
+++ j2sdk-1.4.2_05/debian/postinst
|
|
||||||
@@ -0,0 +1,85 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+case "`uname -m`" in
|
|
||||||
+ i[3-7]86 | ia32 | ia64)
|
|
||||||
+ ARCH=i386
|
|
||||||
+ ;;
|
|
||||||
+ sparc*)
|
|
||||||
+ ARCH=sparc
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ ARCH="`uname -m`"
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+if [ $1 = configure ]
|
|
||||||
+then
|
|
||||||
+ for i in appletviewer extcheck idlj jar jarsigner java java-rmi.cgi javac \
|
|
||||||
+ javadoc javah javap jdb keytool kinit klist ktab native2ascii \
|
|
||||||
+ orbd policytool rmic rmid rmiregistry serialver servertool \
|
|
||||||
+ tnameserv HtmlConverter
|
|
||||||
+ do
|
|
||||||
+ if [ -e /usr/share/man/man1/$i.j2sdk-1_4_2.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ if [ -e /usr/share/man/ja/man1/$i.j2sdk-1_4_2.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/bin/$i \
|
|
||||||
+ 1425 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/$i.1.gz \
|
|
||||||
+ $i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_4_2.1.gz \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/ja/man1/$i.1.gz \
|
|
||||||
+ $i.ja.1.gz \
|
|
||||||
+ /usr/share/man/ja/man1/$i.j2sdk-1_4_2.1.gz
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/bin/$i \
|
|
||||||
+ 1425 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/$i.1.gz \
|
|
||||||
+ $i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_4_2.1.gz
|
|
||||||
+ fi
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/bin/$i \
|
|
||||||
+ 1425
|
|
||||||
+ fi
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ for i in ControlPanel
|
|
||||||
+ do
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/jre/bin/$i \
|
|
||||||
+ 1425
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/lib/netscape/plugins-libc6/javaplugin.so \
|
|
||||||
+ javaplugin.so \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/jre/plugin/${ARCH}/ns4/libjavaplugin.so \
|
|
||||||
+ 1425
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/lib/mozilla/plugins/javaplugin_oji.so \
|
|
||||||
+ javaplugin_oji.so \
|
|
||||||
+ /usr/lib/j2sdk-1.4.2/jre/plugin/${ARCH}/ns610-gcc32/libjavaplugin_oji.so \
|
|
||||||
+ 1425
|
|
||||||
+fi
|
|
||||||
--- j2sdk-1.4.2_05.orig/debian/copyright
|
|
||||||
+++ j2sdk-1.4.2_05/debian/copyright
|
|
||||||
@@ -0,0 +1,35 @@
|
|
||||||
+This package was debianized by the alien program by converting
|
|
||||||
+a binary .rpm package on Mon, 19 Jan 2004 12:33:32 -0800
|
|
||||||
+
|
|
||||||
+Copyright: 1994-2001 Sun Microsystems, Inc.
|
|
||||||
+
|
|
||||||
+Information from the binary package:
|
|
||||||
+Name : j2sdk Relocations: (not relocateable)
|
|
||||||
+Version : 1.4.2_03 Vendor: Sun Microsystems
|
|
||||||
+Release : fcs Build Date: Tue Nov 18 17:08:10 2003
|
|
||||||
+Install date: (not installed) Build Host: localhost.localdomain
|
|
||||||
+Group : Development/Tools Source RPM: j2sdk-1.4.2_03-fcs.src.rpm
|
|
||||||
+Size : 65744430 License: 1994-2001 Sun Microsystems, Inc.
|
|
||||||
+Packager : Java Software <j2se-comments@java.sun.com>
|
|
||||||
+URL : http://java.sun.com/linux
|
|
||||||
+Summary : Java(TM) 2 Software Development Kit, Standard Edition
|
|
||||||
+Description :
|
|
||||||
+The Java 2 SDK, Standard Edition includes the Java
|
|
||||||
+Virtual Machine, core class libraries and tools used
|
|
||||||
+by programmers to develop Java software applets and
|
|
||||||
+applications. The SDK also provides the foundation
|
|
||||||
+for IDE (Integrated Development Environment) tools
|
|
||||||
+such as Sun's Forte for Java, Community Edition,
|
|
||||||
+the Java(TM) 2 Platform, Enterprise Edition (J2EE),
|
|
||||||
+Java-based application servers and more.
|
|
||||||
+The Java 2 Software Development Kit, SDK, is a
|
|
||||||
+development environment for building applications,
|
|
||||||
+applets, and components that can be deployed on
|
|
||||||
+the Java platform. The Java 2 SDK software includes
|
|
||||||
+tools useful for developing and testing programs
|
|
||||||
+written in the Java programming language and running
|
|
||||||
+on the Java platform. These tools are designed to
|
|
||||||
+be used from the command line. Except for
|
|
||||||
+appletviewer, these tools do not provide a
|
|
||||||
+graphical user interface.
|
|
||||||
+
|
|
||||||
@@ -1,420 +0,0 @@
|
|||||||
--- jdk-1.5.0.orig/debian/dirs
|
|
||||||
+++ jdk-1.5.0/debian/dirs
|
|
||||||
@@ -0,0 +1,4 @@
|
|
||||||
+usr/share/doc
|
|
||||||
+usr/share/man
|
|
||||||
+usr/lib/netscape/plugins-libc6
|
|
||||||
+usr/lib/mozilla/plugins
|
|
||||||
--- jdk-1.5.0.orig/debian/control
|
|
||||||
+++ jdk-1.5.0/debian/control
|
|
||||||
@@ -0,0 +1,24 @@
|
|
||||||
+Source: jdk
|
|
||||||
+Section: non-free/devel
|
|
||||||
+Priority: optional
|
|
||||||
+Maintainer: Gerald Turner <gturner@unzane.com>
|
|
||||||
+
|
|
||||||
+Package: jdk1.5
|
|
||||||
+Architecture: i386
|
|
||||||
+Depends: ${shlibs:Depends}
|
|
||||||
+Provides: java-common, java-virtual-machine, java-runtime, java2-runtime, java-browser-plugin, java-compiler, java2-compiler, j2sdk1.4, j2re1.4
|
|
||||||
+Suggests: mozilla-browser (>= 1.2.1-10)
|
|
||||||
+Description: Java(TM) 2 SDK, Standard Edition, Sun Microsystems(TM)
|
|
||||||
+ The Java(TM) 2 SDK is a development environment for building
|
|
||||||
+ applications, applets, and components that can be deployed on the
|
|
||||||
+ Java platform.
|
|
||||||
+ .
|
|
||||||
+ The Java(TM) 2 SDK software includes tools useful for developing and
|
|
||||||
+ testing programs written in the Java programming language and running
|
|
||||||
+ on the Java platform. These tools are designed to be used from the
|
|
||||||
+ command line. Except for appletviewer, these tools do not provide a
|
|
||||||
+ graphical user interface.
|
|
||||||
+ .
|
|
||||||
+ This package has been converted from a rpm package by alien version
|
|
||||||
+ 8.46 using a special diff file to help make the package conform to
|
|
||||||
+ debian policy written by Gerald Turner.
|
|
||||||
--- jdk-1.5.0.orig/debian/prerm
|
|
||||||
+++ jdk-1.5.0/debian/prerm
|
|
||||||
@@ -0,0 +1,35 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+case "`uname -m`" in
|
|
||||||
+ i[3-7]86 | ia32 | ia64)
|
|
||||||
+ ARCH=i386
|
|
||||||
+ ;;
|
|
||||||
+ sparc*)
|
|
||||||
+ ARCH=sparc
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ ARCH="`uname -m`"
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+if [ $1 = remove ]
|
|
||||||
+then
|
|
||||||
+ for i in appletviewer ControlPanel extcheck HtmlConverter idlj jar \
|
|
||||||
+ jarsigner java javac javadoc javah javap java-rmi.cgi javaws \
|
|
||||||
+ jconsole jdb jinfo jmap jps jsadebugd jstack jstat jstatd \
|
|
||||||
+ keytool kinit klist ktab native2ascii orbd pack200 policytool \
|
|
||||||
+ rmic rmid rmiregistry serialver servertool tnameserv unpack200
|
|
||||||
+ do
|
|
||||||
+ update-alternatives --remove $i /usr/lib/j2sdk-1.5.0/bin/$i
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ for i in apt
|
|
||||||
+ do
|
|
||||||
+ update-alternatives --remove j$i /usr/lib/j2sdk-1.5.0/bin/$i
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --remove \
|
|
||||||
+ javaplugin_oji.so \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/jre/plugin/${ARCH}/ns7/libjavaplugin_oji.so
|
|
||||||
+fi
|
|
||||||
--- jdk-1.5.0.orig/debian/rules
|
|
||||||
+++ jdk-1.5.0/debian/rules
|
|
||||||
@@ -0,0 +1,108 @@
|
|
||||||
+#!/usr/bin/make -f
|
|
||||||
+# 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)
|
|
||||||
+
|
|
||||||
+JAVA_HOME := debian/$(PACKAGE)/usr/lib/j2sdk-1.5.0
|
|
||||||
+MAN_DIR := debian/$(PACKAGE)/usr/share/man
|
|
||||||
+
|
|
||||||
+build:
|
|
||||||
+ dh_testdir
|
|
||||||
+
|
|
||||||
+clean:
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean
|
|
||||||
+
|
|
||||||
+binary-indep: build
|
|
||||||
+
|
|
||||||
+binary-arch: build
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean -k
|
|
||||||
+ dh_installdirs
|
|
||||||
+
|
|
||||||
+# Copy the packages's files.
|
|
||||||
+ find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
|
|
||||||
+ xargs -0 -r -i cp -a {} debian/$(PACKAGE)
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# If you need to move files around in debian/$(PACKAGE) or do some
|
|
||||||
+# binary patching, do it here
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+# Move RPM contents to a proper debian/blackdown directory
|
|
||||||
+ mv debian/$(PACKAGE)/usr/java/jdk1.5.0 $(JAVA_HOME)
|
|
||||||
+ rmdir debian/$(PACKAGE)/usr/java
|
|
||||||
+
|
|
||||||
+# Move man pages to /usr/share/man
|
|
||||||
+ mv $(JAVA_HOME)/man/* $(MAN_DIR)
|
|
||||||
+ rmdir $(JAVA_HOME)/man
|
|
||||||
+
|
|
||||||
+# Move Japanese man pages further
|
|
||||||
+ rm $(MAN_DIR)/ja
|
|
||||||
+ mv $(MAN_DIR)/ja_JP.eucJP $(MAN_DIR)/ja
|
|
||||||
+ for i in `find $(MAN_DIR) -type f` ; \
|
|
||||||
+ do mv $$i `echo $$i | sed 's/\.\([^.]*\)$$/.j2sdk-1_5_0.\1/'` ; \
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+# Unpack tripple compressed jars that showed up in 1.4.2
|
|
||||||
+ if [ -x $(JAVA_HOME)/bin/unpack200 ] ; then \
|
|
||||||
+ for i in `find $(JAVA_HOME) -name \*.pack` ; do \
|
|
||||||
+ $(JAVA_HOME)/bin/unpack200 \
|
|
||||||
+ $$i `dirname $$i`/`basename $$i .pack`.jar ; \
|
|
||||||
+ done ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+# Fix ControlPanel shell script incompatibilities
|
|
||||||
+ if [ -f $(JAVA_HOME)/bin/ControlPanel ] ; then \
|
|
||||||
+ sed "s/\/usr\/bin\/ls/\/bin\/ls/g; \
|
|
||||||
+ s/expr \(.*\) : '^/expr \1 : '/;" \
|
|
||||||
+ $(JAVA_HOME)/bin/ControlPanel \
|
|
||||||
+ > $(JAVA_HOME)/bin/ControlPanel.tmp ; \
|
|
||||||
+ mv $(JAVA_HOME)/bin/ControlPanel.tmp \
|
|
||||||
+ $(JAVA_HOME)/bin/ControlPanel ; \
|
|
||||||
+ chmod 755 $(JAVA_HOME)/bin/ControlPanel ; \
|
|
||||||
+ fi
|
|
||||||
+ if [ -f $(JAVA_HOME)/jre/bin/ControlPanel ] ; then \
|
|
||||||
+ sed "s/\/usr\/bin\/ls/\/bin\/ls/g; \
|
|
||||||
+ s/expr \(.*\) : '^/expr \1 : '/;" \
|
|
||||||
+ $(JAVA_HOME)/jre/bin/ControlPanel \
|
|
||||||
+ > $(JAVA_HOME)/jre/bin/ControlPanel.tmp ; \
|
|
||||||
+ mv $(JAVA_HOME)/jre/bin/ControlPanel.tmp \
|
|
||||||
+ $(JAVA_HOME)/jre/bin/ControlPanel ; \
|
|
||||||
+ chmod 755 $(JAVA_HOME)/jre/bin/ControlPanel ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+# Include optional documentation
|
|
||||||
+ if [ -f ../jdk-1_5_0-doc.zip ] ; then \
|
|
||||||
+ unzip -q -d debian/$(PACKAGE)/usr/share/doc \
|
|
||||||
+ ../jdk-1_5_0-doc.zip ; \
|
|
||||||
+ mv debian/$(PACKAGE)/usr/share/doc/docs \
|
|
||||||
+ debian/$(PACKAGE)/usr/share/doc/$(PACKAGE) ; \
|
|
||||||
+ else \
|
|
||||||
+ echo jdk-1_5_0-doc.zip not found, skipping documentation ; \
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ dh_installdocs
|
|
||||||
+ dh_installchangelogs
|
|
||||||
+
|
|
||||||
+# This has been known to break on some wacky binaries.
|
|
||||||
+# dh_strip
|
|
||||||
+ dh_compress
|
|
||||||
+ dh_fixperms
|
|
||||||
+ dh_makeshlibs
|
|
||||||
+ dh_installdeb
|
|
||||||
+ -dh_shlibdeps
|
|
||||||
+ dh_gencontrol
|
|
||||||
+ dh_md5sums
|
|
||||||
+ dh_builddeb
|
|
||||||
+
|
|
||||||
+binary: binary-indep binary-arch
|
|
||||||
+.PHONY: build clean binary-indep binary-arch binary
|
|
||||||
--- jdk-1.5.0.orig/debian/changelog
|
|
||||||
+++ jdk-1.5.0/debian/changelog
|
|
||||||
@@ -0,0 +1,92 @@
|
|
||||||
+jdk (1.5.0-1) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@unzane.com> Fri, 01 Oct 2004 14:19:16 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (2:1.4.2_05-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@unzane.com> Fri, 01 Oct 2004 10:01:53 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (2:1.4.2_03-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Mon, 19 Jan 2004 12:33:32 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (2:1.4.2-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Fix ControlPanel shell script incompatibilities. Closes: #200731
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 10 Jul 2003 09:59:23 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1:1.4.2-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * alien echoes the wrong filename, "j2sdk_1.4.2-1_i386.deb generated",
|
|
||||||
+ and fails to install when using the -i option. Reverted package name
|
|
||||||
+ j2sdk1.4 to j2sdk. Changed package version to 1 and use an epoch.
|
|
||||||
+ Closes: #199992
|
|
||||||
+ * The intent of the j2sdk1.4 package rename was so that that multiple
|
|
||||||
+ j2sdk versions could be installed simultaneously (i.e. j2sdk1.3).
|
|
||||||
+ This is no longer possible using this patch.
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Sun, 6 Jul 2003 13:39:31 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.2-6) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Mon, 30 Jun 2003 15:46:47 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1_02-5) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Fri, 14 Mar 2003 14:43:45 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1_01-4) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Tue, 14 Jan 2003 17:03:09 -0800
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-3) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_1-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Wed, 2 Oct 2002 16:41:24 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-2) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Added java-common Depends
|
|
||||||
+ * Added java-virtual-machine, java2-runtime, java-compiler, and
|
|
||||||
+ java2-compiler Provides
|
|
||||||
+ * Added netscape and mozilla Suggests
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 23 Aug 2002 09:07:09 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.1-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_1-rc-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 22 Aug 2002 16:22:33 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.0_01-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * New upstream release
|
|
||||||
+ * Detection and installation of j2sdk-1_4_0-doc.zip (must be downloaded
|
|
||||||
+ and copied to the same directory where alien is executed)
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Thu, 22 Aug 2002 15:44:54 -0700
|
|
||||||
+
|
|
||||||
+j2sdk (1.4.0-1) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Converted from .rpm format to .deb
|
|
||||||
+
|
|
||||||
+ -- Gerald Turner <gturner@newedgenetworks.com> Wed, 22 May 2002 12:46:34 -0700
|
|
||||||
--- jdk-1.5.0.orig/debian/postinst
|
|
||||||
+++ jdk-1.5.0/debian/postinst
|
|
||||||
@@ -0,0 +1,111 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+case "`uname -m`" in
|
|
||||||
+ i[3-7]86 | ia32 | ia64)
|
|
||||||
+ ARCH=i386
|
|
||||||
+ ;;
|
|
||||||
+ sparc*)
|
|
||||||
+ ARCH=sparc
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ ARCH="`uname -m`"
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+if [ $1 = configure ]
|
|
||||||
+then
|
|
||||||
+ for i in appletviewer ControlPanel extcheck HtmlConverter idlj jar \
|
|
||||||
+ jarsigner java javac javadoc javah javap java-rmi.cgi javaws \
|
|
||||||
+ jconsole jdb jinfo jmap jps jsadebugd jstack jstat jstatd \
|
|
||||||
+ keytool kinit klist ktab native2ascii orbd pack200 policytool \
|
|
||||||
+ rmic rmid rmiregistry serialver servertool tnameserv unpack200
|
|
||||||
+ do
|
|
||||||
+ if [ -e /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ if [ -e /usr/share/man/ja/man1/$i.j2sdk-1_5_0.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/$i.1.gz \
|
|
||||||
+ $i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/ja/man1/$i.1.gz \
|
|
||||||
+ $i.ja.1.gz \
|
|
||||||
+ /usr/share/man/ja/man1/$i.j2sdk-1_5_0.1.gz
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/$i.1.gz \
|
|
||||||
+ $i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz
|
|
||||||
+ fi
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/$i \
|
|
||||||
+ $i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500
|
|
||||||
+ fi
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ for i in apt
|
|
||||||
+ do
|
|
||||||
+ if [ -e /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ if [ -e /usr/share/man/ja/man1/$i.j2sdk-1_5_0.1.gz ]
|
|
||||||
+ then
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/j$i \
|
|
||||||
+ j$i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/j$i.1.gz \
|
|
||||||
+ j$i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/ja/man1/j$i.1.gz \
|
|
||||||
+ j$i.ja.1.gz \
|
|
||||||
+ /usr/share/man/ja/man1/$i.j2sdk-1_5_0.1.gz
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/j$i \
|
|
||||||
+ j$i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500 \
|
|
||||||
+ --slave \
|
|
||||||
+ /usr/share/man/man1/j$i.1.gz \
|
|
||||||
+ j$i.1.gz \
|
|
||||||
+ /usr/share/man/man1/$i.j2sdk-1_5_0.1.gz
|
|
||||||
+ fi
|
|
||||||
+ else
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/bin/j$i \
|
|
||||||
+ j$i \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/bin/$i \
|
|
||||||
+ 1500
|
|
||||||
+ fi
|
|
||||||
+ done
|
|
||||||
+
|
|
||||||
+ update-alternatives \
|
|
||||||
+ --install \
|
|
||||||
+ /usr/lib/mozilla/plugins/javaplugin_oji.so \
|
|
||||||
+ javaplugin_oji.so \
|
|
||||||
+ /usr/lib/j2sdk-1.5.0/jre/plugin/${ARCH}/ns7/libjavaplugin_oji.so \
|
|
||||||
+ 1500
|
|
||||||
+fi
|
|
||||||
--- jdk-1.5.0.orig/debian/copyright
|
|
||||||
+++ jdk-1.5.0/debian/copyright
|
|
||||||
@@ -0,0 +1,25 @@
|
|
||||||
+This package was debianized by the alien program by converting
|
|
||||||
+a binary .rpm package on Fri, 1 Oct 2004 10:18:23 -0700
|
|
||||||
+
|
|
||||||
+Copyright: Sun Microsystems Binary Code License (BCL)
|
|
||||||
+
|
|
||||||
+Information from the binary package:
|
|
||||||
+Name : jdk Relocations: /usr/java
|
|
||||||
+Version : 1.5.0 Vendor: Sun Microsystems, Inc.
|
|
||||||
+Release : fcs Build Date: Wed 15 Sep 2004 06:18:37 AM PDT
|
|
||||||
+Install date: (not installed) Build Host: tiger-linux
|
|
||||||
+Group : Development/Tools Source RPM: jdk-1.5.0-fcs.src.rpm
|
|
||||||
+Size : 80132114 License: Sun Microsystems Binary Code License (BCL)
|
|
||||||
+Packager : Java Software <j2se-comments@java.sun.com>
|
|
||||||
+URL : http://java.sun.com/
|
|
||||||
+Summary : Java(TM) 2 Platform Standard Edition Development Kit
|
|
||||||
+Description :
|
|
||||||
+The Java 2 Platform Standard Edition Development Kit (JDK) includes both the
|
|
||||||
+runtime environment (Java virtual machine, the Java platform classes and
|
|
||||||
+supporting files) and development tools (compilers, debuggers, tool libraries
|
|
||||||
+and other tools).
|
|
||||||
+
|
|
||||||
+The JDK is a development environment for building applications, applets and
|
|
||||||
+components that can be deployed with the Java 2 Platform Standard Edition
|
|
||||||
+Runtime Environment.
|
|
||||||
+
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
--- lgtoclnt-7.1.2.orig/debian/copyright
|
|
||||||
+++ lgtoclnt-7.1.2/debian/copyright
|
|
||||||
@@ -0,0 +1,20 @@
|
|
||||||
+This package was debianized by the alien program by converting
|
|
||||||
+a binary .rpm package on Wed, 13 Oct 2004 10:49:10 -0400
|
|
||||||
+
|
|
||||||
+Copyright: commercial
|
|
||||||
+
|
|
||||||
+Information from the binary package:
|
|
||||||
+Name : lgtoclnt Relocations: /usr
|
|
||||||
+Version : 7.1.2 Vendor: LEGATO Software, a Division of EMC
|
|
||||||
+Release : 1 Build Date: Fri Jun 4 06:13:15 2004
|
|
||||||
+Install date: (not installed) Build Host: azzurro.legato.com
|
|
||||||
+Group : Utilities Source RPM: lgtoclnt-7.1.2-1.src.rpm
|
|
||||||
+Size : 34958741 License: commercial
|
|
||||||
+Packager : Support support@legato.com
|
|
||||||
+URL : http://www.legato.com
|
|
||||||
+Summary : LEGATO NetWorker Client for Linux Platforms
|
|
||||||
+Description :
|
|
||||||
+LEGATO's NetWorker client is a set of programs that manage automated
|
|
||||||
+backups to and directed retrievals from a LEGATO NetWorker server across
|
|
||||||
+the network.
|
|
||||||
+
|
|
||||||
--- lgtoclnt-7.1.2.orig/debian/dirs
|
|
||||||
+++ lgtoclnt-7.1.2/debian/dirs
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+etc
|
|
||||||
--- lgtoclnt-7.1.2.orig/debian/lgtoclnt.networker.init
|
|
||||||
+++ lgtoclnt-7.1.2/debian/lgtoclnt.networker.init
|
|
||||||
@@ -0,0 +1,27 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+case $1 in
|
|
||||||
+'start')
|
|
||||||
+ (echo 'starting NetWorker daemons:') > /dev/console
|
|
||||||
+ if [ -f /usr/sbin/nsrexecd ]; then
|
|
||||||
+ (/usr/sbin/nsrexecd) > /dev/console 2>&1
|
|
||||||
+ (echo ' nsrexecd') > /dev/console
|
|
||||||
+ (echo '') > /dev/console
|
|
||||||
+ fi
|
|
||||||
+ if [ -f /usr/sbin/nsrd ]; then
|
|
||||||
+ (/usr/sbin/nsrd) > /dev/console 2>&1
|
|
||||||
+ (echo ' nsrd') > /dev/console
|
|
||||||
+ (echo '') > /dev/console
|
|
||||||
+ fi
|
|
||||||
+;;
|
|
||||||
+'stop')
|
|
||||||
+ (echo 'stopping NetWorker daemons:') > /dev/console
|
|
||||||
+ if [ -f /usr/sbin/nsr_shutdown ]; then
|
|
||||||
+ (/usr/sbin/nsr_shutdown -a -q&) > /dev/console 2>&1
|
|
||||||
+ (echo ' nsr_shutdown -a -q') > /dev/console
|
|
||||||
+ (echo '') > /dev/console
|
|
||||||
+ fi
|
|
||||||
+;;
|
|
||||||
+*)
|
|
||||||
+ echo "usage: `basename $0` {start|stop}"
|
|
||||||
+;;
|
|
||||||
+esac
|
|
||||||
--- lgtoclnt-7.1.2.orig/debian/control
|
|
||||||
+++ lgtoclnt-7.1.2/debian/control
|
|
||||||
@@ -0,0 +1,14 @@
|
|
||||||
+Source: lgtoclnt
|
|
||||||
+Section: non-free/admin
|
|
||||||
+Priority: extra
|
|
||||||
+Maintainer: Clint Adams <schizo@debian.org>
|
|
||||||
+
|
|
||||||
+Package: lgtoclnt
|
|
||||||
+Architecture: i386
|
|
||||||
+Depends: ${shlibs:Depends}
|
|
||||||
+Description: LEGATO NetWorker Client for Linux Platforms
|
|
||||||
+ LEGATO's NetWorker client is a set of programs that manage automated
|
|
||||||
+ backups to and directed retrievals from a LEGATO NetWorker server across
|
|
||||||
+ the network.
|
|
||||||
+ .
|
|
||||||
+ (Converted from a rpm package by alien version 8.47.)
|
|
||||||
--- lgtoclnt-7.1.2.orig/debian/changelog
|
|
||||||
+++ lgtoclnt-7.1.2/debian/changelog
|
|
||||||
@@ -0,0 +1,10 @@
|
|
||||||
+lgtoclnt (7.1.2-2) experimental; urgency=low
|
|
||||||
+
|
|
||||||
+ * Converted from .rpm format to .deb
|
|
||||||
+ by alien version 8.47
|
|
||||||
+ * Moved app-defaults to /etc/X11.
|
|
||||||
+ * Re-added init script.
|
|
||||||
+
|
|
||||||
+ -- Clint Adams <schizo@debian.org> Wed, 13 Oct 2004 10:49:10 -0400
|
|
||||||
+
|
|
||||||
+Initial deployment.
|
|
||||||
--- lgtoclnt-7.1.2.orig/debian/rules
|
|
||||||
+++ lgtoclnt-7.1.2/debian/rules
|
|
||||||
@@ -0,0 +1,55 @@
|
|
||||||
+#!/usr/bin/make -f
|
|
||||||
+# debian/rules for alien
|
|
||||||
+
|
|
||||||
+# Uncomment this to turn on verbose mode.
|
|
||||||
+#export DH_VERBOSE=1
|
|
||||||
+
|
|
||||||
+# Use v3 compatability mode, so ldconfig gets added to maint scripts.
|
|
||||||
+export DH_COMPAT=4
|
|
||||||
+
|
|
||||||
+PACKAGE=$(shell dh_listpackages)
|
|
||||||
+
|
|
||||||
+build:
|
|
||||||
+ dh_testdir
|
|
||||||
+
|
|
||||||
+clean:
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean -d
|
|
||||||
+
|
|
||||||
+binary-indep: build
|
|
||||||
+
|
|
||||||
+binary-arch: build
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean -k -d
|
|
||||||
+ dh_installdirs
|
|
||||||
+
|
|
||||||
+ dh_installdocs
|
|
||||||
+ dh_installchangelogs
|
|
||||||
+
|
|
||||||
+# Copy the packages's files.
|
|
||||||
+ find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
|
|
||||||
+ xargs -0 -r -i cp -a {} debian/$(PACKAGE)
|
|
||||||
+
|
|
||||||
+ mv debian/$(PACKAGE)/usr/lib/X11 debian/$(PACKAGE)/etc
|
|
||||||
+
|
|
||||||
+#
|
|
||||||
+# If you need to move files around in debian/$(PACKAGE) or do some
|
|
||||||
+# binary patching, do it here
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+ dh_installinit --name=networker --update-rcd-params="defaults 95 5"
|
|
||||||
+# This has been known to break on some wacky binaries.
|
|
||||||
+# dh_strip
|
|
||||||
+ dh_compress
|
|
||||||
+# dh_fixperms
|
|
||||||
+ dh_makeshlibs
|
|
||||||
+ dh_installdeb
|
|
||||||
+ -dh_shlibdeps
|
|
||||||
+ dh_gencontrol
|
|
||||||
+ dh_md5sums
|
|
||||||
+ dh_builddeb
|
|
||||||
+
|
|
||||||
+binary: binary-indep binary-arch
|
|
||||||
+.PHONY: build clean binary-indep binary-arch binary
|
|
||||||
@@ -1,381 +0,0 @@
|
|||||||
--- motif-devel-2.1.10.orig/debian/changelog-template
|
|
||||||
+++ motif-devel-2.1.10/debian/changelog-template
|
|
||||||
@@ -0,0 +1,31 @@
|
|
||||||
+#PACKAGE# (#VERS#-7) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Disabled dh_undocumented.
|
|
||||||
+ * Removed dh_suidregister.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Jan 2001 11:58:56 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-6) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Depends on xlibs-dev.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Sat, 9 Dec 2000 12:27:50 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-5) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Made mxterm use libncurses.so.5 instead of libtermcap.so.2.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Mon, 3 Jan 2000 10:04:26 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-4) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Converted from RPM binary format to Debian.
|
|
||||||
+ * Added *.so symlinks.
|
|
||||||
+ * Added mxmkmf.
|
|
||||||
+ * Enabled dh_undocumented and dh_fixperms.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Nov 1999 19:31:18 +0100
|
|
||||||
+
|
|
||||||
+Local variables:
|
|
||||||
+mode: debian-changelog
|
|
||||||
+End:
|
|
||||||
--- motif-devel-2.1.10.orig/debian/control
|
|
||||||
+++ motif-devel-2.1.10/debian/control
|
|
||||||
@@ -0,0 +1,14 @@
|
|
||||||
+Source: motif-devel
|
|
||||||
+Section: non-free/x11
|
|
||||||
+Priority: extra
|
|
||||||
+Build-Depends: debhelper, motif
|
|
||||||
+Maintainer: Andreas Voegele <andreas.voegele@gmx.de>
|
|
||||||
+Standards-Version: 3.1.1
|
|
||||||
+
|
|
||||||
+Package: motif-devel
|
|
||||||
+Architecture: any
|
|
||||||
+Depends: motif (= ${Source-Version}), libc6-dev, xlibs-dev
|
|
||||||
+Conflicts: lesstif-bin, lesstif-dev, lesstif-dbg, lesstif1, lesstifg, openmotif, openmotif-devel
|
|
||||||
+Description: Development files for the Motif toolkit
|
|
||||||
+ This is the Motif development environment. It includes the static
|
|
||||||
+ libraries and header files necessary to build Motif based applications.
|
|
||||||
--- motif-devel-2.1.10.orig/debian/copyright
|
|
||||||
+++ motif-devel-2.1.10/debian/copyright
|
|
||||||
@@ -0,0 +1,150 @@
|
|
||||||
+This is the prepackaged version of Metro Link Motif. It was debianized
|
|
||||||
+by the alien program by converting a binary RPM package.
|
|
||||||
+
|
|
||||||
+Metro Link's web site can be found at http://www.metrolink.com/
|
|
||||||
+
|
|
||||||
+METRO LINK WARRANTY AND LICENSE AGREEMENT
|
|
||||||
+
|
|
||||||
+READ THESE LICENSE TERMS BEFORE OPENING THE SOFTWARE PACKAGE.
|
|
||||||
+OPENING THE SOFTWARE PACKAGE INDICATES YOUR ACCEPTANCE OF THIS LICENSE.
|
|
||||||
+IF YOU DO NOT AGREE TO THESE LICENSE TERMS, RETURN THE SOFTWARE PACKAGE
|
|
||||||
+UNOPENED (ALONG WITH ALL ASSOCIATED WRITTEN PRODUCT MATERIALS) AND
|
|
||||||
+WITHIN THE WARRANTY PERIOD TO THE DEALER FROM WHOM YOU OBTAINED IT
|
|
||||||
+FOR A FULL REFUND.
|
|
||||||
+
|
|
||||||
+This License is an agreement between you and METRO LINK INCORPORATED
|
|
||||||
+(hereafter "ML").
|
|
||||||
+
|
|
||||||
+1. LICENSE GRANT
|
|
||||||
+
|
|
||||||
+Subject to the terms set forth in this License, you may use the
|
|
||||||
+enclosed computer product ("SOFTWARE"), including all associated
|
|
||||||
+software documentation furnished with this package, solely for your
|
|
||||||
+internal business purposes in the country in which the Software was
|
|
||||||
+furnished to you and on a single computer system (i.e. single or
|
|
||||||
+multiple CPU system in the same physical cabinet).
|
|
||||||
+
|
|
||||||
+NFS mounting of programs or clients is not permitted.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+2. COPYRIGHT AND TITLE.
|
|
||||||
+
|
|
||||||
+The Software and its copyrights are owned by ML or its suppliers.
|
|
||||||
+The Software is protected by United States copyright laws and
|
|
||||||
+international treaty provisions. Therefore, you must treat the
|
|
||||||
+Software like any other copyrighted material (e.g., a book or musical
|
|
||||||
+recording) except that you may either (a) make one (1) copy of the
|
|
||||||
+Software solely for backup purposes or (b) transfer the Software to
|
|
||||||
+a single hard disk provided you keep the original solely for backup
|
|
||||||
+or archival purposes. You must reproduce and include the copyright
|
|
||||||
+notice on the backup copy. You may not copy the written materials.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+3. RESTRICTED USE.
|
|
||||||
+
|
|
||||||
+You may not rent or lease the Software, and you may not reverse engineer,
|
|
||||||
+decompile, or disassemble the Software. Furthermore, certain components
|
|
||||||
+of the Software are licensed for use exclusively with hardware supplied
|
|
||||||
+by specific manufacturers, and you may not modify the Software so that
|
|
||||||
+it will operate with hardware supplied by alternate manufacturers.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+4. ADAPTATIONS
|
|
||||||
+
|
|
||||||
+Any part of the Software that you merge with other software is still
|
|
||||||
+property of ML. In the event this License is terminated, you may not
|
|
||||||
+use part of the Software even if it has been merged with other software.
|
|
||||||
+You agree to take reasonable steps to protect ML's Software from theft
|
|
||||||
+or use contrary to this License.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+5. LIMITED 30-DAY WARRANTIES.
|
|
||||||
+
|
|
||||||
+ML warrants to you (the original Licensee) for thirty (30) days from
|
|
||||||
+the date of delivery to you of the Software, as evidenced by a copy
|
|
||||||
+of your license purchase receipt ( the Warranty Period"), that the
|
|
||||||
+Software shall be in operable condition as described in the documentation
|
|
||||||
+provided with the product code, and that the media upon which the
|
|
||||||
+Software is furnished to you will be free from defects in material and
|
|
||||||
+workmanship under normal use. FOR WARRANTY ASSISTANCE, YOU MAY EITHER
|
|
||||||
+RETURN THE SOFTWARE TO THE DEALER FROM WHICH YOU PURCHASED THE LICENSE,
|
|
||||||
+OR CONTACT THAT DEALER (WHOSE NAME AND ADDRESS IS SET FORTH ON THE BOX
|
|
||||||
+CONTAINING THIS WARRANTY), OR CONTACT ML AT THE ADDRESS STATED ON THIS
|
|
||||||
+LICENSE, ATTN: CUSTOMER SERVICE DEPARTMENT. This warranty allocates
|
|
||||||
+risks of product failure between you and ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+6. NO OTHER WARRANTIES.
|
|
||||||
+
|
|
||||||
+The agents, employees, distributors, and dealers of ML are not
|
|
||||||
+authorized to make modifications to this warranty, nor are additional
|
|
||||||
+warranties binding on ML. Accordingly, additional statements such as
|
|
||||||
+dealer advertising or presentations, whether oral or written, do not
|
|
||||||
+constitute warranties by ML and should not be relied upon as a limited
|
|
||||||
+warranty of ML.
|
|
||||||
+
|
|
||||||
+ML AND ITS SUPPLIERS MAKE NO OTHER REPRESENTATIONS, CONDITIONS, OR
|
|
||||||
+WARRANTIES, EXPRESSED OR IMPLIED. ANY IMPLIED WARRANTY OR CONDITION OF
|
|
||||||
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE IS LIMITED IN
|
|
||||||
+DURATION TO THE WARRANTY PERIOD. SOME STATES DO NOT ALLOW LIMITATIONS
|
|
||||||
+ON HOW LONG AN IMPLIED WARRANTY LASTS, SO THE ABOVE LIMITATIONS MAY NOT
|
|
||||||
+APPLY TO YOU. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY
|
|
||||||
+ALSO HAVE OTHER LEGAL RIGHTS WHICH VARY FROM STATE TO STATE.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+7. CUSTOMER REMEDIES
|
|
||||||
+
|
|
||||||
+YOUR SOLE AND EXCLUSIVE REMEDY AND ML'S SOLE LIABILITY HEREUNDER
|
|
||||||
+SHALL BE, UPON YOUR RETURN OF THE SOFTWARE TO ML WITH THE RECEIPT
|
|
||||||
+WITHIN THE WARRANTY PERIOD, AT ML'S OPTION, REPLACEMENT OR REPAIR
|
|
||||||
+OF SOFTWARE THAT DOES NOT MEET ML'S LIMITED WARRANTY OR A REFUND OF
|
|
||||||
+THE SOFTWARE'S PURCHASE PRICE. ML'S SUPPLIERS SHALL NOT BE HELD TO
|
|
||||||
+ANY LIABILITY FOR ANY DAMAGES SUFFERED OR INCURRED BY YOU. IN NO EVENT
|
|
||||||
+SHALL ML OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY
|
|
||||||
+INCIDENTAL, COLLATERAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
|
|
||||||
+WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, LOSS OF CUSTOMERS,
|
|
||||||
+LOSS OF GOOD WILL, WORK STOPPAGE, DATA LOSS, COMPUTER FAILURE OR
|
|
||||||
+MALFUNCTION, CLAIMS BY ANY PARTY OTHER THAN YOU, OR ANY OR ALL OTHER
|
|
||||||
+SIMILAR DAMAGES OR LOSS EVEN IF ML, ITS SUPPLIERS, OR ITS AGENT HAS
|
|
||||||
+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT
|
|
||||||
+ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL
|
|
||||||
+DAMAGES, SO THE ABOVE LIMITATIONS OR EXCLUSION MAY NOT APPLY TO YOU.
|
|
||||||
+
|
|
||||||
+ML shall have no liability or responsibility for Software altered,
|
|
||||||
+modified, or converted by you or a third party, damages resulting
|
|
||||||
+from accident, abuse, or misapplication, or for problems due to the
|
|
||||||
+malfunction of your equipment or software not supplied by ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+8. TERMINATION
|
|
||||||
+
|
|
||||||
+This License is in effect until terminated and terminates without
|
|
||||||
+notice from ML if you fail to comply with any of its provisions.
|
|
||||||
+Upon termination you shall either destroy the Software and all copies
|
|
||||||
+or portions thereof or return the Software and all copies as portions
|
|
||||||
+thereof to ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+9. GENERAL
|
|
||||||
+
|
|
||||||
+This License is governed by the laws of the State of Florida. This
|
|
||||||
+License represents the entire statement of the understandings and
|
|
||||||
+agreements among the parties.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+10. U.S. GOVERNMENT RESTRICTED RIGHTS
|
|
||||||
+
|
|
||||||
+This Software and documentation is provided with RESTRICTED RIGHTS.
|
|
||||||
+Use, duplication, or disclosure by the Government is subject to
|
|
||||||
+restrictions as set forth in subparagraph (c)(1)(ii) of the Rights
|
|
||||||
+in Technical Data and Computer FAR 52.227-14 (Alternate III) or the
|
|
||||||
+Software clause at DFAR 252.227-7013. Contractor/manufacturer is
|
|
||||||
+METRO LINK INCORPORATED, 4711 North Powerline Road, Fort Lauderdale,
|
|
||||||
+FL 33309.
|
|
||||||
+
|
|
||||||
+Metro Link Motif Complete!, Metro Link Motif, Metro-X, Metro
|
|
||||||
+Extreme 3D, Metro OpenGL, Metro-Xv, and Metro-XIE are trademarks
|
|
||||||
+of Metro Link Incorporated.
|
|
||||||
+
|
|
||||||
+XRT, XRT/graph, XRT/field, XRT/gear, XRT/3d, and XRT/table are
|
|
||||||
+trademarks of KL Group Incorporated.
|
|
||||||
--- motif-devel-2.1.10.orig/debian/rules
|
|
||||||
+++ motif-devel-2.1.10/debian/rules
|
|
||||||
@@ -0,0 +1,87 @@
|
|
||||||
+#!/usr/bin/make -f
|
|
||||||
+# debian/rules that uses debhelper and alien
|
|
||||||
+# GNU copyright 1997 by Joey Hess.
|
|
||||||
+
|
|
||||||
+SHELL = /bin/sh
|
|
||||||
+
|
|
||||||
+package := $(shell basename `pwd` | sed 's/-[0-9].*//')
|
|
||||||
+version := $(shell basename `pwd` | tr -cd '[0-9.]')
|
|
||||||
+major := $(word 1,$(subst ., ,$(version)))
|
|
||||||
+minor := $(word 2,$(subst ., ,$(version)))
|
|
||||||
+
|
|
||||||
+# Uncomment this to turn on verbose mode.
|
|
||||||
+#export DH_VERBOSE=1
|
|
||||||
+
|
|
||||||
+# This is the debhelper compatability version to use.
|
|
||||||
+export DH_COMPAT=1
|
|
||||||
+
|
|
||||||
+motif-version:
|
|
||||||
+ sed -e 's/#PACKAGE#/$(package)/' -e 's/#VERS#/$(version)/' debian/changelog-template >debian/changelog
|
|
||||||
+
|
|
||||||
+build: motif-version
|
|
||||||
+ dh_testdir
|
|
||||||
+
|
|
||||||
+clean: motif-version
|
|
||||||
+ 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
|
|
||||||
+ tar -cf - --exclude=debian --exclude='./usr/doc' . | tar -xpf - -C debian/tmp
|
|
||||||
+#
|
|
||||||
+# If you need to move files around in debian/tmp or do some
|
|
||||||
+# binary patching ... Insert it here
|
|
||||||
+#
|
|
||||||
+ -ln -fs libMrm.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libMrm.so
|
|
||||||
+ -ln -fs libUil.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libUil.so
|
|
||||||
+ -ln -fs libXm.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libXm.so
|
|
||||||
+# Move /usr/X11R6/lib/X11/app-defaults to /etc/X11/app-defaults.
|
|
||||||
+ @if [ -d debian/tmp/usr/X11R6/lib/X11/app-defaults ]; then \
|
|
||||||
+ echo "Moving /usr/X11R6/lib/X11/app-defaults to /etc/X11/app-defaults"; \
|
|
||||||
+ [ -d debian/tmp/etc/X11 ] || mkdir -p debian/tmp/etc/X11; \
|
|
||||||
+ mv debian/tmp/usr/X11R6/lib/X11/app-defaults debian/tmp/etc/X11; \
|
|
||||||
+ fi
|
|
||||||
+# Install mxmkmf.
|
|
||||||
+ @if [ ! -e debian/tmp/usr/X11R6/bin/mxmkmf ]; then \
|
|
||||||
+ echo "Installing mxmkmf"; \
|
|
||||||
+ install -m 0755 debian/mxmkmf debian/tmp/usr/X11R6/bin/mxmkmf; \
|
|
||||||
+ fi
|
|
||||||
+# Copy documentation.
|
|
||||||
+ @if [ -d usr/doc ]; then \
|
|
||||||
+ echo "Copying documentation"; \
|
|
||||||
+ mkdir -p debian/tmp/usr/share/doc/$(package); \
|
|
||||||
+ cp -a usr/doc/*/* debian/tmp/usr/share/doc/$(package); \
|
|
||||||
+ fi
|
|
||||||
+ dh_installdocs
|
|
||||||
+ dh_installexamples
|
|
||||||
+ dh_installmenu
|
|
||||||
+# dh_installinit
|
|
||||||
+# dh_installcron
|
|
||||||
+# dh_installmanpages
|
|
||||||
+# dh_undocumented
|
|
||||||
+ dh_installchangelogs
|
|
||||||
+ dh_strip
|
|
||||||
+ dh_compress
|
|
||||||
+ dh_fixperms
|
|
||||||
+ 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 motif-version
|
|
||||||
--- motif-devel-2.1.10.orig/debian/mxmkmf
|
|
||||||
+++ motif-devel-2.1.10/debian/mxmkmf
|
|
||||||
@@ -0,0 +1,70 @@
|
|
||||||
+#!/bin/sh
|
|
||||||
+
|
|
||||||
+# $XFree86$
|
|
||||||
+#
|
|
||||||
+# make a Makefile from an Imakefile from inside or outside the sources
|
|
||||||
+#
|
|
||||||
+# $XConsortium: xmkmf.cpp /main/22 1996/09/28 16:17:05 rws $
|
|
||||||
+
|
|
||||||
+usage="usage: $0 [-a] [top_of_sources_pathname [current_directory]]"
|
|
||||||
+
|
|
||||||
+configdirspec="-I/usr/X11R6/lib/X11/config"
|
|
||||||
+topdir=
|
|
||||||
+curdir=.
|
|
||||||
+do_all=
|
|
||||||
+imake_defines="-DProjectRulesFile=<Motif.rules.metro> -DProjectTmplFile=<Motif.tmpl.metro>"
|
|
||||||
+
|
|
||||||
+while [ $# -gt 0 ]
|
|
||||||
+do
|
|
||||||
+ case "$1" in
|
|
||||||
+ -D*)
|
|
||||||
+ imake_defines="$imake_defines $1"
|
|
||||||
+ shift
|
|
||||||
+ ;;
|
|
||||||
+ -a)
|
|
||||||
+ do_all="yes"
|
|
||||||
+ shift
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ break
|
|
||||||
+ ;;
|
|
||||||
+ esac
|
|
||||||
+done
|
|
||||||
+
|
|
||||||
+case $# in
|
|
||||||
+ 0) ;;
|
|
||||||
+ 1) topdir=$1 ;;
|
|
||||||
+ 2) topdir=$1 curdir=$2 ;;
|
|
||||||
+ *) echo "$usage" 1>&2; exit 1 ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+case "$topdir" in
|
|
||||||
+ -*) echo "$usage" 1>&2; exit 1 ;;
|
|
||||||
+esac
|
|
||||||
+
|
|
||||||
+if [ -f Makefile ]; then
|
|
||||||
+ echo mv -f Makefile Makefile.bak
|
|
||||||
+ mv -f Makefile Makefile.bak
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if [ "$topdir" = "" ]; then
|
|
||||||
+ args="-DUseInstalled "$configdirspec
|
|
||||||
+else
|
|
||||||
+ args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir"
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+echo imake $imake_defines $args
|
|
||||||
+case "$do_all" in
|
|
||||||
+yes)
|
|
||||||
+ imake $imake_defines $args &&
|
|
||||||
+ echo "make Makefiles" &&
|
|
||||||
+ make Makefiles &&
|
|
||||||
+ echo "make includes" &&
|
|
||||||
+ make includes &&
|
|
||||||
+ echo "make depend" &&
|
|
||||||
+ make depend
|
|
||||||
+ ;;
|
|
||||||
+*)
|
|
||||||
+ imake $imake_defines $args
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
--- motif-devel-2.1.10.orig/debian/dirs
|
|
||||||
+++ motif-devel-2.1.10/debian/dirs
|
|
||||||
@@ -0,0 +1,2 @@
|
|
||||||
+usr/X11R6/bin
|
|
||||||
+usr/X11R6/lib
|
|
||||||
--- motif-devel-2.1.10.orig/debian/README.Debian
|
|
||||||
+++ motif-devel-2.1.10/debian/README.Debian
|
|
||||||
@@ -0,0 +1,6 @@
|
|
||||||
+Motif for Debian
|
|
||||||
+----------------
|
|
||||||
+
|
|
||||||
+Please use mxmkmf instead of xmkmf to build Motif programs.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Nov 1999 19:31:18 +0100
|
|
||||||
@@ -1,508 +0,0 @@
|
|||||||
--- motif-2.1.10.orig/debian/control
|
|
||||||
+++ motif-2.1.10/debian/control
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+Source: motif
|
|
||||||
+Section: non-free/x11
|
|
||||||
+Priority: extra
|
|
||||||
+Build-Depends: debhelper
|
|
||||||
+Maintainer: Andreas Voegele <andreas.voegele@gmx.de>
|
|
||||||
+Standards-Version: 3.1.1
|
|
||||||
+
|
|
||||||
+Package: motif
|
|
||||||
+Architecture: any
|
|
||||||
+Depends: libc6, xlibs
|
|
||||||
+Conflicts: lesstif-bin, lesstif-dev, lesstif-dbg, lesstif1, lesstifg, openmotif, openmotif-devel, suidmanager (<< 0.50)
|
|
||||||
+Provides: x-window-manager
|
|
||||||
+Suggests: menu
|
|
||||||
+Description: Runtime libraries and executables for the Motif toolkit
|
|
||||||
+ This package contains:
|
|
||||||
+ - The Motif shared libraries, needed to run applications which are
|
|
||||||
+ `dynamically linked' with Motif.
|
|
||||||
+ - The popular Motif Window Manager, `mwm'.
|
|
||||||
--- motif-2.1.10.orig/debian/copyright
|
|
||||||
+++ motif-2.1.10/debian/copyright
|
|
||||||
@@ -0,0 +1,150 @@
|
|
||||||
+This is the prepackaged version of Metro Link Motif. It was debianized
|
|
||||||
+by the Alien program by converting a binary RPM package.
|
|
||||||
+
|
|
||||||
+Metro Link's web site can be found at http://www.metrolink.com/
|
|
||||||
+
|
|
||||||
+METRO LINK WARRANTY AND LICENSE AGREEMENT
|
|
||||||
+
|
|
||||||
+READ THESE LICENSE TERMS BEFORE OPENING THE SOFTWARE PACKAGE.
|
|
||||||
+OPENING THE SOFTWARE PACKAGE INDICATES YOUR ACCEPTANCE OF THIS LICENSE.
|
|
||||||
+IF YOU DO NOT AGREE TO THESE LICENSE TERMS, RETURN THE SOFTWARE PACKAGE
|
|
||||||
+UNOPENED (ALONG WITH ALL ASSOCIATED WRITTEN PRODUCT MATERIALS) AND
|
|
||||||
+WITHIN THE WARRANTY PERIOD TO THE DEALER FROM WHOM YOU OBTAINED IT
|
|
||||||
+FOR A FULL REFUND.
|
|
||||||
+
|
|
||||||
+This License is an agreement between you and METRO LINK INCORPORATED
|
|
||||||
+(hereafter "ML").
|
|
||||||
+
|
|
||||||
+1. LICENSE GRANT
|
|
||||||
+
|
|
||||||
+Subject to the terms set forth in this License, you may use the
|
|
||||||
+enclosed computer product ("SOFTWARE"), including all associated
|
|
||||||
+software documentation furnished with this package, solely for your
|
|
||||||
+internal business purposes in the country in which the Software was
|
|
||||||
+furnished to you and on a single computer system (i.e. single or
|
|
||||||
+multiple CPU system in the same physical cabinet).
|
|
||||||
+
|
|
||||||
+NFS mounting of programs or clients is not permitted.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+2. COPYRIGHT AND TITLE.
|
|
||||||
+
|
|
||||||
+The Software and its copyrights are owned by ML or its suppliers.
|
|
||||||
+The Software is protected by United States copyright laws and
|
|
||||||
+international treaty provisions. Therefore, you must treat the
|
|
||||||
+Software like any other copyrighted material (e.g., a book or musical
|
|
||||||
+recording) except that you may either (a) make one (1) copy of the
|
|
||||||
+Software solely for backup purposes or (b) transfer the Software to
|
|
||||||
+a single hard disk provided you keep the original solely for backup
|
|
||||||
+or archival purposes. You must reproduce and include the copyright
|
|
||||||
+notice on the backup copy. You may not copy the written materials.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+3. RESTRICTED USE.
|
|
||||||
+
|
|
||||||
+You may not rent or lease the Software, and you may not reverse engineer,
|
|
||||||
+decompile, or disassemble the Software. Furthermore, certain components
|
|
||||||
+of the Software are licensed for use exclusively with hardware supplied
|
|
||||||
+by specific manufacturers, and you may not modify the Software so that
|
|
||||||
+it will operate with hardware supplied by alternate manufacturers.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+4. ADAPTATIONS
|
|
||||||
+
|
|
||||||
+Any part of the Software that you merge with other software is still
|
|
||||||
+property of ML. In the event this License is terminated, you may not
|
|
||||||
+use part of the Software even if it has been merged with other software.
|
|
||||||
+You agree to take reasonable steps to protect ML's Software from theft
|
|
||||||
+or use contrary to this License.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+5. LIMITED 30-DAY WARRANTIES.
|
|
||||||
+
|
|
||||||
+ML warrants to you (the original Licensee) for thirty (30) days from
|
|
||||||
+the date of delivery to you of the Software, as evidenced by a copy
|
|
||||||
+of your license purchase receipt ( the Warranty Period"), that the
|
|
||||||
+Software shall be in operable condition as described in the documentation
|
|
||||||
+provided with the product code, and that the media upon which the
|
|
||||||
+Software is furnished to you will be free from defects in material and
|
|
||||||
+workmanship under normal use. FOR WARRANTY ASSISTANCE, YOU MAY EITHER
|
|
||||||
+RETURN THE SOFTWARE TO THE DEALER FROM WHICH YOU PURCHASED THE LICENSE,
|
|
||||||
+OR CONTACT THAT DEALER (WHOSE NAME AND ADDRESS IS SET FORTH ON THE BOX
|
|
||||||
+CONTAINING THIS WARRANTY), OR CONTACT ML AT THE ADDRESS STATED ON THIS
|
|
||||||
+LICENSE, ATTN: CUSTOMER SERVICE DEPARTMENT. This warranty allocates
|
|
||||||
+risks of product failure between you and ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+6. NO OTHER WARRANTIES.
|
|
||||||
+
|
|
||||||
+The agents, employees, distributors, and dealers of ML are not
|
|
||||||
+authorized to make modifications to this warranty, nor are additional
|
|
||||||
+warranties binding on ML. Accordingly, additional statements such as
|
|
||||||
+dealer advertising or presentations, whether oral or written, do not
|
|
||||||
+constitute warranties by ML and should not be relied upon as a limited
|
|
||||||
+warranty of ML.
|
|
||||||
+
|
|
||||||
+ML AND ITS SUPPLIERS MAKE NO OTHER REPRESENTATIONS, CONDITIONS, OR
|
|
||||||
+WARRANTIES, EXPRESSED OR IMPLIED. ANY IMPLIED WARRANTY OR CONDITION OF
|
|
||||||
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE IS LIMITED IN
|
|
||||||
+DURATION TO THE WARRANTY PERIOD. SOME STATES DO NOT ALLOW LIMITATIONS
|
|
||||||
+ON HOW LONG AN IMPLIED WARRANTY LASTS, SO THE ABOVE LIMITATIONS MAY NOT
|
|
||||||
+APPLY TO YOU. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY
|
|
||||||
+ALSO HAVE OTHER LEGAL RIGHTS WHICH VARY FROM STATE TO STATE.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+7. CUSTOMER REMEDIES
|
|
||||||
+
|
|
||||||
+YOUR SOLE AND EXCLUSIVE REMEDY AND ML'S SOLE LIABILITY HEREUNDER
|
|
||||||
+SHALL BE, UPON YOUR RETURN OF THE SOFTWARE TO ML WITH THE RECEIPT
|
|
||||||
+WITHIN THE WARRANTY PERIOD, AT ML'S OPTION, REPLACEMENT OR REPAIR
|
|
||||||
+OF SOFTWARE THAT DOES NOT MEET ML'S LIMITED WARRANTY OR A REFUND OF
|
|
||||||
+THE SOFTWARE'S PURCHASE PRICE. ML'S SUPPLIERS SHALL NOT BE HELD TO
|
|
||||||
+ANY LIABILITY FOR ANY DAMAGES SUFFERED OR INCURRED BY YOU. IN NO EVENT
|
|
||||||
+SHALL ML OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY
|
|
||||||
+INCIDENTAL, COLLATERAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
|
|
||||||
+WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, LOSS OF CUSTOMERS,
|
|
||||||
+LOSS OF GOOD WILL, WORK STOPPAGE, DATA LOSS, COMPUTER FAILURE OR
|
|
||||||
+MALFUNCTION, CLAIMS BY ANY PARTY OTHER THAN YOU, OR ANY OR ALL OTHER
|
|
||||||
+SIMILAR DAMAGES OR LOSS EVEN IF ML, ITS SUPPLIERS, OR ITS AGENT HAS
|
|
||||||
+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT
|
|
||||||
+ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL
|
|
||||||
+DAMAGES, SO THE ABOVE LIMITATIONS OR EXCLUSION MAY NOT APPLY TO YOU.
|
|
||||||
+
|
|
||||||
+ML shall have no liability or responsibility for Software altered,
|
|
||||||
+modified, or converted by you or a third party, damages resulting
|
|
||||||
+from accident, abuse, or misapplication, or for problems due to the
|
|
||||||
+malfunction of your equipment or software not supplied by ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+8. TERMINATION
|
|
||||||
+
|
|
||||||
+This License is in effect until terminated and terminates without
|
|
||||||
+notice from ML if you fail to comply with any of its provisions.
|
|
||||||
+Upon termination you shall either destroy the Software and all copies
|
|
||||||
+or portions thereof or return the Software and all copies as portions
|
|
||||||
+thereof to ML.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+9. GENERAL
|
|
||||||
+
|
|
||||||
+This License is governed by the laws of the State of Florida. This
|
|
||||||
+License represents the entire statement of the understandings and
|
|
||||||
+agreements among the parties.
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+10. U.S. GOVERNMENT RESTRICTED RIGHTS
|
|
||||||
+
|
|
||||||
+This Software and documentation is provided with RESTRICTED RIGHTS.
|
|
||||||
+Use, duplication, or disclosure by the Government is subject to
|
|
||||||
+restrictions as set forth in subparagraph (c)(1)(ii) of the Rights
|
|
||||||
+in Technical Data and Computer FAR 52.227-14 (Alternate III) or the
|
|
||||||
+Software clause at DFAR 252.227-7013. Contractor/manufacturer is
|
|
||||||
+METRO LINK INCORPORATED, 4711 North Powerline Road, Fort Lauderdale,
|
|
||||||
+FL 33309.
|
|
||||||
+
|
|
||||||
+Metro Link Motif Complete!, Metro Link Motif, Metro-X, Metro
|
|
||||||
+Extreme 3D, Metro OpenGL, Metro-Xv, and Metro-XIE are trademarks
|
|
||||||
+of Metro Link Incorporated.
|
|
||||||
+
|
|
||||||
+XRT, XRT/graph, XRT/field, XRT/gear, XRT/3d, and XRT/table are
|
|
||||||
+trademarks of KL Group Incorporated.
|
|
||||||
--- motif-2.1.10.orig/debian/rules
|
|
||||||
+++ motif-2.1.10/debian/rules
|
|
||||||
@@ -0,0 +1,113 @@
|
|
||||||
+#!/usr/bin/make -f
|
|
||||||
+# debian/rules that uses debhelper and alien
|
|
||||||
+# GNU copyright 1997 by Joey Hess.
|
|
||||||
+
|
|
||||||
+SHELL = /bin/sh
|
|
||||||
+
|
|
||||||
+package := $(shell basename `pwd` | sed 's/-[0-9].*//')
|
|
||||||
+version := $(shell basename `pwd` | tr -cd '[0-9.]')
|
|
||||||
+major := $(word 1,$(subst ., ,$(version)))
|
|
||||||
+minor := $(word 2,$(subst ., ,$(version)))
|
|
||||||
+
|
|
||||||
+mwmrc := etc/X11/mwm/system.mwmrc
|
|
||||||
+
|
|
||||||
+# Uncomment this to turn on verbose mode.
|
|
||||||
+#export DH_VERBOSE=1
|
|
||||||
+
|
|
||||||
+# This is the debhelper compatability version to use.
|
|
||||||
+export DH_COMPAT=1
|
|
||||||
+
|
|
||||||
+motif-version:
|
|
||||||
+ sed -e 's/#PACKAGE#/$(package)/' -e 's/#VERS#/$(version)/' debian/changelog-template >debian/changelog
|
|
||||||
+
|
|
||||||
+build: motif-version
|
|
||||||
+ dh_testdir
|
|
||||||
+
|
|
||||||
+clean: motif-version
|
|
||||||
+ dh_testdir
|
|
||||||
+ dh_testroot
|
|
||||||
+ dh_clean debian/conffiles debian/menu
|
|
||||||
+
|
|
||||||
+# 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
|
|
||||||
+ tar -cf - --exclude=debian --exclude='./usr/doc' --exclude='*.so.?' --exclude='*.so' . | tar -xpf - -C debian/tmp
|
|
||||||
+#
|
|
||||||
+# If you need to move files around in debian/tmp or do some
|
|
||||||
+# binary patching ... Insert it here
|
|
||||||
+#
|
|
||||||
+ -ln -fs libMrm.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libMrm.so.$(major)
|
|
||||||
+ -ln -fs libUil.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libUil.so.$(major)
|
|
||||||
+ -ln -fs libXm.so.$(major).$(minor) debian/tmp/usr/X11R6/lib/libXm.so.$(major)
|
|
||||||
+# Move system.mwmrc to /etc/X11/mwm/system.mwmrc.
|
|
||||||
+ @mwmrc=`find debian/tmp -name system.mwmrc -type f -printf '%P\t' | cut -f1`; \
|
|
||||||
+ if [ "$$mwmrc" != $(mwmrc) ]; then \
|
|
||||||
+ echo "Moving /$$mwmrc to $(mwmrc)"; \
|
|
||||||
+ mv debian/tmp/$$mwmrc debian/tmp/$(mwmrc); \
|
|
||||||
+ dh_link $(mwmrc) $$mwmrc; \
|
|
||||||
+ fi
|
|
||||||
+# Move /usr/X11R6/lib/X11/app-defaults to /etc/X11/app-defaults.
|
|
||||||
+ @if [ -d debian/tmp/usr/X11R6/lib/X11/app-defaults ]; then \
|
|
||||||
+ echo "Moving /usr/X11R6/lib/X11/app-defaults to /etc/X11/app-defaults"; \
|
|
||||||
+ mv debian/tmp/usr/X11R6/lib/X11/app-defaults debian/tmp/etc/X11; \
|
|
||||||
+ fi
|
|
||||||
+# Install the menu method and /etc/X11/mwm/system.mwmrc-menu.
|
|
||||||
+ @echo "Installing menu method"
|
|
||||||
+ @sed -e 's/#PACKAGE#/$(package)/' debian/menu-template >debian/menu
|
|
||||||
+ @install -m 0755 debian/mwm-menumethod debian/tmp/etc/menu-methods
|
|
||||||
+ @cp debian/etcmwmrc debian/tmp/$(mwmrc)-menu
|
|
||||||
+ @echo "include-menu-defs" >>debian/tmp/$(mwmrc)-menu
|
|
||||||
+# Find the configuration files.
|
|
||||||
+ @echo "Looking for configuration files"
|
|
||||||
+ @echo "/$(mwmrc)-menu" >debian/conffiles
|
|
||||||
+ @find debian/tmp/etc -name system.fpanelrc -type f -printf '/etc/%P\n' >>debian/conffiles
|
|
||||||
+ @if [ -d debian/tmp/etc/X11/app-defaults ]; then \
|
|
||||||
+ find debian/tmp/etc/X11/app-defaults -type f -printf '/etc/X11/app-defaults/%P\n' >>debian/conffiles; \
|
|
||||||
+ fi
|
|
||||||
+# Fix mxterm.
|
|
||||||
+ @if [ -f debian/tmp/usr/X11R6/bin/mxterm ]; then \
|
|
||||||
+ echo "Fixing mxterm"; \
|
|
||||||
+ perl -pi -e 's/libtermcap\.so\.2/libncurses.so.5/' debian/tmp/usr/X11R6/bin/mxterm; \
|
|
||||||
+ fi
|
|
||||||
+# Copy documentation.
|
|
||||||
+ @if [ -d usr/doc ]; then \
|
|
||||||
+ echo "Copying documentation"; \
|
|
||||||
+ mkdir -p debian/tmp/usr/share/doc/$(package); \
|
|
||||||
+ cp -a usr/doc/*/* debian/tmp/usr/share/doc/$(package); \
|
|
||||||
+ fi
|
|
||||||
+ dh_installwm --priority=40 mwm
|
|
||||||
+ dh_installdocs
|
|
||||||
+ dh_installexamples
|
|
||||||
+ dh_installmenu
|
|
||||||
+# dh_installinit
|
|
||||||
+# dh_installcron
|
|
||||||
+# dh_installmanpages
|
|
||||||
+# dh_undocumented
|
|
||||||
+ dh_installchangelogs
|
|
||||||
+ dh_strip
|
|
||||||
+ dh_compress
|
|
||||||
+ dh_fixperms
|
|
||||||
+ @if [ -f debian/tmp/usr/X11R6/bin/mxterm ]; then \
|
|
||||||
+ chown root:utmp debian/tmp/usr/X11R6/bin/mxterm; \
|
|
||||||
+ chmod 2755 debian/tmp/usr/X11R6/bin/mxterm; \
|
|
||||||
+ fi
|
|
||||||
+ 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 motif-version
|
|
||||||
--- motif-2.1.10.orig/debian/mwm-menumethod
|
|
||||||
+++ motif-2.1.10/debian/mwm-menumethod
|
|
||||||
@@ -0,0 +1,30 @@
|
|
||||||
+#!/usr/sbin/install-menu
|
|
||||||
+# -*- mode: shell-script; -*-
|
|
||||||
+#I need menu-1!
|
|
||||||
+#
|
|
||||||
+#NOTE: the first line of this script _must_ be
|
|
||||||
+# equal to "#!/usr/sbin/install-menu", otherwise update-menus
|
|
||||||
+# will feed this script old-compat-mode data.
|
|
||||||
+#
|
|
||||||
+#More info: /usr/share/doc/menu/README.
|
|
||||||
+#
|
|
||||||
+compat="menu-1"
|
|
||||||
+
|
|
||||||
+!include menu.h
|
|
||||||
+
|
|
||||||
+function mwmcommon($c)=\
|
|
||||||
+ "\t\"" title() "\"\tf.exec \"" replacewith($c,"\"","'") " &\"\n"
|
|
||||||
+
|
|
||||||
+supported
|
|
||||||
+ x11 =mwmcommon($command)
|
|
||||||
+ text=mwmcommon(term())
|
|
||||||
+endsupported
|
|
||||||
+startmenu= "Menu \"" $section "\"\n{\n\t\"" \
|
|
||||||
+ ifelse(title(),title(),"Debian") "\"\tf.title\n"
|
|
||||||
+endmenu= "}\n"
|
|
||||||
+submenutitle=" \"" title() "\" f.menu \"" $section "\"\n"
|
|
||||||
+genmenu= "menudefs.hook"
|
|
||||||
+rcfile= "system.mwmrc"
|
|
||||||
+examplercfile="system.mwmrc-menu"
|
|
||||||
+rootprefix= "/etc/X11/mwm/"
|
|
||||||
+userprefix= "/.mwm/"
|
|
||||||
--- motif-2.1.10.orig/debian/etcmwmrc
|
|
||||||
+++ motif-2.1.10/debian/etcmwmrc
|
|
||||||
@@ -0,0 +1,103 @@
|
|
||||||
+!!
|
|
||||||
+!! Root Menu Description
|
|
||||||
+!!
|
|
||||||
+
|
|
||||||
+Menu DefaultRootMenu
|
|
||||||
+{
|
|
||||||
+ "Root Menu" f.title
|
|
||||||
+ "Debian" f.menu "/Debian"
|
|
||||||
+ "New Window" f.exec "x-terminal-emulator &"
|
|
||||||
+ "Shuffle Up" f.circle_up
|
|
||||||
+ "Shuffle Down" f.circle_down
|
|
||||||
+ "Refresh" f.refresh
|
|
||||||
+ "Pack Icons" f.pack_icons
|
|
||||||
+! "Toggle Behavior..." f.set_behavior
|
|
||||||
+ no-label f.separator
|
|
||||||
+ "Restart..." f.restart
|
|
||||||
+ "Quit..." f.quit_mwm
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+!!
|
|
||||||
+!! Default Window Menu
|
|
||||||
+!!
|
|
||||||
+Menu DefaultWindowMenu
|
|
||||||
+{
|
|
||||||
+ "Make Pinned" f.toggle_pin_state
|
|
||||||
+ no-label f.separator
|
|
||||||
+ Restore _R Alt<Key>F5 f.restore
|
|
||||||
+ Move _M Alt<Key>F7 f.move
|
|
||||||
+ Size _S Alt<Key>F8 f.resize
|
|
||||||
+ Minimize _n Alt<Key>F9 f.minimize
|
|
||||||
+ Maximize _x Alt<Key>F10 f.maximize
|
|
||||||
+ Raise _a Alt<Key>F2 f.raise
|
|
||||||
+ Lower _L Alt<Key>F3 f.lower
|
|
||||||
+ no-label f.separator
|
|
||||||
+ Close _C Alt<Key>F4 f.kill
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+!!
|
|
||||||
+!! Default Key Bindings
|
|
||||||
+!!
|
|
||||||
+Keys DefaultKeyBindings
|
|
||||||
+{
|
|
||||||
+ Shift<Key>Escape window|icon f.post_wmenu
|
|
||||||
+ Alt<Key>space window|icon f.post_wmenu
|
|
||||||
+ Alt<Key>Tab root|icon|window f.next_key
|
|
||||||
+ Alt Shift<Key>Tab root|icon|window f.prev_key
|
|
||||||
+ Alt<Key>Escape root|icon|window f.circle_down
|
|
||||||
+ Alt Shift<Key>Escape root|icon|window f.circle_up
|
|
||||||
+ Alt Shift Ctrl<Key>exclam root|icon|window f.set_behavior
|
|
||||||
+ Alt<Key>F6 window f.next_key transient
|
|
||||||
+ Alt Shift<Key>F6 window f.prev_key transient
|
|
||||||
+ Shift<Key>F10 icon f.post_wmenu
|
|
||||||
+ Alt Shift<Key>Delete root|icon|window f.restart
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+!!
|
|
||||||
+!! Button Binding Description(s)
|
|
||||||
+!!
|
|
||||||
+!! These can be used anywhere
|
|
||||||
+!!
|
|
||||||
+Buttons DefaultButtonBindings
|
|
||||||
+{
|
|
||||||
+ <Btn1Down> icon|frame f.raise
|
|
||||||
+ <Btn3Down> icon|frame f.post_wmenu
|
|
||||||
+ <Btn3Down> root f.menu DefaultRootMenu
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+!!
|
|
||||||
+!! These are some example bindings that you might use if your
|
|
||||||
+!! keyboardFocusPolicy is "explicit". Note that to use these, you'll
|
|
||||||
+!! have to change the Mwm*buttonBindings resource in Mwm to
|
|
||||||
+!! ExplicitButtonBindings instead of DefaultButtonBindings.
|
|
||||||
+!!
|
|
||||||
+Buttons ExplicitButtonBindings
|
|
||||||
+{
|
|
||||||
+ <Btn1Down> frame|icon f.raise
|
|
||||||
+ <Btn3Down> frame|icon f.post_wmenu
|
|
||||||
+ <Btn3Down> root f.menu DefaultRootMenu
|
|
||||||
+! <Btn1Up> icon f.restore
|
|
||||||
+ Alt<Btn1Down> window|icon f.lower
|
|
||||||
+! Alt<Btn2Down> window|icon f.resize
|
|
||||||
+! Alt<Btn3Down> window|icon f.move
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+!! These are some example bindings that you might use if your
|
|
||||||
+!! keyboardFocusPolicy is "pointer". Note that to use these, you'll
|
|
||||||
+!! have to change the Mwm*buttonBindings resource in Mwm to
|
|
||||||
+!! PointerButtonBindings instead of DefaultButtonBindings.
|
|
||||||
+!!
|
|
||||||
+Buttons PointerButtonBindings
|
|
||||||
+{
|
|
||||||
+ <Btn1Down> frame|icon f.raise
|
|
||||||
+ <Btn3Down> frame|icon f.post_wmenu
|
|
||||||
+ <Btn3Down> root f.menu DefaultRootMenu
|
|
||||||
+ <Btn1Down> window f.raise
|
|
||||||
+! <Btn1Up> icon f.restore
|
|
||||||
+ Alt<Btn1Down> window|icon f.lower
|
|
||||||
+! Alt<Btn2Down> window|icon f.resize
|
|
||||||
+! Alt<Btn3Down> window|icon f.move
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+!include-menu-defs
|
|
||||||
--- motif-2.1.10.orig/debian/dirs
|
|
||||||
+++ motif-2.1.10/debian/dirs
|
|
||||||
@@ -0,0 +1,4 @@
|
|
||||||
+etc/X11/mwm
|
|
||||||
+etc/menu-methods
|
|
||||||
+usr/X11R6/bin
|
|
||||||
+usr/X11R6/lib
|
|
||||||
--- motif-2.1.10.orig/debian/changelog-template
|
|
||||||
+++ motif-2.1.10/debian/changelog-template
|
|
||||||
@@ -0,0 +1,37 @@
|
|
||||||
+#PACKAGE# (#VERS#-7) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Mwm is registered with dh_installwm.
|
|
||||||
+ * Disabled dh_undocumented.
|
|
||||||
+ * Removed dh_suidregister.
|
|
||||||
+ * The virtual package `x-terminal-emulator' is no longer provided since
|
|
||||||
+ Metro Link's latest Motif release doesn't contain mxterm anymore.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Jan 2001 12:17:38 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-6) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Moved app-defaults directory to /etc/X11.
|
|
||||||
+ * Depends on xlibs.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Sat, 9 Dec 2000 08:45:11 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-5) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Made mxterm use libncurses.so.5 instead of libtermcap.so.2.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Mon, 3 Jan 2000 09:50:03 +0100
|
|
||||||
+
|
|
||||||
+#PACKAGE# (#VERS#-4) unstable; urgency=low
|
|
||||||
+
|
|
||||||
+ * Converted from RPM binary format to Debian.
|
|
||||||
+ * Removed *.so symlinks.
|
|
||||||
+ * Made mxterm use libncurses.so.4 instead of libtermcap.so.2.
|
|
||||||
+ * Enabled dh_undocumented, dh_fixperms and dh_strip.
|
|
||||||
+ * Added menu file and menu method.
|
|
||||||
+ * Added maintainer scripts.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Nov 1999 19:31:03 +0100
|
|
||||||
+
|
|
||||||
+Local variables:
|
|
||||||
+mode: debian-changelog
|
|
||||||
+End:
|
|
||||||
--- motif-2.1.10.orig/debian/postinst
|
|
||||||
+++ motif-2.1.10/debian/postinst
|
|
||||||
@@ -0,0 +1,7 @@
|
|
||||||
+#!/bin/sh -e
|
|
||||||
+
|
|
||||||
+if [ "$1" = "configure" ]; then
|
|
||||||
+ ldconfig
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+#DEBHELPER#
|
|
||||||
--- motif-2.1.10.orig/debian/README.Debian
|
|
||||||
+++ motif-2.1.10/debian/README.Debian
|
|
||||||
@@ -0,0 +1,10 @@
|
|
||||||
+Motif for Debian
|
|
||||||
+----------------
|
|
||||||
+
|
|
||||||
+For compatibility with Lesstif the Motif window manager configuration
|
|
||||||
+file system.mwmrc is placed in /etc/X11/mwm on Debian systems.
|
|
||||||
+
|
|
||||||
+If the `menu' package is installed, system.mwmrc is automatically
|
|
||||||
+generated from /etc/X11/mwm/system.mwmrc-menu.
|
|
||||||
+
|
|
||||||
+ -- Andreas Voegele <andreas.voegele@gmx.de> Tue, 16 Nov 1999 19:31:03 +0100
|
|
||||||
--- motif-2.1.10.orig/debian/menu-template
|
|
||||||
+++ motif-2.1.10/debian/menu-template
|
|
||||||
@@ -0,0 +1,6 @@
|
|
||||||
+?package(#PACKAGE#):\
|
|
||||||
+ needs="wm"\
|
|
||||||
+ section="WindowManagers"\
|
|
||||||
+ title="Mwm"\
|
|
||||||
+ longtitle="Motif window manager"\
|
|
||||||
+ command="/usr/X11R6/bin/mwm"
|
|
||||||
Reference in New Issue
Block a user