diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-22 15:54:52 +0000 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-28 16:11:02 +0200 |
commit | 644aa623a084f600c2ccaf0634904141c1b03d6b (patch) | |
tree | 30b80cd16f9f1b1f85d9fd6a21652e2542521303 /main/drbd-utils | |
parent | 905b06d478da3ecdb1fe55e53724153caadd6f41 (diff) | |
download | aports-644aa623a084f600c2ccaf0634904141c1b03d6b.tar.bz2 aports-644aa623a084f600c2ccaf0634904141c1b03d6b.tar.xz |
main/drbd-utils: add bash completion
Diffstat (limited to 'main/drbd-utils')
-rw-r--r-- | main/drbd-utils/APKBUILD | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/main/drbd-utils/APKBUILD b/main/drbd-utils/APKBUILD index f2e70a34d8..e37ade1e2b 100644 --- a/main/drbd-utils/APKBUILD +++ b/main/drbd-utils/APKBUILD @@ -10,7 +10,8 @@ license="GPL-2.0-or-later" depends="bash" makedepends="bison docbook-xsl flex libxslt linux-headers" provides="drbd" -subpackages="$pkgname-doc $pkgname-pacemaker::noarch" +subpackages="$pkgname-doc $pkgname-pacemaker::noarch + $pkgname-bash-completion:bashcomp:noarch" source="https://links.linbit.com/sources/drbd/utils/$pkgname-$pkgver.tar.gz drbdsetup-permissions.patch drbd.initd @@ -27,11 +28,11 @@ build() { --localstatedir=/var \ --with-pacemaker \ --with-drbdmon \ + --with-bashcompletion \ --without-udev \ --without-heartbeat \ --without-rgmanager \ --without-xen \ - --without-bashcompletion\ --without-83support make } @@ -49,6 +50,16 @@ pacemaker() { mv "$pkgdir"/usr/lib/ocf "$subpkgdir"/usr/lib } +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion + mv "$pkgdir"/etc/bash_completion.d \ + "$subpkgdir"/usr/share/bash-completion/completions +} + sha512sums="d310ac36f304dbd991f2e2f49ae402956de059c659203b427f73981e32d6586c3f83f2893e297c64a25653527eee679a251850c5fa4098ac96f995840f0e1354 drbd-utils-9.3.0.tar.gz 562ae8eee03148666fb6e6e700c1eb9086f6901e176ea6cd007e3ac4e39d1cdaf967064de74dc1ad620155996dc7011bd0e2abd1c9595ff9bf5f4413673726f3 drbdsetup-permissions.patch bb465e32273aaba0b86ae681bc94c58bb51f542221f51ced197e22b316ce1bc9a0b4fe1f43af07ef13b3f0946466a43218f0a2ab7f4210adbb00174a503b64d7 drbd.initd" |