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