wok-6.x annotate xtel/receipt @ rev 12943

imagemagick: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 30 17:52:09 2012 +0200 (2012-05-30)
parents
children a0250385f2a5
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@11204 12
pascal@11204 13 DEPENDS="ncurses-extra jpeg xorg-libXp xorg"
pascal@11204 14 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
pascal@11204 15 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale"
pascal@11204 16
pascal@11204 17 # Rules to configure and make the package.
pascal@11204 18 compile_rules()
pascal@11204 19 {
pascal@11204 20 cd $src &&
pascal@11204 21 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
pascal@11204 22 mdmdetect.c xteld.c Xsra/SelFile.c
pascal@11204 23 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
pascal@11204 24 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
pascal@11204 25 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
pascal@11204 26 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
pascal@11204 27 Imakefile */Imakefile
pascal@11204 28 xmkmf &&
pascal@11204 29 make -j 1 Xtel &&
pascal@11204 30 make all &&
pascal@11204 31 make DESTDIR=$DESTDIR install
pascal@11204 32 }
pascal@11204 33
pascal@11204 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11204 35 genpkg_rules()
pascal@11204 36 {
pascal@11204 37 mkdir -p $fs/usr/share/fonts/X11
pascal@11204 38 cp -a $_pkg/* $fs/
pascal@11204 39 mv $fs/usr/lib/X11/xtel $fs/etc
pascal@11204 40 ln -s /etc/xtel $fs/usr/lib/X11
pascal@11204 41 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
pascal@11204 42 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
pascal@11204 43 mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11
pascal@11204 44 }
pascal@11204 45
pascal@11204 46 # Pre and post install commands for Tazpkg.
pascal@11204 47 post_install()
pascal@11204 48 {
pascal@11204 49 grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT
pascal@11204 50 xtel 1313/tcp # French minitel
pascal@11204 51 EOT
pascal@11204 52 grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
pascal@11204 53 xtel stream tcp nowait root /usr/bin/xteld xteld
pascal@11204 54 EOT
pascal@11204 55 chroot "$1/" /usr/bin/install_iminitel
pascal@11204 56 if [ -z "$1" ]; then
pascal@11204 57 /etc/init.d/inetd stop
pascal@11204 58 /etc/init.d/inetd start
pascal@11204 59 fi
pascal@11204 60 cat <<EOT
pascal@11204 61
pascal@11204 62 You should launch /usr/bin/make_xtel_lignes now.
pascal@11204 63
pascal@11204 64 EOT
pascal@11204 65 }