wok-current view xtel/receipt @ rev 22310

updated xterm (314 -> 350)
author Hans-G?nter Theisgen
date Thu Nov 14 10:30:11 2019 +0100 (2019-11-14)
parents 408c87fa22ca
children 8ccb9346661c
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://pficheux.free.fr/xtel/"
11 WGET_URL="${WEB_SITE}download/$TARBALL"
12 CONFIG_FILES="/etc/xtel"
13 TAGS="emulator minitel"
15 DEPENDS="ncurses-extra jpeg xorg-libXp xorg"
16 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
17 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale jpeg-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src &&
23 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
24 mdmdetect.c xteld.c Xsra/SelFile.c
25 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
26 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
27 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
28 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
29 Imakefile */Imakefile
30 xmkmf &&
31 make -j 1 Xtel &&
32 make all &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/fonts/X11
40 cp -a $install/* $fs/
41 mv $fs/usr/lib/X11/xtel $fs/etc
42 ln -s /etc/xtel $fs/usr/lib/X11
43 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
44 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
45 mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 grep -qs ^xtel "$1/etc/services" || cat >> "$1/etc/services" <<EOT
52 xtel 1313/tcp # French minitel
53 EOT
54 grep -qs ^xtel "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
55 xtel stream tcp nowait root /usr/bin/xteld xteld
56 EOT
57 chroot "$1/" /usr/bin/install_iminitel
58 if [ -z "$1" ]; then
59 /etc/init.d/inetd stop
60 /etc/init.d/inetd start
61 fi
62 cat <<EOT
64 You should launch /usr/bin/make_xtel_lignes now.
66 EOT
67 }