diff options
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 3fa2670c2c9..cd75700938d 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.128 2010/01/01 16:09:35 espie Exp $ +# $OpenBSD: pkg_create,v 1.129 2010/01/01 16:12:21 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -611,12 +611,14 @@ if ($regen_package) { $plist->set_pkgname($pkgname); } my $fullpkgpath = $subst->value('FULLPKGPATH'); - my $cdrom = $subst->value('PERMIT_PACKAGE_CDROM'); - my $ftp = $subst->value('PERMIT_PACKAGE_FTP'); + my $cdrom = $subst->value('PERMIT_PACKAGE_CDROM') || + $subst->value('CDROM');; + my $ftp = $subst->value('PERMIT_PACKAGE_FTP') || + $subst->value('FTP'); if (defined $fullpkgpath || defined $cdrom || defined $ftp) { $fullpkgpath //= ''; - $cdrom //= ''; - $ftp //= ''; + $cdrom //= 'no'; + $ftp //= 'no'; $cdrom = 'yes' if $cdrom =~ m/^yes$/io; $ftp = 'yes' if $ftp =~ m/^yes$/io; |