pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/pkg_notify
Module Name: pkgsrc
Committed By: wiz
Date: Wed Aug 31 21:15:36 UTC 2016
Modified Files:
pkgsrc/pkgtools/pkg_notify: Makefile
pkgsrc/pkgtools/pkg_notify/files: pkg_notify
Log Message:
Add partial github support.
Bump version.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/pkgtools/pkg_notify/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/pkgtools/pkg_notify/files/pkg_notify
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/pkg_notify/Makefile
diff -u pkgsrc/pkgtools/pkg_notify/Makefile:1.23 pkgsrc/pkgtools/pkg_notify/Makefile:1.24
--- pkgsrc/pkgtools/pkg_notify/Makefile:1.23 Sat Jul 9 06:38:48 2016
+++ pkgsrc/pkgtools/pkg_notify/Makefile Wed Aug 31 21:15:36 2016
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2016/07/09 06:38:48 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2016/08/31 21:15:36 wiz Exp $
-PKGNAME= pkg_notify-0.4.4
-PKGREVISION= 3
+PKGNAME= pkg_notify-0.4.5
CATEGORIES= pkgtools
MAINTAINER= imil%gcu.info@localhost
Index: pkgsrc/pkgtools/pkg_notify/files/pkg_notify
diff -u pkgsrc/pkgtools/pkg_notify/files/pkg_notify:1.3 pkgsrc/pkgtools/pkg_notify/files/pkg_notify:1.4
--- pkgsrc/pkgtools/pkg_notify/files/pkg_notify:1.3 Wed Aug 31 21:15:01 2016
+++ pkgsrc/pkgtools/pkg_notify/files/pkg_notify Wed Aug 31 21:15:36 2016
@@ -16,7 +16,7 @@
#
# $ pkg_notify category/package
#
-# $Id: pkg_notify,v 1.3 2016/08/31 21:15:01 wiz Exp $
+# $Id: pkg_notify,v 1.4 2016/08/31 21:15:36 wiz Exp $
use Net::FTP;
use LWP::UserAgent;
@@ -71,7 +71,7 @@ sub beta_strip {
if ($out =~ /(.*[0-9])([\-\_\.]?)(pre|alpha|beta|gamma|rc)([0-9]*.*)/i) {
my $pre = $1;
my $dev = lc $3;
- # remember real versionning
+ # remember real versioning
$subvers = "$2$3";
my $post = $4;
# replace pre|alpha|beta... with equiv nums
@@ -576,6 +576,15 @@ foreach (@packages) {
$master_site = $master_site."/".$hash."/$sfpkgdir";
}
+ # github - look at releases page
+ if ($master_site =~ /github.com/) {
+ my $project = `cd $pkgpath && $make show-var VARNAME=GITHUB_PROJECT`;
+ chomp($project);
+ $master_site =~ s/(.*github.com\/[^\/]+)\/?/$1\/$project\/releases\//;
+ $distname = "v$version";
+ $dist = "v";
+ }
+
if (($distname eq "") || ($master_site eq "")) {
print "missing DISTNAME or MASTER_SITES for package $pkgname\n";
next;
Home |
Main Index |
Thread Index |
Old Index