blob: 0112a9d228db287301c22a1e1acac3e5bbb553bb (
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
|
--- gnuchess.SlackBuild 2006-04-04 03:47:10.000000000 +0300
+++ gnuchess.SlackBuild 2007-05-08 17:06:11.000000000 +0300
@@ -4,10 +4,10 @@
VERGNUCHESS=5.07
VERSJENG=11.2
-VEREBOARD=0.9.5
+VEREBOARD=1.0.3
VERXBOARD=4.2.7
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
@@ -27,6 +27,8 @@
rm -rf gnuchess-$VERGNUCHESS
tar xjvf $CWD/gnuchess-$VERGNUCHESS.tar.bz2
cd gnuchess-$VERGNUCHESS
+# make gnuchess compile with gcc4
+zcat $CWD/gnuchess.gcc4_fix.diff.gz | patch -p1 --verbose --backup --suffix=.orig
chown -R root:root .
find . -perm 664 -exec chmod 644 {} \;
find . -perm 600 -exec chmod 644 {} \;
@@ -93,33 +95,13 @@
find . -perm 511 -exec chmod 755 {} \;
find . -perm 711 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
-CFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr
+ --prefix=/usr --extra-flags=`echo $SLKCFLAGS | sed -e "y/ /:/"`
make -j3
-#make install DESTDIR=$PKG
-install -d $PKG/usr/bin
-install -m 0755 eboard $PKG/usr/bin/eboard
-install -m 0755 eboard-config $PKG/usr/bin/eboard-config
-install -m 0755 eboard-addtheme $PKG/usr/bin/eboard-addtheme
-install -d $PKG/usr/man/man1
-install -d $PKG/usr/man/man6
-install -m 0644 eboard.6 $PKG/usr/man/man6
-install -m 0644 eboard-addtheme.1 $PKG/usr/man/man1
-install -m 0644 eboard-config.1 $PKG/usr/man/man1
-install -d $PKG/usr/share/eboard
-install -m 0644 classic.png $PKG/usr/share/eboard/classic.png
-install -m 0644 ghouls.png $PKG/usr/share/eboard/ghouls.png
-install -m 0644 plastic.png $PKG/usr/share/eboard/plastic.png
-install -m 0644 eboard_themes.conf $PKG/usr/share/eboard/eboard_themes.conf
-install -m 0644 NAG.en.txt $PKG/usr/share/eboard/NAG.en.txt
-( cd multilang
- install -d $PKG/usr/share/eboard
- install -m 0644 eboard.cs.dict eboard.de.dict eboard.es.dict eboard.it.dict eboard.pt_BR.dict $PKG/usr/share/eboard
-)
+make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/eboard-$VEREBOARD
cp -a \
- AUTHORS COPYING README TODO \
+ AUTHORS COPYING README TODO Documentation/*.txt \
$PKG/usr/doc/eboard-$VEREBOARD
### XBoard
@@ -140,6 +122,8 @@
find . -perm 555 -exec chmod 755 {} \;
# --infodir is fubar.
zcat $CWD/xboard.infodir.diff.gz | patch -p1 --verbose --backup --suffix=.orig
+# Taken from Debian to fix CVE-2004-2552
+zcat $CWD/xboard.buffer_overflow_fix.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -153,6 +137,7 @@
install -c ./pxboard $PKG/usr/bin/pxboard
install -c -m 644 ./xboard.man $PKG/usr/man/man6/xboard.6
install -c -m 644 ./zic2xpm.man $PKG/usr/man/man6/zic2xpm.6
+mkdir -p $PKG/usr/info
install -c -m 644 xboard.info $PKG/usr/info/xboard.info
mkdir -p $PKG/usr/doc/xboard-$VERXBOARD
cp -a \
@@ -165,8 +150,9 @@
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
gzip -9 $PKG/usr/man/man?/*.?
+gzip -9 $PKG/usr/info/*.info
mkdir -p $PKG/usr/share/pixmaps
-cat $CWD/chess.png > $PKG/usr/share/pixmaps/chess.png
+cp $CWD/chess.png $PKG/usr/share/pixmaps/chess.png
mkdir -p $PKG/usr/share/applications
cat $CWD/eboard.desktop > $PKG/usr/share/applications/eboard.desktop
cat $CWD/xboard.desktop > $PKG/usr/share/applications/xboard.desktop
|