1 |
vapier 10/01/08 02:30:25 |
2 |
|
3 |
Added: collectl-3.4.0-install.patch |
4 |
Log: |
5 |
Version bump #292864 by Mark Seger. |
6 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/collectl/files/collectl-3.4.0-install.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/collectl/files/collectl-3.4.0-install.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/collectl/files/collectl-3.4.0-install.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: collectl-3.4.0-install.patch |
15 |
=================================================================== |
16 |
add DESTDIR support |
17 |
|
18 |
--- INSTALL |
19 |
+++ INSTALL |
20 |
@@ -1,18 +1,22 @@ |
21 |
#!/bin/bash |
22 |
|
23 |
-BINDIR=/usr/bin |
24 |
-DOCDIR=/usr/share/doc/collectl |
25 |
-SHRDIR=/usr/share/collectl |
26 |
+#DESTDIR= |
27 |
+BINDIR=$DESTDIR/usr/bin |
28 |
+DOCDIR=$DESTDIR/usr/share/doc/collectl |
29 |
+SHRDIR=$DESTDIR/usr/share/collectl |
30 |
|
31 |
+mkdir -p $BINDIR |
32 |
mkdir -p $DOCDIR |
33 |
mkdir -p $SHRDIR |
34 |
mkdir -p $SHRDIR/util |
35 |
-mkdir -p /var/log/collectl |
36 |
+mkdir -p $DESTDIR/etc/init.d |
37 |
+mkdir -p $DESTDIR/usr/share/man/man1 |
38 |
+mkdir -p $DESTDIR/var/log/collectl |
39 |
|
40 |
cp collectl.pl $BINDIR/collectl |
41 |
-cp collectl.conf /etc |
42 |
-cp initd/* /etc/init.d |
43 |
-cp man1/* /usr/share/man/man1 |
44 |
+cp collectl.conf $DESTDIR/etc |
45 |
+cp initd/* $DESTDIR/etc/init.d |
46 |
+cp man1/* $DESTDIR/usr/share/man/man1 |
47 |
|
48 |
cp docs/* $DOCDIR |
49 |
cp GPL ARTISTIC COPYING $DOCDIR |
50 |
@@ -28,15 +32,17 @@ |
51 |
cp col2tlviz.pl $SHRDIR/util |
52 |
|
53 |
# Force in case redoing the install and files already zipped |
54 |
-gzip -f /usr/share/man/man1/collectl* |
55 |
+gzip -f $DESTDIR/usr/share/man/man1/collectl* |
56 |
|
57 |
-chmod 755 /etc/init.d/collectl* |
58 |
-chmod 444 /etc/collectl.conf |
59 |
+chmod 755 $DESTDIR/etc/init.d/collectl* |
60 |
+chmod 444 $DESTDIR/etc/collectl.conf |
61 |
chmod 755 $BINDIR/collectl |
62 |
chmod 444 $DOCDIR/ARTISTIC $DOCDIR/COPYING $DOCDIR/GPL |
63 |
chmod 755 $SHRDIR/util/* |
64 |
chmod 444 $SHRDIR/formatit.ph $SHRDIR/*expr.ph $SHRDIR/vmstat.ph |
65 |
|
66 |
+[[ -n $DESTDIR ]] && exit 0 |
67 |
+ |
68 |
# remove any stale versions in case the names/numbers used have changed. |
69 |
# on new ROCKS installion 'rm' isn't there yet! [thanks roy] |
70 |
if [ -x /bin/rm ] ; then |