Annotation of /branches/magellan-next/core/eject/eject-2.1.5-r7.smage2
Parent Directory | Revision Log
Revision 8323 -
(hide annotations)
(download)
Thu Jul 14 20:26:15 2011 UTC (12 years, 11 months ago) by niro
File size: 1417 byte(s)
Thu Jul 14 20:26:15 2011 UTC (12 years, 11 months ago) by niro
File size: 1417 byte(s)
auto added: ver bump to 2.1.5-r7
1 | niro | 8323 | # $Id$ |
2 | |||
3 | PNAME="eject" | ||
4 | PVER="2.1.5" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | |||
9 | DESCRIPTION="Programm to eject disks from a disk drive." | ||
10 | HOMEPAGE="http://ca.geocities.com/jefftranter@rogers.com/eject.html" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}" | ||
16 | |||
17 | sminclude mbuild | ||
18 | |||
19 | SRC_URI=( | ||
20 | http://ca.geocities.com/jefftranter@rogers.com/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/${PNAME}-${PVER}-xmalloc.patch | ||
23 | mirror://${PNAME}/${PNAME}-${PVER}-scsi-rdwr.patch | ||
24 | mirror://${PNAME}/${PNAME}-${PVER}-handle-spaces.patch | ||
25 | mirror://${PNAME}/${PNAME}-${PVER}-man-typo.patch | ||
26 | mirror://${PNAME}/${PNAME}-${PVER}-toggle.patch | ||
27 | ) | ||
28 | |||
29 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Local copy' | sed 's/.*-\(.*\).t.*/\1/'" | ||
30 | |||
31 | # sudo chmod 750 /usr/bin/eject | ||
32 | # sudo chgrp plugdev /usr/bin/eject | ||
33 | # sudo chmod u+s /usr/bin/eject | ||
34 | # | ||
35 | # or add gentoo patches (the better way) | ||
36 | |||
37 | src_prepare() | ||
38 | { | ||
39 | munpack ${SRCFILE} || die | ||
40 | cd ${SRCDIR} | ||
41 | |||
42 | # malloc fixes | ||
43 | mpatch ${PNAME}-${PVER}-xmalloc.patch || die | ||
44 | |||
45 | # open scsi devices read+write to fix some issues (eg ipod nano) | ||
46 | mpatch ${PNAME}-${PVER}-scsi-rdwr.patch || die | ||
47 | |||
48 | # eject incorrectly handles mount points with spaces in name | ||
49 | mpatch ${PNAME}-${PVER}-handle-spaces.patch || die | ||
50 | |||
51 | # fix a glitch in the man page | ||
52 | mpatch ${PNAME}-${PVER}-man-typo.patch || die | ||
53 | |||
54 | # eject -T does not work with certain drives | ||
55 | mpatch ${PNAME}-${PVER}-toggle.patch || die | ||
56 | } |