pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools Removed distfetch from pkgsrc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56494b7beb32
branches:  trunk
changeset: 499242:56494b7beb32
user:      martti <martti%pkgsrc.org@localhost>
date:      Fri Sep 16 07:41:50 2005 +0000

description:
Removed distfetch from pkgsrc

diffstat:

 pkgtools/Makefile                       |    3 +-
 pkgtools/distfetch/DESCR                |    2 -
 pkgtools/distfetch/Makefile             |   34 ------
 pkgtools/distfetch/PLIST                |    5 -
 pkgtools/distfetch/files/distfetch      |  161 --------------------------------
 pkgtools/distfetch/files/distfetch.1    |  108 ---------------------
 pkgtools/distfetch/files/distfetch.conf |   13 --
 7 files changed, 1 insertions(+), 325 deletions(-)

diffs (truncated from 364 to 300 lines):

diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/Makefile
--- a/pkgtools/Makefile Fri Sep 16 07:40:22 2005 +0000
+++ b/pkgtools/Makefile Fri Sep 16 07:41:50 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2005/07/30 21:28:06 wiz Exp $
+# $NetBSD: Makefile,v 1.69 2005/09/16 07:41:50 martti Exp $
 #
 
 COMMENT=       Tools for use in the packages collection
@@ -9,7 +9,6 @@
 SUBDIR+=       createbuildlink
 SUBDIR+=       dfdisk
 SUBDIR+=       digest
-SUBDIR+=       distfetch
 SUBDIR+=       genrpm
 SUBDIR+=       gensolpkg
 #SUBDIR+=      libkver         # Only under instruction of user
diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/distfetch/DESCR
--- a/pkgtools/distfetch/DESCR  Fri Sep 16 07:40:22 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-distfetch helps you to fetch all the distfiles you need to compile
-your packages. Only the required distfiles are downloaded.
diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/distfetch/Makefile
--- a/pkgtools/distfetch/Makefile       Fri Sep 16 07:40:22 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2005/06/17 03:50:29 jlam Exp $
-
-DISTNAME=      distfetch-20020930
-CATEGORIES=    pkgtools
-MASTER_SITES=  # empty
-DISTFILES=     # empty
-
-MAINTAINER=    martti%NetBSD.org@localhost
-HOMEPAGE=      http://www.pkgsrc.org/
-COMMENT=       Script to fetch only required distribution files
-
-WRKSRC=                ${WRKDIR}
-EXTRACT_ONLY=  # defined
-NO_CHECKSUM=   # defined
-NO_CONFIGURE=  # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-INSTALLATION_DIRS=     bin man/man1
-
-do-build:
-.for i in distfetch distfetch.1 distfetch.conf
-       ${SED} "s+__PREFIX__+${PREFIX}+g" < ${FILESDIR}/${i} > ${WRKSRC}/${i}
-.endfor
-
-do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/distfetch ${PREFIX}/bin/distfetch
-       ${INSTALL_MAN} ${WRKSRC}/distfetch.1 ${PREFIX}/man/man1
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/distfetch
-       ${INSTALL_DATA} ${WRKSRC}/distfetch.conf \
-               ${PREFIX}/share/examples/distfetch/distfetch.conf
-
-.include "../../mk/bsd.pkg.mk"
-
diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/distfetch/PLIST
--- a/pkgtools/distfetch/PLIST  Fri Sep 16 07:40:22 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/30 08:37:13 martti Exp $
-bin/distfetch
-man/man1/distfetch.1
-share/examples/distfetch/distfetch.conf
-@dirrm share/examples/distfetch
diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/distfetch/files/distfetch
--- a/pkgtools/distfetch/files/distfetch        Fri Sep 16 07:40:22 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,161 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: distfetch,v 1.1.1.1 2002/09/30 08:37:14 martti Exp $
-#
-# Copyright (c) 2002 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Martti Kuparinen.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-#    must display the following acknowledgement:
-#        This product includes software developed by the NetBSD
-#        Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-#    contributors may be used to endorse or promote products derived
-#    from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-#
-# This script helps you to fetch distfiles for packages.
-#
-# See also:
-#
-# - distfetch(1)
-# - __PREFIX__/share/examples/distfetch/distfetch.conf
-#
-PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
-
-# Default settings
-CONFIG="__PREFIX__/etc/distfetch.conf"
-PKGSRCDIR="${PKGSRCDIR:=/usr/pkgsrc}"
-DISTDIR="`cd ${PKGSRCDIR} && make -V DISTDIR`"
-TEMPFILE="/tmp/`basename $0`.$$" 
-VERBOSE=
-
-usage() {
-       cat << EOF
-
-Usage: `basename $0` [options]
-
-Options:
-
-  -c filename   Location of the configuration file
-  -d directory  Location of the distribution files
-  -s directory  Location of pkgsrc
-
-  -h            This help text
-  -v            Be more verbose
-
-Default settings:
-
-  -c ${CONFIG}
-  -d ${DISTDIR}
-  -s ${PKGSRCDIR}
-
-Example:
-
-  # `basename $0` -c ~/.distfetchrc
-
-EOF
-       exit 1
-}
-
-#
-# main()
-#
-
-# Read command line arguments
-ARGV=`getopt c:d:hs:v $*`
-[ $? != 0 ] && usage
-set -- ${ARGV}
-for i; do
-       case "${i}" in
-       -c)
-               CONFIG="${2}"
-               shift 2
-               ;;
-       -d)
-               DISTDIR="${2}"
-               shift 2
-               ;;
-       -h)
-               usage
-               ;;
-       -s)
-               PKGSRCDIR="${2}"
-               shift 2
-               ;;
-       -v)
-               VERBOSE=YES
-               shift
-               ;;
-       --)
-               shift
-               break
-               ;;
-       esac
-done
-
-# Check if DISTDIR could be set
-DIRECTORY="`cd ${PKGSRCDIR} && make -V DISTDIR DISTDIR=${DISTDIR}`"
-if [ "x${DIRECTORY}" != "x${DISTDIR}" ]; then
-       echo "Error: you already have DISTDIR=${DIRECTORY} in /etc/mk.conf"
-       exit 1
-fi
-DISTDIR="${DIRECTORY}"
-export DISTDIR
-
-# Read the configuration file
-if [ ! -r "${CONFIG}" ]; then
-       echo "`basename $0`: ${CONFIG} not found"
-       exit 1
-fi
-echo "Reading package list from ${CONFIG}"
-PKGS=
-for i in `sed -e 's+#.*++' -e '/^$/d' < ${CONFIG} | tr '\n' ' '`
-do
-       if [ ! -d "${PKGSRCDIR}/${i}" ]; then
-               echo "Warning: unknown package ${i}"
-               continue
-       fi
-       echo "===> ${i}"
-       PKGS="${PKGS} ${i}"
-done
-
-# Generate a list of missing files
-echo "Processing packages"
-(cd ${PKGSRCDIR} && make SITE_SPECIFIC_PKGS="${PKGS}" SPECIFIC_PKGS=1 \
-       fetch-list) > "${TEMPFILE}"
-
-# Fetch distfiles into ${DISTDIR}
-echo "Fetching missing distfiles into ${DISTDIR}"
-if [ -z "${VERBOSE}" ]; then
-       sh "${TEMPFILE}" || exit 1
-else
-       echo "Running \"sh -x ${TEMPFILE}\""
-       sh -x "${TEMPFILE}" || exit 1
-fi
-
-rm -f "${TEMPFILE}"
-echo "All done"
diff -r be1f695a15a0 -r 56494b7beb32 pkgtools/distfetch/files/distfetch.1
--- a/pkgtools/distfetch/files/distfetch.1      Fri Sep 16 07:40:22 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-.\"    $NetBSD: distfetch.1,v 1.1.1.1 2002/09/30 08:37:13 martti Exp $
-.\"
-.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by Martti Kuparinen.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\"    notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\"    notice, this list of conditions and the following disclaimer in the
-.\"    documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\"    must display the following acknowledgement:
-.\"        This product includes software developed by the NetBSD
-.\"        Foundation, Inc. and its contributors.
-.\" 4. Neither the name of The NetBSD Foundation nor the names of its
-.\"    contributors may be used to endorse or promote products derived
-.\"    from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd September 30, 2002
-.Dt DISTFETCH 1
-.Os
-.Sh NAME
-.Nm distfetch
-.Nd fetch distribution files for packages
-.Sh SYNOPSIS
-.Nm
-.Op Fl c Ar filename
-.Op Fl d Ar destdir
-.Op Fl h
-.Op Fl s Ar srcdir
-.Op Fl v
-.Sh DESCRIPTION
-.Nm
-is a tool to fetch only required distfiles for the packages you
-are going to install.
-The packages are defined in a configuration file.
-.Pp
-The distfiles are stored in
-.Pa /usr/pkgsrc/distfiles
-but this can be changed by using the
-.Fl d Ar destdir
-argument or by setting the
-.Pa DISTDIR



Home | Main Index | Thread Index | Old Index