void-packages/srcpkgs/udisks/template

45 lines
1.5 KiB
Text

# Template file for 'udisks'
pkgname=udisks
version=1.0.4
revision=11
build_style=gnu-configure
configure_args="--disable-static --enable-lvm2"
hostmakedepends="pkg-config intltool libxslt docbook-xsl"
makedepends="glib-devel device-mapper-devel
liblvm2app-devel libparted-devel libatasmart-devel polkit-devel
dbus-glib-devel libgudev-devel>=183 sg3_utils-devel"
short_desc="Disk Management Service"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.freedesktop.org/wiki/Software/udisks"
license="GPL-2"
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
checksum=854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5
long_desc="
The udisks project provides:
* a storage daemon that implements well-defined D-Bus interfaces that
can be used to query and manipulate storage devices.
* a command-line tool, udisks, that can be used to query and use the daemon
The actions that a user can perform using udisks are restricted using
PolicyKit."
pre_configure() {
# Switch to /usr.
sed -i -e "s|\(slashlibdir\)=.*|\1=/usr/lib|g" \
-e "s|\(slashsbindir\)=.*|\1=/usr/sbin|g" configure
}
post_install() {
vinstall ${FILESDIR}/udisks.service 644 usr/lib/systemd/system
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/profile.d/udisks-bash-completion.sh \
${DESTDIR}/usr/share/bash-completion/completions/udisks
}
udisks_package() {
make_dirs="/var/lib/udisks 0750 root root"
pkg_install() {
vmove all
}
}