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

Massimiliano Torromeo mtorromeo at archlinux.org
Tue Apr 21 08:52:37 UTC 2015


    Date: Tuesday, April 21, 2015 @ 10:52:37
  Author: mtorromeo
Revision: 131818

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 131817, snapper/trunk/PKGBUILD)
  snapper/repos/community-staging-x86_64/
  snapper/repos/community-staging-x86_64/PKGBUILD
    (from rev 131817, snapper/trunk/PKGBUILD)

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

Copied: snapper/repos/community-staging-i686/PKGBUILD (from rev 131817, snapper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-04-21 08:52:37 UTC (rev 131818)
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Tom Kuther <gimpel at sonnenkinder.org>
+
+pkgname=snapper
+pkgver=0.2.6
+pkgrel=2
+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")
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # boost fixlets - Arch doesn't use -mt suffix
+  sed -e 's at lboost_thread-mt@lboost_thread at g' \
+      -e 's at lboost_system-mt@lboost_system at g' \
+      -i snapper/Makefile.am
+
+  # 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
+  install -Dm755 client/.libs/systemd-helper \
+    "$pkgdir"/usr/lib/snapper/systemd-helper
+
+  rm -f "$pkgdir"/etc/snapper/zypp-plugin.conf
+  rm -f "$pkgdir"/usr/share/man/man*/snapper-zypp-plugin.*.gz
+
+  cd data
+  for unit in {cleanup,timeline}.{timer,service}; do
+    install -Dm644 $unit \
+      "$pkgdir"/usr/lib/systemd/system/snapper-$unit
+  done
+}
+
+sha256sums=('3390650be0e4709595d28df287a0e5902fb570e9fcb5ba992f435326bc53b75e')

Copied: snapper/repos/community-staging-x86_64/PKGBUILD (from rev 131817, snapper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-04-21 08:52:37 UTC (rev 131818)
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Tom Kuther <gimpel at sonnenkinder.org>
+
+pkgname=snapper
+pkgver=0.2.6
+pkgrel=2
+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")
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # boost fixlets - Arch doesn't use -mt suffix
+  sed -e 's at lboost_thread-mt@lboost_thread at g' \
+      -e 's at lboost_system-mt@lboost_system at g' \
+      -i snapper/Makefile.am
+
+  # 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
+  install -Dm755 client/.libs/systemd-helper \
+    "$pkgdir"/usr/lib/snapper/systemd-helper
+
+  rm -f "$pkgdir"/etc/snapper/zypp-plugin.conf
+  rm -f "$pkgdir"/usr/share/man/man*/snapper-zypp-plugin.*.gz
+
+  cd data
+  for unit in {cleanup,timeline}.{timer,service}; do
+    install -Dm644 $unit \
+      "$pkgdir"/usr/lib/systemd/system/snapper-$unit
+  done
+}
+
+sha256sums=('3390650be0e4709595d28df287a0e5902fb570e9fcb5ba992f435326bc53b75e')



More information about the arch-commits mailing list