pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/lintpkgsrc/files
Module Name: pkgsrc
Committed By: rillig
Date: Thu Aug 18 17:51:14 UTC 2022
Modified Files:
pkgsrc/pkgtools/lintpkgsrc/files: lintpkgsrc.pl
Log Message:
lintpkgsrc: normalize package name for Apache Web Server modules
To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
diff -u pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.119 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.120
--- pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.119 Wed Aug 17 18:53:40 2022
+++ pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl Thu Aug 18 17:51:13 2022
@@ -1,5 +1,5 @@
#!@PERL5@
-# $NetBSD: lintpkgsrc.pl,v 1.119 2022/08/17 18:53:40 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.120 2022/08/18 17:51:13 rillig Exp $
# Written by David Brownlee <abs%netbsd.org@localhost>.
#
@@ -246,6 +246,7 @@ sub listdir($base, $dir = undef) {
}
sub canonicalize_pkgname($pkgname) {
+ $pkgname =~ s,^ap\d+-,ap-,;
$pkgname =~ s,^lua\d+-,lua-,;
$pkgname =~ s,^py\d+(?:pth|)-,py-,;
$pkgname =~ s,^ruby\d+-,ruby-,;
@@ -759,6 +760,7 @@ sub get_default_makefile_vars() {
$default_vars->{PACKAGES} ||= $default_vars->{PKGSRCDIR} . '/packages';
+ $default_vars->{APACHE_PKGPREFIX} = 'ap12345';
$default_vars->{LUA_PKGPREFIX} = 'lua12345';
$default_vars->{PHP_PKG_PREFIX} = 'php12345';
$default_vars->{PYPKGPREFIX} = 'py12345';
Home |
Main Index |
Thread Index |
Old Index