pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/backuppc
Module Name: pkgsrc
Committed By: tnn
Date: Sat Nov 7 12:51:04 UTC 2020
Modified Files:
pkgsrc/sysutils/backuppc: Makefile
pkgsrc/sysutils/backuppc/files: backuppc.sh
Log Message:
backuppc: fix nonexistent /var/run/BackupPC. Bump PKGREVISION.
Can't use OWN_DIRS for stuff under /var/run, it gets removed after reboot.
Create directory from the rc script instead.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/sysutils/backuppc/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/backuppc/files/backuppc.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/backuppc/Makefile
diff -u pkgsrc/sysutils/backuppc/Makefile:1.14 pkgsrc/sysutils/backuppc/Makefile:1.15
--- pkgsrc/sysutils/backuppc/Makefile:1.14 Tue Oct 20 22:16:16 2020
+++ pkgsrc/sysutils/backuppc/Makefile Sat Nov 7 12:51:04 2020
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2020/10/20 22:16:16 tnn Exp $
+# $NetBSD: Makefile,v 1.15 2020/11/07 12:51:04 tnn Exp $
DISTNAME= BackupPC-4.4.0
+PKGREVISION= 1
PKGNAME= ${DISTNAME:tl}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=backuppc/}
@@ -108,7 +109,6 @@ OWN_DIRS_PERMS+= ${VARBASE}/BackupPC ${B
OWN_DIRS_PERMS+= ${VARBASE}/BackupPC/${d} ${BACKUPPC_USER} ${BACKUPPC_GROUP} 0750
.endfor
OWN_DIRS_PERMS+= ${VARBASE}/log/BackupPC ${BACKUPPC_USER} ${BACKUPPC_GROUP} 0750
-OWN_DIRS_PERMS+= ${VARBASE}/run/BackupPC ${BACKUPPC_USER} ${BACKUPPC_GROUP} 0750
EGDIR= ${PREFIX}/share/examples/BackupPC
CONF_FILES_PERMS+= ${EGDIR}/config.pl ${PKG_SYSCONFDIR}/config.pl ${BACKUPPC_USER} ${BACKUPPC_GROUP} 0640
Index: pkgsrc/sysutils/backuppc/files/backuppc.sh
diff -u pkgsrc/sysutils/backuppc/files/backuppc.sh:1.1 pkgsrc/sysutils/backuppc/files/backuppc.sh:1.2
--- pkgsrc/sysutils/backuppc/files/backuppc.sh:1.1 Fri Feb 13 17:57:36 2015
+++ pkgsrc/sysutils/backuppc/files/backuppc.sh Sat Nov 7 12:51:04 2020
@@ -11,7 +11,7 @@ fi
name="backuppc"
rcvar=$name
-status_cmd="backuppc_status"
+start_precmd="backuppc_precmd"
reload_cmd="backuppc_reload"
backuppc_user="@BACKUPPC_USER@"
backuppc_group="@BACKUPPC_GROUP@"
@@ -22,6 +22,12 @@ command_interpreter="@PREFIX@/bin/perl"
load_rc_config $name
+backuppc_precmd() {
+ mkdir -p "@VARBASE@/run/BackupPC"
+ chown "${backuppc_user}:${backuppc_group}" "@VARBASE@/run/BackupPC"
+ chmod 750 "@VARBASE@/run/BackupPC"
+}
+
backuppc_reload()
{
pkill -1 -f "@PREFIX@/share/BackupPC/bin/BackupPC -d"
Home |
Main Index |
Thread Index |
Old Index