pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/fd Update FD utility to 2.09a.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d834924f51c8
branches:  trunk
changeset: 522261:d834924f51c8
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Dec 06 15:36:31 2006 +0000

description:
Update FD utility to 2.09a.

FD 2.09a has many improvement for functionality and portability from
previous 1.03u.  And it has a built-in Bourne-shell compatible shell
and also runs stand-alone shell under the name of 'fdsh', too.

And fd-small PKG_OPTION will build smaller and FD 1.x compatible
binary.

Fixed PR pkg/33067.

diffstat:

 misc/fd/DESCR            |  18 +++++++++-------
 misc/fd/MESSAGE          |  12 -----------
 misc/fd/Makefile         |  52 ++++++++++++++++++++++++++++++++++-------------
 misc/fd/PLIST            |  18 +++++++++++++--
 misc/fd/PLIST.common_end |   5 ++++
 misc/fd/distinfo         |  11 +++++----
 misc/fd/options.mk       |  13 ++++++++++++
 misc/fd/patches/patch-aa |  41 +++++++++++++++++++++++++++++--------
 misc/fd/patches/patch-ae |  13 ++++++++++++
 9 files changed, 131 insertions(+), 52 deletions(-)

diffs (246 lines):

diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/DESCR
--- a/misc/fd/DESCR     Wed Dec 06 15:31:35 2006 +0000
+++ b/misc/fd/DESCR     Wed Dec 06 15:36:31 2006 +0000
@@ -1,10 +1,12 @@
-`FD' is a file and directory management tool for text terminal.
-Browsing file list, viewing, editing, archiving/extracting management
-with a few touch.
+`FD' (FDclone) is a file and directory management tool for text
+terminal; browsing file list, viewing, editing, archiving/extracting
+management with a few touch.  FD 2.0 and later have a built-in
+Bourne-shell compatible shell and also runs stand-alone shell under
+the name of 'fdsh'.
 
-FD for unix by shirai%nintendo.co.jp@localhost, and it is a clone of
-FD for DOS (AT and PC9801) designed by A. Idei (SDI00544%niftyserve.or.jp@localhost).
+This version is a clone of original FD for DOS (AT and PC9801)
+designed and written by A. Idei (SDI00544%niftyserve.or.jp@localhost).
 
-  Currently, the man page is available only in Japanese, but it's
-easy to use. Setting `FD_LANGUAGE' environment to 'english' you can
-use English help.
+Currently, the man page is available only in Japanese, but it's easy
+to use. Setting `FD_LANGUAGE' environment to 'english' you can use
+English help.
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/MESSAGE
--- a/misc/fd/MESSAGE   Wed Dec 06 15:31:35 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.3 2002/09/24 12:30:17 wiz Exp $
-
-This package is distributed under the following conditions:
-
-1. Source code distribution is fully free.
-2. Binary distribution is only permitted under license from
-the package maintainer, Nobuhiro Yasutomi (nobu%psrc.isac.co.jp@localhost).
-
-This is described in the README file in Japanese.
-
-===========================================================================
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/Makefile
--- a/misc/fd/Makefile  Wed Dec 06 15:31:35 2006 +0000
+++ b/misc/fd/Makefile  Wed Dec 06 15:36:31 2006 +0000
@@ -1,29 +1,51 @@
-# $NetBSD: Makefile,v 1.22 2006/05/18 20:29:59 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2006/12/06 15:36:31 taca Exp $
 #
 
-DISTNAME=      FD-1.03u
-PKGNAME=       fd-1.03u
-CATEGORIES=    misc
+DISTNAME=      FD-2.09a
+PKGNAME=       fd-2.09a
+CATEGORIES=    misc shells
 MASTER_SITES=  http://hp.vector.co.jp/authors/VA012337/soft/fd/
 
 MAINTAINER=    nobu%psrc.isac.co.jp@localhost
+HOMEPAGE=      http://hp.vector.co.jp/authors/VA012337/soft/fd/
 COMMENT=       File and directory management tool
 
-BROKEN_IN=     pkgsrc-2005Q4 pkgsrc-2006Q1
+MAKE_ENV+=     CONFDIR=${PKG_SYSCONFDIR:Q}
+
+MANLANG?=      ja_JP.eucJP
+MAKE_ENV+=     LANGDIR=${MANLANG:Q} DATADIR=${DATADIR:Q}
+PLIST_SUBST+=  FD_CONFIG=${FD_CONFIG:Q} MANLANG=${MANLANG:Q}
+
+DATADIR=       ${PREFIX}/share/fd
+DOCDIR=                ${PREFIX}/share/doc/fd
+EXAMPLESDIR=   ${PREFIX}/share/examples/fd
+
+DOCS=          FAQ LICENSES HISTORY README TECHKNOW ToAdmin
 
-MANLANG=       ja
-MAKE_ENV+=     LANG=${MANLANG:Q}
-DOCS=          README FAQ HISTORY ToAdmin
+.include "options.mk"
+
+CONF_FILES+=   ${EXAMPLESDIR:Q}/${FD_CONFIG} ${PKG_SYSCONFDIR:Q}/${FD_CONFIG}
 
-# require maintainer signature for binary package distributions
-do-configure:
-       @cd ${WRKSRC}; v=version.h; ${MV} $$v $$v.orig; \
-       ${SED} 's/\(distributor = \)NULL/\1"${MAINTAINER}"/' $$v.orig > $$v
+.if empty(PKG_OPTIONS:Mfd-small)
+PLIST_SRC=     ${PKGDIR}/PLIST ${WRKSRC}/PLIST ${PKGDIR}/PLIST.common_end
+.else
+USE_TOOLS+=    patch
+
+post-configure:
+       cd ${WRKSRC}; ${PATCH} -R < _fdrc.dif
+.endif
 
 post-install:
-       @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fd
-       @for i in ${DOCS}; do \
-               ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/fd; \
+       ${INSTALL_DATA_DIR} ${DOCDIR}/ja
+       cd ${WRKSRC}; \
+       for i in ${DOCS}; do \
+               ${INSTALL_DATA} ${WRKSRC}/$$i.eng ${DOCDIR}/$$i; \
+               ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCDIR}/ja; \
        done
+       ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
+       cd ${WRKSRC}; ${INSTALL_DATA} _fdrc ${EXAMPLESDIR}/${FD_CONFIG}
+.if empty(PKG_OPTIONS:Mfd-small)
+       ${ECHO} "share/fd/fd-dict.tbl" > ${WRKSRC}/PLIST
+.endif
 
 .include "../../mk/bsd.pkg.mk"
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/PLIST
--- a/misc/fd/PLIST     Wed Dec 06 15:31:35 2006 +0000
+++ b/misc/fd/PLIST     Wed Dec 06 15:36:31 2006 +0000
@@ -1,9 +1,21 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:28:00 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/12/06 15:36:31 taca Exp $
 bin/fd
-bin/fd-unicd.tbl
+bin/fdsh
 man/man1/fd.1
+man/man1/fdsh.1
+man/${MANLANG}/man1/fd.1
+man/${MANLANG}/man1/fdsh.1
 share/doc/fd/FAQ
+share/doc/fd/LICENSES
 share/doc/fd/HISTORY
 share/doc/fd/README
+share/doc/fd/TECHKNOW
 share/doc/fd/ToAdmin
-@dirrm share/doc/fd
+share/doc/fd/ja/FAQ
+share/doc/fd/ja/LICENSES
+share/doc/fd/ja/HISTORY
+share/doc/fd/ja/README
+share/doc/fd/ja/TECHKNOW
+share/doc/fd/ja/ToAdmin
+share/examples/fd/${FD_CONFIG}
+share/fd/fd-unicd.tbl
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/PLIST.common_end
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/fd/PLIST.common_end  Wed Dec 06 15:36:31 2006 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.common_end,v 1.1 2006/12/06 15:36:31 taca Exp $
+@dirrm share/fd
+@dirrm share/examples/fd
+@dirrm share/doc/fd/ja
+@dirrm share/doc/fd
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/distinfo
--- a/misc/fd/distinfo  Wed Dec 06 15:31:35 2006 +0000
+++ b/misc/fd/distinfo  Wed Dec 06 15:36:31 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2005/02/24 11:02:51 agc Exp $
+$NetBSD: distinfo,v 1.7 2006/12/06 15:36:31 taca Exp $
 
-SHA1 (FD-1.03u.tar.gz) = 5fd312b801a81400ae10bc3e5630ce315b48c765
-RMD160 (FD-1.03u.tar.gz) = 943a706dc64c81397c71babe7eab332341b3cc09
-Size (FD-1.03u.tar.gz) = 340097 bytes
-SHA1 (patch-aa) = 7877fcbf53da90e6d10fa57e3c6f55c761e9f11c
+SHA1 (FD-2.09a.tar.gz) = 1ceae6da209074ecac83a2822274146e7b3faf67
+RMD160 (FD-2.09a.tar.gz) = 1b35f1569d33e2050ad9a6cbdec3a26abe306c6f
+Size (FD-2.09a.tar.gz) = 800540 bytes
+SHA1 (patch-aa) = 1a82228acdc531f8a021c9fea76c5a51e63d1444
+SHA1 (patch-ab) = ef6980330eba5ed6d10e91fea780eb986a6c6925
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/fd/options.mk        Wed Dec 06 15:36:31 2006 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2006/12/06 15:36:32 taca Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.fd
+PKG_SUPPORTED_OPTIONS=         fd-small
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mfd-small)
+MAKE_ENV+=     VERSION=1
+FD_CONFIG=     fdrc
+.else
+FD_CONFIG=     fd2rc
+.endif
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/patches/patch-aa
--- a/misc/fd/patches/patch-aa  Wed Dec 06 15:31:35 2006 +0000
+++ b/misc/fd/patches/patch-aa  Wed Dec 06 15:36:31 2006 +0000
@@ -1,13 +1,36 @@
-$NetBSD: patch-aa,v 1.5 2001/12/30 13:46:04 wiz Exp $
+$NetBSD: patch-aa,v 1.6 2006/12/06 15:36:32 taca Exp $
 
---- Makefile.in.orig   Tue Dec 18 00:00:00 2001
-+++ Makefile.in        Wed Dec 19 13:02:55 2001
-@@ -4,7 +4,7 @@
+--- Makefile.orig      2006-10-31 00:00:00.000000000 +0900
++++ Makefile
+@@ -2,10 +2,10 @@
+ #     Makefile for fd
+ #
  
- TITLE = FD-
- VERSION       = __VERSION__
+-VERSION       = 2
++VERSION       ?= 2
+ VERMAJ        = $(VERSION)
 -PREFIX        = /usr/local
+-CONFDIR       = /etc
 +PREFIX        ?= /usr/local
- MANSEC        = 1
- TOPDIR        = $(PREFIX)
- BINDIR        = $(TOPDIR)/bin
++CONFDIR       ?= /etc
+ BUILD =
+ SHELL = /bin/sh
+ MAKE  = make
+@@ -16,6 +16,7 @@ DICTSRC      =
+ 
+ DEFCFLAGS = -DPREFIX='"'$(PREFIX)'"' \
+       -DCONFDIR='"'$(CONFDIR)'"' \
++      -DUSEMANLANG -DUSEDATADIR \
+       -DDICTSRC='"''$(DICTSRC)''"' \
+       -DFD=$(VERMAJ) \
+       -DCCCOMMAND='"'$(CC)'"' \
+@@ -91,7 +92,8 @@ mkmfsed: mkmfsed.c fd.h machine.h config
+ config.h: config.hin
+       cp config.hin config.h
+ 
+-install catman catman-b compman compman-b \
++install install-sh install-bsh install-everything \
++catman catman-b compman compman-b \
+ jcatman jcatman-b jcompman jcompman-b: Makefile.tmp
+       $(MAKE) BUILD=$(BUILD) -f Makefile.tmp $@
+ 
diff -r 335c285d5bf7 -r d834924f51c8 misc/fd/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/fd/patches/patch-ae  Wed Dec 06 15:36:31 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/12/06 15:36:32 taca Exp $
+
+--- mkmfsed.c.orig     2006-10-31 00:00:00.000000000 +0900
++++ mkmfsed.c
+@@ -119,7 +119,7 @@ char *argv[];
+       printf("s:__OSTYPE__:%s:\n", OSTYPE);
+ 
+ #ifdef        USEMANLANG
+-      if ((cp = (char *)getenv("LANG")) && *cp)
++      if ((cp = (char *)getenv("LANGDIR")) && *cp)
+               printf("s:__LANGDIR__:/%s:\n", cp);
+       else
+ #endif



Home | Main Index | Thread Index | Old Index