wok-stable diff xtel/receipt @ rev 11248
Fix: midori build fixes and libnotify removal
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Nov 07 10:04:04 2011 +0000 (2011-11-07) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xtel/receipt Mon Nov 07 10:04:04 2011 +0000 1.3 @@ -0,0 +1,65 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="xtel" 1.7 +VERSION="3.3.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="X emulator of the French Minitel." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://pficheux.free.fr/xtel/" 1.13 +WGET_URL="${WEB_SITE}download/$TARBALL" 1.14 +CONFIG_FILES="/etc/xtel" 1.15 + 1.16 +DEPENDS="ncurses-extra jpeg xorg-libXp xorg" 1.17 +BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \ 1.18 +xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src && 1.24 + sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \ 1.25 + mdmdetect.c xteld.c Xsra/SelFile.c 1.26 + sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c 1.27 + sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c 1.28 + sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c 1.29 + sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \ 1.30 + Imakefile */Imakefile 1.31 + xmkmf && 1.32 + make -j 1 Xtel && 1.33 + make all && 1.34 + make DESTDIR=$DESTDIR install 1.35 +} 1.36 + 1.37 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 +genpkg_rules() 1.39 +{ 1.40 + mkdir -p $fs/usr/share/fonts/X11 1.41 + cp -a $_pkg/* $fs/ 1.42 + mv $fs/usr/lib/X11/xtel $fs/etc 1.43 + ln -s /etc/xtel $fs/usr/lib/X11 1.44 + sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel 1.45 + sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes 1.46 + mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11 1.47 +} 1.48 + 1.49 +# Pre and post install commands for Tazpkg. 1.50 +post_install() 1.51 +{ 1.52 + grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT 1.53 +xtel 1313/tcp # French minitel 1.54 +EOT 1.55 + grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 1.56 +xtel stream tcp nowait root /usr/bin/xteld xteld 1.57 +EOT 1.58 + chroot "$1/" /usr/bin/install_iminitel 1.59 + if [ -z "$1" ]; then 1.60 + /etc/init.d/inetd stop 1.61 + /etc/init.d/inetd start 1.62 + fi 1.63 + cat <<EOT 1.64 + 1.65 +You should launch /usr/bin/make_xtel_lignes now. 1.66 + 1.67 +EOT 1.68 +}