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