wok-next view xtel/receipt @ rev 21350
updated exosip (5.1.0 -> 5.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 10 06:59:54 2020 +0100 (2020-04-10) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://pficheux.free.fr/xtel/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 BUILD_DEPENDS="imake xorg-cf-files gccmakedep xbitmaps \
15 libxp bdftopcf mkfontdir mkfontscale jpeg-dev \
16 libxt-dev libxpm-dev libxaw-dev libxmu-dev"
18 compile_rules() {
19 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
20 mdmdetect.c xteld.c Xsra/SelFile.c
21 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
22 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
23 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
24 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
25 Imakefile */Imakefile
27 xmkmf &&
28 make -j1 Xtel &&
29 make all &&
30 make DESTDIR=$install install
31 }
33 genpkg_rules() {
34 mkdir -p $fs/usr/share/fonts
35 cp -a $install/* $fs/
36 mv $fs/usr/lib/X11/xtel $fs/etc
37 ln -s /etc/xtel $fs/usr/lib/X11
38 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
39 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
40 mv $fs/fonts $fs/usr/share/fonts/X11
41 DEPENDS="ncurses-extra jpeg libxp xorg"
42 CONFIG_FILES="/etc/xtel"
43 TAGS="emulator minitel"
44 }
46 post_install() {
47 grep -qs ^xtel "$1/etc/services" ||
48 cat >> "$1/etc/services" <<EOT
49 xtel 1313/tcp # French minitel
50 EOT
52 grep -qs ^xtel "$1/etc/inetd.conf" ||
53 cat >> "$1/etc/inetd.conf" <<EOT
54 xtel stream tcp nowait root /usr/bin/xteld xteld
55 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 [ -n "$quiet" ] || cat <<EOT
64 .--------------------------------------------------.
65 | You should launch /usr/bin/make_xtel_lignes now. |
66 '--------------------------------------------------'
67 EOT
68 }