diff --git a/alien.pl b/alien.pl index 5ec3c15..163ef4c 100755 --- a/alien.pl +++ b/alien.pl @@ -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 + +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= Specify package description. + --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); diff --git a/debian/changelog b/debian/changelog index f898795..7a655b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +alien (8.21) unstable; urgency=low + + * Pach from Erwan MAS 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 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 diff --git a/debian/control b/debian/control index 9be2867..8dac3b0 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: admin Priority: optional Build-Depends-Indep: debhelper (>= 4), dpkg-dev (>= 1.9.0) Maintainer: Joey Hess -Standards-Version: 3.5.6.1 +Standards-Version: 3.5.7.0 Package: alien Architecture: all