[med-svn] r4753 - in trunk/packages/gnumed-server/trunk/debian: . conf
Andreas Tille
tille at alioth.debian.org
Tue Apr 27 06:30:29 UTC 2010
Author: tille
Date: 2010-04-27 06:30:25 +0000 (Tue, 27 Apr 2010)
New Revision: 4753
Added:
trunk/packages/gnumed-server/trunk/debian/gm-remove_person.1
Removed:
trunk/packages/gnumed-server/trunk/debian/gm-remove_person.8
Modified:
trunk/packages/gnumed-server/trunk/debian/changelog
trunk/packages/gnumed-server/trunk/debian/conf/gnumed-backup.conf
trunk/packages/gnumed-server/trunk/debian/dirs
trunk/packages/gnumed-server/trunk/debian/manpages
trunk/packages/gnumed-server/trunk/debian/postinst
trunk/packages/gnumed-server/trunk/debian/rules
Log:
New upstream release
Modified: trunk/packages/gnumed-server/trunk/debian/changelog
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/changelog 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/changelog 2010-04-27 06:30:25 UTC (rev 4753)
@@ -8,6 +8,9 @@
that provide mailx
* debian/patches/20_create_backup_dir_if_needed.patch: Make
backup script more robust
+ * debian/postinst: Parse /etc/gnumed/gnumed-backup.conf and
+ create directory $BACKUP_DIR writable to members of group gnumed
+ if needed
-- Andreas Tille <tille at debian.org> Fri, 23 Apr 2010 17:44:45 +0200
Modified: trunk/packages/gnumed-server/trunk/debian/conf/gnumed-backup.conf
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/conf/gnumed-backup.conf 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/conf/gnumed-backup.conf 2010-04-27 06:30:25 UTC (rev 4753)
@@ -27,7 +27,7 @@
INSTANCE_OWNER="GNUmed_Team"
# where to eventually store the backup
-BACKUP_DIR="${HOME}/.gnumed/backup/"
+BACKUP_DIR="/var/lib/gnumed/server/backups"
# which database to backup
GM_DATABASE="gnumed_v13"
Modified: trunk/packages/gnumed-server/trunk/debian/dirs
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/dirs 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/dirs 2010-04-27 06:30:25 UTC (rev 4753)
@@ -1,2 +1,4 @@
var/lib/gnumed/server/bootstrap
+usr/bin
usr/sbin
+
Added: trunk/packages/gnumed-server/trunk/debian/gm-remove_person.1
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/gm-remove_person.1 (rev 0)
+++ trunk/packages/gnumed-server/trunk/debian/gm-remove_person.1 2010-04-27 06:30:25 UTC (rev 4753)
@@ -0,0 +1,32 @@
+.TH GM-REMOVE_PERSON 8 "2010 April 23th" "GNUmed server remove person from database"
+
+.SH NAME
+.B gm-remove_person
+- GNUmed server remove person from database
+
+.SH SYNOPSIS
+.B gm-remove_person
+.I <target database> <person PK> [ENT_TX]
+
+.I <target database>:
+a GNUmed database (such as "gnumed_VERSION")
+
+.I <person PK>:
+primary key of a person in that database
+
+.I [ENT_TX]
+commit option
+
+.SH DESCRIPTION
+The script
+.B gm-remove_person
+can be used to remove a person from a GNUmed database.
+If
+.I ENT_TX
+id not
+.I "commit"
+the script does no actual change on the database.
+
+.SH AUTHOR
+This manual page was written by Andreas Tille <tille at debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
Deleted: trunk/packages/gnumed-server/trunk/debian/gm-remove_person.8
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/gm-remove_person.8 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/gm-remove_person.8 2010-04-27 06:30:25 UTC (rev 4753)
@@ -1,24 +0,0 @@
-.TH GM-REMOVE_PERSON 8 "2010 April 23th" "GNUmed server remove person from database"
-
-.SH NAME
-.B gm-remove_person
-- GNUmed server remove person from database
-
-.SH SYNOPSIS
-.B gm-remove_person
-.I <target database> <person PK> [ENT_TX]
-
-.I <target database>:
-a GNUmed database (such as "gnumed_VERSION")
-
-.I <person PK>:
-primary key of a person in that database
-
-.SH DESCRIPTION
-The script
-.B gm-remove_person
-can be used to remove a person from a GNUmed database.
-
-.SH AUTHOR
-This manual page was written by Andreas Tille <tille at debian.org>,
-for the Debian GNU/Linux system (but may be used by others).
Modified: trunk/packages/gnumed-server/trunk/debian/manpages
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/manpages 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/manpages 2010-04-27 06:30:25 UTC (rev 4753)
@@ -1,2 +1,2 @@
-debian/*.8
-server/doc/*.8
+debian/*.[18]
+server/doc/*.[18]
Modified: trunk/packages/gnumed-server/trunk/debian/postinst
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/postinst 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/postinst 2010-04-27 06:30:25 UTC (rev 4753)
@@ -21,6 +21,12 @@
case "$1" in
configure)
mkdir -p /var/log/gnumed/server/
+ . /etc/gnumed/gnumed-backup.conf
+ if [ ! -z $BACKUP_DIR ] ; then
+ mkdir -p "$BACKUP_DIR"
+ chgrp gnumed "$BACKUP_DIR"
+ chmod 770 "$BACKUP_DIR"
+ fi
# Remove dangling symlink from previous package versions
if [ -L /var/lib/gnumed/Gnumed ] ; then
rm -f /var/lib/gnumed/Gnumed
Modified: trunk/packages/gnumed-server/trunk/debian/rules
===================================================================
--- trunk/packages/gnumed-server/trunk/debian/rules 2010-04-25 17:00:55 UTC (rev 4752)
+++ trunk/packages/gnumed-server/trunk/debian/rules 2010-04-27 06:30:25 UTC (rev 4753)
@@ -14,5 +14,11 @@
sed -i 's/^\(password[[:space:]]*=[[:space:]]*\)/\1 gm-dbo/' "$$conffile" ; \
done
for script in `ls server/gm-*.sh` ; do \
- cp -a "$$script" debian/$(pkg)/usr/sbin/`basename "$$script" .sh` ; \
+ if [ "$$script" = "server/gm-remove_person.sh" -o \
+ "$$script" = "server/gm-move_backups_offsite.sh" ] ; then \
+ cp -a "$$script" debian/$(pkg)/usr/bin/`basename "$$script" .sh` ; \
+ else \
+ cp -a "$$script" debian/$(pkg)/usr/sbin/`basename "$$script" .sh` ; \
+ fi \
done
+
More information about the debian-med-commit
mailing list