diff options
author | wiz <wiz@pkgsrc.org> | 2016-10-10 07:42:53 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-10-10 07:42:53 +0000 |
commit | d01fb85d2dc30c2ccbcae188fe7e4247fc4b30f6 (patch) | |
tree | 874d2fb53dc353e9089d265ae1604fac769da0c9 /pkgtools | |
parent | 3c5b1e715f54c445b16bc22d346bf9d76e6d555b (diff) | |
download | pkgsrc-d01fb85d2dc30c2ccbcae188fe7e4247fc4b30f6.tar.gz |
Even more github support.
Bump version.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_notify/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkg_notify/files/pkg_notify | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/pkgtools/pkg_notify/Makefile b/pkgtools/pkg_notify/Makefile index 873fab68fda..9689c23ea4d 100644 --- a/pkgtools/pkg_notify/Makefile +++ b/pkgtools/pkg_notify/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.24 2016/08/31 21:15:36 wiz Exp $ +# $NetBSD: Makefile,v 1.25 2016/10/10 07:42:53 wiz Exp $ -PKGNAME= pkg_notify-0.4.5 +PKGNAME= pkg_notify-0.4.6 CATEGORIES= pkgtools MAINTAINER= imil@gcu.info diff --git a/pkgtools/pkg_notify/files/pkg_notify b/pkgtools/pkg_notify/files/pkg_notify index 0b50a689025..31bf8365f11 100755 --- a/pkgtools/pkg_notify/files/pkg_notify +++ b/pkgtools/pkg_notify/files/pkg_notify @@ -16,7 +16,7 @@ # # $ pkg_notify category/package # -# $Id: pkg_notify,v 1.4 2016/08/31 21:15:36 wiz Exp $ +# $Id: pkg_notify,v 1.5 2016/10/10 07:42:53 wiz Exp $ use Net::FTP; use LWP::UserAgent; @@ -585,6 +585,15 @@ foreach (@packages) { $dist = "v"; } + # github - homepage only - look at releases page + if ($homepage =~ /github.com/) { + my $project = `cd $pkgpath && $make show-var VARNAME=GITHUB_PROJECT`; + chomp($project); + $master_site = $homepage . "/releases/"; + $distname = "v$version"; + $dist = "v"; + } + if (($distname eq "") || ($master_site eq "")) { print "missing DISTNAME or MASTER_SITES for package $pkgname\n"; next; |