pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/mc put the vfs .ini files into PKG_SYSCONFDIR...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6ffc7e7892fb
branches: trunk
changeset: 538632:6ffc7e7892fb
user: drochner <drochner%pkgsrc.org@localhost>
date: Thu Feb 14 12:26:56 2008 +0000
description:
put the vfs .ini files into PKG_SYSCONFDIR so that customized files
are not lost on updates, ride on yesterday's PKGREVISION bump
diffstat:
sysutils/mc/Makefile | 30 ++++++++++++++++++++++--------
sysutils/mc/PLIST.vfs | 7 ++++---
sysutils/mc/distinfo | 5 ++++-
sysutils/mc/patches/patch-aa | 13 +++++++++++++
sysutils/mc/patches/patch-ab | 13 +++++++++++++
sysutils/mc/patches/patch-ac | 13 +++++++++++++
6 files changed, 69 insertions(+), 12 deletions(-)
diffs (149 lines):
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/Makefile
--- a/sysutils/mc/Makefile Thu Feb 14 11:09:59 2008 +0000
+++ b/sysutils/mc/Makefile Thu Feb 14 12:26:56 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2008/02/13 10:20:56 rillig Exp $
+# $NetBSD: Makefile,v 1.72 2008/02/14 12:26:56 drochner Exp $
DISTNAME= mc-4.6.1
PKGREVISION= 4
@@ -23,21 +23,35 @@
PLIST_SRC+= ${PKGDIR}/PLIST.cons.saver
.endif
-# remove dir if no extensions were installed there
-post-install:
- rmdir ${DESTDIR}${PREFIX:Q}/lib/mc 2>/dev/null || ${TRUE}
-
# we need working e2fsprogs and gpm packages first
CONFIGURE_ARGS+= --without-ext2undel
CONFIGURE_ARGS+= --without-gpm-mouse
-
CONFIGURE_ARGS+= UNZIP=${TOOLS_PATH.unzip} ZIP=${TOOLS_PATH.zip}
PLIST_SRC+= ${PKGDIR}/PLIST
+.include "options.mk"
+PLIST_SRC+= ${PKGDIR}/PLIST.end
-.include "options.mk"
+PKG_SYSCONFSUBDIR= mc
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= post-patch
+SUBST_FILES.conf= vfs/extfs.c vfs/sfs.c
+SUBST_VARS.conf= PKG_SYSCONFDIR
-PLIST_SRC+= ${PKGDIR}/PLIST.end
+.if !empty(PKG_OPTIONS:Mvfs)
+EGDIR= ${PREFIX}/share/examples/mc
+CONF_FILES+= ${EGDIR}/extfs.ini ${PKG_SYSCONFDIR}/extfs.ini
+CONF_FILES+= ${EGDIR}/sfs.ini ${PKG_SYSCONFDIR}/sfs.ini
+.endif
+
+post-install:
+# remove dir if no extensions were installed there
+ rmdir ${DESTDIR}${PREFIX:Q}/lib/mc 2>/dev/null || ${TRUE}
+.if !empty(PKG_OPTIONS:Mvfs)
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/vfs/extfs/extfs.ini ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/vfs/extfs/sfs.ini ${EGDIR}
+.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/PLIST.vfs
--- a/sysutils/mc/PLIST.vfs Thu Feb 14 11:09:59 2008 +0000
+++ b/sysutils/mc/PLIST.vfs Thu Feb 14 12:26:56 2008 +0000
@@ -1,4 +1,6 @@
-@comment $NetBSD: PLIST.vfs,v 1.1 2005/01/15 21:15:26 wiz Exp $
+@comment $NetBSD: PLIST.vfs,v 1.2 2008/02/14 12:26:56 drochner Exp $
+share/examples/mc/extfs.ini
+share/examples/mc/sfs.ini
share/mc/extfs/README
share/mc/extfs/a
share/mc/extfs/apt
@@ -8,7 +10,6 @@
share/mc/extfs/deba
share/mc/extfs/debd
share/mc/extfs/dpkg
-share/mc/extfs/extfs.ini
share/mc/extfs/hp48
share/mc/extfs/iso9660
share/mc/extfs/lslR
@@ -16,7 +17,6 @@
share/mc/extfs/patchfs
share/mc/extfs/rpm
share/mc/extfs/rpms
-share/mc/extfs/sfs.ini
share/mc/extfs/trpm
share/mc/extfs/uar
share/mc/extfs/uarj
@@ -26,3 +26,4 @@
share/mc/extfs/uzip
share/mc/extfs/uzoo
@dirrm share/mc/extfs
+@dirrm share/examples/mc
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/distinfo
--- a/sysutils/mc/distinfo Thu Feb 14 11:09:59 2008 +0000
+++ b/sysutils/mc/distinfo Thu Feb 14 12:26:56 2008 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.16 2008/02/13 10:20:57 rillig Exp $
+$NetBSD: distinfo,v 1.17 2008/02/14 12:26:56 drochner Exp $
SHA1 (mc-4.6.1.tar.gz) = 92be0802143245e0fb7e3847d70da614cad7d5fb
RMD160 (mc-4.6.1.tar.gz) = d565ee95a8916d73fad5e0defeb9f2f57e50962b
Size (mc-4.6.1.tar.gz) = 3928370 bytes
+SHA1 (patch-aa) = 7168617908acb8aead0109308845513316ff3f18
+SHA1 (patch-ab) = 11677a3029ee2669d8a74a47188cff728052f408
+SHA1 (patch-ac) = 9d35fbfb73a3c5b9bc7dff604599d63069fc62ab
SHA1 (patch-su) = adad37f777fd2db905108fbd8d1b1a139cf1352a
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mc/patches/patch-aa Thu Feb 14 12:26:56 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.14 2008/02/14 12:26:56 drochner Exp $
+
+--- vfs/extfs.c.orig 2008-02-14 12:26:28.000000000 +0100
++++ vfs/extfs.c
+@@ -1278,7 +1278,7 @@ static int extfs_init (struct vfs_class
+ char *mc_extfsini;
+ char key[256];
+
+- mc_extfsini = concat_dir_and_file (mc_home, "extfs" PATH_SEP_STR "extfs.ini");
++ mc_extfsini = concat_dir_and_file ("@PKG_SYSCONFDIR@", "extfs.ini");
+ cfg = fopen (mc_extfsini, "r");
+
+ /* We may not use vfs_die() message or message or similar,
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mc/patches/patch-ab Thu Feb 14 12:26:56 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.13 2008/02/14 12:26:56 drochner Exp $
+
+--- vfs/sfs.c.orig 2008-02-14 12:27:01.000000000 +0100
++++ vfs/sfs.c
+@@ -314,7 +314,7 @@ static int sfs_init (struct vfs_class *m
+ FILE *cfg;
+ char key[256];
+
+- mc_sfsini = concat_dir_and_file (mc_home, "extfs" PATH_SEP_STR "sfs.ini");
++ mc_sfsini = concat_dir_and_file ("@PKG_SYSCONFDIR@", "sfs.ini");
+ cfg = fopen (mc_sfsini, "r");
+
+ if (!cfg){
diff -r a29383d3b68b -r 6ffc7e7892fb sysutils/mc/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mc/patches/patch-ac Thu Feb 14 12:26:56 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.9 2008/02/14 12:26:56 drochner Exp $
+
+--- vfs/extfs/Makefile.in.orig 2008-02-14 12:56:12.000000000 +0100
++++ vfs/extfs/Makefile.in
+@@ -226,7 +226,7 @@ target_alias = @target_alias@
+ extfsdir = $(pkgdatadir)/extfs
+
+ # Files to install and distribute other than extfs scripts
+-EXTFS_MISC = README extfs.ini sfs.ini
++EXTFS_MISC = README
+
+ # Scripts hat don't need adaptation to the local system
+ EXTFS_CONST = bpp rpm trpm
Home |
Main Index |
Thread Index |
Old Index