wok view xtel/receipt @ rev 12979

hal: get videodev form libv4l
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 02 12:57:29 2012 +0200 (2012-06-02)
parents
children a0250385f2a5
line source
1 # SliTaz package receipt.
3 PACKAGE="xtel"
4 VERSION="3.3.0"
5 CATEGORY="network"
6 SHORT_DESC="X emulator of the French Minitel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://pficheux.free.fr/xtel/"
10 WGET_URL="${WEB_SITE}download/$TARBALL"
11 CONFIG_FILES="/etc/xtel"
13 DEPENDS="ncurses-extra jpeg xorg-libXp xorg"
14 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
15 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src &&
21 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
22 mdmdetect.c xteld.c Xsra/SelFile.c
23 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
24 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
25 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
26 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
27 Imakefile */Imakefile
28 xmkmf &&
29 make -j 1 Xtel &&
30 make all &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/fonts/X11
38 cp -a $_pkg/* $fs/
39 mv $fs/usr/lib/X11/xtel $fs/etc
40 ln -s /etc/xtel $fs/usr/lib/X11
41 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
42 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
43 mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11
44 }
46 # Pre and post install commands for Tazpkg.
47 post_install()
48 {
49 grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT
50 xtel 1313/tcp # French minitel
51 EOT
52 grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
53 xtel stream tcp nowait root /usr/bin/xteld xteld
54 EOT
55 chroot "$1/" /usr/bin/install_iminitel
56 if [ -z "$1" ]; then
57 /etc/init.d/inetd stop
58 /etc/init.d/inetd start
59 fi
60 cat <<EOT
62 You should launch /usr/bin/make_xtel_lignes now.
64 EOT
65 }