pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install Merge 20040409: Parameterize the ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8686ad827a2f
branches: trunk
changeset: 472385:8686ad827a2f
user: tv <tv%pkgsrc.org@localhost>
date: Fri Apr 09 18:38:12 2004 +0000
description:
Merge 20040409: Parameterize the umask calls so that defs.*.mk can change
it on a per-opsys basis (and so that mk.conf can override it to match what
the pkgsrc builder is using).
diffstat:
pkgtools/pkg_install/Makefile | 6 ++++--
pkgtools/pkg_install/files/add/perform.c | 5 +++--
pkgtools/pkg_install/files/create/perform.c | 6 +++---
pkgtools/pkg_install/files/info/show.c | 6 +++---
pkgtools/pkg_install/files/lib/lib.h | 6 +++++-
pkgtools/pkg_install/files/lib/version.h | 4 ++--
6 files changed, 20 insertions(+), 13 deletions(-)
diffs (140 lines):
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/Makefile
--- a/pkgtools/pkg_install/Makefile Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/Makefile Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.99 2004/03/29 02:24:11 tv Exp $
+# $NetBSD: Makefile,v 1.100 2004/04/09 18:38:12 tv Exp $
# Notes to package maintainers:
#
@@ -48,10 +48,12 @@
LIBNBCOMPAT_FILESDIR= ${.CURDIR}/../../pkgtools/libnbcompat/files
LIBNBCOMPAT_SRCDIR= ${WRKDIR}/libnbcompat
-CFLAGS+= -I${LIBNBCOMPAT_SRCDIR}
+CPPFLAGS+= -I${LIBNBCOMPAT_SRCDIR}
LDFLAGS+= -L${LIBNBCOMPAT_SRCDIR}
LIBS+= -lnbcompat
+CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
+
MAKE_ENV+= MACHINE_ARCH="${MACHINE_ARCH}"
MAKE_ENV+= OPSYS="${OPSYS}"
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.18 2004/03/29 20:27:46 tv Exp $ */
+/* $NetBSD: perform.c,v 1.19 2004/04/09 18:38:12 tv Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.18 2004/03/29 20:27:46 tv Exp $");
+__RCSID("$NetBSD: perform.c,v 1.19 2004/04/09 18:38:12 tv Exp $");
#endif
#endif
@@ -720,6 +720,7 @@
if (!NoRecord && !Fake) {
char contents[FILENAME_MAX];
+ umask(DEF_UMASK);
#ifndef __INTERIX
if (getuid() != 0)
warnx("not running as root - trying to record install anyway");
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/files/create/perform.c
--- a/pkgtools/pkg_install/files/create/perform.c Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/files/create/perform.c Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.6 2003/09/23 07:13:49 grant Exp $ */
+/* $NetBSD: perform.c,v 1.7 2004/04/09 18:38:12 tv Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.6 2003/09/23 07:13:49 grant Exp $");
+__RCSID("$NetBSD: perform.c,v 1.7 2004/04/09 18:38:12 tv Exp $");
#endif
#endif
@@ -340,7 +340,7 @@
/* Make first "real contents" pass over it */
check_list(Home, &plist, basename_of(pkg));
- (void) umask(022); /* make sure gen'ed directories, files
+ (void) umask(DEF_UMASK);/* make sure gen'ed directories, files
* don't have group or other write bits. */
/* Now put the release specific items in */
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/files/info/show.c
--- a/pkgtools/pkg_install/files/info/show.c Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/files/info/show.c Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: show.c,v 1.4 2003/09/23 07:13:52 grant Exp $ */
+/* $NetBSD: show.c,v 1.5 2004/04/09 18:38:12 tv Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: show.c,v 1.11 1997/10/08 07:47:38 charnier Exp";
#else
-__RCSID("$NetBSD: show.c,v 1.4 2003/09/23 07:13:52 grant Exp $");
+__RCSID("$NetBSD: show.c,v 1.5 2004/04/09 18:38:12 tv Exp $");
#endif
#endif
@@ -141,7 +141,7 @@
if (!Quiet) {
printf("%s%s", InfoPrefix, title);
- maxline -= MAXNAMESIZE;
+ maxline -= MAX(MAXNAMESIZE, strlen(title));
}
if ((fp = fopen(fname, "r")) == (FILE *) NULL) {
warnx("show_file: can't open '%s' for reading", fname);
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/files/lib/lib.h
--- a/pkgtools/pkg_install/files/lib/lib.h Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/files/lib/lib.h Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.h,v 1.9 2004/02/07 10:37:53 grant Exp $ */
+/* $NetBSD: lib.h,v 1.10 2004/04/09 18:38:12 tv Exp $ */
/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */
@@ -82,6 +82,10 @@
#define OPSYS_NAME "NetBSD"
#endif
+#ifndef DEF_UMASK
+#define DEF_UMASK 022
+#endif
+
/* Usually "rm", but often "echo" during debugging! */
#define REMOVE_CMD "rm"
diff -r f1b12303e6de -r 8686ad827a2f pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h Fri Apr 09 18:29:37 2004 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h Fri Apr 09 18:38:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.24 2004/03/30 15:28:08 tv Exp $ */
+/* $NetBSD: version.h,v 1.25 2004/04/09 18:38:12 tv Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@@ -33,6 +33,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
-#define PKGTOOLS_VERSION "20040330"
+#define PKGTOOLS_VERSION "20040409"
#endif /* _INST_LIB_VERSION_H_ */
Home |
Main Index |
Thread Index |
Old Index