pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_comp Update to 1.12:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cddf4b086076
branches:  trunk
changeset: 465003:cddf4b086076
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Dec 19 09:51:55 2003 +0000

description:
Update to 1.12:
* Add the -n flag.  When specified, do not install INSTALL_PACKAGES nor
  MAKE_PACKAGES during the creation of the chroot.

diffstat:

 pkgtools/pkg_comp/Makefile          |   4 ++--
 pkgtools/pkg_comp/files/pkg_comp.8  |  25 ++++++++++++++++++++++---
 pkgtools/pkg_comp/files/pkg_comp.sh |  16 ++++++++++------
 3 files changed, 34 insertions(+), 11 deletions(-)

diffs (130 lines):

diff -r cae1d3e811a2 -r cddf4b086076 pkgtools/pkg_comp/Makefile
--- a/pkgtools/pkg_comp/Makefile        Fri Dec 19 09:46:12 2003 +0000
+++ b/pkgtools/pkg_comp/Makefile        Fri Dec 19 09:51:55 2003 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2003/12/13 18:29:47 seb Exp $
+# $NetBSD: Makefile,v 1.16 2003/12/19 09:51:55 jmmv Exp $
 
-DISTNAME=      pkg_comp-1.11
+DISTNAME=      pkg_comp-1.12
 WRKSRC=                ${WRKDIR}
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
diff -r cae1d3e811a2 -r cddf4b086076 pkgtools/pkg_comp/files/pkg_comp.8
--- a/pkgtools/pkg_comp/files/pkg_comp.8        Fri Dec 19 09:46:12 2003 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.8        Fri Dec 19 09:51:55 2003 +0000
@@ -1,7 +1,7 @@
-.\" $NetBSD: pkg_comp.8,v 1.15 2003/12/14 00:07:19 wiz Exp $
+.\" $NetBSD: pkg_comp.8,v 1.16 2003/12/19 09:51:55 jmmv Exp $
 .\"
 .\" pkg_comp - Build packages inside a clean chroot environment
-.\" Copyright (c) 2002, 2003, Julio M. Merino Vidal <jmmv%netbsd.org@localhost>
+.\" Copyright (c) 2002, 2003, Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
 .\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 13, 2003
+.Dd December 19, 2003
 .Dt PKG_COMP 8
 .Os
 .Sh NAME
@@ -40,6 +40,7 @@
 .Pc
 .Ar conf_file
 .Oc
+.Op Fl n
 .Ar target
 .Op Ar pkg_name ...
 .Sh DESCRIPTION
@@ -57,6 +58,24 @@
 .Nm
 how to configure the new chroot environment, and the target specifies
 which action to take.
+.Pp
+The following options are recognized:
+.Bl -tag -width XcXconf_file
+.It Fl C Ar conf_file
+Use
+.Ar conf_file
+as configuration file (full path expected).
+.It Fl c Ar conf_file
+Use
+.Ar conf_file
+as configuration file (only base name expected).
+.It Fl n
+Avoid installation of
+.Va INSTALL_PACKAGES
+and
+.Va MAKE_PACKAGES
+during the creation of the chroot.
+.El
 .Ss What to use it for?
 You can use
 .Nm
diff -r cae1d3e811a2 -r cddf4b086076 pkgtools/pkg_comp/files/pkg_comp.sh
--- a/pkgtools/pkg_comp/files/pkg_comp.sh       Fri Dec 19 09:46:12 2003 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.sh       Fri Dec 19 09:51:55 2003 +0000
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# $NetBSD: pkg_comp.sh,v 1.12 2003/12/13 18:29:47 seb Exp $
+# $NetBSD: pkg_comp.sh,v 1.13 2003/12/19 09:51:55 jmmv Exp $
 #
 # pkg_comp - Build packages inside a clean chroot environment
-# Copyright (c) 2002, 2003, Julio M. Merino Vidal <jmmv%netbsd.org@localhost>
+# Copyright (c) 2002, 2003, Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -117,7 +117,7 @@
 
 usage()
 {
-    echo "usage: $ProgName [-(c|C) conf_file] target [pkg_names]"
+    echo "usage: $ProgName [-(c|C) conf_file] [-n] target [pkg_names]"
     exit 1
 }
 
@@ -419,11 +419,11 @@
         pkg_build pkgtools/x11-links
     fi
 
-    if [ -n "$INSTALL_PACKAGES" ]; then
+    if [ "$nflag" = "no" -a -n "$INSTALL_PACKAGES" ]; then
         pkg_install $INSTALL_PACKAGES
     fi
 
-    if [ -n "$MAKE_PACKAGES" ]; then
+    if [ "$nflag" = "no" -a -n "$MAKE_PACKAGES" ]; then
         pkg_build $MAKE_PACKAGES
     fi
 }
@@ -654,12 +654,13 @@
 confdir="$HOME/pkg_comp"
 
 # Parse options
-args=`getopt c:C: $*`
+args=`getopt c:C:n $*`
 if [ $? != 0 ]; then
     usage
 fi
 set -- $args
 conffile=
+nflag=no
 while [ $# -gt 0 ]; do
     case "$1" in
         -c)
@@ -676,6 +677,9 @@
             conffile="$2"
             shift
             ;;
+        -n)
+            nflag=yes
+            ;;
         --)
             shift; break
             ;;



Home | Main Index | Thread Index | Old Index