aboutsummaryrefslogtreecommitdiff
path: root/sysutils/ck4up
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-20 19:05:47 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-20 19:05:47 +0000
commitbf7a3f4e5eb9dd62f62ccddd2d95e56039e16c51 (patch)
treec6b80a01189137824db61ce4f4c48286ed14f5e9 /sysutils/ck4up
parent6a827f967da51e2969ead3cfbd7deefddb263394 (diff)
downloadports-bf7a3f4e5eb9dd62f62ccddd2d95e56039e16c51.tar.gz
ports-bf7a3f4e5eb9dd62f62ccddd2d95e56039e16c51.zip
Notes
Diffstat (limited to 'sysutils/ck4up')
-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
6 files changed, 86 insertions, 0 deletions
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/