pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
(pkgtools/check-update) New package
Module Name: pkgsrc-wip
Committed By: Makoto Fujiwara (CF-S9) <makoto%ki.nu@localhost>
Pushed By: mef
Date: Sun Mar 26 22:52:45 2017 +0900
Changeset: 0806be31ac69c67d95a6e108ac9883558c9c5d68
Added Files:
check-update/DESCR
check-update/Makefile
check-update/PLIST
check-update/TODO
check-update/distinfo
check-update/patches/patch-check-update
Log Message:
(pkgtools/check-update) New package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0806be31ac69c67d95a6e108ac9883558c9c5d68
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
check-update/DESCR | 2 ++
check-update/Makefile | 46 +++++++++++++++++++++++++++++++++
check-update/PLIST | 7 +++++
check-update/TODO | 11 ++++++++
check-update/distinfo | 7 +++++
check-update/patches/patch-check-update | 28 ++++++++++++++++++++
6 files changed, 101 insertions(+)
diffs:
diff --git a/check-update/DESCR b/check-update/DESCR
new file mode 100644
index 0000000000..78cfe467ed
--- /dev/null
+++ b/check-update/DESCR
@@ -0,0 +1,2 @@
+check-update is a tool for the pkgsrc tree. It reads the whole tree
+and generates a list of to-be-updated packges.
diff --git a/check-update/Makefile b/check-update/Makefile
new file mode 100644
index 0000000000..5a3387468e
--- /dev/null
+++ b/check-update/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD$
+
+DISTNAME= check-update-0.9
+CATEGORIES= pkgtools
+MASTER_SITES= ${MASTER_SITE_GITHUB:=makoto-fujiwara/}
+
+MAINTAINER= mef%NetBSD.org@localhost
+HOMEPAGE= https://github.com/makoto-fujiwara/check-update
+COMMENT= Check pkgsrc trees for newer version
+LICENSE= modified-bsd
+
+DEPENDS+= httping-[0-9]*:../../net/httping
+DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS
+DEPENDS+= curl-[0-9]*:../../www/curl
+DEPENDS+= p5-Algorithm-Diff-[0-9]*:../../devel/p5-Algorithm-Diff
+DEPENDS+= ruby[0-9]*-base-[0-9]*:../../lang/${RUBY_PKGPREFIX}-base
+DEPENDS+= p5-Algorithm-Diff-[0-9]*:../../devel/p5-Algorithm-Diff
+DEPENDS+= p5-Mozilla-CA-[0-9]*:../../security/p5-Mozilla-CA
+
+USE_TOOLS+= perl:run
+NO_BUILD= YES
+
+CHECK_UPDATE_DIR= share/check-update
+
+INSTALLATION_SCRIPT+= summary-diff collect-stats fork-w3m merge-check-update
+INSTALLATION_FILE= MaturedList
+INSTALLATION_DIRS+= sbin share/check-update
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= post-patch
+SUBST_MESSAGE.path= Adjusting executable path
+SUBST_FILES.path= check-update
+#SUBST_SED.path= -e 's,@@CHECK_UPDATE_DIR@@,${PREFIX}/${CHECK_UPDATE_DIR},'
+SUBST_VARS.path= CHECK_UPDATE_DIR PREFIX
+
+REPLACE_PERL+= ${INSTALLATION_SCRIPT}
+
+do-install:
+
+.for i in ${INSTALLATION_SCRIPT} ${INSTALLATION_FILE}
+ (cd ${WRKSRC}; ${INSTALL_SCRIPT} ${i} ${DESTDIR}${PREFIX}/${CHECK_UPDATE_DIR} )
+.endfor
+ (cd ${WRKSRC}; ${INSTALL_SCRIPT} check-update ${DESTDIR}${PREFIX}/sbin )
+
+.include "../../lang/ruby/rubyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/check-update/PLIST b/check-update/PLIST
new file mode 100644
index 0000000000..f07c2c300a
--- /dev/null
+++ b/check-update/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+sbin/check-update
+share/check-update/MaturedList
+share/check-update/collect-stats
+share/check-update/fork-w3m
+share/check-update/merge-check-update
+share/check-update/summary-diff
diff --git a/check-update/TODO b/check-update/TODO
new file mode 100644
index 0000000000..966ca13106
--- /dev/null
+++ b/check-update/TODO
@@ -0,0 +1,11 @@
+* Single package check works
+ cd /usr/pkgsrc/category/package; check-update
+
+* category mode works for now
+ mkdir /tmp/check-update
+ check-update -c mail -d /tmp/check-update
+ or if you have non-standard pkgsrc directory,
+ check-update -c mail -d /tmp/check-update -p /PATH/TO/pkgsrc
+
+* crontab driven bulk-check is not installed yet
+
diff --git a/check-update/distinfo b/check-update/distinfo
new file mode 100644
index 0000000000..476f709831
--- /dev/null
+++ b/check-update/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (check-update-0.9.tar.gz) = dec513c4b417a371f57097870a5173adae9e1426
+RMD160 (check-update-0.9.tar.gz) = 4ae9e7a6ff6ef0caa73dc021b6fc58d3fa198616
+SHA512 (check-update-0.9.tar.gz) = 4f87f6a95ecfaeb23a63b19a14e992246fb8bad7194105a03a7a501a8d4fd95b401862a2cab1e3143466f97478327d81e83d648e6bb92dd4c014d72a16ed46e9
+Size (check-update-0.9.tar.gz) = 69257 bytes
+SHA1 (patch-check-update) = 84ccdda9d9c81952dea8cbd615e0d63adc8b0b59
diff --git a/check-update/patches/patch-check-update b/check-update/patches/patch-check-update
new file mode 100644
index 0000000000..d6582f8920
--- /dev/null
+++ b/check-update/patches/patch-check-update
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Adjust executable PATH
+
+--- check-update.orig 2017-02-20 22:43:43.000000000 +0900
++++ check-update 2017-03-26 22:38:19.477500790 +0900
+@@ -26,7 +26,7 @@ use File::Basename qw(dirname);
+ my $path = rel2abs( $0 );
+ our $directory = dirname( $path );
+
+-$fork_w3m = $directory.'/fork-w3m';
++$fork_w3m = '@PREFIX@/@CHECK_UPDATE_DIR@'.'/fork-w3m';
+ # ----------------------------------------------------
+
+ # prototype for subroutine called very early stage :-)
+@@ -69,10 +69,10 @@ our(@ARGV);
+ my($my_name) = $0;
+ $my_name =~ s#(.*)/##;
+
+-my ($pkgsrc) = '/usr/pkgsrc'; #
++my ($pkgsrc) = '@PREFIX@'; #
+ my ($summary); # output file name
+ my (%TODO); # found info in doc/TODO, $TODO{$package} = $version
+-my ($MaturedList) = 'MaturedList';# File name for the list of matured list category/package name format
++my ($MaturedList) = '@PREFIX@/@CHECK_UPDATE_DIR@'.'/MaturedList';# File name for the list of matured list category/package name format
+
+ my ($line); # SpecialPattern
+ # output to tmp name and rename it at the end of execution
Home |
Main Index |
Thread Index |
Old Index