pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/rcorder autconfiscate, and add a rcorder2nbco...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6673f44752ce
branches: trunk
changeset: 479953:6673f44752ce
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Aug 27 03:06:07 2004 +0000
description:
autconfiscate, and add a rcorder2nbcompat script to ease importing from
src HEAD.
diffstat:
pkgtools/rcorder/Makefile | 14 +-
pkgtools/rcorder/files/Makefile | 11 -
pkgtools/rcorder/files/Makefile.in | 150 +
pkgtools/rcorder/files/config.guess | 1327 ++++++++
pkgtools/rcorder/files/config.h.in | 64 +
pkgtools/rcorder/files/config.sub | 1450 +++++++++
pkgtools/rcorder/files/configure | 4629 +++++++++++++++++++++++++++++++
pkgtools/rcorder/files/configure.ac | 36 +
pkgtools/rcorder/files/ealloc.c | 8 +-
pkgtools/rcorder/files/hash.c | 14 +-
pkgtools/rcorder/files/install-sh | 201 +
pkgtools/rcorder/files/mkinstalldirs | 40 +
pkgtools/rcorder/files/rcorder.c | 6 +-
pkgtools/rcorder/files/rcorder2nbcompat | 53 +
14 files changed, 7977 insertions(+), 26 deletions(-)
diffs (truncated from 8116 to 300 lines):
diff -r 9b723b1854f8 -r 6673f44752ce pkgtools/rcorder/Makefile
--- a/pkgtools/rcorder/Makefile Fri Aug 27 02:19:44 2004 +0000
+++ b/pkgtools/rcorder/Makefile Fri Aug 27 03:06:07 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/08/27 02:17:05 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2004/08/27 03:06:07 jlam Exp $
#
DISTNAME= rcorder-20031013
@@ -11,12 +11,18 @@
COMMENT= Print a dependency ordering of interdependent files
USE_BUILDLINK3= yes
+NO_CHECKSUM= yes
+GNU_CONFIGURE= yes
-NO_CHECKSUM= # defined
-MANCOMPRESSED_IF_MANZ= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(LIBNBCOMPAT_STYLE) && (${LIBNBCOMPAT_STYLE} == "inplace")
+. include "../../pkgtools/libnbcompat/inplace.mk"
+.else
+. include "../../pkgtools/libnbcompat/buildlink3.mk"
+.endif
do-extract:
@${CP} -Rp ${FILESDIR} ${WRKSRC}
-.include "../../pkgtools/libnbcompat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 9b723b1854f8 -r 6673f44752ce pkgtools/rcorder/files/Makefile
--- a/pkgtools/rcorder/files/Makefile Fri Aug 27 02:19:44 2004 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/08/27 01:49:16 schmonz Exp $
-
-PROG= rcorder
-LDADD= -lnbcompat
-SRCS= ealloc.c hash.c rcorder.c
-MAN= rcorder.8
-
-BINDIR= ${PREFIX}/sbin
-MANDIR= ${PREFIX}/man
-
-.include <bsd.prog.mk>
diff -r 9b723b1854f8 -r 6673f44752ce pkgtools/rcorder/files/Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/rcorder/files/Makefile.in Fri Aug 27 03:06:07 2004 +0000
@@ -0,0 +1,150 @@
+# $Id: Makefile.in,v 1.1 2004/08/27 03:06:07 jlam Exp $
+
+@SET_MAKE@
+SHELL = @SHELL@
+VPATH=@srcdir@
+
+PACKAGE_NAME= @PACKAGE_NAME@
+PACKAGE_VERSION= @PACKAGE_VERSION@
+
+srcdir = @srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+mandir = @mandir@
+sbindir = @sbindir@
+top_builddir = .
+
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+mkinstalldirs = $(SHELL) $(srcdir)/mkinstalldirs
+install_sh = $(SHELL) $(srcdir)/install-sh
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+host_alias = @host_alias@
+host_triplet = @host@
+CANONICAL_HOST = @CANONICAL_HOST@
+
+CC = @CC@
+CCLD = $(CC)
+LIBS = @LIBS@
+CPPFLAGS = @CPPFLAGS@
+DEFS = @DEFS@ -I. -I@srcdir@ -DHOST=\"$(CANONICAL_HOST)\" -DVERSION=\"$(PACKAGE_VERSION)\"
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+
+LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
+COMPILE = $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)
+
+SRCS = ealloc.c hash.c rcorder.c
+OBJS = ealloc.o hash.o rcorder.o
+
+DISTFILES = $(SRCS) AUTHORS COPYING INSTALL Makefile.in NEWS README aclocal.m4 \
+config.guess config.h.in config.sub configure configure.ac install-sh \
+missing mkinstalldirs regress.sh
+
+.c.o:
+ $(COMPILE) -c $< -o $@
+
+all: rcorder
+
+rcorder: $(OBJS)
+ $(LINK) $(OBJS) $(LIBS)
+
+check: rcorder
+ @SHELL@ $(srcdir)/regress.sh
+
+clean:
+ rm -f *.o rcorder
+
+distclean: clean
+ rm -f Makefile config.h
+ rm -f config.status config.cache config.log configure.lineno
+
+maintainer-clean: distclean
+ rm -f configure config.h.in
+
+install: rcorder
+ $(mkinstalldirs) $(DESTDIR)$(sbindir)
+ @f=`echo rcorder|sed '$(transform)'`; \
+ echo "$(INSTALL_PROGRAM) rcorder $(DESTDIR)$(sbindir)/$$f"; \
+ $(INSTALL_PROGRAM) rcorder $(DESTDIR)$(sbindir)/$$f
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man8
+ @f=`echo rcorder.8|sed '$(transform)'`; \
+ echo "$(INSTALL_DATA) rcorder.8 $(DESTDIR)$(mandir)/man8/$$f"; \
+ $(INSTALL_DATA) rcorder.8 $(DESTDIR)$(mandir)/man8/$$f
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/cat8
+ @f=`echo rcorder.cat8|sed '$(transform);s,\.cat8$$,.0,'`; \
+ echo "$(INSTALL_DATA) rcorder.cat8 $(DESTDIR)$(mandir)/cat8/$$f"; \
+ $(INSTALL_DATA) rcorder.cat8 $(DESTDIR)$(mandir)/cat8/$$f
+
+uninstall:
+ @f=`echo rcorder|sed '$(transform)'`; \
+ echo " rm -f $(DESTDIR)$(sbindir)/$$f"; \
+ rm -f $(DESTDIR)$(sbindir)/$$f
+
+GZIP_ENV= --best
+TAR= tar
+distdir= $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+
+distdir: $(DISTFILES)
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+ mkdir $(distdir)
+ @for file in $(DISTFILES); do \
+ if test -f $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ $(mkinstalldirs) "$(distdir)/$$dir"; \
+ fi; \
+ if test -d $$d/$$file; then \
+ cp -pR $$d/$$file $(distdir) \
+ || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+
+dist: distdir
+ $(TAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+
+distcheck: dist
+ -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(TAR) xf -
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/=build
+ mkdir $(distdir)/=inst
+ chmod a-w $(distdir)
+ dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
+ && cd $(distdir)/=build \
+ && ../configure --srcdir=.. --prefix=$$dc_install_base \
+ && $(MAKE) \
+ && $(MAKE) check \
+ && $(MAKE) install \
+ && $(MAKE) uninstall \
+ && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
+ || (echo "Error: files left after uninstall" 1>&2; \
+ exit 1) ) \
+ && $(MAKE) dist \
+ && $(MAKE) distclean \
+ && rm -f $(distdir).tar.gz \
+ && (test `find . -type f -print | wc -l` -eq 0 \
+ || (echo "Error: files left after distclean" 1>&2; \
+ exit 1) )
+ -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
+ @echo "$(distdir).tar.gz is ready for distribution" | \
+ sed 'h;s/./=/g;p;x;p;x'
diff -r 9b723b1854f8 -r 6673f44752ce pkgtools/rcorder/files/config.guess
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/rcorder/files/config.guess Fri Aug 27 03:06:07 2004 +0000
@@ -0,0 +1,1327 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002 Free Software Foundation, Inc.
+
+timestamp='2002-01-30'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Per Bothner <per%bothner.com@localhost>.
+# Please send patches to <config-patches%gnu.org@localhost>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches%gnu.org@localhost>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit 0 ;;
+ --version | -v )
+ echo "$version" ; exit 0 ;;
+ --help | --h* | -h )
+ echo "$usage"; exit 0 ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+
+dummy=dummy-$$
+trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script.
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
Home |
Main Index |
Thread Index |
Old Index