Magellan Linux

Contents of /trunk/core/hotplug/hotplug-20040923-r12.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 264 - (show annotations) (download)
Thu Oct 16 12:16:31 2008 UTC (15 years, 7 months ago) by niro
File size: 1650 byte(s)
-rev bump to 20040923-r12
1 # $Header: /magellan-cvs/smage/hotplug/hotplug-20040923-r11.smage2,v 1.1 2008/02/10 21:56:38 niro Exp $
2
3 PNAME="hotplug"
4 PVER="20040923"
5 PBUILD="r12"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="hotplug contains scripts that react upon hotplug events generated by the kernel."
11 HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/"
12
13 DEPEND=">= sys-apps/pciutils-2.1.9
14 >= sys-apps/usbutils-0.9
15 >= sys-apps/initscripts-0.2"
16
17 SRCFILE="${PNAME}-2004_09_23.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-2004_09_23"
19
20 sminclude mtools
21
22 SRC_URI=(
23 http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME}-[0-9].* | lasttarball gz | sed s/_//g"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 }
33
34 src_install()
35 {
36 cd ${SRCDIR}
37
38 # needed directories
39 minstalldir /sbin || die
40
41 # install sbin
42 minstallexec sbin/hotplug /sbin || die
43
44 # mark non deletable
45 mkeepdir /lib/firmware || die
46 mkeepdir /etc/hotplug.d || die
47 mkeepdir /var/run/usb || die
48
49 # install man-pages
50 minstallman *.8 || die
51
52 # docs
53 minstalldocs ChangeLog README* || die
54 }
55
56 preinstall()
57 {
58 # remove hotplug script from rc-init
59 if [ -x ${MROOT}/sbin/rc-config ]
60 then
61 if [[ -n $(${MROOT}/sbin/rc-config show hotplug | grep hotplug: | cut -d: -f2) ]]
62 then
63 ${MROOT}/sbin/rc-config del hotplug
64 fi
65 fi
66 }
67
68 postinstall()
69 {
70 # delete old cruft
71 [[ -d ${MROOT}/etc/hotplug.d/default ]] &&
72 rm -rf ${MROOT}/etc/hotplug.d/default
73
74 [[ -f ${MROOT}/etc/rc.d/init.d/hotplug ]] &&
75 rm ${MROOT}/etc/rc.d/init.d/hotplug
76
77 if [[ -d ${MROOT}/etc/hotplug ]]
78 then
79 rm -rf ${MROOT}/etc/hotplug
80 fi
81 }

Properties

Name Value
svn:keywords Id