[arch-commits] Commit in snapper/repos (4 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Sun Sep 10 10:20:04 UTC 2017


    Date: Sunday, September 10, 2017 @ 10:20:03
  Author: mtorromeo
Revision: 256743

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  snapper/repos/community-staging-i686/
  snapper/repos/community-staging-i686/PKGBUILD
    (from rev 256742, snapper/trunk/PKGBUILD)
  snapper/repos/community-staging-x86_64/
  snapper/repos/community-staging-x86_64/PKGBUILD
    (from rev 256742, snapper/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   66 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   66 ++++++++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)

Copied: snapper/repos/community-staging-i686/PKGBUILD (from rev 256742, snapper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-09-10 10:20:03 UTC (rev 256743)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Tom Kuther <gimpel at sonnenkinder.org>
+
+pkgname=snapper
+pkgver=0.5.0
+pkgrel=3
+pkgdesc="A tool for managing BTRFS and LVM snapshots. It can create, diff and restore snapshots and provides timelined auto-snapping."
+arch=('i686' 'x86_64')
+url="http://snapper.io"
+license=('GPL2')
+depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl')
+makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git' 'systemd')
+optdepends=('pam: pam_snapper')
+backup=('etc/conf.d/snapper')
+source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2"
+        "iostream.patch::https://patch-diff.githubusercontent.com/raw/openSUSE/snapper/pull/355.patch")
+sha256sums=('8876b6fa946dc46df5dcbaf747bb11ac4c5a3418dd59c5ba09c47910cbad1835'
+            '20ed5678ff102b8d9ef3c11e38d0f83cc2214b3fca088613bba3154ee4c13bcd')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -p1 -i "$srcdir/iostream.patch"
+
+  # cron names
+  sed -e 's at suse.de-snapper@snapper at g' -i scripts/Makefile.am
+
+  # fix sysconf dir
+  sed -e 's@/etc/sysconfig@/etc/conf.d at g' -i scripts/*snapper*
+
+  # fix pam plugin install location
+  sed -i -e 's at shell echo /@shell echo /usr/@g' pam/Makefile.am
+
+  # all in /usr/bin
+  sed -i -e 's@/usr/sbin@/usr/bin at g' data/org.opensuse.Snapper.service
+
+    # NTP drift file location
+  sed -i -e 's@/var/lib/ntp/drift/ntp.drift@/var/lib/ntp/ntp.drift@' data/base.txt
+
+  # man pages sysconfig location
+  sed -i -e 's@/etc/sysconfig@/etc/conf.d at g' doc/*
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  aclocal
+  libtoolize --force --automake --copy
+  autoheader
+  automake --add-missing --copy
+  autoconf
+  ./configure --prefix=/usr \
+              --sbindir=/usr/bin \
+              --with-conf=/etc/conf.d \
+              --disable-zypp \
+              --disable-silent-rules
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+  install -Dm644 data/sysconfig.snapper \
+    "$pkgdir"/etc/conf.d/snapper
+}

Copied: snapper/repos/community-staging-x86_64/PKGBUILD (from rev 256742, snapper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-09-10 10:20:03 UTC (rev 256743)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Tom Kuther <gimpel at sonnenkinder.org>
+
+pkgname=snapper
+pkgver=0.5.0
+pkgrel=3
+pkgdesc="A tool for managing BTRFS and LVM snapshots. It can create, diff and restore snapshots and provides timelined auto-snapping."
+arch=('i686' 'x86_64')
+url="http://snapper.io"
+license=('GPL2')
+depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl')
+makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git' 'systemd')
+optdepends=('pam: pam_snapper')
+backup=('etc/conf.d/snapper')
+source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2"
+        "iostream.patch::https://patch-diff.githubusercontent.com/raw/openSUSE/snapper/pull/355.patch")
+sha256sums=('8876b6fa946dc46df5dcbaf747bb11ac4c5a3418dd59c5ba09c47910cbad1835'
+            '20ed5678ff102b8d9ef3c11e38d0f83cc2214b3fca088613bba3154ee4c13bcd')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -p1 -i "$srcdir/iostream.patch"
+
+  # cron names
+  sed -e 's at suse.de-snapper@snapper at g' -i scripts/Makefile.am
+
+  # fix sysconf dir
+  sed -e 's@/etc/sysconfig@/etc/conf.d at g' -i scripts/*snapper*
+
+  # fix pam plugin install location
+  sed -i -e 's at shell echo /@shell echo /usr/@g' pam/Makefile.am
+
+  # all in /usr/bin
+  sed -i -e 's@/usr/sbin@/usr/bin at g' data/org.opensuse.Snapper.service
+
+    # NTP drift file location
+  sed -i -e 's@/var/lib/ntp/drift/ntp.drift@/var/lib/ntp/ntp.drift@' data/base.txt
+
+  # man pages sysconfig location
+  sed -i -e 's@/etc/sysconfig@/etc/conf.d at g' doc/*
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  aclocal
+  libtoolize --force --automake --copy
+  autoheader
+  automake --add-missing --copy
+  autoconf
+  ./configure --prefix=/usr \
+              --sbindir=/usr/bin \
+              --with-conf=/etc/conf.d \
+              --disable-zypp \
+              --disable-silent-rules
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+  install -Dm644 data/sysconfig.snapper \
+    "$pkgdir"/etc/conf.d/snapper
+}



More information about the arch-commits mailing list