aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-11-21 03:05:47 +0800
committermiwi <miwi@FreeBSD.org>2006-11-21 03:05:47 +0800
commit60fb199511bc9875e88b640e7cd702bf960032a4 (patch)
tree9c80b30450fd395e536d4073d631db56acbfdc8d /sysutils
parent1e2f3527260ecf01d5d2d6d89fab96ce1f64af59 (diff)
downloadfreebsd-ports-gnome-60fb199511bc9875e88b640e7cd702bf960032a4.tar.gz
freebsd-ports-gnome-60fb199511bc9875e88b640e7cd702bf960032a4.tar.zst
freebsd-ports-gnome-60fb199511bc9875e88b640e7cd702bf960032a4.zip
ck4up is a small command-line utility, written in ruby. ck4up scans through a
configuration file, fetches the listed URLs from the web, computes the md5sum of the page, and compares the value with the ones stored in a gdbm database. If both differ, a message will be written to the standard output. WWW: http://jue.li/crux/ck4up/ Sponsord by: My 1000er! *g
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/ck4up/Makefile35
-rw-r--r--sysutils/ck4up/distinfo3
-rw-r--r--sysutils/ck4up/files/patch-Makefile23
-rw-r--r--sysutils/ck4up/files/patch-ck4up.rb8
-rw-r--r--sysutils/ck4up/files/patch-ck4up.sh11
-rw-r--r--sysutils/ck4up/pkg-descr6
7 files changed, 87 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 035193f4082e..60241dd67c1f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -80,6 +80,7 @@
SUBDIR += cfvers
SUBDIR += checkservice
SUBDIR += chgrep
+ SUBDIR += ck4up
SUBDIR += clean
SUBDIR += clockspeed
SUBDIR += clockspeed-conf
diff --git a/sysutils/ck4up/Makefile b/sysutils/ck4up/Makefile
new file mode 100644
index 000000000000..d4f0a604c187
--- /dev/null
+++ b/sysutils/ck4up/Makefile
@@ -0,0 +1,35 @@
+# Ports collection makefile for: ck4up
+# Date created: November 19, 2006
+# Whom: Martin Wilke <miwi@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ck4up
+PORTVERSION= 0.2.3
+CATEGORIES= sysutils
+MASTER_SITES= http://jue.li/crux/ck4up/
+
+MAINTAINER= miwi@FreeBSD.org
+COMMENT= Checks http and ftp sites for updates
+
+RUN_DEPENDS= ${RUBY_ARCHLIBDIR}/gdbm.so:${PORTSDIR}/databases/ruby-gdbm
+
+NO_BUILD= yes
+USE_RUBY= yes
+
+MAN1= ck4up.1
+
+PLIST_DIRS= %%EXAMPLESDIR%%
+PLIST_FILES= bin/ck4up %%EXAMPLESDIR%%/ck4up.conf
+
+post-patch:
+ ${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/*
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/ck4up.conf ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/ck4up/distinfo b/sysutils/ck4up/distinfo
new file mode 100644
index 000000000000..096182719797
--- /dev/null
+++ b/sysutils/ck4up/distinfo
@@ -0,0 +1,3 @@
+MD5 (ck4up-0.2.3.tar.gz) = ebed48400ec6498d1b4cc86a919f7250
+SHA256 (ck4up-0.2.3.tar.gz) = d953011663e02af129a8de8a4371d4d9523cc1a58600ad804a611167431eec2e
+SIZE (ck4up-0.2.3.tar.gz) = 6383
diff --git a/sysutils/ck4up/files/patch-Makefile b/sysutils/ck4up/files/patch-Makefile
new file mode 100644
index 000000000000..65925c128752
--- /dev/null
+++ b/sysutils/ck4up/files/patch-Makefile
@@ -0,0 +1,23 @@
+--- Makefile.orig Mon Nov 20 19:12:16 2006
++++ Makefile Mon Nov 20 19:12:51 2006
+@@ -1,15 +1,14 @@
+-# $Id: Makefile 70 2003-10-20 19:54:10Z juergen $
+
+-PREFIX=/usr
+-BINDIR=$(PREFIX)/bin
+-MANDIR=$(PREFIX)/man/man1
++
++BINDIR=%%PREFIX%%/bin
++MANDIR=%%PREFIX%%/man/man1
+
+ DESTDIR=
+
+ all : install
+
+ install:
+- install -D -m 755 ck4up.rb $(DESTDIR)$(BINDIR)/ck4up
+- install -D -m 644 ck4up.1 $(DESTDIR)$(MANDIR)/ck4up.1
++ install -m 755 ck4up.rb $(DESTDIR)$(BINDIR)/ck4up
++ install -m 644 ck4up.1 $(DESTDIR)$(MANDIR)/ck4up.1
+
+ # End of file
diff --git a/sysutils/ck4up/files/patch-ck4up.rb b/sysutils/ck4up/files/patch-ck4up.rb
new file mode 100644
index 000000000000..d0a4706177f7
--- /dev/null
+++ b/sysutils/ck4up/files/patch-ck4up.rb
@@ -0,0 +1,8 @@
+--- ck4up.rb.orig Sun Nov 19 21:39:42 2006
++++ ck4up.rb Sun Nov 19 21:40:03 2006
+@@ -1,4 +1,4 @@
+-#! /usr/bin/ruby
++#! %%PREFIX%%/bin/ruby
+ #
+ # ck4up
+ #
diff --git a/sysutils/ck4up/files/patch-ck4up.sh b/sysutils/ck4up/files/patch-ck4up.sh
new file mode 100644
index 000000000000..da18f2c6ab3f
--- /dev/null
+++ b/sysutils/ck4up/files/patch-ck4up.sh
@@ -0,0 +1,11 @@
+--- ck4up.sh.orig Sun Nov 19 21:39:51 2006
++++ ck4up.sh Sun Nov 19 21:40:12 2006
+@@ -5,7 +5,7 @@
+ #
+ # Jürgen Daubert <juergen.daubert@t-online.de>
+
+-PROG='/usr/bin/ck4up'
++PROG='%%PREFIX%%/bin/ck4up'
+ DIFF=`$PROG $@ | awk '{if ($3 ~ /diff:/) {print $4} else {print $0 > "/dev/stderr"}}'`
+ TEST_MOZ=`ps ax | grep -v grep | grep -c firefox`
+
diff --git a/sysutils/ck4up/pkg-descr b/sysutils/ck4up/pkg-descr
new file mode 100644
index 000000000000..970b37cdf491
--- /dev/null
+++ b/sysutils/ck4up/pkg-descr
@@ -0,0 +1,6 @@
+ck4up is a small command-line utility, written in ruby. ck4up scans through a
+configuration file, fetches the listed URLs from the web, computes the md5sum
+of the page, and compares the value with the ones stored in a gdbm database.
+If both differ, a message will be written to the standard output.
+
+WWW: http://jue.li/crux/ck4up/