wok-next view xtel/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | acc4d2d3ae5b |
children | 5669e8b3be70 |
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="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
15 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale jpeg-dev \
16 xorg-libXt-dev xorg-libXpm-dev xorg-libXaw-dev xorg-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 xorg-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 }