mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 09:47:19 +08:00
46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=udisks
|
|
pkgver=1.0.4
|
|
pkgrel=5
|
|
pkgdesc="Disk Management Service"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/udisks"
|
|
license=('GPL')
|
|
depends=('systemd' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit' 'parted' 'device-mapper' 'libatasmart' 'lsof' 'lvm2' 'eject')
|
|
makedepends=('intltool' 'docbook-xsl')
|
|
options=(!libtool)
|
|
replaces=('devicekit-disks')
|
|
source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
|
|
udisks.service)
|
|
sha256sums=('854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5'
|
|
'0b9cbf41935feed3e4e2430fd4e06eb29864554dbb9f330c9d2a5fa2ef185131')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--libexecdir=/usr/lib/udisks --disable-static
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make profiledir=/usr/share/bash-completion/completions DESTDIR="${pkgdir}" install
|
|
chmod 644 "${pkgdir}/usr/share/bash-completion/completions/udisks-bash-completion.sh"
|
|
# move udev helpers and rules to /usr/lib
|
|
mv "${pkgdir}"/lib/udev "${pkgdir}"/usr/lib/
|
|
rm -r "${pkgdir}"/lib
|
|
|
|
#fix ntfs mounts
|
|
sed -i -e 's|<allow_active>auth_admin_keep</allow_active>|<allow_active>yes</allow_active>|' ${pkgdir}/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
|
|
|
|
# install systemd units
|
|
install -Dm644 "${srcdir}/udisks.service" "${pkgdir}/usr/lib/systemd/system/udisks.service"
|
|
echo "SystemdService=udisks.service" \
|
|
>> "$pkgdir/usr/share/dbus-1/system-services/org.freedesktop.UDisks.service"
|
|
}
|