summaryrefslogtreecommitdiff
path: root/hal/Pkgfile
blob: 9bfb6899c6590247a27d95aeb15f86c86da7e293 (plain)
    1 # Description: Hardware Abstraction Layer
    2 # URL: http://www.freedesktop.org/wiki/Software/hal
    3 # Packager: Matt Housh, jaeger at crux dot nu
    4 # Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org
    5 # Depends on: dbus-glib
    6 
    7 name=hal
    8 version=0.5.11
    9 release=4
   10 source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
   11 	hal.conf
   12 	rc.hald)
   13 
   14 build() {
   15 	cd $name-$version
   16 	sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
   17 		-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
   18 	./configure --prefix=/usr \
   19 		--mandir=/usr/man \
   20 		--libexecdir=/usr/lib/$name \
   21 		--localstatedir=/var \
   22 		--with-hal-user=haldaemon \
   23 		--with-hal-group=haldaemon \
   24 		--with-dbus-sys=/usr/etc/dbus-1/system.d \
   25 		--with-hwdata=/usr/share \
   26 		--disable-policy-kit \
   27 		--disable-console-kit
   28 	sed -i -e '/device-manager/d' tools/Makefile
   29 	make
   30 	make DESTDIR=$PKG install
   31 	install -D -o root -g root -m 0755 $SRC/rc.hald \
   32 		$PKG/etc/rc.d/hald
   33 	rm -rf $PKG/usr/share/{doc,locale}
   34 	rm -rf $PKG/usr/share/gtk-doc
   35 	mv $PKG/usr/etc/udev $PKG/etc/
   36 	cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
   37 	mkdir -p $PKG/var/lib/hal
   38 	chown haldaemon:haldaemon $PKG/var/lib/hal
   39 }

Generated by cgit