diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-28 10:27:18 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-28 10:27:18 +0000 |
commit | d679b301817b0d4f04db071b8609d67374215955 (patch) | |
tree | 55af99830327340f68177895dbe5c1493394502c /testing | |
parent | f58f05903bbee1a2d806f3e33d33bcfcbca183a5 (diff) | |
download | aports-d679b301817b0d4f04db071b8609d67374215955.tar.bz2 aports-d679b301817b0d4f04db071b8609d67374215955.tar.xz |
testing/bareos: added post-install script
Diffstat (limited to 'testing')
-rw-r--r-- | testing/bareos/APKBUILD | 34 | ||||
-rw-r--r-- | testing/bareos/bareos.post-install | 8 |
2 files changed, 30 insertions, 12 deletions
diff --git a/testing/bareos/APKBUILD b/testing/bareos/APKBUILD index 3b8c03dd4e..e82f6b7d26 100644 --- a/testing/bareos/APKBUILD +++ b/testing/bareos/APKBUILD @@ -2,17 +2,17 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=bareos pkgver=15.2.4 -pkgrel=0 +pkgrel=1 pkgdesc="Bareos - Backup Archiving REcovery Open Sourced" url="http://www.bareos.org" arch="all" license="AGPL3" depends="" -depends_dev="libpcap-dev lzo-dev sqlite-dev postgresql-dev - openssl-dev mariadb-dev acl-dev qt-dev python-dev readline-dev - ncurses-dev" -makedepends="$depends_dev libtool" -install="$pkgname.pre-install" +depends_dev="" +makedepends="$depends_dev libtool libintl libpcap-dev lzo-dev \ + sqlite-dev postgresql-dev openssl-dev mariadb-dev acl-dev \ + qt-dev python-dev readline-dev ncurses-dev" +install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-mysql $pkgname-pgsql $pkgname-sqlite" pkgusers="bareos" pkggroups="bareos" @@ -91,19 +91,29 @@ package() { for dir in /var/lib/bareos /etc/bareos/scripts/make_catalog_backup* \ /etc/bareos/scripts/mtx-changer* do - chown bareos.bareos "$pkgdir"$dir || return 1 + chown $pkgusers:$pkgroups "$pkgdir"$dir || return 1 done - find "$pkgdir"/usr/lib -iname libbareoscats* -type l -delete } _mv_backend() { mkdir -p "$subpkgdir"/usr/lib - mkdir -p "$subpkgdir"/etc/bareos/scripts + + for dirs in updates grants creates drops; do + mkdir -p "$subpkgdir"/etc/bareos/scripts/ddl/$dirs + mv "$pkgdir"/etc/bareos/scripts/ddl/$dirs/${1}* \ + "$subpkgdir"/etc/bareos/scripts/ddl/$dirs + done + mv "$pkgdir"/usr/lib/libbareoscats-${1}-${pkgver}.so \ "$subpkgdir"/usr/lib || return 1 - ln -s libbareoscats-${pkgver}.so "$subpkgdir"/usr/lib/libbareoscats.so - ln -s libbareoscats-${1}-${pkgver}.so \ - "$subpkgdir"/usr/lib/libbareoscats-${pkgver}.so + mv "$pkgdir"/usr/lib/libbareoscats-${1}.so \ + "$subpkgdir"/usr/lib || return 1 +} + +dev() { + pkgdesc="Bareos header files" + mkdir -p "$subpkgdir"/usr/include + mv "$pkgdir"/usr/include/$pkgname "$subpkgdir"/usr/include } mysql() { diff --git a/testing/bareos/bareos.post-install b/testing/bareos/bareos.post-install new file mode 100644 index 0000000000..9eb6220996 --- /dev/null +++ b/testing/bareos/bareos.post-install @@ -0,0 +1,8 @@ +#!/bin/sh + +addgroup bareos disk 2>/dev/null +addgroup bareos tape 2>/dev/null +addgroup bareos cdrom 2>/dev/null +addgroup bareos cdrw 2>/dev/null + +exit 0 |