[arch-commits] Commit in snapper/trunk (PKGBUILD)
Massimiliano Torromeo
mtorromeo at nymeria.archlinux.org
Fri May 30 10:38:03 UTC 2014
Date: Friday, May 30, 2014 @ 12:38:03
Author: mtorromeo
Revision: 112222
upgpkg: snapper 0.2.2-2
Fixed crons lookign for configuration files in the wrong path
Modified:
snapper/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-05-30 10:22:00 UTC (rev 112221)
+++ PKGBUILD 2014-05-30 10:38:03 UTC (rev 112222)
@@ -3,7 +3,7 @@
pkgname=snapper
pkgver=0.2.2
-pkgrel=1
+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"
@@ -14,13 +14,20 @@
backup=('etc/conf.d/snapper')
source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2")
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
# boost fixlets - Arch doesn't use -mt suffix
- sed -i -e 's at lboost_thread-mt@lboost_thread at g' snapper/Makefile.am
- sed -i -e 's at lboost_system-mt@lboost_system at g' snapper/Makefile.am
+ 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
@@ -32,7 +39,11 @@
# 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
@@ -60,4 +71,3 @@
}
sha256sums=('0fbe2b5520d7a22e6212ef41304b5ec43006ab47cf99800d3266a00bc53e56b9')
-
More information about the arch-commits
mailing list