wok-next diff xtel/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | acc4d2d3ae5b |
children | 5669e8b3be70 |
line diff
1.1 --- a/xtel/receipt Tue Nov 07 18:34:13 2017 +0100 1.2 +++ b/xtel/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -1,25 +1,21 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="xtel" 1.8 VERSION="3.3.0" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="X emulator of the French Minitel." 1.11 +SHORT_DESC="X emulator of the French Minitel" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://pficheux.free.fr/xtel/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://pficheux.free.fr/xtel/" 1.18 WGET_URL="${WEB_SITE}download/$TARBALL" 1.19 -CONFIG_FILES="/etc/xtel" 1.20 -TAGS="emulator minitel" 1.21 1.22 -DEPENDS="ncurses-extra jpeg xorg-libXp xorg" 1.23 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \ 1.24 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale jpeg-dev \ 1.25 xorg-libXt-dev xorg-libXpm-dev xorg-libXaw-dev xorg-libXmu-dev" 1.26 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 +compile_rules() { 1.31 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \ 1.32 mdmdetect.c xteld.c Xsra/SelFile.c 1.33 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c 1.34 @@ -27,15 +23,14 @@ 1.35 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c 1.36 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \ 1.37 Imakefile */Imakefile 1.38 + 1.39 xmkmf && 1.40 - make -j 1 Xtel && 1.41 + make -j1 Xtel && 1.42 make all && 1.43 - make DESTDIR=$DESTDIR install 1.44 + make DESTDIR=$install install 1.45 } 1.46 1.47 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.48 -genpkg_rules() 1.49 -{ 1.50 +genpkg_rules() { 1.51 mkdir -p $fs/usr/share/fonts 1.52 cp -a $install/* $fs/ 1.53 mv $fs/usr/lib/X11/xtel $fs/etc 1.54 @@ -43,25 +38,31 @@ 1.55 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel 1.56 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes 1.57 mv $fs/fonts $fs/usr/share/fonts/X11 1.58 + DEPENDS="ncurses-extra jpeg xorg-libXp xorg" 1.59 + CONFIG_FILES="/etc/xtel" 1.60 + TAGS="emulator minitel" 1.61 } 1.62 1.63 -# Pre and post install commands for Tazpkg. 1.64 -post_install() 1.65 -{ 1.66 - grep -qs ^xtel "$1/etc/services" || cat >> "$1/etc/services" <<EOT 1.67 +post_install() { 1.68 + grep -qs ^xtel "$1/etc/services" || 1.69 + cat >> "$1/etc/services" <<EOT 1.70 xtel 1313/tcp # French minitel 1.71 EOT 1.72 - grep -qs ^xtel "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT 1.73 + 1.74 + grep -qs ^xtel "$1/etc/inetd.conf" || 1.75 + cat >> "$1/etc/inetd.conf" <<EOT 1.76 xtel stream tcp nowait root /usr/bin/xteld xteld 1.77 EOT 1.78 + 1.79 chroot "$1/" /usr/bin/install_iminitel 1.80 if [ -z "$1" ]; then 1.81 /etc/init.d/inetd stop 1.82 /etc/init.d/inetd start 1.83 fi 1.84 - cat <<EOT 1.85 - 1.86 -You should launch /usr/bin/make_xtel_lignes now. 1.87 + [ -n "$quiet" ] || cat <<EOT 1.88 1.89 + .--------------------------------------------------. 1.90 + | You should launch /usr/bin/make_xtel_lignes now. | 1.91 + '--------------------------------------------------' 1.92 EOT 1.93 }