diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2005-12-21 09:41:20 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2005-12-21 09:41:20 +0000 |
commit | ffe2655274a6fe06213ba424ebfbf65062ed8019 (patch) | |
tree | 008cc2ea1ae4db7b1cfa26083e5e91a43126d91e | |
parent | change libxml2 depend to 2.6.21 because of bugs in that package made dbus mem... (diff) | |
download | historical-ffe2655274a6fe06213ba424ebfbf65062ed8019.tar.gz historical-ffe2655274a6fe06213ba424ebfbf65062ed8019.tar.bz2 historical-ffe2655274a6fe06213ba424ebfbf65062ed8019.zip |
ebuild clean ups
Package-Manager: portage-2.1_pre1
-rw-r--r-- | sys-apps/hal/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/hal/Manifest | 18 | ||||
-rwxr-xr-x | sys-apps/hal/files/0.5-hald.rc | 4 | ||||
-rw-r--r-- | sys-apps/hal/files/digest-hal-0.4.5-r2 | 1 | ||||
-rw-r--r-- | sys-apps/hal/files/digest-hal-0.5.4 | 1 | ||||
-rw-r--r-- | sys-apps/hal/files/digest-hal-0.5.5.1 | 1 | ||||
-rw-r--r-- | sys-apps/hal/hal-0.4.5-r2.ebuild | 121 | ||||
-rw-r--r-- | sys-apps/hal/hal-0.5.4.ebuild | 131 | ||||
-rw-r--r-- | sys-apps/hal/hal-0.5.5.1-r1.ebuild | 41 | ||||
-rw-r--r-- | sys-apps/hal/hal-0.5.5.1.ebuild | 129 |
10 files changed, 32 insertions, 422 deletions
diff --git a/sys-apps/hal/ChangeLog b/sys-apps/hal/ChangeLog index c5f67d9d3e11..0bb2ce634072 100644 --- a/sys-apps/hal/ChangeLog +++ b/sys-apps/hal/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/hal # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.58 2005/12/16 15:57:32 spider Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.59 2005/12/21 09:41:19 cardoe Exp $ + + 21 Dec 2005; Doug Goldstein <cardoe@gentoo.org> files/0.5-hald.rc, + -hal-0.4.5-r2.ebuild, -hal-0.5.4.ebuild, -hal-0.5.5.1.ebuild, + hal-0.5.5.1-r1.ebuild: + ebuild clean ups *hal-0.5.5.1-r1 (16 Dec 2005) diff --git a/sys-apps/hal/Manifest b/sys-apps/hal/Manifest index fe87aa553ec2..b51c4fdd32b7 100644 --- a/sys-apps/hal/Manifest +++ b/sys-apps/hal/Manifest @@ -1,13 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 cfb06a73e0598dc0a3060eebdb9e568f ChangeLog 8407 -MD5 40a7b45f127bfdcacaa142660ad8b5f9 files/0.5-hald.rc 537 -MD5 ada3b2801b82813b4f10fd6f6caf9d6f files/digest-hal-0.4.5-r2 62 +MD5 32f19bf76082ed9c07c85df5a108ca20 ChangeLog 8585 +MD5 169d86aeebcd34b958b6e37c9fc36ec6 files/0.5-hald.rc 529 MD5 3031a9fe74f43859c313d5f3076e68cd files/digest-hal-0.4.7-r2 62 MD5 2bbbb519c89110dfec96cf63cf541afc files/digest-hal-0.4.8 62 -MD5 27cab5d91e93d8b692246d0ce4110122 files/digest-hal-0.5.4 62 -MD5 cf6c7a60aee75f95022e5d25562468eb files/digest-hal-0.5.5.1 64 MD5 cf6c7a60aee75f95022e5d25562468eb files/digest-hal-0.5.5.1-r1 64 MD5 a0ce1c268e0b7d0967ec7b8e0d0d26d2 files/hal-0.4.1-old_storage_policy.patch 1216 MD5 b0e12a62ce698e1eb2a32139498330cd files/hal-0.4.5-gentoo_gphoto2_usermap.patch 817 @@ -22,17 +19,14 @@ MD5 25cb64ec27a48a80126b6de5ff6c3340 files/hal-0.5.1-old_storage_policy.patch 85 MD5 54eaacd46e87bd8025da51f2f9aaf56b files/hal-0.5.5.1-RBC.patch 660 MD5 7ee3fd5b5ee117f14633350e5b335c2f files/hal-unmount.dev 397 MD5 192112dfb678a9795a93d3cdcc50bb95 files/hald 543 -MD5 2cf5b3c9219c87b1d9aee01f4f5f19bb hal-0.4.5-r2.ebuild 3118 MD5 1a146b79d18a689bbc8a96b81f74c7f6 hal-0.4.7-r2.ebuild 3455 MD5 c6d1202b415d119777b338fd1787592e hal-0.4.8.ebuild 3420 -MD5 4359ce85a732bb15c55819f50ee1e74f hal-0.5.4.ebuild 4040 -MD5 5b5bc48b834909a5c0cfe2aaef2dc670 hal-0.5.5.1-r1.ebuild 3951 -MD5 1909745ea18a261467f2a3b4a5c51deb hal-0.5.5.1.ebuild 3912 +MD5 2f1f44ebde0f3e55b620d061075b5105 hal-0.5.5.1-r1.ebuild 3601 MD5 a60767d83157413d549c69b98fac962c metadata.xml 303 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDouP8ZS9CZTi033kRAsuWAKCmF7aSSEjR6dYhSK9LzFyy1LtYBQCfUmGo -oXzRMWTXig0ZXH0tkMQiHA0= -=rIyn +iD8DBQFDqSNPBtvusYtCZMsRApTRAJ9IT40JaQzN2WoH0IGLnR5zwQf+bgCcDzQX +G/xhmBCvE5YXuoAT+SkfEco= +=FGqn -----END PGP SIGNATURE----- diff --git a/sys-apps/hal/files/0.5-hald.rc b/sys-apps/hal/files/0.5-hald.rc index 7a3ca0ba5242..38a182c6c236 100755 --- a/sys-apps/hal/files/0.5-hald.rc +++ b/sys-apps/hal/files/0.5-hald.rc @@ -1,10 +1,10 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5-hald.rc,v 1.1 2005/08/18 07:19:37 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5-hald.rc,v 1.2 2005/12/21 09:41:20 cardoe Exp $ depend() { - need dbus hotplug + need dbus } start() { diff --git a/sys-apps/hal/files/digest-hal-0.4.5-r2 b/sys-apps/hal/files/digest-hal-0.4.5-r2 deleted file mode 100644 index c4ca2b2c74d4..000000000000 --- a/sys-apps/hal/files/digest-hal-0.4.5-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 780d0bf4849c83ea4f8ab9b4102229c2 hal-0.4.5.tar.gz 1343158 diff --git a/sys-apps/hal/files/digest-hal-0.5.4 b/sys-apps/hal/files/digest-hal-0.5.4 deleted file mode 100644 index f7981d006cfc..000000000000 --- a/sys-apps/hal/files/digest-hal-0.5.4 +++ /dev/null @@ -1 +0,0 @@ -MD5 2f84ddbc22bc35baa9388e7794d1fa31 hal-0.5.4.tar.gz 1476396 diff --git a/sys-apps/hal/files/digest-hal-0.5.5.1 b/sys-apps/hal/files/digest-hal-0.5.5.1 deleted file mode 100644 index 9dfb57f4441c..000000000000 --- a/sys-apps/hal/files/digest-hal-0.5.5.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 2abd81ed3f5a37789f4fbda2f6a61270 hal-0.5.5.1.tar.gz 1517882 diff --git a/sys-apps/hal/hal-0.4.5-r2.ebuild b/sys-apps/hal/hal-0.4.5-r2.ebuild deleted file mode 100644 index 2a0252c834a1..000000000000 --- a/sys-apps/hal/hal-0.4.5-r2.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.4.5-r2.ebuild,v 1.12 2005/06/07 19:33:11 beu Exp $ - -inherit eutils python linux-info versionator flag-o-matic - -DESCRIPTION="Hardware Abstraction Layer" -HOMEPAGE="http://www.freedesktop.org/Software/hal" -SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz" - -LICENSE="|| ( GPL-2 AFL-2.0 )" -SLOT="0" -KEYWORDS="amd64 ia64 ppc ppc64 x86" -IUSE="debug pcmcia doc livecd" - -RDEPEND=">=dev-libs/glib-2.4 - >=sys-apps/dbus-0.22-r1 - dev-libs/expat - sys-fs/udev - sys-apps/hotplug - sys-libs/libcap - dev-libs/popt - >=sys-apps/util-linux-2.12i - >=sys-kernel/linux-headers-2.6" - -DEPEND="${RDEPEND} - dev-util/pkgconfig - >=dev-util/intltool-0.29 - doc? ( app-doc/doxygen )" -# dep on a specific util-linux version for -# managed mount patches #70873 - -# We need to run at least a 2.6.10 kernel, this is a -# way to ensure that to some extent -pkg_setup() { - use livecd && return - linux-info_pkg_setup - kernel_is ge 2 6 10 \ - || die "You need a 2.6.10 or newer kernel to build this package" - -} - -src_unpack() { - - unpack ${A} - - cd ${S} - # remove pamconsole option - epatch ${FILESDIR}/${PN}-0.4.1-old_storage_policy.patch - # pick up the gentoo usermap - epatch ${FILESDIR}/${P}-gentoo_gphoto2_usermap.patch - # fix issues with certain misbehaving kernel drivers (#78564) - cd ${S}/hald/linux - epatch ${FILESDIR}/${P}-net_lockup.patch - cd ${S}/hald/linux/volume_id - epatch ${FILESDIR}/${P}-vat_ntfs_labels.patch - -} - -src_compile() { - - # use sysfs stuff added in 2.6.10 kernel - append-flags -DSYSFS_CARRIER_ENABLE - - # FIXME : docs - econf \ - `use_enable debug verbose-mode` \ - `use_enable pcmcia pcmcia-support` \ - --enable-fstab-sync \ - --enable-hotplug-map \ - --disable-docbook-docs \ - `use_enable doc doxygen-docs` \ - --with-pid-file=/var/run/hald/hald.pid \ - || die - - emake || die - -} - -src_install() { - - make DESTDIR=${D} install || die - - # We install this in a seperate package to avoid gnome-python dep - rm ${D}/usr/bin/hal-device-manager - - # initscript - exeinto /etc/init.d/ - doexe ${FILESDIR}/hald - - # place our pid file - keepdir /var/run/hald - - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README - -} - -pkg_preinst() { - - enewgroup haldaemon || die "Problem adding haldaemon group" - enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user" - -} - -pkg_postinst() { - - # make sure the permissions on the pid dir are alright & after preinst - chown haldaemon:haldaemon /var/run/hald - - ewarn "Enabled in this ebuild by default is the usage of fstab-sync" - ewarn "that will create mount rules for non-existing devices in" - ewarn "fstab if needed, mount points will be created in /media." - ewarn "This functionality alters /etc/fstab runtime on the filesystem" - ewarn "and should be considered a security risk." - echo - einfo "The HAL daemon needs to be running for certain applications to" - einfo "work. Suggested is to add the init script to your start-up" - einfo "scripts, this should be done like this :" - einfo "\`rc-update add hald default\`" - -} diff --git a/sys-apps/hal/hal-0.5.4.ebuild b/sys-apps/hal/hal-0.5.4.ebuild deleted file mode 100644 index b486211a0c93..000000000000 --- a/sys-apps/hal/hal-0.5.4.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.4.ebuild,v 1.8 2005/12/14 07:04:06 cardoe Exp $ - -inherit eutils linux-info - -DESCRIPTION="Hardware Abstraction Layer" -HOMEPAGE="http://www.freedesktop.org/Software/hal" -SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz" - -LICENSE="|| ( GPL-2 AFL-2.0 )" -SLOT="0" -KEYWORDS="~x86 ~amd64 ~ia64 ~ppc ~ppc64 ~sparc" -IUSE="debug pcmcia doc pam_console" - -RDEPEND=">=dev-libs/glib-2.6 - >=sys-apps/dbus-0.33 - dev-libs/expat - >=sys-fs/udev-063 - sys-apps/hotplug - >=sys-apps/util-linux-2.12i - || ( >=sys-kernel/linux-headers-2.6 >=sys-kernel/mips-headers-2.6 ) - dev-libs/libusb - pam_console? ( sys-libs/pam )" - -DEPEND="${RDEPEND} - dev-util/pkgconfig - >=dev-util/intltool-0.29 - doc? ( app-doc/doxygen app-text/docbook-sgml-utils )" - -## HAL Daemon drops privledges so we need group access to read disks -HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb" - -function notify_uevent() { - eerror - eerror "You must enable Kernel Userspace Events in your kernel." - eerror "This can be set under 'General Setup'. It is marked as" - eerror "CONFIG_KOBJECT_UEVENT in the config file." - eerror - ebeep 5 - - die "KOBJECT_UEVENT is not set" -} - -pkg_setup() { - - linux-info_pkg_setup - kernel_is ge 2 6 10 \ - || die "You need a 2.6.10 or newer kernel to run this package" - - linux_chkconfig_present KOBJECT_UEVENT \ - || notify_uevent - - if use pam_console && ! built_with_use sys-libs/pam pam_console ; then - eerror "You need to build pam with pam_console support" - eerror "Please remerge sys-libs/pam with USE=pam_console" - die "pam without pam_console detected" - fi - - if [ -d ${ROOT}/etc/hal/device.d ]; then - eerror "HAL 0.5.x will not run with the HAL 0.4.x series of" - eerror "/etc/hal/device.d/ so please remove this directory" - eerror "with rm -rf /etc/hal/device.d/ and then re-emerge." - eerror "This is due to configuration protection of /etc/" - die "remove /etc/hal/device.d/" - fi -} - - -src_unpack() { - unpack ${A} - cd ${S} - # remove pamconsole option - use pam_console || epatch ${FILESDIR}/${PN}-0.5.1-old_storage_policy.patch -} - -src_compile() { - econf \ - $(use_enable debug verbose-mode) \ - $(use_enable pcmcia pcmcia-support) \ - --enable-sysfs-carrier \ - --enable-hotplug-map \ - $(use_enable doc docbook-docs) \ - $(use_enable doc doxygen-docs) \ - --with-pid-file=/var/run/hald.pid \ - || die "configure failed" - - emake || die "make failed" -} - -src_install() { - make DESTDIR=${D} install || die - - # We install this in a seperate package to avoid gnome-python dep - rm ${D}/usr/bin/hal-device-manager - - # initscript - newinitd ${FILESDIR}/0.5-hald.rc hald - - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README - - # Script to unmount devices if they are yanked out (from upstream) - exeinto /etc/dev.d/default - doexe ${FILESDIR}/hal-unmount.dev -} - -pkg_postinst() { - ## We need to add the user/groups *after* package compilation/installation, so that we - ## don't change the user without the package being installed. - ## - enewgroup haldaemon || die "Problem adding haldaemon group" - # HAL drops priviledges by default now ... - # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) - enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS} || die "Problem adding haldaemon user" - - # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} - # If users have a problem with this, let them file a bug - usermod -G ${HALDAEMON_GROUPS} haldaemon - - einfo "The HAL daemon needs to be running for certain applications to" - einfo "work. Suggested is to add the init script to your start-up" - einfo "scripts, this should be done like this :" - einfo "\`rc-update add hald default\`" - - ewarn - ewarn "If you are upgrading from a previous version of hal you should run" - ewarn "revdep-rebuild to find any programs which were built against the old" - ewarn "version and then rebuild them. Not doing so may result in a broken" - ewarn "system." - ewarn -} diff --git a/sys-apps/hal/hal-0.5.5.1-r1.ebuild b/sys-apps/hal/hal-0.5.5.1-r1.ebuild index 0b2fd7bee5cf..d8d70d836353 100644 --- a/sys-apps/hal/hal-0.5.5.1-r1.ebuild +++ b/sys-apps/hal/hal-0.5.5.1-r1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.5.1-r1.ebuild,v 1.1 2005/12/16 15:57:32 spider Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.5.1-r1.ebuild,v 1.2 2005/12/21 09:41:19 cardoe Exp $ -inherit eutils linux-info +inherit eutils linux-info debug DESCRIPTION="Hardware Abstraction Layer" HOMEPAGE="http://www.freedesktop.org/Software/hal" @@ -48,8 +48,9 @@ pkg_setup() { kernel_is ge 2 6 13 \ || die "You need a 2.6.13 or newer kernel to run this package" - linux_chkconfig_present KOBJECT_UEVENT \ - || notify_uevent + if [ kernel_is le 2 6 15 ]; then + linux_chkconfig_present KOBJECT_UEVENT || notify_uevent + fi if use acpi ; then linux_chkconfig_present PROC_FS \ @@ -62,7 +63,7 @@ pkg_setup() { die "pam without pam_console detected" fi - if [ -d ${ROOT}/etc/hal/device.d ]; then + if [ -d "${ROOT}"/etc/hal/device.d ]; then eerror "HAL 0.5.x will not run with the HAL 0.4.x series of" eerror "/etc/hal/device.d/ so please remove this directory" eerror "with rm -rf /etc/hal/device.d/ and then re-emerge." @@ -73,12 +74,12 @@ pkg_setup() { src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${P}-RBC.patch + unpack "${A}" + cd "${S}" + epatch "${FILESDIR}"/${P}-RBC.patch # remove pamconsole option - use pam_console || epatch ${FILESDIR}/${PN}-0.5.1-old_storage_policy.patch + use pam_console || epatch "${FILESDIR}"/${PN}-0.5.1-old_storage_policy.patch } src_compile() { @@ -96,34 +97,28 @@ src_compile() { } src_install() { - make DESTDIR=${D} install || die + make DESTDIR="${D}" install || die # We install this in a seperate package to avoid gnome-python dep - rm ${D}/usr/bin/hal-device-manager + rm "${D}"/usr/bin/hal-device-manager # initscript - newinitd ${FILESDIR}/0.5-hald.rc hald + newinitd "${FILESDIR}"/0.5-hald.rc hald dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README # Script to unmount devices if they are yanked out (from upstream) exeinto /etc/dev.d/default - doexe ${FILESDIR}/hal-unmount.dev + doexe "${FILESDIR}"/hal-unmount.dev } -pkg_postinst() { - ## We need to add the user/groups *after* package compilation/installation, so that we - ## don't change the user without the package being installed. - ## +pkg_preinst() { enewgroup haldaemon || die "Problem adding haldaemon group" - # HAL drops priviledges by default now ... - # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) - enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS} || die "Problem adding haldaemon user" - - # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} - # If users have a problem with this, let them file a bug + enewuser haldaemon -1 "-1" -1 ${HALDAEMON_GROUPS} || die "Problem adding haldaemon user" usermod -G ${HALDAEMON_GROUPS} haldaemon +} +pkg_postinst() { einfo "The HAL daemon needs to be running for certain applications to" einfo "work. Suggested is to add the init script to your start-up" einfo "scripts, this should be done like this :" diff --git a/sys-apps/hal/hal-0.5.5.1.ebuild b/sys-apps/hal/hal-0.5.5.1.ebuild deleted file mode 100644 index d776711626bc..000000000000 --- a/sys-apps/hal/hal-0.5.5.1.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.5.1.ebuild,v 1.3 2005/12/14 07:04:06 cardoe Exp $ - -inherit eutils linux-info - -DESCRIPTION="Hardware Abstraction Layer" -HOMEPAGE="http://www.freedesktop.org/Software/hal" -SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz" - -LICENSE="|| ( GPL-2 AFL-2.0 )" -SLOT="0" -KEYWORDS="~x86 ~amd64 ~ia64 ~ppc ~ppc64 ~sparc" -IUSE="acpi debug doc pam_console pcmcia" - -RDEPEND=">=dev-libs/glib-2.6 - >=sys-apps/dbus-0.50 - >=sys-fs/udev-071 - >=sys-apps/util-linux-2.12i - || ( >=sys-kernel/linux-headers-2.6 >=sys-kernel/mips-headers-2.6 ) - dev-libs/expat - dev-libs/libusb - sys-apps/hotplug - pam_console? ( sys-libs/pam )" - -DEPEND="${RDEPEND} - dev-util/pkgconfig - >=dev-util/intltool-0.29 - doc? ( app-doc/doxygen app-text/docbook-sgml-utils )" - -## HAL Daemon drops privledges so we need group access to read disks -HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb" - -function notify_uevent() { - eerror - eerror "You must enable Kernel Userspace Events in your kernel." - eerror "This can be set under 'General Setup'. It is marked as" - eerror "CONFIG_KOBJECT_UEVENT in the config file." - eerror - ebeep 5 - - die "KOBJECT_UEVENT is not set" -} - -pkg_setup() { - linux-info_pkg_setup - - kernel_is ge 2 6 13 \ - || die "You need a 2.6.13 or newer kernel to run this package" - - linux_chkconfig_present KOBJECT_UEVENT \ - || notify_uevent - - if use acpi ; then - linux_chkconfig_present PROC_FS \ - || die "ACPI support requires PROC_FS support in kernel" - fi - - if use pam_console && ! built_with_use sys-libs/pam pam_console ; then - eerror "You need to build pam with pam_console support" - eerror "Please remerge sys-libs/pam with USE=pam_console" - die "pam without pam_console detected" - fi - - if [ -d ${ROOT}/etc/hal/device.d ]; then - eerror "HAL 0.5.x will not run with the HAL 0.4.x series of" - eerror "/etc/hal/device.d/ so please remove this directory" - eerror "with rm -rf /etc/hal/device.d/ and then re-emerge." - eerror "This is due to configuration protection of /etc/" - die "remove /etc/hal/device.d/" - fi -} - - -src_unpack() { - unpack ${A} - cd ${S} - # remove pamconsole option - use pam_console || epatch ${FILESDIR}/${PN}-0.5.1-old_storage_policy.patch -} - -src_compile() { - econf \ - --with-os-type=gentoo \ - --with-pid-file=/var/run/hald.pid \ - $(use_enable debug verbose-mode) \ - $(use_enable pcmcia pcmcia-support) \ - $(use_enable acpi acpi-proc) \ - $(use_enable doc docbook-docs) \ - $(use_enable doc doxygen-docs) \ - || die "configure failed" - - emake || die "make failed" -} - -src_install() { - make DESTDIR=${D} install || die - - # We install this in a seperate package to avoid gnome-python dep - rm ${D}/usr/bin/hal-device-manager - - # initscript - newinitd ${FILESDIR}/0.5-hald.rc hald - - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README - - # Script to unmount devices if they are yanked out (from upstream) - exeinto /etc/dev.d/default - doexe ${FILESDIR}/hal-unmount.dev -} - -pkg_postinst() { - ## We need to add the user/groups *after* package compilation/installation, so that we - ## don't change the user without the package being installed. - ## - enewgroup haldaemon || die "Problem adding haldaemon group" - # HAL drops priviledges by default now ... - # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) - enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS} || die "Problem adding haldaemon user" - - # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} - # If users have a problem with this, let them file a bug - usermod -G ${HALDAEMON_GROUPS} haldaemon - - einfo "The HAL daemon needs to be running for certain applications to" - einfo "work. Suggested is to add the init script to your start-up" - einfo "scripts, this should be done like this :" - einfo "\`rc-update add hald default\`" -} |