Contents of /smage/branches/alx-0_9_0/hotplug/hotplug-20040923-r11.smage2
Parent Directory
|
Revision Log
Revision 1271 -
(show annotations)
(download)
Tue Dec 29 12:48:37 2009 UTC (14 years, 5 months ago) by niro
File size: 1564 byte(s)
Tue Dec 29 12:48:37 2009 UTC (14 years, 5 months ago) by niro
File size: 1564 byte(s)
renamed branch_0.9.0 to alx-0_9_0
1 | # $Header: /alx-cvs/smage-eglibc/hotplug/hotplug-20040923-r11.smage2,v 1.2 2008/06/10 21:27:22 niro Exp $ |
2 | |
3 | PNAME="hotplug" |
4 | PVER="20040923" |
5 | PBUILD="r11" |
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 | >= virtual/initscripts" |
16 | |
17 | SRCFILE="${PNAME}-2004_09_23.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-2004_09_23" |
19 | |
20 | sminclude mtools alx |
21 | |
22 | SRC_URI=( |
23 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | } |
31 | |
32 | src_install() |
33 | { |
34 | cd ${SRCDIR} |
35 | |
36 | # needed directories |
37 | minstalldir /sbin || die |
38 | |
39 | # install sbin |
40 | minstallexec sbin/hotplug /sbin || die |
41 | |
42 | # mark non deletable |
43 | mkeepdir /lib/firmware || die |
44 | mkeepdir /etc/hotplug.d || die |
45 | mkeepdir /var/run/usb || die |
46 | |
47 | # install man-pages |
48 | minstallman *.8 || die |
49 | |
50 | # docs |
51 | minstalldocs ChangeLog README* || die |
52 | } |
53 | |
54 | preinstall() |
55 | { |
56 | # remove hotplug script from rc-init |
57 | if [ -x ${MROOT}/sbin/rc-config ] |
58 | then |
59 | if [[ -n $(${MROOT}/sbin/rc-config show hotplug | grep hotplug: | cut -d: -f2) ]] |
60 | then |
61 | ${MROOT}/sbin/rc-config del hotplug |
62 | fi |
63 | fi |
64 | } |
65 | |
66 | postinstall() |
67 | { |
68 | # delete old cruft |
69 | [[ -d ${MROOT}/etc/hotplug.d/default ]] && |
70 | rm -rf ${MROOT}/etc/hotplug.d/default |
71 | |
72 | [[ -f ${MROOT}/etc/rc.d/init.d/hotplug ]] && |
73 | rm ${MROOT}/etc/rc.d/init.d/hotplug |
74 | |
75 | if [[ -d ${MROOT}/etc/hotplug ]] |
76 | then |
77 | rm -rf ${MROOT}/etc/hotplug |
78 | fi |
79 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |