mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* 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:
15
alien.pl
15
alien.pl
@@ -150,6 +150,14 @@ Do not use any patch files.
|
|||||||
Specifiy a description for the package. This only has an effect when
|
Specifiy a description for the package. This only has an effect when
|
||||||
converting from the tgz package format, which lacks descriptions.
|
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>
|
=item B<-c>, B<--scripts>
|
||||||
|
|
||||||
Try to convert the scripts that are meant to be run when the
|
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.
|
-t, --to-tgz Generate a Slackware tgz package.
|
||||||
Enables the following option:
|
Enables the following option:
|
||||||
--description=<desc> Specify package description.
|
--description=<desc> Specify package description.
|
||||||
|
--version=<version> Specify package version.
|
||||||
-p, --to-pkg Generate a Solaris pkg package.
|
-p, --to-pkg Generate a Solaris pkg package.
|
||||||
-i, --install Install generated package.
|
-i, --install Install generated package.
|
||||||
-g, --generate Unpack, but do not generate a new package.
|
-g, --generate Unpack, but do not generate a new package.
|
||||||
@@ -317,7 +326,8 @@ 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, $keepversion, $fixperms, $test, $anypatch);
|
$nopatch, $tgzdescription, $tgzversion, $keepversion, $fixperms, $test,
|
||||||
|
$anypatch);
|
||||||
|
|
||||||
# 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
|
||||||
# -T and -t.
|
# -T and -t.
|
||||||
@@ -339,10 +349,10 @@ GetOptions(
|
|||||||
"nopatch", \$nopatch,
|
"nopatch", \$nopatch,
|
||||||
"anypatch", \$anypatch,
|
"anypatch", \$anypatch,
|
||||||
"description=s", \$tgzdescription,
|
"description=s", \$tgzdescription,
|
||||||
|
"version:s", sub { length $_[1] ? $tgzversion=$_[1] : version() },
|
||||||
"keep-version|k", \$keepversion,
|
"keep-version|k", \$keepversion,
|
||||||
"fixperms", \$fixperms,
|
"fixperms", \$fixperms,
|
||||||
"help|h", \&usage,
|
"help|h", \&usage,
|
||||||
"version|v", \&version,
|
|
||||||
) || usage();
|
) || usage();
|
||||||
|
|
||||||
# Default to deb conversion.
|
# Default to deb conversion.
|
||||||
@@ -402,6 +412,7 @@ foreach my $file (@ARGV) {
|
|||||||
elsif (Alien::Package::Tgz->checkfile($file)) {
|
elsif (Alien::Package::Tgz->checkfile($file)) {
|
||||||
$package=Alien::Package::Tgz->new(filename => $file);
|
$package=Alien::Package::Tgz->new(filename => $file);
|
||||||
$package->description($tgzdescription) if defined $tgzdescription;
|
$package->description($tgzdescription) if defined $tgzdescription;
|
||||||
|
$package->version($tgzversion) if defined $tgzversion;
|
||||||
}
|
}
|
||||||
elsif (Alien::Package::Slp->checkfile($file)) {
|
elsif (Alien::Package::Slp->checkfile($file)) {
|
||||||
$package=Alien::Package::Slp->new(filename => $file);
|
$package=Alien::Package::Slp->new(filename => $file);
|
||||||
|
|||||||
11
debian/changelog
vendored
11
debian/changelog
vendored
@@ -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
|
alien (8.20) unstable; urgency=low
|
||||||
|
|
||||||
* Added support inspired by aj for converted rpm packages that create
|
* Added support inspired by aj for converted rpm packages that create
|
||||||
|
|||||||
2
debian/control
vendored
2
debian/control
vendored
@@ -3,7 +3,7 @@ Section: admin
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends-Indep: debhelper (>= 4), dpkg-dev (>= 1.9.0)
|
Build-Depends-Indep: debhelper (>= 4), dpkg-dev (>= 1.9.0)
|
||||||
Maintainer: Joey Hess <joeyh@debian.org>
|
Maintainer: Joey Hess <joeyh@debian.org>
|
||||||
Standards-Version: 3.5.6.1
|
Standards-Version: 3.5.7.0
|
||||||
|
|
||||||
Package: alien
|
Package: alien
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
|||||||
Reference in New Issue
Block a user