pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/shells/pdksh - Adapt to use local distribution.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd5c39a93c0a
branches:  trunk
changeset: 542627:fd5c39a93c0a
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 23 17:27:09 2008 +0000

description:
- Adapt to use local distribution.
- Add DESTDIR support.

diffstat:

 shells/pdksh/Makefile         |  16 ++++++++++++++--
 shells/pdksh/distinfo         |   7 -------
 shells/pdksh/patches/patch-aa |  17 -----------------
 shells/pdksh/patches/patch-ab |  12 ------------
 4 files changed, 14 insertions(+), 38 deletions(-)

diffs (87 lines):

diff -r 4f895516eee9 -r fd5c39a93c0a shells/pdksh/Makefile
--- a/shells/pdksh/Makefile     Fri May 23 17:19:49 2008 +0000
+++ b/shells/pdksh/Makefile     Fri May 23 17:27:09 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2007/12/02 12:29:02 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2008/05/23 17:27:09 tnn Exp $
 #
 
 DISTNAME=      pdksh-5.2.14
@@ -8,16 +8,28 @@
                http://gd.tuwien.ac.at/utils/shells/pdksh/ \
                ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \
                ftp://ftp.demon.net/pub/mirrors/pdksh/
+MASTER_SITES=  # maintained locally
+DISTFILES=     # empty
 
 MAINTAINER=    schmonz%NetBSD.org@localhost
 HOMEPAGE=      http://web.cs.mun.ca/~michael/pdksh/
 COMMENT=       Free clone of the AT&T Korn shell
 
+PKG_DESTDIR_SUPPORT=   user-destdir
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
+NO_CHECKSUM=           yes
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --program-prefix=pd
 
 PKG_SHELL=     bin/pdksh
 
+do-extract:
+       ${CP} -R ${FILESDIR} ${WRKSRC}
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/ksh ${DESTDIR}${PREFIX}/bin/pdksh
+       ${INSTALL_MAN} ${WRKSRC}/ksh.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pdksh.1
+
 .include "../../mk/bsd.pkg.mk"
diff -r 4f895516eee9 -r fd5c39a93c0a shells/pdksh/distinfo
--- a/shells/pdksh/distinfo     Fri May 23 17:19:49 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-$NetBSD: distinfo,v 1.3 2005/11/10 22:21:56 joerg Exp $
-
-SHA1 (pdksh-5.2.14.tar.gz) = 8b022e45de7691ef330f13b0981f0cff30b4047d
-RMD160 (pdksh-5.2.14.tar.gz) = 3ecb47ac7c7fc43445806a68c740c94278e2368f
-Size (pdksh-5.2.14.tar.gz) = 480107 bytes
-SHA1 (patch-aa) = 19cbe1ae50ee63549019c55c3eafb2bf138c401e
-SHA1 (patch-ab) = d1623335dee7933f3daf612eaf0cfe37c7e96744
diff -r 4f895516eee9 -r fd5c39a93c0a shells/pdksh/patches/patch-aa
--- a/shells/pdksh/patches/patch-aa     Fri May 23 17:19:49 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/11/28 07:12:09 schmonz Exp $
-
---- Makefile.in.orig   Tue Jul 13 13:06:53 1999
-+++ Makefile.in
-@@ -82,12 +82,6 @@ all: $(SHELL_PROG)$(exe_suffix) $(SHELL_
- install: installdirs all
-       $(INSTALL_PROGRAM) $(SHELL_PROG)$(exe_suffix) $(bindir)/`echo $(SHELL_PROG)|sed '$(transform)'`$(exe_suffix)
-       -$(INSTALL_DATA) $(SHELL_PROG).1 $(mandir)/`echo $(SHELL_PROG)|sed '$(transform)'`.$(manext)
--      -@prog=$(bindir)/`echo $(SHELL_PROG)|sed '$(transform)'`$(exe_suffix);\
--          test -f /etc/shells \
--          && (grep "^$$prog\$$" /etc/shells > /dev/null \
--              || echo \
--"NOTE: /etc/shells does not contain $$prog \
--      you should add it if you want to set your shell to $(SHELL_PROG)")
- 
- installdirs:
-       $(srcdir)/mkinstalldirs $(bindir) $(mandir)
diff -r 4f895516eee9 -r fd5c39a93c0a shells/pdksh/patches/patch-ab
--- a/shells/pdksh/patches/patch-ab     Fri May 23 17:19:49 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2005/11/10 22:21:56 joerg Exp $
-
---- sh.h.orig  2005-11-10 22:19:37.000000000 +0000
-+++ sh.h
-@@ -116,7 +116,6 @@ void *memmove ARGS((void *d, const void 
- #endif /* HAVE_PROTOTYPES */
- 
- #include <errno.h>
--extern int errno;
- 
- #ifdef HAVE_FCNTL_H
- # include <fcntl.h>



Home | Main Index | Thread Index | Old Index