pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   hauke
Date:           Tue Feb  7 14:34:36 UTC 2017

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/p5-Unburden-Home-Dir: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/p5-Unburden-Home-Dir/files: unburden-home-dir.1
        pkgsrc/sysutils/p5-Unburden-Home-Dir/patches:
            patch-Xsession.d_25unburden-home-dir-xdg
            patch-Xsession.d_95unburden-home-dir patch-bin_unburden-home-dir
            patch-docs_unburden-home-dir.1.md patch-share_common.sh

Log Message:
Add p5-Unburden-Home-Dir package.

unburden-home-dir allows users to move cache files from browsers,
etc. off their (nfs or ssd based) home directory, i.e. on a local
harddisk or tmpfs and replace them with a symbolic link to the new
location (e.g. on /tmp/ or /scratch/) upon login.

Optionally the contents of these directories and files can be removed
instead of moved.


To generate a diff of this commit:
cvs rdiff -u -r1.688 -r1.689 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/p5-Unburden-Home-Dir/DESCR \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/Makefile \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/PLIST \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/files/unburden-home-dir.1
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_25unburden-home-dir-xdg \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_95unburden-home-dir \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-bin_unburden-home-dir \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-docs_unburden-home-dir.1.md \
    pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-share_common.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.688 pkgsrc/sysutils/Makefile:1.689
--- pkgsrc/sysutils/Makefile:1.688      Wed Feb  1 13:13:23 2017
+++ pkgsrc/sysutils/Makefile    Tue Feb  7 14:34:35 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.688 2017/02/01 13:13:23 mef Exp $
+# $NetBSD: Makefile,v 1.689 2017/02/07 14:34:35 hauke Exp $
 #
 
 COMMENT=       System utilities
@@ -415,6 +415,7 @@ SUBDIR+=    p5-Sys-SigAction
 SUBDIR+=       p5-Sys-Syslog
 SUBDIR+=       p5-Sys-Utmp
 SUBDIR+=       p5-UPS-Nut
+SUBDIR+=       p5-Unburden-Home-Dir
 SUBDIR+=       p5-Unix-ConfigFile
 SUBDIR+=       p5-Unix-Statgrab
 SUBDIR+=       p5-Unix-Syslog

Added files:

Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/DESCR
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/DESCR:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/DESCR  Tue Feb  7 14:34:35 2017
@@ -0,0 +1,7 @@
+unburden-home-dir allows users to move cache files from browsers,
+etc. off their (nfs or ssd based) home directory, i.e. on a local
+harddisk or tmpfs and replace them with a symbolic link to the new
+location (e.g. on /tmp/ or /scratch/) upon login.
+
+Optionally the contents of these directories and files can be removed
+instead of moved.
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/Makefile
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/Makefile:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/Makefile       Tue Feb  7 14:34:35 2017
@@ -0,0 +1,106 @@
+# $NetBSD: Makefile,v 1.1 2017/02/07 14:34:35 hauke Exp $
+
+GIT_COMMIT=    99a9278
+
+DISTNAME=      Unburden-Home-Dir-g${GIT_COMMIT}
+PKGNAME=       p5-${DISTNAME}
+#PKGREVISION=  1
+CATEGORIES=    sysutils perl5
+MASTER_SITES=  -https://codeload.github.com/xtaran/unburden-home-dir/tar.gz/${GIT_COMMIT}
+
+MAINTAINER=    hauke%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/xtaran/unburden-home-dir
+COMMENT=       Automatically unburden HOME directory from caches etc
+LICENSE=       gnu-gpl-v2
+
+WRKSRC=                ${WRKDIR}/unburden-home-dir-${GIT_COMMIT}
+
+DEPENDS+=      p5-Config-File-[0-9]*:../../devel/p5-Config-File
+DEPENDS+=      p5-File-BaseDir-[0-9]*:../../devel/p5-File-BaseDir
+
+# http://search.cpan.org/~leakin/File-Rsync/Rsync.pm
+DEPENDS+=      p5-File-Rsync-[0-9]*:../../net/p5-File-Rsync
+DEPENDS+=      p5-File-Touch-[0-9]*:../../devel/p5-File-Touch
+DEPENDS+=      p5-File-Which-[0-9]*:../../devel/p5-File-Which
+DEPENDS+=      p5-String-Expand-[0-9]*:../../textproc/p5-String-Expand
+DEPENDS+=      lsof-[0-9]*:../../sysutils/lsof
+
+USE_TOOLS+=    perl
+REPLACE_PERL+= bin/unburden-home-dir
+
+USE_LANGUAGES= # empty
+NO_BUILD=      yes
+
+DOCDIR=                share/doc/unburden-home-dir
+EGDIR=         share/examples/unburden-home-dir
+CONF_FILES=    ${PREFIX}/${EGDIR}/unburden-home-dir.conf       \
+                       ${PKG_SYSCONFDIR}/unburden-home-dir.conf
+CONF_FILES+=   ${PREFIX}/${EGDIR}/unburden-home-dir.list       \
+                       ${PKG_SYSCONFDIR}/unburden-home-dir.list
+
+PKG_SYSCONFSUBDIR=     unburden-home-dir
+INSTALLATION_DIRS+=    bin libexec libexec/unburden-home-dir
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR}
+
+SUBST_CLASSES+=                        fix-paths
+SUBST_STAGE.fix-paths=         pre-install
+SUBST_MESSAGE.fix-paths=       Fixing absolute paths
+SUBST_FILES.fix-paths=         bin/unburden-home-dir
+SUBST_FILES.fix-paths+=                docs/unburden-home-dir.1.md
+SUBST_FILES.fix-paths+=                share/common.sh
+SUBST_FILES.fix-paths+=                unburden-home-dir.1
+SUBST_FILES.fix-paths+=                Xsession.d/25unburden-home-dir-xdg
+SUBST_FILES.fix-paths+=                Xsession.d/95unburden-home-dir
+SUBST_SED.fix-paths+=          -e 's,@SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_SED.fix-paths+=          -e 's,@PREFIX@,${PREFIX},g'
+
+SUBST_CLASSES+=                        comment-cfg
+SUBST_STAGE.comment-cfg=       pre-install
+SUBST_MESSAGE.comment-cfg=     Commenting out sample config file entries
+SUBST_FILES.comment-cfg=       etc/unburden-home-dir.list
+SUBST_SED.comment-cfg=         -E -e 's,^([^\#]),\#\1,g'
+
+.include "../../mk/bsd.prefs.mk"
+
+# Rendering the man page from markdown source requires ronn from
+# wip/ruby-ronn, but we must not depend on a wip package.
+#
+# Usage: Install wip/ruby-ronn and devel/gmake, then run
+#      `make clean ; make PKG_DEVELOPER=1 unburden-update-manpage`
+# and commit the updated man file .
+
+.if defined(PKG_DEVELOPER)
+
+#DEPENDS+=     ruby22-ronn-[0-9]*:../../wip/ruby-ronn
+#USE_TOOLS+=   gmake
+
+.PHONY:                unburden-update-manpage
+unburden-update-manpage:       patch
+       ( cd ${WRKSRC} && gmake manpages )
+       cp ${WRKSRC}/unburden-home-dir.1 ${PKGDIR}/files/
+
+.endif # PKG_DEVELOPER
+
+post-extract:
+       cp ${PKGDIR}/files/unburden-home-dir.1 ${WRKSRC}/
+
+do-install:
+       for ff in ${WRKSRC}/docs/*.md; do \
+               ${INSTALL_DATA} $$ff ${DESTDIR}${PREFIX}/${DOCDIR}/ ; \
+       done
+       ${INSTALL_MAN} ${WRKSRC}/unburden-home-dir.1 \
+                      ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/unburden-home-dir \
+               ${DESTDIR}${PREFIX}/bin/unburden-home-dir
+       ${INSTALL_DATA} ${WRKSRC}/share/common.sh \
+               ${DESTDIR}${PREFIX}/libexec/unburden-home-dir/common.sh
+       ${INSTALL_DATA} ${WRKSRC}/Xsession.d/95unburden-home-dir \
+               ${DESTDIR}${PREFIX}/${EGDIR}/unburden-home-dir
+       ${INSTALL_DATA} ${WRKSRC}/Xsession.d/25unburden-home-dir-xdg \
+               ${DESTDIR}${PREFIX}/${EGDIR}/unburden-home-dir-xdg
+       ${INSTALL_DATA} ${WRKSRC}/etc/unburden-home-dir \
+               ${DESTDIR}${PREFIX}/${EGDIR}/unburden-home-dir.conf
+       ${INSTALL_DATA} ${WRKSRC}/etc/unburden-home-dir.list \
+               ${DESTDIR}${PREFIX}/${EGDIR}/unburden-home-dir.list
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/PLIST
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/PLIST:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/PLIST  Tue Feb  7 14:34:35 2017
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/07 14:34:35 hauke Exp $
+bin/unburden-home-dir
+libexec/unburden-home-dir/common.sh
+man/man1/unburden-home-dir.1
+share/doc/unburden-home-dir/bugs.md
+share/doc/unburden-home-dir/configuration.md
+share/doc/unburden-home-dir/contact.md
+share/doc/unburden-home-dir/credits.md
+share/doc/unburden-home-dir/howto.md
+share/doc/unburden-home-dir/index.md
+share/doc/unburden-home-dir/installation.md
+share/doc/unburden-home-dir/license.md
+share/doc/unburden-home-dir/qa.md
+share/doc/unburden-home-dir/see-also.md
+share/doc/unburden-home-dir/source-code.md
+share/doc/unburden-home-dir/todo.md
+share/doc/unburden-home-dir/troubleshooting.md
+share/doc/unburden-home-dir/unburden-home-dir.1.md
+share/examples/unburden-home-dir/unburden-home-dir
+share/examples/unburden-home-dir/unburden-home-dir-xdg
+share/examples/unburden-home-dir/unburden-home-dir.conf
+share/examples/unburden-home-dir/unburden-home-dir.list
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/distinfo
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/distinfo:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/distinfo       Tue Feb  7 14:34:35 2017
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2017/02/07 14:34:35 hauke Exp $
+
+SHA1 (Unburden-Home-Dir-g99a9278.tar.gz) = 4e20a1eb66a0b93d0b03f31577101e46fcdcd4ba
+RMD160 (Unburden-Home-Dir-g99a9278.tar.gz) = 5032579039c499b5dbd7be18f121d654bba0043b
+SHA512 (Unburden-Home-Dir-g99a9278.tar.gz) = 3054494d7e00f65309b1b8815e012472be798abe2edccf69193a2ac88ddd88e06171b0b2d0673a1503071baf495203e2a9bd36feb6bff2a34e769f1200193d31
+Size (Unburden-Home-Dir-g99a9278.tar.gz) = 52254 bytes
+SHA1 (patch-Xsession.d_25unburden-home-dir-xdg) = 17e35f199b082d96ead8402f53f0c1f3a5116d2e
+SHA1 (patch-Xsession.d_95unburden-home-dir) = 745ea2cb3a28c36bd8ab5ed7dd0622160d2916e1
+SHA1 (patch-bin_unburden-home-dir) = ab20d5cc62aa830e11fa62766ac494a06f42e33d
+SHA1 (patch-docs_unburden-home-dir.1.md) = baf3da5a8872013d92970bba5935b1c0b37e44bd
+SHA1 (patch-share_common.sh) = 4543d529a049adb448b4875ad883933025283bbf

Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/files/unburden-home-dir.1
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/files/unburden-home-dir.1:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/files/unburden-home-dir.1      Tue Feb  7 14:34:35 2017
@@ -0,0 +1,86 @@
+.\" generated with Ronn/v0.7.3
+.\" http://github.com/rtomayko/ronn/tree/0.7.3
+.
+.TH "UNBURDEN\-HOME\-DIR" "1" "February 2017" "" "Unburden Your Home Directory"
+.
+.SH "NAME"
+\fBunburden\-home\-dir\fR \- unburdens home directories from caches and trashes
+.
+.SH "SYNOPSIS"
+\fBunburden\-home\-dir\fR [ \fB\-n\fR | \fB\-u\fR | \fB\-f\fR \fIfilter\fR ]
+.
+.br
+\fBunburden\-home\-dir\fR ( \fB\-h\fR | \fB\-\-help\fR | \fB\-\-version\fR )
+.
+.SH "DESCRIPTION"
+unburden\-home\-dir unburdens the home directory from files and directory which cause high I/O or disk usage but are neither important if they are lost, e\.g\. caches or trash directory\.
+.
+.P
+When being run it moves the files and directories given in the configuration file to a location outside the home directory, e\.g\. \fB/tmp\fR or \fB/scratch\fR, and puts appropriate symbolic links 
in the home directory instead\.
+.
+.SH "OPTIONS"
+.
+.TP
+\fB\-b\fR
+use the given string as basename instead of "unburden\-home\-dir"\.
+.
+.TP
+\fB\-c\fR
+read an additional configuration file\.
+.
+.TP
+\fB\-C\fR
+read only the given configuration file
+.
+.TP
+\fB\-f\fR
+just unburden those directory matched by the given filter (a perl regular expression) \- it matches the already unburdened directories if used together with \fB\-u\fR\.
+.
+.TP
+\fB\-F\fR
+Do not check for files in use with lsof before (re)moving files\.
+.
+.TP
+\fB\-l\fR
+read an additional list file
+.
+.TP
+\fB\-L\fR
+read only the given list file
+.
+.TP
+\fB\-n\fR
+dry run (show what would be done)
+.
+.TP
+\fB\-u\fR
+undo (reverse the functionality and put stuff back into the home directory)
+.
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help
+.
+.TP
+\fB\-\-version\fR
+show the program\'s version
+.
+.SH "EXAMPLES"
+Example configuration files can be found at \fB@PREFIX@/share/examples/unburden\-home\-dir/\fR and in the \fBetc/\fR directory of the source tar ball\.
+.
+.SH "FILES"
+\fB@SYSCONFDIR@/unburden\-home\-dir\.conf\fR, \fB@SYSCONFDIR@/unburden\-home\-dir\.list\fR, \fB~/\.unburden\-home\-dir\.conf\fR, \fB~/\.unburden\-home\-dir\.list\fR, 
\fB~/\.config/unburden\-home\-dir/config\fR, \fB~/\.config/unburden\-home\-dir/list\fR
+.
+.P
+Read the documentation at either \fB@PREFIX@/share/doc/unburden\-home\-dir/\fR, at https://unburden\-home\-dir\.readthedocs\.io/ online, or in the \fBdocs/\fR directory in the source tar ball for an 
explanation of these files\.
+.
+.SH "SEE ALSO"
+corekeeper \fIhttps://packages\.debian\.org/corekeeper\fR, autotrash(1), agedu(1), bleachbit(1), mundus \fIhttps://sebikul\.github\.io/mundus/\fR, computer\-janitor(1), rmlint(1)\.
+.
+.P
+Of, course, du(1) can help you to find potential files or directories to handle by unburden\-home\-dir, but there are quite some du(1)\-like tools out there which are way more comfortable, e\.g\. 
ncdu(1) (text\-mode), baobab(1) (GNOME), filelight(1) (KDE), xdiskusage(1) (X tool calling du(1) itself), or xdu(1) (X tool reading du(1) output from STDIN)\.
+.
+.SH "AUTHOR"
+Unburden Home Dir is written and maintained by Axel Beckert \fIabe@deuxchevaux\.org\fR\.
+.
+.SH "LICENSE"
+Unburden Home Dir is available under the terms of the GNU General Public License (GPL) version 2 or any later version at your option\.

Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_25unburden-home-dir-xdg
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_25unburden-home-dir-xdg:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_25unburden-home-dir-xdg       Tue Feb  7 14:34:36 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-Xsession.d_25unburden-home-dir-xdg,v 1.1 2017/02/07 14:34:36 hauke Exp $
+
+Fix absolute paths.
+
+--- Xsession.d/25unburden-home-dir-xdg.orig    2016-10-17 14:13:06.000000000 +0000
++++ Xsession.d/25unburden-home-dir-xdg
+@@ -5,8 +5,8 @@
+ if [ -z "$UNBURDEN_HOME_DIR_COMMON_SOURCED" ]; then
+     if [ -e share/common.sh ]; then
+         . share/common.sh
+-    elif [ -e /usr/share/unburden-home-dir/common.sh ]; then
+-        . /usr/share/unburden-home-dir/common.sh
++    elif [ -e @PREFIX@/libexec/unburden-home-dir/common.sh ]; then
++        . @PREFIX@/libexec/unburden-home-dir/common.sh
+     fi
+ fi
+ 
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_95unburden-home-dir
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_95unburden-home-dir:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-Xsession.d_95unburden-home-dir   Tue Feb  7 14:34:36 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-Xsession.d_95unburden-home-dir,v 1.1 2017/02/07 14:34:36 hauke Exp $
+
+Fix absolute paths.
+
+--- Xsession.d/95unburden-home-dir.orig        2016-10-17 14:13:06.000000000 +0000
++++ Xsession.d/95unburden-home-dir
+@@ -5,8 +5,8 @@
+ if [ -z "$UNBURDEN_HOME_DIR_COMMON_SOURCED" ]; then
+     if [ -e share/common.sh ]; then
+         . share/common.sh
+-    elif [ -e /usr/share/unburden-home-dir/common.sh ]; then
+-        . /usr/share/unburden-home-dir/common.sh
++    elif [ -e @PREFIX@/libexec/unburden-home-dir/common.sh ]; then
++        . @PREFIX@/libexec/unburden-home-dir/common.sh
+     fi
+ fi
+ 
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-bin_unburden-home-dir
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-bin_unburden-home-dir:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-bin_unburden-home-dir    Tue Feb  7 14:34:36 2017
@@ -0,0 +1,51 @@
+$NetBSD: patch-bin_unburden-home-dir,v 1.1 2017/02/07 14:34:36 hauke Exp $
+
+We depend on sysutils/lsof, so we do not need to hunt for it
+Rename the config file, sticking to conventions
+
+--- bin/unburden-home-dir.orig 2016-10-17 14:13:06.000000000 +0000
++++ bin/unburden-home-dir
+@@ -88,7 +88,7 @@ my %OPTIONS = ();
+ my $FILTER = undef;
+ my $UID = getpwuid($<);
+ my $USE_LSOF = 1;
+-my $LSOF_CMD = undef;
++my $LSOF_CMD = '@PREFIX@/bin/lsof';
+ 
+ # Some messages for Getopt::Std
+ sub VERSION_MESSAGE {
+@@ -153,10 +153,10 @@ foreach my $key (keys %OPTIONS) {
+ }
+ 
+ # By default check for a system wide and a user configuration and list file
+-my @CONFFILES = ("/etc/$BASENAME",
+-                 "$ENV{HOME}/.$BASENAME",
++my @CONFFILES = ("@SYSCONFDIR@/$BASENAME.conf",
++                 "$ENV{HOME}/.$BASENAME.conf",
+                  config_home($BASENAME).'/config');
+-my @LISTFILES = ("/etc/$BASENAME.$LISTSUFFIX",
++my @LISTFILES = ("@SYSCONFDIR@/$BASENAME.$LISTSUFFIX",
+                  "$ENV{HOME}/.$BASENAME.$LISTSUFFIX",
+                  config_home($BASENAME)."/$LISTSUFFIX");
+ 
+@@ -221,20 +221,6 @@ my $rsync = File::Rsync->new(
+     },
+ );
+ 
+-# Check for lsof in search path
+-my $which_lsof = which('lsof');
+-# Extra check for crappy distributions which place lsof outside a
+-# user's $PATH. Fixes GH#8.
+-if (!$which_lsof and -x '/usr/sbin/lsof') {
+-    $which_lsof = '/usr/sbin/lsof';
+-}
+-if (!$which_lsof) {
+-    warn "WARNING: lsof not found, not checking for files in use.\n";
+-    $USE_LSOF = 0;
+-} else {
+-    $LSOF_CMD = $which_lsof;
+-}
+-
+ # Standard Error reporting function; Warning
+ sub report_problem {
+     warn "WARNING: Can't handle $_[0]: $_[1]";
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-docs_unburden-home-dir.1.md
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-docs_unburden-home-dir.1.md:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-docs_unburden-home-dir.1.md      Tue Feb  7 14:34:36 2017
@@ -0,0 +1,32 @@
+$NetBSD: patch-docs_unburden-home-dir.1.md,v 1.1 2017/02/07 14:34:36 hauke Exp $
+
+Fix absolute paths, and normalize config file name
+
+--- docs/unburden-home-dir.1.md.orig   2016-10-17 14:13:06.000000000 +0000
++++ docs/unburden-home-dir.1.md
+@@ -67,20 +67,18 @@ EXAMPLES
+ --------
+ 
+ Example configuration files can be found at
+-`/usr/share/doc/unburden-home-dir/examples/` on Debian-based systems
++`@PREFIX@/share/examples/unburden-home-dir/`
+ and in the `etc/` directory of the source tar ball.
+ 
+ FILES
+ -----
+ 
+-`/etc/unburden-home-dir`, `/etc/unburden-home-dir.list`,
+-`~/.unburden-home-dir`, `~/.unburden-home-dir.list`,
++`@SYSCONFDIR@/unburden-home-dir.conf`, `@SYSCONFDIR@/unburden-home-dir.list`,
++`~/.unburden-home-dir.conf`, `~/.unburden-home-dir.list`,
+ `~/.config/unburden-home-dir/config`,
+-`~/.config/unburden-home-dir/list`, `/etc/default/unburden-home-dir`,
+-`/etc/X11/Xsession.d/95unburden-home-dir`
++`~/.config/unburden-home-dir/list`
+ 
+-Read the documentation at either
+-`/usr/share/doc/unburden-home-dir/html/` on debianoid installations,
++Read the documentation at either `@PREFIX@/share/doc/unburden-home-dir/`,
+ at https://unburden-home-dir.readthedocs.io/ online, or in the `docs/`
+ directory in the source tar ball for an explanation of these files.
+ 
Index: pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-share_common.sh
diff -u /dev/null pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-share_common.sh:1.1
--- /dev/null   Tue Feb  7 14:34:36 2017
+++ pkgsrc/sysutils/p5-Unburden-Home-Dir/patches/patch-share_common.sh  Tue Feb  7 14:34:36 2017
@@ -0,0 +1,28 @@
+$NetBSD: patch-share_common.sh,v 1.1 2017/02/07 14:34:36 hauke Exp $
+
+Fix absolute paths.
+Normalize prefs filename.
+
+--- share/common.sh.orig       2016-10-17 14:13:06.000000000 +0000
++++ share/common.sh
+@@ -2,16 +2,12 @@
+ 
+ UNBURDEN_BASENAME=${UNBURDEN_BASENAME:-unburden-home-dir}
+ 
+-if [ -e /etc/default/"${UNBURDEN_BASENAME}" ]; then
+-    . /etc/default/"${UNBURDEN_BASENAME}"
++if [ -e @SYSCONFDIR@/"${UNBURDEN_BASENAME}".conf ]; then
++    . @SYSCONFDIR@/"${UNBURDEN_BASENAME}".conf
+ fi
+ 
+-if [ -e /etc/"${UNBURDEN_BASENAME}" ]; then
+-    . /etc/"${UNBURDEN_BASENAME}"
+-fi
+-
+-if [ -e "${HOME}/.${UNBURDEN_BASENAME}" ]; then
+-    . "${HOME}/.${UNBURDEN_BASENAME}"
++if [ -e "${HOME}/.${UNBURDEN_BASENAME}".conf ]; then
++    . "${HOME}/.${UNBURDEN_BASENAME}".conf
+ fi
+ 
+ if [ -e "${XDG_CONFIG_HOME:-$HOME/.config}/${UNBURDEN_BASENAME}/config" ]; then



Home | Main Index | Thread Index | Old Index