wok view xtel/receipt @ rev 25367
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 29 07:35:41 2022 +0000 (2022-07-29) |
parents | 5ea0ce1cecc0 |
children |
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE/tele.html 2>/dev/null | \
25 sed "/$PACKAGE/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
32 mdmdetect.c xteld.c Xsra/SelFile.c
33 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' \
34 xaw.c xm.c
35 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' \
36 Xsra/SelFile.c
37 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' \
38 Xsra/SelFile.c
39 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
40 Imakefile */Imakefile
41 xmkmf &&
42 make -j 1 Xtel &&
43 make all &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/fonts/X11/xtel
52 cp -a $install/* $fs/
53 mv $fs/usr/lib/X11/xtel $fs/etc
54 ln -s /etc/xtel $fs/usr/lib/X11
55 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' \
56 $fs/etc/ppp/ip*.iminitel
57 sed -i 's|X11R6/||' \
58 $fs/usr/bin/make_xtel_lignes
59 mv $fs/fonts/X11/xtel/* $fs/usr/share/fonts/X11/xtel
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 grep -qs ^xtel "$1/etc/services" || cat >> "$1/etc/services" <<EOT
66 xtel 1313/tcp # French minitel
67 EOT
69 grep -qs ^xtel "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
70 xtel stream tcp nowait root /usr/bin/xteld xteld
71 EOT
73 chroot "$1/" /usr/bin/install_iminitel
74 if [ -z "$1" ]
75 then
76 /etc/init.d/inetd stop
77 /etc/init.d/inetd start
78 fi
80 cat <<EOT
82 You should launch /usr/bin/make_xtel_lignes now.
84 EOT
85 }