diff options
author | Erich Eckner <git@eckner.net> | 2019-02-26 14:01:32 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-26 14:01:59 +0100 |
commit | f17d145d24a2dff9924c7c4799de564129e13010 (patch) | |
tree | 7223965c0787624fe44a62dd1b1d63da89e49989 | |
parent | f5d2507ddfbe9a44284eebba9670c381850598c5 (diff) | |
download | archlinuxewe.git.save-f17d145d24a2dff9924c7c4799de564129e13010.tar.xz |
checkVersions: kann nun auch bareos
-rw-r--r-- | bareos/PKGBUILD | 18 | ||||
-rwxr-xr-x | checkVersions | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD index a5998f83..3fe6af25 100644 --- a/bareos/PKGBUILD +++ b/bareos/PKGBUILD @@ -29,16 +29,16 @@ pkgdesc="Bareos - Backup Archiving REcovery Open Sourced" url="http://www.bareos.org" license=('AGPL3') makedepends=('libmariadbclient' 'postgresql-libs' 'sqlite3' 'python2') -source=("git+https://github.com/bareos/bareos.git#tag=Release/$pkgver") +source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/Release/$pkgver.tar.gz") md5sums=('SKIP') prepare() { - cd $pkgbase + cd $pkgbase-Release-$pkgver sed -i "s/python-config/python2-config/g" configure } build() { - cd $pkgbase + cd $pkgbase-Release-$pkgver # Disable cephfs, broken sed -i 's/have_cephfs=\"yes\"/have_cephfs=\"no\"/' ./configure @@ -297,8 +297,8 @@ package_bareos-director() { done # Currently upstream systemd file does not automatically create run directory - sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-dir.service - _cp $srcdir/bareos/platforms/systemd/bareos-dir.service $pkgdir/usr/lib/systemd/system/bareos-dir.service + sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-dir.service + _cp $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-dir.service $pkgdir/usr/lib/systemd/system/bareos-dir.service } package_bareos-storage-fifo() { @@ -355,8 +355,8 @@ package_bareos-filedaemon() { done # Currently upstream systemd file does not automatically create run directory - sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-fd.service - _cp $srcdir/bareos/platforms/systemd/bareos-fd.service $pkgdir/usr/lib/systemd/system/bareos-fd.service + sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-fd.service + _cp $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-fd.service $pkgdir/usr/lib/systemd/system/bareos-fd.service } package_bareos-storage() { @@ -382,8 +382,8 @@ package_bareos-storage() { install -d $pkgdir/var/lib/bareos/storage # Currently upstream systemd file does not automatically create run directory - sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos/platforms/systemd/bareos-sd.service - _cp $srcdir/bareos/platforms/systemd/bareos-sd.service $pkgdir/usr/lib/systemd/system/bareos-sd.service + sed -i '/\[Service\]/a RuntimeDirectory=bareos' $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-sd.service + _cp $srcdir/bareos-Release-$pkgver/platforms/systemd/bareos-sd.service $pkgdir/usr/lib/systemd/system/bareos-sd.service } package_bareos-storage-tape() { diff --git a/checkVersions b/checkVersions index f8779cce..1040fc13 100755 --- a/checkVersions +++ b/checkVersions @@ -610,7 +610,7 @@ then quVer=$( echo "${src#*::}" | \ sed ' - s|/archive/[^/]*$|/releases| + s|/archive/\(Release/\)\?[^/]*$|/releases| s|/download/[^/]*/[^/]*$|| s|http:|https:| ' @@ -623,8 +623,8 @@ then curl_it "${quVer}" | \ tr "\"" "\n" | \ tr '[[:upper:]]' '[[:lower:]]' | \ - grep "^${quNam}v\?[0-9.]\+\$" | \ - sed "s|^${quNam}v\?||" | \ + grep "^${quNam}\(v\|release%2f\|\)[0-9.]\+\$" | \ + sed "s@^${quNam}\(v\|release%2f\|\)@@" | \ ( if [ "${pkgname}" == "conky-irc" ] then |