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