dlan        14/05/30 09:59:55

  Modified:             snapper-9999.ebuild ChangeLog
                        snapper-0.2.2-r1.ebuild
  Log:
  fix bug #511410, thanks Dainius Masiliƫnas,holgersson; combine minor 
improvement suggested by @jlec
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0xAABEFD55)

Revision  Changes    Path
1.3                  app-backup/snapper/snapper-9999.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-9999.ebuild?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-9999.ebuild?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-9999.ebuild?r1=1.2&r2=1.3

Index: snapper-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/snapper/snapper-9999.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- snapper-9999.ebuild 22 May 2014 09:56:05 -0000      1.2
+++ snapper-9999.ebuild 30 May 2014 09:59:55 -0000      1.3
@@ -1,13 +1,13 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/snapper/snapper-9999.ebuild,v 
1.2 2014/05/22 09:56:05 dlan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/snapper/snapper-9999.ebuild,v 
1.3 2014/05/30 09:59:55 dlan Exp $
 
 EAPI=5
 
 EGIT_REPO_URI="git://github.com/openSUSE/snapper.git"
 AUTOTOOLS_AUTORECONF=1
 AUTOTOOLS_IN_SOURCE_BUILD=1
-inherit eutils autotools-utils git-2
+inherit eutils autotools-utils git-r3
 
 DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
 HOMEPAGE="http://snapper.io/";
@@ -38,36 +38,32 @@
 
 DOCS=( AUTHORS README package/snapper.changes )
 
-src_prepare() {
-       epatch "${FILESDIR}"/cron-confd.patch
-       autotools-utils_src_prepare
-}
+PATCHES=( "${FILESDIR}"/cron-confd.patch )
 
 src_configure() {
-       econf  \
-       --with-conf="/etc/conf.d" \
-       --docdir="/usr/share/doc/${PF}" \
-       $(use_enable btrfs) \
-       $(use_enable ext4) \
-       $(use_enable lvm) \
-       $(use_enable pam) \
-       $(use_enable xattr xattrs) \
-       --disable-zypp
+       local myeconfargs=(
+               --with-conf="/etc/conf.d"
+               --docdir="/usr/share/doc/${PF}"
+               --disable-zypp
+               $(use_enable btrfs)
+               $(use_enable ext4)
+               $(use_enable lvm)
+               $(use_enable pam)
+               $(use_enable xattr xattrs)
+       )
+       autotools-utils_src_configure
 }
 
 src_install() {
-       default
+       autotools-utils_src_install
        # Existing configuration file required to function
        newconfd data/sysconfig.snapper snapper
-       prune_libtool_files
 }
 
 pkg_postinst() {
-       elog "In order to use Snapper, you need to set up at least one config"
-       elog "manually, or else the tool will get confused. Typically you 
should"
-       elog "create a '/.snapshots' directory, then copy the file"
-       elog "'/etc/snapper/config-templates/default' into 
'/etc/snapper/configs/',"
-       elog "rename the file to 'root', and add its name into 
'/etc/conf.d/snapper'."
-       elog "That will instruct Snapper to snapshot the root of the filesystem 
by"
-       elog "default. For more information, see the snapper(8) manual page."
+       elog "In order to use Snapper, you need to set up"
+       elog "at least one config first. To do this, run:"
+       elog "snapper create-config <subvolume>"
+       elog "For more information, see man (8) snapper or"
+       elog "http://snapper.io/documentation.html";
 }



1.3                  app-backup/snapper/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/ChangeLog?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/ChangeLog?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/ChangeLog?r1=1.2&r2=1.3

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/snapper/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog   22 May 2014 09:56:05 -0000      1.2
+++ ChangeLog   30 May 2014 09:59:55 -0000      1.3
@@ -1,6 +1,11 @@
 # ChangeLog for app-backup/snapper
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/snapper/ChangeLog,v 1.2 
2014/05/22 09:56:05 dlan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/snapper/ChangeLog,v 1.3 
2014/05/30 09:59:55 dlan Exp $
+
+  30 May 2014; Yixun Lan <[email protected]> snapper-0.2.2-r1.ebuild,
+  snapper-9999.ebuild:
+  fix bug #511410, thanks Dainius Masiliƫnas,holgersson; combine minor
+  improvement suggested by @jlec
 
 *snapper-0.2.2-r1 (22 May 2014)
 



1.2                  app-backup/snapper/snapper-0.2.2-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild?r1=1.1&r2=1.2

Index: snapper-0.2.2-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- snapper-0.2.2-r1.ebuild     22 May 2014 09:56:05 -0000      1.1
+++ snapper-0.2.2-r1.ebuild     30 May 2014 09:59:55 -0000      1.2
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: 
/var/cvsroot/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild,v 1.1 
2014/05/22 09:56:05 dlan Exp $
+# $Header: 
/var/cvsroot/gentoo-x86/app-backup/snapper/snapper-0.2.2-r1.ebuild,v 1.2 
2014/05/30 09:59:55 dlan Exp $
 
 EAPI=5
 
@@ -40,15 +40,18 @@
 }
 
 src_configure() {
-       econf  \
-       --with-conf="/etc/conf.d" \
-       --docdir="/usr/share/doc/${PF}" \
-       $(use_enable btrfs) \
-       $(use_enable ext4) \
-       $(use_enable lvm) \
-       $(use_enable pam) \
-       $(use_enable xattr xattrs) \
-       --disable-zypp
+       local myeconfargs=(
+               --with-conf="/etc/conf.d"
+               --docdir="/usr/share/doc/${PF}"
+               --disable-zypp
+               $(use_enable btrfs)
+               $(use_enable ext4)
+               $(use_enable lvm)
+               $(use_enable pam)
+               $(use_enable xattr xattrs)
+       )
+
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
@@ -59,11 +62,9 @@
 }
 
 pkg_postinst() {
-       elog "In order to use Snapper, you need to set up at least one config"
-       elog "manually, or else the tool will get confused. Typically you 
should"
-       elog "create a '/.snapshots' directory, then copy the file"
-       elog "'/etc/snapper/config-templates/default' into 
'/etc/snapper/configs/',"
-       elog "rename the file to 'root', and add its name into 
'/etc/conf.d/snapper'."
-       elog "That will instruct Snapper to snapshot the root of the filesystem 
by"
-       elog "default. For more information, see the snapper(8) manual page."
+       elog "In order to use Snapper, you need to set up"
+       elog "at least one config first. To do this, run:"
+       elog "snapper create-config <subvolume>"
+       elog "For more information, see man (8) snapper or"
+       elog "http://snapper.io/documentation.html";
 }




Reply via email to