blob: cced11d05a4458a0c7fb6d6dae318ff2dc41a38f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
# Maintainer: Márcio Silva <coadde@lavabit.com>
pkgname=openipmi
_pkgname1=${pkgname::4}
_pkgname2=${pkgname:4}
_pkgname=${_pkgname1^}${_pkgname2^^}
pkgver=2.0.19
_pkgver=${pkgver::3}
pkgrel=3
pkgdesc="Allow access to platform information using Intelligent Platform Management Interface (${_pkgname2^^})"
arch=(
i686
x86_64
mips64el
)
url=http://sourceforge.net/projects/$pkgname/
depends=(
glib
net-snmp
#python2
swig
tcl
)
makedepends=(
dia
ghostscript-libre
texlive-bibtexextra
)
options=(!libtool)
license=(
BSD-new
GPL2
LGPL2.1
)
source=http://downloads.sourceforge.net/project/$pkgname/$_pkgname' '$_pkgver' 'Library/$_pkgname-$pkgver.tar.gz
sha512sums=ee95eb64b7cde3f22c8444a5f8e3172808b0bb9a3a7034c1302c5f568c1cc0852a44ccc836924267b5f9901f7a8a3f4c66272cc0b663aa55689d7529841217cb
prepare() {
cd $srcdir/$_pkgname-$pkgver
#mv configure.{in,ac}
#_automake=$(automake --version | grep automake | sed 's|automake (GNU automake) ||')
#sed -i "/am__api_version=/ s|1.11|${_automake::4}|;
# " $(grep -rl am__api_version=)
#sed -i "s|AC_INIT(README.Force)|AC_INIT(OpenIPMI, $pkgver|;
# " configure.ac
#sed -i 's|AM_INIT_AUTOMAKE(OpenIPMI, ${OPENIPMI_VERSION_MAJOR}.${OPENIPMI_VERSION_MINOR}.${OPENIPMI_VERSION_RELEASE}${OPENIPMI_VERSION_EXTRA})|AM_INIT_AUTOMAKE|;
# ' configure.ac
# fixing path
sed -i 's|bin/sh|usr/bin/bash|;
' $(grep -rl bin/sh)
sed -i 's| /bin| /usr/bin|;
' $(grep -rl ' /bin')
sed -i 's| /sbin| /usr/bin|;
' $(grep -rl ' /sbin')
sed -i 's|usr/sbin|usr/bin|;
' $(grep -rl usr/sbin)
#sed -i 's|/lib64|/lib|;
# ' $(grep -rl /lib64)
sed -i 's|usr/libexec|usr/lib|;
' $(grep -rl usr/libexec)
sed -i 's|var/lock|run/lock|;
' $(grep -rl var/lock)
#sed -i 's|var/run|run|;
# ' $(grep -rl var/run)
# remove Open Source term
sed -i 's|Open Source / ||;
s|open source / ||;
s|Open Source|Free Software|;
s|open source|free software|;
s|Free Software Development Lab|Open Source Development Lab|;
' $(grep -ril 'open source')
#sed -i 's|OpenSource / ||;
# s|opensource / ||;
# s|OpenSource|FreeSoftware|;
# s|opensource|freesoftware|;
# s|freesoftware.org|opensource.org|;
# s|http://www.opensource.org/|http://www.gnu.org/philosophy/free-sw.html|;
# s|http://www.gnu.org/philosophy/free-sw.htmllicenses/osl-|http://opensource.org/licenses/osl-|;
# s|http://www.gnu.org/philosophy/free-sw.htmlosd|http://opensource.org/osd|;
# ' $(grep -ril opensource)
# remove Linux term
sed -i 's|Linux,|GNU/Linux,|;
s|Linux and|GNU/Linux and|;
s|Linux distro|GNU/Linux distro|;
s|Linux distribution|GNU/Linux distribution|;
s|Linux machine|GNU/Linux machine|;
s|Linux Only|GNU/Linux Only|;
s|Linux only|GNU/Linux only|;
s|Linux operating|GNU/Linux operating|;
s|Linux OS|GNU/Linux OS|;
s|Linux platform|GNU/Linux platform|;
s|Linux software|GNU/Linux software|;
s|Linux specific|GNU/Linux specific|;
s|Linux system|GNU/Linux system|;
s|Linux will|GNU/Linux will|;
s|# Linux$|# GNU/Linux|;
s|# Linux.$|# GNU/Linux.|;
s|* Linux$|* GNU/Linux|;
s|* Linux.$|* GNU/Linux.|;
s|// Linux$|// GNU/Linux|;
s|// Linux.$|// GNU/Linux.|;
s|, Linux|, GNU/Linux|;
s|As Linux|As GNU/Linux|;
s|as Linux|as GNU/Linux|;
s|And Linux|And GNU/Linux|;
s|and Linux|and GNU/Linux|;
s|Be Linux|Be GNU/Linux|;
s|be Linux|be GNU/Linux|;
s|Because Linux|Because GNU/Linux|;
s|because Linux|because GNU/Linux|;
s|e.g. Linux|e.g. GNU/Linux|;
s|For Linux|For GNU/Linux|;
s|for Linux|for GNU/Linux|;
s|In Linux|In GNU/Linux|;
s|in Linux|in GNU/Linux|;
s|Like Linux|Like GNU/Linux|;
s|like Linux|like GNU/Linux|;
s|non-Linux|non GNU/Linux|;
s|Of Linux|Of GNU/Linux|;
s|of Linux|of GNU/Linux|;
s|On Linux|On GNU/Linux|;
s|on Linux|on GNU/Linux|;
s|OS type: Linux|OS type: GNU/Linux|;
s|Other Linux|Other GNU/Linux|;
s|other Linux|other GNU/Linux|;
s|The Linux|The GNU/Linux|;
s|the Linux|the GNU/Linux|;
s|Typically Linux|Typically GNU/Linux|;
s|typically Linux|typically GNU/Linux|;
s|To Linux|To GNU/Linux|;
s|to Linux|to GNU/Linux|;
s|Under Linux|Under GNU/Linux|;
s|under Linux|under GNU/Linux|;
s|ArchGNU/Linux|ArchLinux|;
s|e2fsprogs, typically GNU/Linux|e2fsprogs, typically Linux|;
s|GNU/GNU|GNU|;
s|GNU/Linux device|Linux device|;
s|GNU/Linux Director Daemon|Linux Director Daemon|;
s|GNU/Linux is a registered trademark of Linus Torvalds|Linux is a registered trademark of Linus Torvalds|;
s|GNU/Linux kernel|Linux kernel|;
s|GNU/Linux specific kernel|Linux specific kernel|;
s|GNU/Linux Standard Base|Linux Standard Base|;
s|GNU/Linux sysfs|Linux sysfs|;
s|GNU/Linux Virtual Server|Linux Virtual Server|;
s|GNU/Linux Watchdog|Linux Watchdog|;
s|GNU/Linux watchdog|Linux watchdog|;
s|GNU/LinuxHA|LinuxHA|;
s|GNU/Linux-HA|Linux-HA|;
s|GNU/LinuxSCSI|LinuxSCSI|;
s|HA GNU/Linux|HA Linux|;
s|High-Availability GNU/Linux|High-Availability Linux|;
s|MkGNU/Linux|MkLinux|;
s|SEGNU/Linux|SELinux|;
s|VA GNU/Linux Cluster|VA Linux Cluster|;
' $(grep -rl Linux)
}
build() {
cd $srcdir/$_pkgname-$pkgver
setarch $CARCH ./configure --prefix=/usr\
--disable-static
setarch $CARCH make
}
package() {
cd $srcdir/$_pkgname-$pkgver
install -d $pkgdir/usr/bin
setarch $CARCH make DESTDIR=$pkgdir install
}
# vim:set ts=2 sw=2 et:
|