FWIW, I've cleaned up, updated MASTER_SITES, modernized and taken
maintainership of this program that probably no one uses.
Still, it's nice to have a nice port. :)
${FILESDIR} can be removed as well.

Stu


Index: misc/tkcron/Makefile
===================================================================
RCS file: /cvs/ports/misc/tkcron/Makefile,v
retrieving revision 1.17
diff -N -u -p misc/tkcron/Makefile
--- misc/tkcron/Makefile        15 Sep 2007 23:54:17 -0000      1.17
+++ misc/tkcron/Makefile        29 Oct 2009 17:27:00 -0000
@@ -1,26 +1,30 @@
 # $OpenBSD: Makefile,v 1.17 2007/09/15 23:54:17 merdely Exp $

-COMMENT=       frontend to crontab
+COMMENT =              Tk frontend to crontab

-DISTNAME=      tkcron-2.12
-CATEGORIES=    misc
+DISTNAME =             tkcron-2.12
+PKGNAME =              ${DISTNAME}p0
+CATEGORIES =           misc
+MAINTAINER =           Stuart Cassoff <[email protected]>

-MASTER_SITES=  ftp://ftp.neosoft.com/languages/tcl/alcatel/code/
-EXTRACT_SUFX=  .tcl.gz
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP =   Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes

-PERMIT_PACKAGE_CDROM=  Yes
-PERMIT_PACKAGE_FTP=    Yes
-PERMIT_DISTFILES_CDROM=        Yes
-PERMIT_DISTFILES_FTP=  Yes
+MASTER_SITES = 
ftp://ftp.tcl.tk/pub/tcl/mirror/ftp.procplace.com/alcatel/code/
+EXTRACT_SUFX =         .tcl.gz
+MODULES =              x11/tk
+RUN_DEPENDS =          ${MODTK_RUN_DEPENDS}
+NO_BUILD =             Yes
+NO_REGRESS =           Yes
+PKG_ARCH =             *
+WRKDIST =              ${WRKDIR}

-RUN_DEPENDS=   ::x11/tk/8.4
+pre-configure:
+       @${MODTCL_WISH_ADJ} ${WRKSRC}/${DISTNAME}.tcl

-EXTRACT_CASES=*) gunzip -c ${FULLDISTDIR}/$$archive >tkcron.tcl;;
-WRKDIST=       ${WRKDIR}
-
-post-extract:
-       @cp ${FILESDIR}/Makefile ${WRKSRC}
-
-NO_REGRESS=    Yes
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME}.tcl ${PREFIX}/bin/tkcron

 .include <bsd.port.mk>
Index: misc/tkcron/files/Makefile
===================================================================
RCS file: /cvs/ports/misc/tkcron/files/Makefile,v
retrieving revision 1.4
diff -N -u -p misc/tkcron/files/Makefile
--- misc/tkcron/files/Makefile  27 Dec 2003 23:37:31 -0000      1.4
+++ /dev/null   28 Sep 2008 10:50:08 -0000
@@ -1,12 +0,0 @@
-BINDIR=                ${PREFIX}/bin
-WISHDIR?=      ${BINDIR}
-
-all:           tkcron
-
-tkcron:        
-       sed -e "\:/usr/local/bin/wish: s;;${BINDIR}/wish8.4;g" tkcron.tcl > 
tkcron
-
-install:       all
-       ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
tkcron ${BINDIR}
-
-.include <bsd.own.mk>
Index: misc/tkcron/patches/patch-tkcron-2_12_tcl
===================================================================
RCS file: misc/tkcron/patches/patch-tkcron-2_12_tcl
diff -N -u -p misc/tkcron/patches/patch-tkcron-2_12_tcl
--- /dev/null   29 Oct 2009 17:27:00 -0000
+++ misc/tkcron/patches/patch-tkcron-2_12_tcl   29 Oct 2009 17:27:00 -0000
@@ -0,0 +1,19 @@
+$OpenBSD$
+--- tkcron-2.12.tcl.orig       Thu Oct 29 12:43:13 2009
++++ tkcron-2.12.tcl    Thu Oct 29 12:43:46 2009
+@@ -1,4 +1,6 @@
+-#!/usr/local/bin/wish
++#! /bin/sh
++# \
++exec wish "$0" ${1+"$@"}
+
+ # A simple interface to ease the creation of crontab jobs
+ # Cedric BEUST ([email protected])
+@@ -281,6 +283,7 @@ proc getEntryFromGadgets {} {
+
+ # Return the crontab string as a list
+ proc parseCrontabFile {str} {
++    set result ""
+     set crontablist [split $str \n]
+     set listlength [llength $crontablist]
+     for {set i 0} {$i < $listlength} {incr i 1} {
Index: misc/tkcron/patches/patch-tkcron_tcl
===================================================================
RCS file: /cvs/ports/misc/tkcron/patches/patch-tkcron_tcl,v
retrieving revision 1.1
diff -N -u -p misc/tkcron/patches/patch-tkcron_tcl
--- misc/tkcron/patches/patch-tkcron_tcl        26 Oct 2007 22:00:31 -0000      
1.1
+++ /dev/null   28 Sep 2008 10:50:08 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-tkcron_tcl,v 1.1 2007/10/26 22:00:31 ajacoutot Exp $
---- tkcron.tcl.orig    Fri Oct 26 23:55:57 2007
-+++ tkcron.tcl Fri Oct 26 23:55:58 2007
-@@ -281,6 +281,7 @@ proc getEntryFromGadgets {} {
-
- # Return the crontab string as a list
- proc parseCrontabFile {str} {
-+    set result ""
-     set crontablist [split $str \n]
-     set listlength [llength $crontablist]
-     for {set i 0} {$i < $listlength} {incr i 1} {
Index: misc/tkcron/pkg/DESCR
===================================================================
RCS file: /cvs/ports/misc/tkcron/pkg/DESCR,v
retrieving revision 1.2
diff -N -u -p misc/tkcron/pkg/DESCR
--- misc/tkcron/pkg/DESCR       26 Feb 2003 03:19:58 -0000      1.2
+++ misc/tkcron/pkg/DESCR       29 Oct 2009 17:27:00 -0000
@@ -1,6 +1,2 @@
-Tkcron is a frontend to crontab which allows the user to conveniently
-add/modify/install/remove cron jobs.
-
-This is crontab version 2.12
-
-       Sander
+Tkcron is a Tk frontend to crontab which allows the user to
+conveniently add/modify/install/remove cron jobs.

Reply via email to