[arch-commits] Commit in backuppc/repos/community-any (20 files)

Sébastien Luttringer seblu at nymeria.archlinux.org
Mon Feb 4 15:13:40 UTC 2013


    Date: Monday, February 4, 2013 @ 16:13:40
  Author: seblu
Revision: 83712

archrelease: copy trunk to community-any

Added:
  backuppc/repos/community-any/01-fix-parenthesis-warnings.patch
    (from rev 83711, backuppc/trunk/01-fix-parenthesis-warnings.patch)
  backuppc/repos/community-any/02-fix-cve-2011-4923.patch
    (from rev 83711, backuppc/trunk/02-fix-cve-2011-4923.patch)
  backuppc/repos/community-any/03-fix-FS#32642.patch
    (from rev 83711, backuppc/trunk/03-fix-FS#32642.patch)
  backuppc/repos/community-any/PKGBUILD
    (from rev 83711, backuppc/trunk/PKGBUILD)
  backuppc/repos/community-any/backuppc.httpd
    (from rev 83711, backuppc/trunk/backuppc.httpd)
  backuppc/repos/community-any/backuppc.install
    (from rev 83711, backuppc/trunk/backuppc.install)
  backuppc/repos/community-any/backuppc.profile.csh
    (from rev 83711, backuppc/trunk/backuppc.profile.csh)
  backuppc/repos/community-any/backuppc.profile.sh
    (from rev 83711, backuppc/trunk/backuppc.profile.sh)
  backuppc/repos/community-any/backuppc.service
    (from rev 83711, backuppc/trunk/backuppc.service)
Deleted:
  backuppc/repos/community-any/01-fix-parenthesis-warnings.patch
  backuppc/repos/community-any/02-fix-cve-2011-4923.patch
  backuppc/repos/community-any/03-fix-FS#32642.patch
  backuppc/repos/community-any/PKGBUILD
  backuppc/repos/community-any/backuppc.conf
  backuppc/repos/community-any/backuppc.httpd
  backuppc/repos/community-any/backuppc.install
  backuppc/repos/community-any/backuppc.profile.csh
  backuppc/repos/community-any/backuppc.profile.sh
  backuppc/repos/community-any/backuppc.rc
  backuppc/repos/community-any/backuppc.service

-----------------------------------+
 01-fix-parenthesis-warnings.patch |   40 +++----
 02-fix-cve-2011-4923.patch        |   28 ++---
 03-fix-FS#32642.patch             |   24 ++--
 PKGBUILD                          |  189 +++++++++++++++++-------------------
 backuppc.conf                     |    6 -
 backuppc.httpd                    |   50 ++++-----
 backuppc.install                  |   68 ++++++------
 backuppc.profile.csh              |    2 
 backuppc.profile.sh               |    6 -
 backuppc.rc                       |   54 ----------
 backuppc.service                  |   20 +--
 11 files changed, 209 insertions(+), 278 deletions(-)

Deleted: 01-fix-parenthesis-warnings.patch
===================================================================
--- 01-fix-parenthesis-warnings.patch	2013-02-04 15:13:28 UTC (rev 83711)
+++ 01-fix-parenthesis-warnings.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,20 +0,0 @@
-# http://svnweb.mageia.org/packages/cauldron/backuppc/current/SOURCES/BackupPC-3.2.1-CVE-2011-170886.diff?view=markup
-
---- a/lib/BackupPC/Storage/Text.pm	2011-04-25 05:31:55.000000000 +0200
-+++ b/lib/BackupPC/Storage/Text.pm	2011-11-28 17:25:44.579141456 +0100
-@@ -299,5 +299,5 @@
-     # Promote BackupFilesOnly and BackupFilesExclude to hashes
-     #
--    foreach my $param qw(BackupFilesOnly BackupFilesExclude) {
-+    foreach my $param ( qw(BackupFilesOnly BackupFilesExclude) ) {
-         next if ( !defined($conf->{$param}) || ref($conf->{$param}) eq "HASH" );
-         $conf->{$param} = [ $conf->{$param} ]
---- a/lib/BackupPC/Lib.pm	2011-04-25 05:31:55.000000000 +0200
-+++ b/lib/BackupPC/Lib.pm	2011-11-28 17:28:01.830700902 +0100
-@@ -1410,5 +1410,5 @@
-     $conf->{$shareName} = [ $conf->{$shareName} ]
-                     if ( ref($conf->{$shareName}) ne "ARRAY" );
--    foreach my $param qw(BackupFilesOnly BackupFilesExclude) {
-+    foreach my $param ( qw(BackupFilesOnly BackupFilesExclude) ) {
-         next if ( !defined($conf->{$param}) );
-         if ( ref($conf->{$param}) eq "HASH" ) {

Copied: backuppc/repos/community-any/01-fix-parenthesis-warnings.patch (from rev 83711, backuppc/trunk/01-fix-parenthesis-warnings.patch)
===================================================================
--- 01-fix-parenthesis-warnings.patch	                        (rev 0)
+++ 01-fix-parenthesis-warnings.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,20 @@
+# http://svnweb.mageia.org/packages/cauldron/backuppc/current/SOURCES/BackupPC-3.2.1-CVE-2011-170886.diff?view=markup
+
+--- a/lib/BackupPC/Storage/Text.pm	2011-04-25 05:31:55.000000000 +0200
++++ b/lib/BackupPC/Storage/Text.pm	2011-11-28 17:25:44.579141456 +0100
+@@ -299,5 +299,5 @@
+     # Promote BackupFilesOnly and BackupFilesExclude to hashes
+     #
+-    foreach my $param qw(BackupFilesOnly BackupFilesExclude) {
++    foreach my $param ( qw(BackupFilesOnly BackupFilesExclude) ) {
+         next if ( !defined($conf->{$param}) || ref($conf->{$param}) eq "HASH" );
+         $conf->{$param} = [ $conf->{$param} ]
+--- a/lib/BackupPC/Lib.pm	2011-04-25 05:31:55.000000000 +0200
++++ b/lib/BackupPC/Lib.pm	2011-11-28 17:28:01.830700902 +0100
+@@ -1410,5 +1410,5 @@
+     $conf->{$shareName} = [ $conf->{$shareName} ]
+                     if ( ref($conf->{$shareName}) ne "ARRAY" );
+-    foreach my $param qw(BackupFilesOnly BackupFilesExclude) {
++    foreach my $param ( qw(BackupFilesOnly BackupFilesExclude) ) {
+         next if ( !defined($conf->{$param}) );
+         if ( ref($conf->{$param}) eq "HASH" ) {

Deleted: 02-fix-cve-2011-4923.patch
===================================================================
--- 02-fix-cve-2011-4923.patch	2013-02-04 15:13:28 UTC (rev 83711)
+++ 02-fix-cve-2011-4923.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,14 +0,0 @@
-# http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-4923
-# http://www.openwall.com/lists/oss-security/2011/10/27/8
-
---- a/lib/BackupPC/CGI/View.pm
-+++ b/lib/BackupPC/CGI/View.pm
-@@ -46,7 +46,7 @@
-     my $compress = 0;
-     my $fh;
-     my $host = $In{host};
--    my $num  = $In{num};
-+    my $num  = ${EscHTML($In{num})};
-     my $type = $In{type};
-     my $linkHosts = 0;
-     my($file, $comment);

Copied: backuppc/repos/community-any/02-fix-cve-2011-4923.patch (from rev 83711, backuppc/trunk/02-fix-cve-2011-4923.patch)
===================================================================
--- 02-fix-cve-2011-4923.patch	                        (rev 0)
+++ 02-fix-cve-2011-4923.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,14 @@
+# http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-4923
+# http://www.openwall.com/lists/oss-security/2011/10/27/8
+
+--- a/lib/BackupPC/CGI/View.pm
++++ b/lib/BackupPC/CGI/View.pm
+@@ -46,7 +46,7 @@
+     my $compress = 0;
+     my $fh;
+     my $host = $In{host};
+-    my $num  = $In{num};
++    my $num  = ${EscHTML($In{num})};
+     my $type = $In{type};
+     my $linkHosts = 0;
+     my($file, $comment);

Deleted: 03-fix-FS#32642.patch
===================================================================
--- 03-fix-FS#32642.patch	2013-02-04 15:13:28 UTC (rev 83711)
+++ 03-fix-FS#32642.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,12 +0,0 @@
---- backuppc-3.2.1.orig/lib/BackupPC/Lib.pm
-+++ backuppc-3.2.1/lib/BackupPC/Lib.pm
-@@ -495,7 +495,8 @@
-     }
-     if ( $IODirentOk ) {
-         @entries = sort({ $a->{inode} <=> $b->{inode} } readdirent($fh));
--        map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
-+        #map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
-+        map { $_->{type} = 0 + $_->{type}; $_->{type} = undef if ($_->{type} eq BPC_DT_UNKNOWN); } @entries;   # make type numeric, unset unknown types
-     } else {
-         @entries = map { { name => $_} } readdir($fh);
-     }

Copied: backuppc/repos/community-any/03-fix-FS#32642.patch (from rev 83711, backuppc/trunk/03-fix-FS#32642.patch)
===================================================================
--- 03-fix-FS#32642.patch	                        (rev 0)
+++ 03-fix-FS#32642.patch	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,12 @@
+--- backuppc-3.2.1.orig/lib/BackupPC/Lib.pm
++++ backuppc-3.2.1/lib/BackupPC/Lib.pm
+@@ -495,7 +495,8 @@
+     }
+     if ( $IODirentOk ) {
+         @entries = sort({ $a->{inode} <=> $b->{inode} } readdirent($fh));
+-        map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
++        #map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
++        map { $_->{type} = 0 + $_->{type}; $_->{type} = undef if ($_->{type} eq BPC_DT_UNKNOWN); } @entries;   # make type numeric, unset unknown types
+     } else {
+         @entries = map { { name => $_} } readdir($fh);
+     }

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-04 15:13:28 UTC (rev 83711)
+++ PKGBUILD	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,99 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
-
-pkgname=backuppc
-pkgver=3.2.1
-pkgrel=9
-pkgdesc='Enterprise-grade system for backing up Linux, Windows and MacOS PCs'
-url='http://backuppc.sourceforge.net/'
-license=('GPL2')
-arch=('any')
-depends=(
-  'openssh'
-  'par2cmdline'
-  'perl-archive-zip'
-  'perl-file-listing'
-  'perl-time-modules'
-  'perl-xml-rss'
-  'smbclient'
-  'start-stop-daemon'
-)
-optdepends=(
-  'rsync: used by rsync transfert method'
-  'perl-file-rsyncp: used by rsync transfert method'
-  'perl-io-dirent'
-  'apache: used by web admin interface'
-  'mod_perl: used by web admin interface'
-)
-source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/BackupPC-$pkgver.tar.gz"
-        "$pkgname.conf"
-        "$pkgname.rc"
-        "$pkgname.service"
-        "$pkgname.profile.sh"
-        "$pkgname.profile.csh"
-        "$pkgname.httpd"
-        '01-fix-parenthesis-warnings.patch'
-        '02-fix-cve-2011-4923.patch'
-        '03-fix-FS#32642.patch')
-install=$pkgname.install
-backup=("etc/conf.d/$pkgname"
-        "etc/$pkgname/config.pl"
-        "etc/$pkgname/hosts"
-        "etc/httpd/conf/extra/$pkgname.conf"
-        "etc/$pkgname/$pkgname.users")
-md5sums=('2334fafb8e03284225a9b8a7fb230012'
-         '0fb4c20f7f4872b6d3994cd1e56080c0'
-         'e35545a597bd3e7ecc204b05a65863f9'
-         'fa5da622f87d8801065ba312f4d547b6'
-         '67a939aa63740c52d12bbdca72d37891'
-         'ef09e4dae5b4197998f5c3a74e0ec86d'
-         'c61dea98b2a2a0c944a0a6be44e4caf3'
-         'dff7ae1530929ae49f8b34a240a04131'
-         'aca8392c5dea60c3cceeb02ebcc63497'
-         '3917c474a275e262fde246daf59ffe31')
-
-package() {
-  cd BackupPC-$pkgver
-  for _p in "$srcdir"/*.patch; do
-    msg2 "Applying patch $_p"
-    patch -p1 -N -i "$_p"
-  done
-  perl configure.pl \
-    --batch \
-    --no-set-perms \
-    --uid-ignore \
-    --hostname __HOSTNAME__ \
-    --compress-level 5 \
-    --backuppc-user=backuppc \
-    --dest-dir "$pkgdir" \
-    --fhs \
-    --install-dir /usr/share/$pkgname \
-    --config-dir /etc/$pkgname \
-    --cgi-dir /usr/share/$pkgname/cgi-bin \
-    --html-dir /usr/share/$pkgname/html \
-    --html-dir-url /backuppc \
-    --data-dir /var/lib/$pkgname \
-    --log-dir /var/log/$pkgname
-  # install rc script
-  cd "$srcdir"
-  install -D -m 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
-  install -D -m 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
-  # install systemd unit
-  install -D -m 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
-  # install shell profiles
-  install -D -m 755 $pkgname.profile.sh "$pkgdir/etc/profile.d/$pkgname.sh"
-  install -D -m 755 $pkgname.profile.csh "$pkgdir/etc/profile.d/$pkgname.csh"
-  # install apache http
-  install -D -m 644 $pkgname.httpd "$pkgdir/etc/httpd/conf/extra/$pkgname.conf"
-  install -D -m 640 /dev/null "$pkgdir/etc/$pkgname/$pkgname.users"
-  # set correct permissions
-  cd "$pkgdir"
-  chown 126:126 -R etc/$pkgname
-  chown 126:126 -R var/{log,lib}/$pkgname
-  chmod 755 etc
-  chmod 755 -R var usr/share/$pkgname/{cgi-,}bin
-  chmod 750 var/log/$pkgname etc/$pkgname var/lib/$pkgname
-  chmod 640 etc/$pkgname/{config.pl,hosts}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: backuppc/repos/community-any/PKGBUILD (from rev 83711, backuppc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,90 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+
+pkgname=backuppc
+pkgver=3.2.1
+pkgrel=10
+pkgdesc='Enterprise-grade system for backing up Linux, Windows and MacOS PCs'
+url='http://backuppc.sourceforge.net/'
+license=('GPL2')
+arch=('any')
+depends=(
+  'openssh'
+  'par2cmdline'
+  'perl-archive-zip'
+  'perl-file-listing'
+  'perl-time-modules'
+  'perl-xml-rss'
+  'smbclient'
+)
+optdepends=(
+  'rsync: used by rsync transfert method'
+  'perl-file-rsyncp: used by rsync transfert method'
+  'perl-io-dirent'
+  'apache: used by web admin interface'
+  'mod_perl: used by web admin interface'
+)
+source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/BackupPC-$pkgver.tar.gz"
+        "$pkgname.service"
+        "$pkgname.profile.sh"
+        "$pkgname.profile.csh"
+        "$pkgname.httpd"
+        '01-fix-parenthesis-warnings.patch'
+        '02-fix-cve-2011-4923.patch'
+        '03-fix-FS#32642.patch')
+install=$pkgname.install
+backup=("etc/$pkgname/config.pl"
+        "etc/$pkgname/hosts"
+        "etc/httpd/conf/extra/$pkgname.conf"
+        "etc/$pkgname/$pkgname.users")
+md5sums=('2334fafb8e03284225a9b8a7fb230012'
+         'fa5da622f87d8801065ba312f4d547b6'
+         '67a939aa63740c52d12bbdca72d37891'
+         'ef09e4dae5b4197998f5c3a74e0ec86d'
+         'c61dea98b2a2a0c944a0a6be44e4caf3'
+         'dff7ae1530929ae49f8b34a240a04131'
+         'aca8392c5dea60c3cceeb02ebcc63497'
+         '3917c474a275e262fde246daf59ffe31')
+
+package() {
+  cd BackupPC-$pkgver
+  for _p in "$srcdir"/*.patch; do
+    msg2 "Applying patch $_p"
+    patch -p1 -N -i "$_p"
+  done
+  perl configure.pl \
+    --batch \
+    --no-set-perms \
+    --uid-ignore \
+    --hostname __HOSTNAME__ \
+    --compress-level 5 \
+    --backuppc-user=backuppc \
+    --dest-dir "$pkgdir" \
+    --fhs \
+    --install-dir /usr/share/$pkgname \
+    --config-dir /etc/$pkgname \
+    --cgi-dir /usr/share/$pkgname/cgi-bin \
+    --html-dir /usr/share/$pkgname/html \
+    --html-dir-url /backuppc \
+    --data-dir /var/lib/$pkgname \
+    --log-dir /var/log/$pkgname
+  cd "$srcdir"
+  # systemd
+  install -D -m 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  # install shell profiles
+  install -D -m 755 $pkgname.profile.sh "$pkgdir/etc/profile.d/$pkgname.sh"
+  install -D -m 755 $pkgname.profile.csh "$pkgdir/etc/profile.d/$pkgname.csh"
+  # install apache http
+  install -D -m 644 $pkgname.httpd "$pkgdir/etc/httpd/conf/extra/$pkgname.conf"
+  install -D -m 640 /dev/null "$pkgdir/etc/$pkgname/$pkgname.users"
+  # set correct permissions
+  cd "$pkgdir"
+  chown 126:126 -R etc/$pkgname
+  chown 126:126 -R var/{log,lib}/$pkgname
+  chmod 755 etc
+  chmod 755 -R var usr/share/$pkgname/{cgi-,}bin
+  chmod 750 var/log/$pkgname etc/$pkgname var/lib/$pkgname
+  chmod 640 etc/$pkgname/{config.pl,hosts}
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: backuppc.conf
===================================================================
--- backuppc.conf	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.conf	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,6 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh noet:
-
-#PIDFILE=/var/log/backuppc/BackupPC.pid
-#DAEMON_USER=backuppc
-#DAEMON_GROUP=nobody
-#DAEMON_OPTS='-d'

Deleted: backuppc.httpd
===================================================================
--- backuppc.httpd	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.httpd	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,25 +0,0 @@
-<Directory /usr/share/backuppc/cgi-bin>
-  # This section tells apache which machines can access the interface.
-  # You can change the allow line to allow access from your local
-  # network, or comment out this region to allow access from all
-  # machines.
-  order deny,allow
-  deny from all
-  allow from 127.0.0.1
-
-  # You can change the authorization method to LDAP or another method
-  # besides htaccess here if you are so inclined.
-  AuthType Basic
-  AuthUserFile /etc/backuppc/backuppc.users
-  AuthName "BackupPC Community Edition Administrative Interface"
-  require valid-user
-</Directory>
-
-<Directory /usr/share/backuppc/html>
-  order deny,allow
-  deny from all
-  allow from 127.0.0.1
-</Directory>
-
-Alias           /backuppc         /usr/share/backuppc/html
-ScriptAlias     /BackupPC_Admin         /usr/share/backuppc/cgi-bin/BackupPC_Admin

Copied: backuppc/repos/community-any/backuppc.httpd (from rev 83711, backuppc/trunk/backuppc.httpd)
===================================================================
--- backuppc.httpd	                        (rev 0)
+++ backuppc.httpd	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,25 @@
+<Directory /usr/share/backuppc/cgi-bin>
+  # This section tells apache which machines can access the interface.
+  # You can change the allow line to allow access from your local
+  # network, or comment out this region to allow access from all
+  # machines.
+  order deny,allow
+  deny from all
+  allow from 127.0.0.1
+
+  # You can change the authorization method to LDAP or another method
+  # besides htaccess here if you are so inclined.
+  AuthType Basic
+  AuthUserFile /etc/backuppc/backuppc.users
+  AuthName "BackupPC Community Edition Administrative Interface"
+  require valid-user
+</Directory>
+
+<Directory /usr/share/backuppc/html>
+  order deny,allow
+  deny from all
+  allow from 127.0.0.1
+</Directory>
+
+Alias           /backuppc         /usr/share/backuppc/html
+ScriptAlias     /BackupPC_Admin         /usr/share/backuppc/cgi-bin/BackupPC_Admin

Deleted: backuppc.install
===================================================================
--- backuppc.install	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.install	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,34 +0,0 @@
-#/bin/sh
-
-# arg 1:  the new package version
-post_install() {
-  getent group backuppc >/dev/null || groupadd -g 126 backuppc
-  getent passwd backuppc >/dev/null || useradd -d /var/lib/backuppc -u 126 -g 126 backuppc
-  true
-}
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-post_upgrade() {
-  # change uid of old version
-  if [ "`vercmp $2 3.2.1-8`" -lt 0 ]; then
-    if pgrep -u backuppc >/dev/null; then
-      echo '==> backuppc user is running.'
-      echo '==> You must manually change uid and gid of backuppc!'
-      echo '==> e.g: usermod -u 126 -g 126 backuppc'
-    else
-      usermod -u 126 -g 126 backuppc
-      echo '==> backuppc uid/gid have changed. Check your filesystem permissions.'
-    fi
-  fi
-  true
-}
-
-# arg 1:  the old package version
-post_remove() {
-  userdel -f backuppc >/dev/null 2>&1
-  groupdel backuppc >/dev/null 2>&1
-  true
-}
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: backuppc/repos/community-any/backuppc.install (from rev 83711, backuppc/trunk/backuppc.install)
===================================================================
--- backuppc.install	                        (rev 0)
+++ backuppc.install	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,34 @@
+#/bin/sh
+
+# arg 1:  the new package version
+post_install() {
+  getent group backuppc >/dev/null || groupadd -g 126 backuppc
+  getent passwd backuppc >/dev/null || useradd -d /var/lib/backuppc -u 126 -g 126 backuppc
+  true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  # change uid of old version
+  if [ "`vercmp $2 3.2.1-8`" -lt 0 ]; then
+    if pgrep -u backuppc >/dev/null; then
+      echo '==> backuppc user is running.'
+      echo '==> You must manually change uid and gid of backuppc!'
+      echo '==> e.g: usermod -u 126 -g 126 backuppc'
+    else
+      usermod -u 126 -g 126 backuppc
+      echo '==> backuppc uid/gid have changed. Check your filesystem permissions.'
+    fi
+  fi
+  true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  userdel -f backuppc >/dev/null 2>&1
+  groupdel backuppc >/dev/null 2>&1
+  true
+}
+
+# vim:set ts=2 sw=2 ft=sh et:

Deleted: backuppc.profile.csh
===================================================================
--- backuppc.profile.csh	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.profile.csh	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1 +0,0 @@
-[ -d /usr/share/backuppc/bin ] && setenv PATH ${PATH}:/usr/share/backuppc/bin

Copied: backuppc/repos/community-any/backuppc.profile.csh (from rev 83711, backuppc/trunk/backuppc.profile.csh)
===================================================================
--- backuppc.profile.csh	                        (rev 0)
+++ backuppc.profile.csh	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1 @@
+[ -d /usr/share/backuppc/bin ] && setenv PATH ${PATH}:/usr/share/backuppc/bin

Deleted: backuppc.profile.sh
===================================================================
--- backuppc.profile.sh	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.profile.sh	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,3 +0,0 @@
-[ -d /usr/share/backuppc/bin ] && PATH=$PATH:/usr/share/backuppc/bin
-
-export PATH

Copied: backuppc/repos/community-any/backuppc.profile.sh (from rev 83711, backuppc/trunk/backuppc.profile.sh)
===================================================================
--- backuppc.profile.sh	                        (rev 0)
+++ backuppc.profile.sh	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,3 @@
+[ -d /usr/share/backuppc/bin ] && PATH=$PATH:/usr/share/backuppc/bin
+
+export PATH

Deleted: backuppc.rc
===================================================================
--- backuppc.rc	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.rc	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/${0##*/}
-
-DAEMON=/usr/share/backuppc/bin/BackupPC
-
-PIDFILE=${PIDFILE:-/var/log/backuppc/BackupPC.pid}
-DAEMON_OPTS=${DAEMON_OPTS:--d}
-DAEMON_USER=${DAEMON_USER:-backuppc}
-DAEMON_GROUP=${DAEMON_GROUP:-nobody}
-
-case "$1" in
-  start)
-    stat_busy "Starting ${0##*/} daemon"
-    if start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
-      -c $DAEMON_USER -g $DAEMON_GROUP --startas $DAEMON -- \
-      $DAEMON_OPTS; then
-        stat_done
-        add_daemon ${0##*/}
-        exit 0
-    else
-        stat_fail
-        exit 1
-    fi
-  ;;
-  stop)
-    stat_busy "Stopping ${0##*/} daemon"
-    if start-stop-daemon --stop --quiet --pidfile "$PIDFILE"; then
-      rm_daemon ${0##*/}
-      rm "$PIDFILE"
-      stat_done
-      exit 0
-    else
-      stat_fail
-      exit 1
-    fi
-  ;;
-  reload)
-    stat_busy "Reloading ${0##*/} dameon"
-    start-stop-daemon --stop --signal HUP --quiet --pidfile "$PIDFILE" \
-      && { stat_done; exit 0; } || { stat_fail; exit 1; }
-  ;;
-  restart)
-    $0 stop && sleep 2
-    $0 start
-  ;;
-  *)
-    echo "usage: ${0##*/} {start|stop|restart}" >&2
-  ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:

Deleted: backuppc.service
===================================================================
--- backuppc.service	2013-02-04 15:13:28 UTC (rev 83711)
+++ backuppc.service	2013-02-04 15:13:40 UTC (rev 83712)
@@ -1,10 +0,0 @@
-[Unit]
-Description=BackupPC
-
-[Service]
-User=backuppc
-ExecStart=/usr/share/backuppc/bin/BackupPC
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target

Copied: backuppc/repos/community-any/backuppc.service (from rev 83711, backuppc/trunk/backuppc.service)
===================================================================
--- backuppc.service	                        (rev 0)
+++ backuppc.service	2013-02-04 15:13:40 UTC (rev 83712)
@@ -0,0 +1,10 @@
+[Unit]
+Description=BackupPC
+
+[Service]
+User=backuppc
+ExecStart=/usr/share/backuppc/bin/BackupPC
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list