* Pach from Erwan MAS <erwan@mas.nom.fr> that allows specification of the

version of a tgz file, for files that don't have a parseable version
     number. For consistency with --description, I made the otpino be called
     --version -- if no argument is specified to this option, it retains its
     old behavior of displaying alien's version, but it is now overloaded
     if given an argument. Closes: #165584
This commit is contained in:
joey
2002-10-21 03:13:12 +00:00
parent 3f7945fbb3
commit b4efb6061b
3 changed files with 25 additions and 3 deletions

View File

@@ -150,6 +150,14 @@ Do not use any patch files.
Specifiy a description for the package. This only has an effect when
converting from the tgz package format, which lacks descriptions.
=item B<--version=>I<version>
Specifiy a version for the package. This only has an effect when
converting from the tgz package format, which may lack version
information.
Note that without an argument, this displays the version of alien instead.
=item B<-c>, B<--scripts>
Try to convert the scripts that are meant to be run when the
@@ -303,6 +311,7 @@ Usage: alien [options] file [...]
-t, --to-tgz Generate a Slackware tgz package.
Enables the following option:
--description=<desc> Specify package description.
--version=<version> Specify package version.
-p, --to-pkg Generate a Solaris pkg package.
-i, --install Install generated package.
-g, --generate Unpack, but do not generate a new package.
@@ -317,7 +326,8 @@ EOF
# Start by processing the parameters.
my (%destformats, $generate, $install, $single, $scripts, $patchfile,
$nopatch, $tgzdescription, $keepversion, $fixperms, $test, $anypatch);
$nopatch, $tgzdescription, $tgzversion, $keepversion, $fixperms, $test,
$anypatch);
# Bundling is nice anyway, and it is required or Getopt::Long will confuse
# -T and -t.
@@ -339,10 +349,10 @@ GetOptions(
"nopatch", \$nopatch,
"anypatch", \$anypatch,
"description=s", \$tgzdescription,
"version:s", sub { length $_[1] ? $tgzversion=$_[1] : version() },
"keep-version|k", \$keepversion,
"fixperms", \$fixperms,
"help|h", \&usage,
"version|v", \&version,
) || usage();
# Default to deb conversion.
@@ -402,6 +412,7 @@ foreach my $file (@ARGV) {
elsif (Alien::Package::Tgz->checkfile($file)) {
$package=Alien::Package::Tgz->new(filename => $file);
$package->description($tgzdescription) if defined $tgzdescription;
$package->version($tgzversion) if defined $tgzversion;
}
elsif (Alien::Package::Slp->checkfile($file)) {
$package=Alien::Package::Slp->new(filename => $file);

11
debian/changelog vendored
View File

@@ -1,3 +1,14 @@
alien (8.21) unstable; urgency=low
* Pach from Erwan MAS <erwan@mas.nom.fr> that allows specification of the
version of a tgz file, for files that don't have a parseable version
number. For consistency with --description, I made the otpino be called
--version -- if no argument is specified to this option, it retains its
old behavior of displaying alien's version, but it is now overloaded
if given an argument. Closes: #165584
-- Joey Hess <joeyh@debian.org> Sun, 20 Oct 2002 20:51:51 -0400
alien (8.20) unstable; urgency=low
* Added support inspired by aj for converted rpm packages that create

2
debian/control vendored
View File

@@ -3,7 +3,7 @@ Section: admin
Priority: optional
Build-Depends-Indep: debhelper (>= 4), dpkg-dev (>= 1.9.0)
Maintainer: Joey Hess <joeyh@debian.org>
Standards-Version: 3.5.6.1
Standards-Version: 3.5.7.0
Package: alien
Architecture: all