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