add new hotplug ebuild files and last patches
authorZack Welch <zwelch@gentoo.org>
Sat, 19 Oct 2002 22:28:27 +0000 (22:28 +0000)
committerZack Welch <zwelch@gentoo.org>
Sat, 19 Oct 2002 22:28:27 +0000 (22:28 +0000)
sys-apps/hotplug/files/digest-hotplug-20020401-r1 [new file with mode: 0644]
sys-apps/hotplug/files/digest-hotplug-20020826 [new file with mode: 0644]
sys-apps/hotplug/hotplug-20020401-r1.ebuild [new file with mode: 0644]
sys-apps/hotplug/hotplug-20020826.ebuild [new file with mode: 0644]

diff --git a/sys-apps/hotplug/files/digest-hotplug-20020401-r1 b/sys-apps/hotplug/files/digest-hotplug-20020401-r1
new file mode 100644 (file)
index 0000000..d025412
--- /dev/null
@@ -0,0 +1 @@
+MD5 50792a87d2eea046616d815e03d1af6b hotplug-2002_04_01.tar.gz 36984
diff --git a/sys-apps/hotplug/files/digest-hotplug-20020826 b/sys-apps/hotplug/files/digest-hotplug-20020826
new file mode 100644 (file)
index 0000000..9a8988c
--- /dev/null
@@ -0,0 +1 @@
+MD5 eb3e3aacfe072e7bd31a4e01fd8af2e0 hotplug-2002_08_26.tar.gz 37805
diff --git a/sys-apps/hotplug/hotplug-20020401-r1.ebuild b/sys-apps/hotplug/hotplug-20020401-r1.ebuild
new file mode 100644 (file)
index 0000000..ac7264e
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/hotplug-20020401-r1.ebuild,v 1.1 2002/10/19 22:28:27 zwelch Exp $
+
+# source maintainers named it hotplug-YYYY_MM_DD instead of hotplug-YYYYMMDD
+MY_P=`echo ${P}|sed 's/-\(....\)\(..\)\(..\)/-\1_\2_\3/'`
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="USB and PCI hotplug scripts"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/linux-hotplug/${MY_P}.tar.gz"
+HOMEPAGE="http://linux-hotplug.sourceforge.net"
+KEYWORDS="x86 ~ppc"
+SLOT="0"
+LICENSE="GPL-2"
+
+# hotplug needs pcimodules utility provided by pcitutils-2.1.9-r1
+DEPEND="virtual/glibc
+        >=sys-apps/pciutils-2.1.9
+        >=sys-apps/usbutils-0.9"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}/etc/hotplug
+       patch -p0 < ${FILESDIR}/${P}-pci.rc-gentoo.diff
+       patch -p0 < ${FILESDIR}/${P}-usb.rc-gentoo.diff
+       patch -p3 < ${FILESDIR}/${P}-usb.agent-gentoo.diff
+       patch -p3 < ${FILESDIR}/${P}-net.agent-gentoo.diff
+}
+
+src_install() {
+       into /
+       dosbin sbin/hotplug
+       doman *.8
+       dodoc README ChangeLog
+
+       cd ${S}/etc/hotplug
+       insinto /etc/hotplug
+       doins blacklist hotplug.functions usb.distmap usb.handmap usb.usermap
+       exeinto /etc/hotplug
+       doexe *.agent *.rc
+       dodir /etc/hotplug/usb /etc/hotplug/pci
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/hotplug.rc hotplug
+       
+       insinto /etc/conf.d
+       newins ${FILESDIR}/usb.conf usb
+}
+
+pkg_postinst() {
+       ewarn "WARNING: The fxload program was spliced off this package"
+       ewarn "WARNING: emerge fxload if you need it"
+}
diff --git a/sys-apps/hotplug/hotplug-20020826.ebuild b/sys-apps/hotplug/hotplug-20020826.ebuild
new file mode 100644 (file)
index 0000000..8ebdf87
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/hotplug-20020826.ebuild,v 1.1 2002/10/19 22:28:27 zwelch Exp $
+
+# source maintainers named it hotplug-YYYY_MM_DD instead of hotplug-YYYYMMDD
+MY_P=`echo ${P}|sed 's/-\(....\)\(..\)\(..\)/-\1_\2_\3/'`
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="USB and PCI hotplug scripts"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/linux-hotplug/${MY_P}.tar.gz"
+HOMEPAGE="http://linux-hotplug.sourceforge.net"
+KEYWORDS="~x86 ~ppc"
+SLOT="0"
+LICENSE="GPL-2"
+
+# hotplug needs pcimodules utility provided by pcitutils-2.1.9-r1
+DEPEND="virtual/glibc
+        >=sys-apps/pciutils-2.1.9
+        >=sys-apps/usbutils-0.9"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}/etc/hotplug
+       patch -p0 < ${FILESDIR}/${P}-pci.rc-gentoo.diff
+       patch -p0 < ${FILESDIR}/${P}-usb.rc-gentoo.diff
+       patch -p3 < ${FILESDIR}/${P}-usb.agent-gentoo.diff
+       patch -p3 < ${FILESDIR}/${P}-net.agent-gentoo.diff
+}
+
+src_install() {
+       into /
+       dosbin sbin/hotplug
+       doman *.8
+       dodoc README ChangeLog
+
+       cd ${S}/etc/hotplug
+       insinto /etc/hotplug
+       doins blacklist hotplug.functions usb.distmap usb.handmap usb.usermap
+       exeinto /etc/hotplug
+       doexe *.agent *.rc
+       dodir /etc/hotplug/usb /etc/hotplug/pci
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/hotplug.rc hotplug
+       
+       insinto /etc/conf.d
+       newins ${FILESDIR}/usb.conf usb
+}
+
+pkg_postinst() {
+       ewarn "WARNING: The fxload program was spliced off this package"
+       ewarn "WARNING: emerge fxload if you need it"
+}